On Tue Nov 30 06:22:03 2010, RIBASUSHI wrote:
Show quoted text> On Mon Nov 29 21:40:16 2010, TJC wrote:
> > I gather you've already seen some issues with Class::XSAccessor on Win32,
> > but I'm seeing segfaults from it on Linux as well, not even with
> > particularly much load, under perl 5.12.2.
> >
> > Your docs mention potential instability on win32+mod_perl, but I worry
> > that the instability crosses over into Linux territory as well. Of course
> > my issues are yet to be confirmed, but I'll link the other bugreport to
> > here.
> > I figure that if my crashes can be replicated and confirmed, then the
> > concerns should be mentioned in the docs here too.
>
> You are the first one to report linux-based crashes, so as Rafael said
> we need more info.
>
> > And then maybe the default value for CAG_USE_XS should be "disabled"?
>
> The author of Class::XSAccessor is one of the most responsive ones I
> know, and will fix any bug brought to his attention. A lot of work went
> into making C::XSA optional-and-on-by-default, we are not planning on
> changing it until C::XSA is demonstrated to be a real problem.
>
> So - reproducing test please
I understand. I did say above that "my issues are yet to be confirmed".. I will work to create a
reproducible test case. (See other bug that's linked as dependency)
I can currently reproduce the bug every time, but only in a certain chunk of code. Memory
allocation errors are tricky to isolate. In a sufficiently simple test case the glitchy bit of
memory access might not touch anything else important enough to cause a crash.
I think it's worth raising the issue, as then if other people are also hitting the issue, but
aren't sure if they're imagining it too, then we can see if there's a pattern.
Anyway, I'll keep you posted with developments as they occur; for the time being I've been running
with CAG_USE_XS=0, which in my case stops the segfaults. I'm glad you thought to add that option.
Cheers,
Toby