From: [EMAIL PROTECTED]
Operating system: RH Linux 7.2
PHP version: 4.2.3
PHP Bug Type: Reproducible crash
Bug description: Apache segmentation faults
I was using Apache 1.3.26 with PHP 4.2.1 for about 3 months with no
problems, then one day I discovered unable to access certain PHP pages (IE
would give me a Cannot Find Server error). In my error logs I get lines
like this:
[Fri Oct 11 21:10:55 2002] [notice] Apache/1.3.26 (Unix) PHP/4.2.1
configured -- resuming normal operations
[Fri Oct 11 21:10:55 2002] [notice] Accept mutex: sysvsem (Default:
sysvsem)
[Fri Oct 11 21:10:59 2002] [notice] child pid 1226 exit signal
Segmentation fault (11)
[Fri Oct 11 21:15:18 2002] [notice] caught SIGTERM, shutting down
[Fri Oct 11 23:32:27 2002] [notice] Apache/1.3.27 (Unix) PHP/4.2.3
configured -- resuming normal operations
[Fri Oct 11 23:32:27 2002] [notice] Accept mutex: sysvsem (Default:
sysvsem)
[Fri Oct 11 23:32:41 2002] [notice] child pid 12347 exit signal
Segmentation fault (11)
[Fri Oct 11 23:32:41 2002] [notice] child pid 12345 exit signal
Segmentation fault (11)
[Fri Oct 11 23:32:42 2002] [notice] child pid 12348 exit signal
Segmentation fault (11)
[Fri Oct 11 23:32:42 2002] [notice] child pid 12346 exit signal
Segmentation fault (11)
I tried restarting apache (using both restart and stop/start), then
rebooting my server, then recompiling and reinstalling both PHP and Apache
(you can see in the error log how the version changes from 1.3.26/4.2.1 to
1.3.27/4.2.3) but nothing seemed to work.
Other PHP scripts (including phpMyAdmin) work fine. The only difference I
can see between the "offending" script and my functional ones is the
broken one uses session_decode() and header(). As far as I know,
everything was working fine until today. The only change was about a month
ago, when I recompiled PHP and added in support for GD, Jpeg-6b, zlib and
ldap. Could one of those be the source of error?
My configure line is:
./configure --with-mysql --with-jpeg-dir=/root/jpeg-6b --with-gd
--with-zlib --with-ldap --with-apache=/root/apache_1.3.27
--enable-track-vars --enable-trans-sid --enable-sigchild --enable-ftp
--enable-debug --enable-sockets
I tried diagnosing the problem using gdb but this is all I got:
(gdb) run -X
Starting program: /www/bin/httpd -X
Program received signal SIGTRAP, Trace/breakpoint trap.
0x40001e90 in _start () at rtld.c:160
160 rtld.c: No such file or directory.
in rtld.c
(gdb)
Nothing came up when I accessed the "culprit" scripts. The one error that
I can see there occured immediately at the start and in both versions of
Apache/PHP.
--
Edit bug report at http://bugs.php.net/?id=19877&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19877&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19877&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19877&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19877&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19877&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19877&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19877&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19877&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19877&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19877&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=19877&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=19877&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=19877&r=isapi