PHP 4.0 Bug #10072 Updated: SIGSEGV on startup (apxs)

From: Date: Fri, 30 Mar 2001 22:07:16 +0000
Subject: PHP 4.0 Bug #10072 Updated: SIGSEGV on startup (apxs)
Groups: php.dev 
Request: Send a blank email to php-dev+get-50389@lists.php.net to get a copy of this message
ID: 10072 User Update by: old.wolf@project-w.com Old-Status: Feedback Status: Open Bug Type: Reproduceable crash Description: SIGSEGV on startup (apxs) I'm not sure what you mean. My PHP configure line already has --enable-debug, and contains no source dirs except jpeg-6b (I can take that out and recompile I guess). ../../mysql = /usr/local/mysql, which is where it installed Or are you referring to my Apache configure line (the example installation specified to use those source dirs). Previous Comments: --------------------------------------------------------------------------- [2001-03-30 14:37:24] sniper@php.net 1. Delete config.cache 2. Add --enable-debug into your configure line 3. Configure and compile and try regenerating that gdb backtrace. And do not use the source dirs in any other configure option of PHP than --with-apache. You should be using the INSTALL base dirs. --Jani --------------------------------------------------------------------------- [2001-03-29 23:40:15] old.wolf@project-w.com OS version: SunOS ptl2 5.7 Generic sun4u sparc SUNW,Ultra-5_10 Apache 1.3.19+mod_ssl-2.8.1 configure line: EAPI_MM=../mm-1.1.3 SSL_BASE=../openssl-0.9.6 ./configure --prefix=/usr/local/apache --enable-module=ssl --enable-module=so --enable-module=rewrite PHP 4.0.4pl1 configure line: ./configure --with-apxs --with-mcrypt --with-mhash --with-mysql=../../mysql --with-gd --enable-versioning --with-ttf --with-jpeg-dir=../jpeg-6b --enable-debug If the LoadModule libphp4.so is removed from httpd.conf, Apache operates correctly. Otherwise, there is a SIGSEGV as httpd starts up. Following is a GDB backtrace and partial truss output. Full truss output can be found at http://wolf.project-w.com/notes/20010330.phpsegv.txt --------------------------------------------------- GNU gdb 5.0 Copyright 2000 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 "sparc-sun-solaris2.7"... (gdb) run -X Starting program: /usr/local/apache/bin/httpd -X warning: Lowest section in /usr/lib/libintl.so.1 is .hash at 00000074 Program received signal SIGSEGV, Segmentation fault. 0xff3b8894 in ?? () (gdb) bt #0 0xff3b8894 in ?? () #1 0xff3b35a0 in ?? () #2 0xff3b37e8 in ?? () #3 0xff3bd154 in ?? () #4 0xb7764 in ap_os_dso_load () #5 0x83a70 in load_module () #6 0x8d550 in invoke_cmd () #7 0x8e3c0 in ap_handle_command () #8 0x8e49c in ap_srm_command_loop () #9 0x8ee84 in ap_process_resource_config () #10 0x8facc in ap_read_config () #11 0x9e7bc in main () (gdb) --------------------------------------------------- ... stat("/usr/local/apache", 0xFFBED7C8) = 0 open("/usr/local/apache/libexec/libphp4.so", O_RDONLY) = 5 fstat(5, 0xFFBED614) = 0 mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 5, 0) = 0xFF340000 mmap(0x00000000, 2187264, PROT_READ|PROT_EXEC, MAP_PRIVATE, 5, 0) = 0xFED80000 munmap(0xFEF46000, 57344) = 0 mmap(0xFEF54000, 182128, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 5, 1851392) = 0xFEF54000 ... mprotect(0xFED80000, 1854910, PROT_READ|PROT_WRITE|PROT_EXEC) = 0 mprotect(0xFED80000, 1854910, PROT_READ|PROT_EXEC) = 0 munmap(0xFEF54000, 265928) = 0 munmap(0xFED80000, 1854910) = 0 Incurred fault #6, FLTBOUNDS %pc = 0xFF3B8894 siginfo: SIGSEGV SEGV_ACCERR addr=0xFF3CABD4 Received signal #11, SIGSEGV [default] siginfo: SIGSEGV SEGV_ACCERR addr=0xFF3CABD4 *** process killed *** --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=10072

« previous php.dev (#50389) next »