risacher has asked for the wisdom of the Perl Monks concerning the following question:
I like POE, especially POE::Component::Client::AMQP.
I like mod_perl. Lots.
But if I try to 'use POE;' from within a mod_perl Response handler, Apache2 crashes in a relatively ugly way:
Is this a known issue? Is this caused (or exacerbated) by the use of mpm_event? After getting used to using the PoCO:Client:AMQP API, I'm not eager to go learn a new AMQP API just for web clients.*** glibc detected *** /usr/sbin/apache2: double free or corruption (! +prev): 0x22efe8a0 *** ======= Backtrace: ========= /lib/tls/i686/cmov/libc.so.6[0x17bff1] /lib/tls/i686/cmov/libc.so.6[0x17d6f2] /lib/tls/i686/cmov/libc.so.6(cfree+0x6d)[0x1807cd] /usr/lib/libperl.so.5.10(Perl_safesysfree+0x21)[0x107df71] /usr/lib/perl/5.10/auto/POSIX/POSIX.so(XS_POSIX__SigSet_DESTROY+0xb3)[ +0x60c7e3] /usr/lib/libperl.so.5.10(Perl_pp_entersub+0x5aa)[0x109f0ba] /usr/lib/libperl.so.5.10(Perl_call_sv+0x53a)[0x109ad7a] /usr/lib/libperl.so.5.10(Perl_sv_clear+0xae)[0x10b22de] /usr/lib/libperl.so.5.10(Perl_sv_free2+0x58)[0x10b29f8] /usr/lib/libperl.so.5.10(Perl_sv_free+0xae)[0x10b2aee] /usr/lib/libperl.so.5.10[0x10b2f55] /usr/lib/libperl.so.5.10[0x10a7082] /usr/lib/libperl.so.5.10(Perl_sv_clean_objs+0x3d)[0x10a70ed] /usr/lib/libperl.so.5.10(perl_destruct+0x1257)[0x109cf57] /usr/lib/apache2/modules/mod_perl.so(modperl_perl_destruct+0x90)[0x4db +0a0] /usr/lib/apache2/modules/mod_perl.so(modperl_interp_destroy+0x55)[0x4c +a555] /usr/lib/apache2/modules/mod_perl.so[0x4ca5bd] /usr/lib/apache2/modules/mod_perl.so(modperl_tipool_destroy+0x3d)[0x4c +ab3d] /usr/lib/apache2/modules/mod_perl.so(modperl_interp_pool_destroy+0x29) +[0x4ca5f9] /usr/lib/libapr-1.so.0[0x2b8ed8] /usr/lib/libapr-1.so.0(apr_pool_destroy+0x5c)[0x2b80f8] /usr/lib/libapr-1.so.0(apr_pool_clear+0x44)[0x2b7fe6] /usr/sbin/apache2(main+0xb65)[0xdffb15] /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0x127b56] /usr/sbin/apache2[0xdfe921] ======= Memory map: ======== ... and so on
Is there some other way to do this?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: POE, mod_perl, and mpm_event
by risacher (Beadle) on May 06, 2010 at 04:43 UTC |