chromatic wrote:
> On Sunday 21 October 2007 07:57:58 Bram Geron wrote:
> 
>> Attached patch fixes the segfault for me. (And no memory leak too.) The
>> problem was that mark_context didn't mark ctx->caller_ctx, which is used
>> in get_params. Usually the caller context is accessible through
>> current_cont->to_ctx, but in a tail call it isn't, causing DOD to mark
>> registers in the context dead and setting their vtable to 0xdeadbeef,
>> causing the bug.
> 
> Seems reasonable to me.  How did you check for leaks, by the way?
> 
> -- c
> 

I ran the test file for two minutes (it's an infinite loop), and top
showed no change in memory use. I assumed that was accurate enough :)

-- 
Bram Geron | GPG BEAB906D E7B9E65E

Reply via email to