SPUG: XML::Simple not playing well with Apache/mod_perl?

James Moore james at banshee.com
Thu Sep 29 12:16:10 PDT 2005

I've got a problem with Apache 1.33 and XML::Simple, or at least I think I

Apache is dying with these sorts of errors:

Attempt to free unreferenced scalar: SV 0xa2a4394, Perl interpreter:
A thread exited while 2 threads were running.

(note that I'm not trying to use threads in my mod_perl code, but might be
doing so in CPAN libraries.)

When I remove the call to XMLin (from XML::Simple), these errors go away.
When I put the call back in, the errors come back, 100% of the time.  (Easy
to reproduce.)

Anyone else run into something like this?  It doesn't seem likely that
XML::Simple would cause mod_perl to die like this, but the gun appears to be
warm to the touch if not exactly smoking.

 - James Moore

More information about the spug-list mailing list