From:             [EMAIL PROTECTED]
Operating system: Slackware 8.1 - Linux 2.4.19
PHP version:      4.2.3
PHP Bug Type:     Apache2 related
Bug description:  PHP crashes apache on restart of the webserver


  In apache 2.0.40/42 I got the following messages when attempting to
*restart* the server.

--------------------------------------------------
[Fri Sep 27 16:54:34 2002] [notice] SIGHUP received.  Attempting to
restart
[Fri Sep 27 16:54:34 2002] [notice] Digest: generating secret for digest
authentication ...
[Fri Sep 27 16:54:34 2002] [notice] Digest: done
[Fri Sep 27 16:54:35 2002] [notice] seg fault or similar nasty error
detected in the parent process
---------------------------------------------------

  I tried PHP versions 4.2.3 and CVS 25/Sep 26/Sep, all combinations
giving the same problem.

  If I do a ./apachectl start, the server comes up ok and a phpinfo() show
everything normally. The problem only occurs on a restart of the server.

  The backtrace
  ---------------------------------------------------

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-slackware-linux"...
(gdb) run -X
Starting program: /usr/local/apache/bin/httpd -X
[New Thread 1024 (LWP 469)]


Program received signal SIGHUP, Hangup.
[Switching to Thread 1024 (LWP 469)]
_dl_debug_state () at dl-debug.c:57
57      dl-debug.c: No such file or directory.
        in dl-debug.c
(gdb)
(gdb) bt
#0  _dl_debug_state () at dl-debug.c:57
#1  0x400caec6 in dlclose_doit (handle=0x812cfb0) at dlclose.c:25
#2  0x4000a1b0 in _dl_catch_error (objname=0x8129408,
errstring=0x812940c,
    operate=0x400caeac <dlclose_doit>, args=0x812cfb0) at dl-error.c:152
#3  0x400cb2a0 in _dlerror_run (operate=0x400caeac <dlclose_doit>,
    args=0x812cfb0) at dlerror.c:130
#4  0x400caef0 in dlclose (handle=0x812cfb0) at dlclose.c:31
#5  0x4005d7ef in dso_cleanup (thedso=0x812b068) at dso.c:110
#6  0x4005c87b in run_cleanups (c=0x8184398) at apr_pools.c:1961
#7  0x4005bacf in apr_pool_clear (pool=0x80f9358) at apr_pools.c:709
#8  0x0807290e in main (argc=2, argv=0xbffff924) at main.c:600
#9  0x400fb17d in __libc_start_main (main=0x8072340 <main>, argc=2,
    ubp_av=0xbffff924, init=0x8065464 <_init>, fini=0x80d74b0 <_fini>,
    rtld_fini=0x4000a534 <_dl_fini>, stack_end=0xbffff91c)
    at ../sysdeps/generic/libc-start.c:129

-----------------------------------------------------------

  My configure lines...

./configure --prefix=/usr/local/php
--with-apxs2=/usr/local/apache/bin/apxs  --enable-libgcc --enable-ftp
--enable-sockets

  and

./configure --prefix=/usr/local/php
--with-apxs2=/usr/local/apache/bin/apxs --with-zlib=shared
--with-zlib-dir=shared,/usr/lib --with-bz2=shared,/usr/lib
--with-dom=shared,/usr/lib --with-expat-dir=shared,/usr/local/expat
--with-dom-xslt=shared,/usr/lib --with-expat-dir=shared,/usr/local/expat
--with-dom-exslt=shared,/usr/lib --with-expat-dir=shared,/usr/local/expat
--with-gettext=shared,/usr/local/gettext
--with-pgsql=shared,/usr/local/postgresql --with-m
--with-openssl=shared,/usr/local/openssl --with-gd=shared,/usr/local/gd
--with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib
--with-pear=/usr/local/php/lib/pear --enable-libgcc --enable-dio
--enable-ftp --enable-sockets


  Any comments?

William
-- 
Edit bug report at http://bugs.php.net/?id=19639&edit=1
-- 
Try a CVS snapshot:  http://bugs.php.net/fix.php?id=19639&r=trysnapshot
Fixed in CVS:        http://bugs.php.net/fix.php?id=19639&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=19639&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=19639&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=19639&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19639&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=19639&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=19639&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=19639&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=19639&r=globals

Reply via email to