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:

*** 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 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.

Is there some other way to do this?


In reply to POE, mod_perl, and mpm_event by risacher

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.