Re: [mp2] Repeated kill -HUP to httpd dumps core

[prev] [thread] [next] [Date index for 2004/12/06]

From: Joe Orton
Subject: Re: [mp2] Repeated kill -HUP to httpd dumps core
Date: 22:13 on 06 Dec 2004
On Mon, Dec 06, 2004 at 08:02:22PM +0530, pradeep kumar wrote:
> Hi,
>         I have reported a bug. The bug number is 32542. Looking into
> the problem I found that the porblems on both 2.0.43 and 2.0.52 are
> same. The perl_alloc funtion which caused the error as seen from the
> stack trace of 2.0.52 was found to give the same  pthread_key_create
> error. As seen by the PerlIO_stderr() function which is after the
> perl_alloc funtion in the stack.

Until you actually have any idea what is causing this bug, randomly
opening bug reports is not going to help -- especially not against httpd
since this looks like a custom vendor-patched httpd build.

I suggest the first thing to do is to reproduce the bug with a more
recent version of Perl - as Stas shows, it will give a better diagnostic
in the panic message.

joe

...
> > > I did this
> > > # strings mod_perl.so | grep "panic: pthread_key_create"
> > > panic: pthread_key_create
> > > # strings /opt/perl/bin/perl | grep "panic: pthread_key_create"
> > > panic: pthread_key_create
> > >
> > >
> > > This suggests that the perl interpreter is generating this message.
> > > Where do I proceed from here.
> > 
> > perl-5.8.x/thread.x:
> > 
> > #ifndef ALLOC_THREAD_KEY
> > #  define ALLOC_THREAD_KEY \
> >      STMT_START {                                               \
> >         int _eC_;                                               \
> >         if ((_eC_ = pthread_key_create(&PL_thr_key, 0))) {      \
> >             PerlIO_printf(PerlIO_stderr(), "panic: pthread_key_create (%d)
> > [%s:%d]",       \
> >                                  _eC_, __FILE__, __LINE__);     \
> >             exit(1);                                            \
> >         }                                                       \
> >      } STMT_END
> > #endif
> > 


        -- 
        Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

(message missing)

Graceful restart of Apache multiple times
pradeep kumar 11:26 on 01 Dec 2004

Re: Graceful restart of Apache multiple times
Stas Bekman 14:58 on 01 Dec 2004

Re: [mp2] Repeated kill -HUP to httpd dumps core
pradeep kumar 05:11 on 04 Dec 2004

Re: [mp2] Repeated kill -HUP to httpd dumps core
pradeep kumar 14:32 on 06 Dec 2004

Re: [mp2] Repeated kill -HUP to httpd dumps core
Joe Orton 22:13 on 06 Dec 2004

Generated at 11:26 on 21 Dec 2004 by mariachi v0.52