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 Thu, 02 Dec 2004 22:15:51 GMT
Stas Bekman wrote:
> [please don't forget to Reply-All when following up on list's discussion!
> Thanks]
> 
> pradeep kumar wrote:
> 
>> Hi,                         By sending a "httpd -k graceful" multiple 
>> times does not
>> reproduce the problem. But kill -HUP definetly produces it. On Apache
>> 2.0.52 it dumps core with seg fault. On runnig the same on Apache
>> 2.0.43 it does not produce a core but gives a
>> "panic:pthread_key_create" error in the error_log.
> 
> 
> Excellent. Why can't you use "httpd -k graceful" then?
> 
>>    [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
>>    panic: pthread_key_create        <<<<<<here is the message
>>    [Fri Nov 19 00:12:33 2004] [notice]   configured -- resuming normal
>> operations
>>
>>
>> Are these two problems related. The problem occurs only when the
>> mod_perl module is loaded. It is not reproduced when it now loaded.
> 
> 
> I think it just happens to trigger the problem. Looking at the source
> looks like both approaches should work. Let me ping the httpd-dev list to
> see if SIGHUP can be used.

So here is the answer from httpd-dev (courtesy of Jeff Trawick):

   graceful uses signal USR1; ungraceful restart uses HUP;

so you want to use "kill -USR1" or "httpd -k graceful"

ungraceful is doomed not to work (even normal shutdown) due to problems in 
the MPM implementation:
http://issues.apache.org/bugzilla/show_bug.cgi?id=23238

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