Thread View: comp.sys.transputer
1 messages
1 total messages
Started by Ken Kahn
Wed, 11 Jul 1990 21:43
Debugging dereference cycles
Author: Ken Kahn
Date: Wed, 11 Jul 1990 21:43
Date: Wed, 11 Jul 1990 21:43
19 lines
1360 bytes
1360 bytes
Yesterday I spent over 3 hours tracking down a bug that was due to the fact that I managed to create a variable that was bound to itself. It is very hard to debug such programs. I used the raw trace package (it produced a 1.5 MegaByte file) and lots of print statements and it still was very hard to localize once I suspected what the problem is. I think the Strand implementation is doing the "right" thing since any alternative that I can imagine would slow things down. What I would like to see, however, is a Strand implemenation that had a "development mode" -- a generalization of the current "resolvent" mode. When developing code I would like the implementation of X := Y to dereference both X and Y and check if they are the same before doing the assignment and if they are the same signal an error. I would like it to also do an occur check if Y is a tuple. Maybe people on this list can think up other things that would be useful while debugging code. -ken kahn
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads