Newsgroups: perl.perl6.internals
From: l...@toetsch.at (Leopold Toetsch)
Date: Wed, 28 Jan 2004 10:00:54 +0100
Local: Wed, Jan 28 2004 4:00 am
Subject: COWed stack bug (was: IMCC - PerlArray getting trounced)
Will Coleda wrote: Great. > Well, that was festive. "I can reproduce that bug in 22 lines!" The bug (and other reported curruptions) are definitely coming from the Setting up the exception handler (which is a continuation) triggers COW The register restoring memcpy is the same *twice*: memcpy (dstpp=0x824ca50, srcpp=0x4017d9a0, len=64) So returning from __outer places P17 (the RetContinuation of __inner) in > :get_string() not implemented in class 'RetContinuation' ... which then causes this error. Just returning from mark_register_stack_cow() makes the bug vanish (but doesn't fix anything) As mentioned several times, a COWed buffer needs distinct buffer headers You can currently avoid the bug by not using Continuations and Exception Thanks for your test program, You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||