perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: [mp2] Repeated kill -HUP to httpd dumps core
Date Sat, 04 Dec 2004 15:17:26 GMT
pradeep kumar wrote:
> Hi,
>       But I have tried to reproduce the problem using USR1 and it also
> dumped core. I have tried to reproduce the error on Apache 2.0.43 and
> the error_log gave a different message. It gave the following message.
> 
>   [Thu Nov 18 00:00:01 2004] [notice] configured -- resuming normal operations
>    [Fri Nov 19 00:00:05 2004] [warn] child process 12783 still did not
>    exit, sending a SIGTERM
>    [Fri Nov 19 00:00:05 2004] [notice] SIGHUP received.	Attempting to
>    restart

But it still reports SIGHUP, so there is no difference with what you had 
before. Do you get the same report when you run httpd -k graceful? May be 
USR1 is not quite the same as I was told. Which mpm you are on? I've asked 
you to submit a full bug report, but you didn't.

>    panic: pthread_key_create	    <<<<<<here is the message
>    [Fri Nov 19 00:12:33 2004] [notice]    configured -- resuming
> normal operations
> 
> I did a strings on mod_perl and found the panic: pthread_key_create
> message.  Where can I find this message being generated so that I can
> work on it. I also wanted to know if the errors on 2.0.43 and that of
> 2.0.52 are related.
> 
> 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



-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

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


Mime
View raw message