Re: [perl #25960] [PATCH] COWed stack bug (was IMCC - PerlArray getting trounced)

2004-02-24 Thread Leopold Toetsch
Luke Palmer <[EMAIL PROTECTED]> wrote: > Leopold Toetsch writes: >> >> As already stated: >> - COWed buffers need distinct buffer headers pointing to the same >> buffer memory >> - unCOWing (regstack_copy_chunk) allocates new buffer memory and >> resets the COW flag > I headed in to fix this w

Re: [perl #25960] [PATCH] COWed stack bug (was IMCC - PerlArray getting trounced)

2004-02-23 Thread Luke Palmer
Leopold Toetsch writes: > Matt Fowles <[EMAIL PROTECTED]> wrote: > > > This patch make the problem case submitted by Jeff Clites work. All > > tests pass, and his sample has been added to the tests. > > > struct RegisterChunkBuf* top = stack->top; > > if (top->used > 1) { > > +

Re: [perl #25960] [PATCH] COWed stack bug (was IMCC - PerlArray getting trounced)

2004-02-04 Thread Leopold Toetsch
Matt Fowles <[EMAIL PROTECTED]> wrote: > This patch make the problem case submitted by Jeff Clites work. All > tests pass, and his sample has been added to the tests. > struct RegisterChunkBuf* top = stack->top; > if (top->used > 1) { > +top->used--; Thanks for the patch *but*

[perl #25960] [PATCH] COWed stack bug (was IMCC - PerlArray getting trounced)

2004-02-04 Thread via RT
# New Ticket Created by Matt Fowles # Please include the string: [perl #25960] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id=25960 > All~ This patch make the problem case submitted by Jeff Clites work. All tests pass

Re: IMCC - PerlArray getting trounced

2004-01-29 Thread Will Coleda
Sorry about the delay in responding. My current sample program is 2760 lines of imcc in 23 files, plus a small .tcl script. I'll see if I can trim that down to a more reasonable test case. On Monday, January 26, 2004, at 05:32 AM, Leopold Toetsch wrote: Will Coleda <[EMAIL PROTECTED]> wrote:

Re: IMCC - PerlArray getting trounced

2004-01-28 Thread Will Coleda
Well, that was festive. "I can reproduce that bug in 22 lines!" I expect the following code to print out a single colon (since PerlUndef prints as the empty string) and a newline. Instead, I get: :get_string() not implemented in class 'RetContinuation' which shows that the PerlUndef I assigned

COWed stack bug (was: IMCC - PerlArray getting trounced)

2004-01-28 Thread Leopold Toetsch
Will Coleda wrote: Well, that was festive. "I can reproduce that bug in 22 lines!" Great. The bug (and other reported curruptions) are definitely coming from the COW logic in register.c. This is what happens: Setting up the exception handler (which is a continuation) triggers COW setting of th

Re: IMCC - PerlArray getting trounced

2004-01-26 Thread Leopold Toetsch
Will Coleda <[EMAIL PROTECTED]> wrote: > I'm trying to track down a problem with a PerlArray that is getting > modified on me. > I have a snippet of code like: Could you please provide a complete program, that imposes the bug? leo

Re: IMCC - PerlArray getting trounced

2004-01-25 Thread Will Coleda
Nope. If I turn on -G and leave off explicit savetop/restoretop, the perlArray is still stomped. Regards. On Sunday, January 25, 2004, at 09:29 AM, Leopold Toetsch wrote: Will Coleda <[EMAIL PROTECTED]> wrote: If there's magic, it was an unintentional invocation. =-) If I was managing my own

Re: IMCC - PerlArray getting trounced

2004-01-25 Thread Leopold Toetsch
Will Coleda <[EMAIL PROTECTED]> wrote: > If there's magic, it was an unintentional invocation. =-) If I was > managing my own registers, I'd expect to have to save things - but > since I'm always (I think) using .locals or the $I syntax, I'd > expect IMCC to do the saving, IMCC does provide the n

Re: IMCC - PerlArray getting trounced

2004-01-25 Thread Will Coleda
If there's magic, it was an unintentional invocation. =-) If I was managing my own registers, I'd expect to have to save things - but since I'm always (I think) using .locals or the $I syntax, I'd expect IMCC to do the saving, since I have no way of knowing /which/ registers it's using for me.

Re: IMCC - PerlArray getting trounced

2004-01-25 Thread Luke Palmer
Will Coleda writes: > I'm trying to track down a problem with a PerlArray that is getting > modified on me. > > I have a snippet of code like: > > typeof $S12, tcl_words > $I12 = tcl_words > print "TYPEOF: " > print $S12 > print "\n" > print "SIZEOF: " > print $I12 > print "\n" >

IMCC - PerlArray getting trounced

2004-01-24 Thread Will Coleda
I'm trying to track down a problem with a PerlArray that is getting modified on me. I have a snippet of code like: typeof $S12, tcl_words $I12 = tcl_words print "TYPEOF: " print $S12 print "\n" print "SIZEOF: " print $I12 print "\n" (var_start_at,var_length,var_replace_str) =