I've discovered that from time to time my fcgi processes running under Catalyst are falling into infinite loop between requests.

Here is the GDB backtrace of running hanged process.

#0 0x0000000800c227c9 in _pthread_mutex_init_calloc_cb () from /lib/l +ibc.so.7 #1 0x0000000800c26dce in free () from /lib/libc.so.7 #2 0x00000008006daad0 in Perl_sv_clear () from /usr/local/lib/perl5/5 +.10.1/mach/CORE/libperl.so #3 0x00000008006dac96 in Perl_sv_free2 () from /usr/local/lib/perl5/5 +.10.1/mach/CORE/libperl.so #4 0x00000008006c3e76 in Perl_hv_free_ent () from /usr/local/lib/perl +5/5.10.1/mach/CORE/libperl.so #5 0x00000008006c448e in S_hfreeentries () from /usr/local/lib/perl5/ +5.10.1/mach/CORE/libperl.so #6 0x00000008006c6b3b in Perl_hv_undef () from /usr/local/lib/perl5/5 +.10.1/mach/CORE/libperl.so #7 0x00000008006da97c in Perl_sv_clear () from /usr/local/lib/perl5/5 +.10.1/mach/CORE/libperl.so #8 0x00000008006dac96 in Perl_sv_free2 () from /usr/local/lib/perl5/5 +.10.1/mach/CORE/libperl.so #9 0x00000008006d2c40 in S_visit () from /usr/local/lib/perl5/5.10.1/ +mach/CORE/libperl.so #10 0x00000008006d2ca1 in Perl_sv_clean_objs () from /usr/local/lib/pe +rl5/5.10.1/mach/CORE/libperl.so #11 0x000000080067bd71 in perl_destruct () from /usr/local/lib/perl5/5 +.10.1/mach/CORE/libperl.so #12 0x0000000000400bcc in main ()

OS: FreeBSD 7.2

What the hell is going on? Unfortunaly OS core was built without "-g" so i cannot determine which line is the stopper in _pthread_mutex_init_calloc_cb

Can someone help?


In reply to Strange infinite loop somewhere in libc.so while running FCGI server. by syber

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.