Re: Graceful restart of Apache multiple times

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

From: Stas Bekman
Subject: Re: Graceful restart of Apache multiple times
Date: 14:58 on 01 Dec 2004
pradeep kumar wrote:
> Hi,
> 
>   If Apache is gracefully rastarted multiplae times it dumps core. To
> reproduce this problem there is a script that can be run which sends a
> kill -HUP to httpd every 20 secs. 

pradeep, your report is incomplete. Please read:
http://perl.apache.org/bugs/ and try again.

> The scpirt is
> 
> #!/usr/bin/sh
> 
> COUNT=1
> while true
> do
> kill -HUP `cat "path_to_httpd.pid/httpd.pid"`
> date "+DATE: %m/%d/%y %H:%M:%S count: $COUNT  return: $?"
> COUNT=`expr $COUNT + 1`
> sleep 20
> done

Any difference if you do 'httpd -k graceful' instead? I think Apache2 may 
not quite work with this kill thing.

> #0  0xc020c428 in kill+0x10 () from /usr/lib/libc.2
> (gdb) bt
> #0  0xc020c428 in kill+0x10 () from /usr/lib/libc.2
> #1  0x544ac in sig_coredump+0xd4 ()
> #2  <signal handler called>
> #3  0xc28ec8dc in PerlIO_default_layers+0x19c ()
>    from /opt/hpws/apache/modules/mod_perl.so
> #4  0xc28ed52c in PerlIO_resolve_layers+0x3c ()
>    from /opt/hpws/apache/modules/mod_perl.so

That trace is incomplete, you need to rebuild perl and mod_perl with debug 
symbols as explained at the URL quoted at the top of this email. But first 
see if my suggestion to use 'httpd -k graceful' works for you.

        -- 
        __________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxx.xxx 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

(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

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