[perl #54522] [BUG] 'lower' method of String segfaults in subclasses

2008-05-22 Thread Will Coleda via RT
On Tue May 20 13:34:01 2008, [EMAIL PROTECTED] wrote: > On Tuesday 20 May 2008 09:59:10 chromatic wrote: > > > Actually, it's the pmc_new_noinit() call which is the problem. This > method > > in this case needs to return an Object, which has PMC data. > Unfortunately, > > calling pmc_new_noinit()

Re: [perl #54522] [BUG] 'lower' method of String segfaults in subclasses

2008-05-20 Thread chromatic
On Tuesday 20 May 2008 09:59:10 chromatic wrote: > Actually, it's the pmc_new_noinit() call which is the problem. This method > in this case needs to return an Object, which has PMC data. Unfortunately, > calling pmc_new_noinit() does *not* call any PMC initializer, which in this > case allocate

Re: [perl #54522] [BUG] 'lower' method of String segfaults in subclasses

2008-05-20 Thread chromatic
On Tuesday 20 May 2008 07:07:53 Patrick R.Michaud wrote: > Here's the lower method itself: > > METHOD lower() { > STRING * const s = string_downcase(INTERP, > VTABLE_get_string(INTERP, SELF)); > PMC * constret = pmc_new_noinit(INTERP, > SELF->vtable->base_type

[perl #54522] [BUG] 'lower' method of String segfaults in subclasses

2008-05-20 Thread via RT
# New Ticket Created by Patrick R. Michaud # Please include the string: [perl #54522] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=54522 > The 'lower' method for String objects causes a segfault in subclasses of String.