From f350cc3c6651ef2775e31ff306d086e123a80b8e Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Wed, 10 Feb 2016 23:09:28 -0500 Subject: [PATCH] Added a working set of notes --- eval-debugging.txt | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 eval-debugging.txt diff --git a/eval-debugging.txt b/eval-debugging.txt new file mode 100644 index 00000000..f1881114 --- /dev/null +++ b/eval-debugging.txt @@ -0,0 +1,28 @@ +tested with nothing checked out on cyclone-bootstrap +used the (delay (force test case + +eval.c:23791 lambda 19 - self_731184[1][0][2] + +eval lambda 20 - k_73700 +p ((closureN)((closureN)((closureN)k_73700 )->elts[0]))->elts[2] + + +(define (foldr func end lst) +lst is bad in debugger: + +(gdb) p *((list)lst_73538 ) +$56 = {hdr = {mark = 3221189204, grayed = 0 '\000'}, tag = -1073779712, cons_car = 0x8, + cons_cdr = 0xbffdf7f0} + + this is lambda_706 in base.c + so... wtf? + + (cdr exp) in wrapc seems corrupt - WTF? + + (gdb) p *((list)((list)((closureN)self_731181)->elts[0])->cons_cdr) + $67 = {hdr = {mark = 3221189204, grayed = 0 '\000'}, tag = -1073779712, cons_car = 0x8, + cons_cdr = 0xbffdf7f0} + + presumably the cdr is corrupt in eval-from-c as well? need to check that next + +