Re: [perl #31493] Overlapping memory corruption

2004-09-10 Thread Leopold Toetsch
Steve Fink wrote: Hey, your reason is much better than my reason. Still, why do the _noinit stuff and duplicate the creation code? Why not just call pmc_new as in my replacement code? C would create a Hash already. But the clone has to create one of the source type, which might not be quite the sa

Re: [perl #31493] Overlapping memory corruption

2004-09-09 Thread Steve Fink
On Sep-09, Leopold Toetsch wrote: > Steve Fink (via RT) wrote: > > >I won't go through all the details of what I looked at (though I'll > >post them in my blog eventually), but what's happening is that this > >line (from perlhash.pmc's clone() implementation) is corrupting the > >flags field: > >

Re: [perl #31493] Overlapping memory corruption

2004-09-09 Thread Leopold Toetsch
Steve Fink (via RT) wrote: I won't go through all the details of what I looked at (though I'll post them in my blog eventually), but what's happening is that this line (from perlhash.pmc's clone() implementation) is corrupting the flags field: ((Hash*)PMC_struct_val(dest))->container = dest

[perl #31493] Overlapping memory corruption

2004-09-09 Thread via RT
# New Ticket Created by Steve Fink # Please include the string: [perl #31493] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id=31493 > --- osname= linux osvers= 2.4.21-1.1931.2.382.entsmp arch= i386-linux-thread-multi cc