From: [EMAIL PROTECTED] Operating system: Mandrake Linux 8.2 (2.4.18) PHP version: 4.2.0 PHP Bug Type: Apache2 related Bug description: Apache 2.0.35 + PHP4.2.0 segfault on start
Problem: Apache 2.0.35 segfaults when loading PHP module. If LoadModule is commented out, Apache works fine. To Reproduce: Follow instructions in PHP manual to install PHP and Apache 2.0. Once Apache is configured and everything is installed, run httpd. Httpd will appear to have started normally, but on doing a 'ps -aux | grep httpd' you will notice NO httpd processes, and there is no httpd.pid file. Even using 'apachectrl start', will report httpd started fine. Use 'httpd -X' to see segfault message. Module Line: LoadModule php4_module modules/libphp4.so GDB Backtrace: (gdb) run -X Starting program: /usr/local/apache/conf/../bin/httpd -X [New Thread 1024 (LWP 27916)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 27916)] 0x40329991 in ts_resource_ex (id=1, th_id=0x0) at TSRM.c:310 310 TSRM_SAFE_RETURN_RSRC(thread_resources->storage, id, thread_resources->count); (gdb) bt #0 0x40329991 in ts_resource_ex (id=1, th_id=0x0) at TSRM.c:310 #1 0x40291b0a in php_module_startup (sf=0x4034f6a0) at main.c:856 #2 0x4028f7ec in php_apache_server_startup (pconf=0x80b6380, plog=0x80ee460, ptemp=0x8140b70, s=0x81431d8) at sapi_apache2.c:442 #3 0x0807baa3 in ap_run_post_config (pconf=0x80b6380, plog=0x80ee460, ptemp=0x8140b70, s=0x81431d8) at config.c:127 #4 0x08080908 in main (argc=2, argv=0xbffff834) at main.c:611 #5 0x40118280 in __libc_start_main () from /lib/libc.so.6 Please let me know what other information I can supply to help. My apologizes if this bug is already reported, I spent a good deal of time searching the bug list. -Tanya -- Edit bug report at http://bugs.php.net/?id=17045&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17045&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17045&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17045&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17045&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17045&r=support Expected behavior: http://bugs.php.net/fix.php?id=17045&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17045&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17045&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17045&r=globals