PHP 4.0 Bug #2433: segfaults, both as apache module and CGI
| From: | jmat at firewind dot net | Date: | Sun, 03 Oct 1999 18:59:58 +0000 |
| Subject: | PHP 4.0 Bug #2433: segfaults, both as apache module and CGI | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-11481@lists.php.net to get a copy of this message | ||
From: jmat@firewind.net
Operating system: Linux 2.2.12
PHP version: 4.0 Latest CVS (03/10/1999)
PHP Bug Type: Reproduceable crash
Bug description: segfaults, both as apache module and CGI
I originally compiled in as a Apache module, but all child processes would die with segment
violations the second a page with <?php ?> came up. I then recompiled it as a CGI, and had
the same issues.
Config line: ./configure --with-gnu-ld --enable-track-vars --with-ftp --with-gd=/usr --with-ttf
--with-mysql
Running latest egcs, bison, flex, autoconf, autobuild, binutils. MySQL 3.23.3 (however, same
results with 3.22).
4.0b2 worked fine. I deleted all source, and re-co'd the source tree to make sure it
wasn't contaminated. Same problems.
[root@kodiak php4]# gdb ./php
GNU gdb 4.17.0.11 with Linux support
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-redhat-linux"...
(gdb) r
Starting program: /usr/src/php4/./php
Program received signal SIGSEGV, Segmentation fault.
0x0 in ?? ()
(gdb) where
#0 0x0 in ?? ()
#1 0x806f40d in zend_hash_find (ht=0x80e5f3c, arKey=0x80fbe38 "PHPSESSID",
nKeyLength=10, pData=0xbffffc78) at zend_hash.c:919
#2 0x8081ed3 in _php_session_start () at session.c:454
#3 0x8082fdc in php3_rinit_session (type=1, module_number=16) at session.c:895
#4 0x806d89a in module_registry_request_startup (module=0x80f7540)
at zend_API.c:709
#5 0x806f101 in zend_hash_apply (ht=0x80e61c0,
destruct=0x806d87c <module_registry_request_startup>) at zend_hash.c:797
#6 0x8063b36 in init_compiler () at zend_compile.c:94
#7 0x806c630 in zend_activate () at zend.c:429
#8 0x80584a8 in php_request_startup () at main.c:688
#9 0x805f421 in main (argc=1, argv=0xbffffd84) at cgi_main.c:396
#10 0x4010fcb3 in __libc_start_main (main=0x805f170 <main>, argc=1,
argv=0xbffffd84, init=0x8056d40 <_init>, fini=0x80ae13c <_fini>,
rtld_fini=0x4000a350 <_dl_fini>, stack_end=0xbffffd7c)
at ../sysdeps/generic/libc-start.c:78
(gdb)