This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: New Garbage Collection for Smobs



That marking code looks correct to me.

If it crashes in the midst of marking, then the mark function must be
finding some bogus pointers.  Are you sure that your attribute and
value members are initialized to valid Scheme values?  For example,
zero is not a valid SCM value.

Try stepping into the first call to scm_gc_mark; there's a switch
statement there, classifying the object by type.  See if the type it
discovers is what you expect.

Also, could you send your table_S2I macro, and the function that
creates the smobs?