Loading ...
Sorry, an error occurred while loading the content.

Re: Graceful restart of Apache multiple times

Expand Messages
  • Stas Bekman
    ... pradeep, your report is incomplete. Please read: http://perl.apache.org/bugs/ and try again. ... Any difference if you do httpd -k graceful instead? I
    Message 1 of 2 , Dec 1, 2004
    • 0 Attachment
      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@... 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
    Your message has been successfully submitted and would be delivered to recipients shortly.