At 09:47 AM 3/27/2002 +0200, Peter Gibbs wrote:
>----- Original Message -----
>From: "Melvin Smith" <[EMAIL PROTECTED]>
> > ../parrot reverse.pbc < string.c
> >
> > <file prints out pre-reverse call>
> >
> > recurse depth 0
> > Segmentation fault (core dumped)
>
>This seems to caused by a nice timing problem - the string header has been
snip
>Patch below fixes it by clearing the buffer pointer on allocation of a new
>header; it could alternatively be done when the header is added to the free
>list.

Good catch there!

I'll leave it to Dan to decide if it makes sense but it works for me.

reverse.cola now reverses core_ops.c which is pretty crushing.
It only takes about 120 seconds on my box, recursion depth grows
to 20+ and parrot resident size hits 32 Mb, but it finishes.

With the stack fix and GC catch, should we do a maintennance
release sooner than later, as these were seriously nasty?

-Melvin

Reply via email to