PHP 4.0 Bug #3471: Segfault when starting apache / loading php4 module

From: Date: Sun, 13 Feb 2000 00:27:32 +0000
Subject: PHP 4.0 Bug #3471: Segfault when starting apache / loading php4 module
Groups: php.dev 
Request: Send a blank email to php-dev+get-15478@lists.php.net to get a copy of this message
From: tor-erik@web-amp.com Operating system: Linux 2.2.13 (Slackware 7) PHP version: 4.0 Latest CVS (13/02/2000) PHP Bug Type: Reproduceable crash Bug description: Segfault when starting apache / loading php4 module it seems to me that the problem described in bug:3434 still isn't solved. I got the latest snapshot from snaps.php.net. Tried compile using: ./configure --prefix=/usr/local/apache --enable-shared=max make make install ./configure --with-mysql=/usr/local/mysql --with-apxs=/usr/local/apache/bin/apxs --with-xml --with-gd make make install restaring httpd => segfault, tried compiling static: apache: ./configure php; ./configure --with-mysql --with-apache=../../apache_1.3.11 --enable-track-vars --with-gd make;make install ./configure --prefix=/usr/local/apache --enable-shared=max --activate-module=src/modules/php4/libphp4.a make copied httpd to bin dir started httpd => segfault (php4 source used: php4-200002121445, apache used: 1.3.11) static compile: salmiak:/usr/local/apache/bin# gdb httpd GNU gdb 4.18 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 "i686-pc-linux-gnu"... (gdb) run Starting program: /usr/local/apache/bin/httpd warning: Unable to find dynamic linker breakpoint function. GDB will be unable to debug shared library initializers and track explicitly loaded dynamic code. Program received signal SIGSEGV, Segmentation fault. 0x0 in ?? () (gdb) bt #0 0x0 in ?? () #1 0x8075ac9 in zend_hash_find (ht=0x815ee00, arKey=0x40279fcb "max_execution_time", nKeyLength=19, pData=0xbfffd7e8) at zend_hash.c:820 #2 0x80639a1 in cfg_get_long (varname=0x40279fcb "max_execution_time", result=0x402cb844) at configuration-parser.y:80 #3 0x4022008b in ?? () from /usr/local/apache/libexec/libphp3.so #4 0x40220b55 in ?? () from /usr/local/apache/libexec/libphp3.so #5 0x4021e4a0 in ?? () from /usr/local/apache/libexec/libphp3.so #6 0x80caf43 in ap_single_module_configure () #7 0x805f9f8 in load_module () #8 0x80c9850 in invoke_cmd () #9 0x80ca112 in ap_handle_command () #10 0x80ca1a8 in ap_srm_command_loop () #11 0x80ca5a4 in ap_process_resource_config () #12 0x80cae66 in ap_read_config () #13 0x80d4bf2 in main () #14 0x400f12e7 in __libc_start_main () from /lib/libc.so.6 module: salmiak:/usr/local/apache/bin# ./httpd Segmentation fault salmiak:/usr/local/apache/bin# gdb httpd GNU gdb 4.18 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 "i686-pc-linux-gnu"... (gdb) run Starting program: /usr/local/apache/bin/httpd warning: Unable to find dynamic linker breakpoint function. GDB will be unable to debug shared library initializers and track explicitly loaded dynamic code. Program received signal SIGSEGV, Segmentation fault. 0x4035f493 in ?? () from /usr/local/apache/libexec/libphp4.so (gdb) bt #0 0x4035f493 in ?? () from /usr/local/apache/libexec/libphp4.so #1 0x40339e3f in ?? () from /usr/local/apache/libexec/libphp4.so #2 0x4038e715 in ?? () from /usr/local/apache/libexec/libphp4.so #3 0x403a8109 in ?? () from /usr/local/apache/libexec/libphp4.so #4 0x403a7d90 in ?? () from /usr/local/apache/libexec/libphp4.so #5 0x403337f1 in ?? () from /usr/local/apache/libexec/libphp4.so #6 0x40354816 in ?? () from /usr/local/apache/libexec/libphp4.so #7 0x40354910 in ?? () from /usr/local/apache/libexec/libphp4.so #8 0x403546b2 in ?? () from /usr/local/apache/libexec/libphp4.so #9 0x40333f74 in ?? () from /usr/local/apache/libexec/libphp4.so #10 0x4033498d in ?? () from /usr/local/apache/libexec/libphp4.so #11 0x403341ea in ?? () from /usr/local/apache/libexec/libphp4.so #12 0x4035f5ac in ?? () from /usr/local/apache/libexec/libphp4.so #13 0x4035fe9d in ?? () from /usr/local/apache/libexec/libphp4.so #14 0x8056195 in ap_init_modules () #15 0x805fe8d in main () #16 0x4007e2e7 in __libc_start_main () from /lib/libc.so.6 (gdb)

« previous php.dev (#15478) next »