php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17575 Segfault on SIGHUP
Submitted: 2002-06-03 08:59 UTC Modified: 2002-10-09 15:04 UTC
From: msopacua at idg dot nl Assigned:
Status: Closed Package: Apache2 related
PHP Version: 4.0CVS-2002-06-03 OS: BSD/OS 4.2
Private report: No CVE-ID: None
 [2002-06-03 08:59 UTC] msopacua at idg dot nl
As mentioned earlier - apache2 dies with a segfault.

below is the backtrace - don't be fooled by the 2.0.35 path there - it's 2.0.36 I just didn't update my symlinks.
Snapshot version is 200206021800.

$ gdb -exec /aphack2/bin/httpd -core /chroot/webbin/aphack-2.0.35/httpd.core
GNU gdb
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-bsdi4.2".
Core was generated by `httpd'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /shlib/libm.so.0.0...done.
Reading symbols from /shlib/libdl.so...done.
Reading symbols from /weblib/local/lib/libz.so.1...done.
Reading symbols from /shlib/libgcc.so.1...done.
Reading symbols from /shlib/libc.so.2...done.
Reading symbols from /shlib/ld-bsdi.so...done.
Reading symbols from /aphack2/modules/libphp4.so...done.
Reading symbols from /weblib/local/lib/mysql/libmysqlclient.so.10...done.
#0  0x48153b6d in kill () from /shlib/libc.so.2
(gdb) bt
#0  0x48153b6d in kill () from /shlib/libc.so.2
#1  0x80831f8 in ?? ()
#2  0x481e8adb in _thread_sig_deliver_one () from /shlib/libc.so.2
#3  0x481e89c1 in _thread_sig_deliver_pending () from /shlib/libc.so.2
#4  0x481e84cf in _thread_sig_handler () from /shlib/libc.so.2
#5  0x8047fe2 in ?? ()
#6  0x483232bb in php_module_startup (sf=0x483d4598) at /chroot/home/mdev/php4-200206021800/main/main.c:844
#7  0x48386896 in php_apache_server_startup (pconf=0x810f010, plog=0x8147010, ptemp=0x8141010, s=0x8144020)
    at /chroot/home/mdev/php4-200206021800/sapi/apache2filter/sapi_apache2.c:474
#8  0x8084eb9 in ?? ()
#9  0x808a921 in ?? ()
#10 0x805deee in ?? ()

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-09 14:23 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip


 [2002-10-09 15:04 UTC] msopacua@php.net
It's better - I'd say fixed on the segfault, but restart is not entirely what it should be:

[Wed Oct 09 21:55:42 2002] [notice] Apache/2.0.43 (Unix) PHP/4.3.0-dev configured -- resuming normal operations
[Wed Oct 09 21:56:11 2002] [warn] child process 19420 still did not exit, sending a SIGTERM
[Wed Oct 09 21:56:28 2002] [warn] child process 19420 still did not exit, sending a SIGTERM
[Wed Oct 09 21:57:36 2002] [notice] SIGHUP received.  Attempting to restart
[Wed Oct 09 21:57:37 2002] [notice] Apache/2.0.43 (Unix) PHP/4.3.0-dev configured -- resuming normal operations
[Wed Oct 09 21:59:32 2002] [notice] Graceful restart requested, doing restart
[Wed Oct 09 22:00:47 2002] [warn] (60)Operation timed out: connect to listener
[Wed Oct 09 22:00:48 2002] [notice] Apache/2.0.43 (Unix) PHP/4.3.0-dev configured -- resuming normal operations
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 13:01:28 2024 UTC