Re: Line number and source file names in stack trace, part 1

From: Shiro Kawai <shiro_at_lava.net>
Date: Wed, 22 Dec 1999 21:53:35 -1000

I just quickly browse the patch file. Looks like you store SCM
pointer to the Scheme string containing the source file name in
each cell but don't mark it in GC. Thus the string is
eventually garbage-collected and becomes an unknown object.

Try this: in STk_gc_mark, just be fore the big switch, add
  gc_mark(ptr->source_filename);

The filename/line feature is very handy to have, but I don't
know if I want to dedicate 2 words per cell for that purpose.
If, memory consumption doesn't grow when I turn debugging off
at run time, it'll be very nice...

--shiro
Received on Thu Dec 23 1999 - 08:53:38 CET

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST