Wed May 12 14:11:30 2010dwheeler [...] cpan.org - Ticket created
Subject:
Segfault when Calling Accessor as Class Method
Date:
Wed, 12 May 2010 11:10:44 -0700
To:
bug-Class-XSAccessor [...] rt.cpan.org
From:
"David E. Wheeler" <dwheeler [...] cpan.org>
This will segfault (on 5.12 at least):
package Foo;
use Class::XSAccessor constructor => 'new', accessors => { map { $_ => $_ } qw(
app
url
) };
package main;
Foo->app;
Took me a while to realize that I was calling app() as a class method instead of an instance method, but it shouldn't segfault, I think.
Thanks,
David
Sat Aug 14 14:41:21 2010smueller [...] cpan.org - Correspondence added
Hi,
sorry for the delay in answering. I think I didn't receive the RT email
or else it got lost in the depths of my inbox.
This issue was just resolved on 5.10 and up by the Class::XSAccessor
1.06 release. It should not die() instead of segfault.
Best regards,
Steffen
Sat Aug 14 14:41:22 2010The RT System itself - Status changed from 'new' to 'open'
Sat Aug 14 14:41:22 2010smueller [...] cpan.org - Status changed from 'open' to 'resolved'