#31210 [Fbk->Opn]: Apache segfault
ID: 31210 User updated by: thomas at fdns dot net Reported By: thomas at fdns dot net -Status: Feedback +Status: Open Bug Type: Apache related Operating System: Linux (Slackware 9.1) PHP Version: 4.3.10 New Comment: I'm not sure if this is a bug anymore, maybe someone else can comment.. It turns out I had to add: define("DB_DATAOBJECT_NO_OVERLOAD", 0); to the prepend script.. I was under the impression that this was only required if you were using the Zend optimizer ( we are not) .. But it seems to have fixed the issue. I still find it odd that it works fine in 4.3.9 without that flag, and 4.3.10 needs it? >From the PEAR site i just found: "Pass by Reference, due to a unfixable bug in PHP4, you can not use overload with pass-by-reference arguments (It works OK in PHP5), If you need pass-by-reference, define the constant DB_DATAOBJECT_NO_OVERLOAD = 0 " That would seem to align with the error: "Program received signal SIGSEGV, Segmentation fault. 0x080eb3bd in zend_assign_to_variable_reference ()" But again why 4.3.9 works fine and 4.3.10 borks. My problem is fixed but did a change affect something? Previous Comments: [2004-12-20 21:03:57] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with , is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try avoid embedding huge scripts into the report. What also helps is to provide a backtrace with symbols enabled (meaning PHP in --enable-debug mode). -------- [2004-12-20 20:39:34] thomas at fdns dot net I'm now getting very suspect of PEAR:DB_Dataobject.. I upgraded the version of it; as where the segfault is happening it's using a dataobject and I'm no longer getting a segfault, but rather a real php error message that something is buggered... -------------------- [2004-12-20 20:22:26] thomas at fdns dot net The segfault seems to be happening in this included file that re-configures the session handler.. I successfully had it output working code until it includes this file, it fails at the "Session_start" function: , is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try avoid embedding huge scripts into the report. ---------------- [2004-12-20 19:42:04] thomas at fdns dot net Description: I've just attempted to upgrade to 4.3.10 and apache is segfaulting when trying to load up the same application (custom) that runs on 4.3.9. Setup: apache 1.3.33 php 4.3.10 [configure command] ./configure --with-apache=../apache_1.3.33 --with-config-file-path=/apache --enable-ftp --with-gd --with-mysql --without-pear --enable-sockets --with-zlib-dir=/usr/include/ --with-freetype-dir=/usr/local/include/freetype2/ --with-openssl Expected result: Application should load as it does in 4.3.9. Actual result: -- I ran a gdb trace below: (gdb) file /apache/bin/httpd Reading symbols from /apache/bin/httpd...(no debugging symbols found)...done. (gdb) run -X -DSSL Starting program: /apache/bin/httpd -X -DSSL (no debugging symbols found)... Program received signal SIGSEGV, Segmentation fault. 0x080eb3bd in zend_assign_to_variable_reference () (gdb) backtrace #0 0x080eb3bd in zend_assign_to_variable_reference () #1 0x080ece20 in execute () #2 0x080d8e34 in call_user_function_ex () #3 0x080d89c6 in call_user_function () #4 0x08135aef in ps_gc_files () #5 0x08135bed in ps_open_user () #6 0x081325a7 in php_session_create_id () #7 0x0813371d in php_session_start () #8 0x08134d5d in zif_session_start () #9 0x080ed1c1 in execute () #10 0x080ee27d in execute () #11 0x080dfd2b in zend_execute_scripts () #12 0x080be4f8 in php_execute_script () #13 0x080f063a in apache_php_module_main () #14 0x080b6eae in ssl_expr_yyinput () #15 0x080b6f18 in ssl_expr_yyinput () #16 0x081b1f03 in ap_invoke_handler () #17 0x081c745f in ap_some_auth_required () #18 0x081c78ba in ap_internal_redirect () #19 0x0809883e in ap_get_server_built () #20 0x081b1f03 in ap_invoke_handler () #21 0x081c745f in ap_some_auth_required () #22 0x081c74be in ap_process_request () #23 0x081be458 in ap_child_terminate () #24 0x081be626 in ap_child_terminate () #25 0x081be78c in ap_child_terminate () #26 0x081bee4c in ap_child_terminate () #27 0x081bf684 in mai
#31210 [Opn]: Apache segfault
ID: 31210 User updated by: thomas at fdns dot net Reported By: thomas at fdns dot net Status: Open Bug Type: Apache related Operating System: Linux (Slackware 9.1) PHP Version: 4.3.10 New Comment: I'm now getting very suspect of PEAR:DB_Dataobject.. I upgraded the version of it; as where the segfault is happening it's using a dataobject and I'm no longer getting a segfault, but rather a real php error message that something is buggered... Previous Comments: [2004-12-20 20:22:26] thomas at fdns dot net The segfault seems to be happening in this included file that re-configures the session handler.. I successfully had it output working code until it includes this file, it fails at the "Session_start" function: , is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try avoid embedding huge scripts into the report. ---- [2004-12-20 19:42:04] thomas at fdns dot net Description: I've just attempted to upgrade to 4.3.10 and apache is segfaulting when trying to load up the same application (custom) that runs on 4.3.9. Setup: apache 1.3.33 php 4.3.10 [configure command] ./configure --with-apache=../apache_1.3.33 --with-config-file-path=/apache --enable-ftp --with-gd --with-mysql --without-pear --enable-sockets --with-zlib-dir=/usr/include/ --with-freetype-dir=/usr/local/include/freetype2/ --with-openssl Expected result: Application should load as it does in 4.3.9. Actual result: -- I ran a gdb trace below: (gdb) file /apache/bin/httpd Reading symbols from /apache/bin/httpd...(no debugging symbols found)...done. (gdb) run -X -DSSL Starting program: /apache/bin/httpd -X -DSSL (no debugging symbols found)... Program received signal SIGSEGV, Segmentation fault. 0x080eb3bd in zend_assign_to_variable_reference () (gdb) backtrace #0 0x080eb3bd in zend_assign_to_variable_reference () #1 0x080ece20 in execute () #2 0x080d8e34 in call_user_function_ex () #3 0x080d89c6 in call_user_function () #4 0x08135aef in ps_gc_files () #5 0x08135bed in ps_open_user () #6 0x081325a7 in php_session_create_id () #7 0x0813371d in php_session_start () #8 0x08134d5d in zif_session_start () #9 0x080ed1c1 in execute () #10 0x080ee27d in execute () #11 0x080dfd2b in zend_execute_scripts () #12 0x080be4f8 in php_execute_script () #13 0x080f063a in apache_php_module_main () #14 0x080b6eae in ssl_expr_yyinput () #15 0x080b6f18 in ssl_expr_yyinput () #16 0x081b1f03 in ap_invoke_handler () #17 0x081c745f in ap_some_auth_required () #18 0x081c78ba in ap_internal_redirect () #19 0x0809883e in ap_get_server_built () #20 0x081b1f03 in ap_invoke_handler () #21 0x081c745f in ap_some_auth_required () #22 0x081c74be in ap_process_request () #23 0x081be458 in ap_child_terminate () #24 0x081be626 in ap_child_terminate () #25 0x081be78c in ap_child_terminate () #26 0x081bee4c in ap_child_terminate () #27 0x081bf684 in main () #28 0x4016dd06 in __libc_start_main () from /lib/libc.so.6 (gdb) -- Edit this bug report at http://bugs.php.net/?id=31210&edit=1
#31210 [Fbk->Opn]: Apache segfault
ID: 31210 User updated by: thomas at fdns dot net Reported By: thomas at fdns dot net -Status: Feedback +Status: Open Bug Type: Apache related Operating System: Linux (Slackware 9.1) PHP Version: 4.3.10 New Comment: The segfault seems to be happening in this included file that re-configures the session handler.. I successfully had it output working code until it includes this file, it fails at the "Session_start" function: , is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try avoid embedding huge scripts into the report. [2004-12-20 19:42:04] thomas at fdns dot net Description: I've just attempted to upgrade to 4.3.10 and apache is segfaulting when trying to load up the same application (custom) that runs on 4.3.9. Setup: apache 1.3.33 php 4.3.10 [configure command] ./configure --with-apache=../apache_1.3.33 --with-config-file-path=/apache --enable-ftp --with-gd --with-mysql --without-pear --enable-sockets --with-zlib-dir=/usr/include/ --with-freetype-dir=/usr/local/include/freetype2/ --with-openssl Expected result: Application should load as it does in 4.3.9. Actual result: -- I ran a gdb trace below: (gdb) file /apache/bin/httpd Reading symbols from /apache/bin/httpd...(no debugging symbols found)...done. (gdb) run -X -DSSL Starting program: /apache/bin/httpd -X -DSSL (no debugging symbols found)... Program received signal SIGSEGV, Segmentation fault. 0x080eb3bd in zend_assign_to_variable_reference () (gdb) backtrace #0 0x080eb3bd in zend_assign_to_variable_reference () #1 0x080ece20 in execute () #2 0x080d8e34 in call_user_function_ex () #3 0x080d89c6 in call_user_function () #4 0x08135aef in ps_gc_files () #5 0x08135bed in ps_open_user () #6 0x081325a7 in php_session_create_id () #7 0x0813371d in php_session_start () #8 0x08134d5d in zif_session_start () #9 0x080ed1c1 in execute () #10 0x080ee27d in execute () #11 0x080dfd2b in zend_execute_scripts () #12 0x080be4f8 in php_execute_script () #13 0x080f063a in apache_php_module_main () #14 0x080b6eae in ssl_expr_yyinput () #15 0x080b6f18 in ssl_expr_yyinput () #16 0x081b1f03 in ap_invoke_handler () #17 0x081c745f in ap_some_auth_required () #18 0x081c78ba in ap_internal_redirect () #19 0x0809883e in ap_get_server_built () #20 0x081b1f03 in ap_invoke_handler () #21 0x081c745f in ap_some_auth_required () #22 0x081c74be in ap_process_request () #23 0x081be458 in ap_child_terminate () #24 0x081be626 in ap_child_terminate () #25 0x081be78c in ap_child_terminate () #26 0x081bee4c in ap_child_terminate () #27 0x081bf684 in main () #28 0x4016dd06 in __libc_start_main () from /lib/libc.so.6 (gdb) -- Edit this bug report at http://bugs.php.net/?id=31210&edit=1
#31210 [NEW]: Apache segfault
From: thomas at fdns dot net Operating system: Linux (Slackware 9.1) PHP version: 4.3.10 PHP Bug Type: Apache related Bug description: Apache segfault Description: I've just attempted to upgrade to 4.3.10 and apache is segfaulting when trying to load up the same application (custom) that runs on 4.3.9. Setup: apache 1.3.33 php 4.3.10 [configure command] ./configure --with-apache=../apache_1.3.33 --with-config-file-path=/apache --enable-ftp --with-gd --with-mysql --without-pear --enable-sockets --with-zlib-dir=/usr/include/ --with-freetype-dir=/usr/local/include/freetype2/ --with-openssl Expected result: Application should load as it does in 4.3.9. Actual result: -- I ran a gdb trace below: (gdb) file /apache/bin/httpd Reading symbols from /apache/bin/httpd...(no debugging symbols found)...done. (gdb) run -X -DSSL Starting program: /apache/bin/httpd -X -DSSL (no debugging symbols found)... Program received signal SIGSEGV, Segmentation fault. 0x080eb3bd in zend_assign_to_variable_reference () (gdb) backtrace #0 0x080eb3bd in zend_assign_to_variable_reference () #1 0x080ece20 in execute () #2 0x080d8e34 in call_user_function_ex () #3 0x080d89c6 in call_user_function () #4 0x08135aef in ps_gc_files () #5 0x08135bed in ps_open_user () #6 0x081325a7 in php_session_create_id () #7 0x0813371d in php_session_start () #8 0x08134d5d in zif_session_start () #9 0x080ed1c1 in execute () #10 0x080ee27d in execute () #11 0x080dfd2b in zend_execute_scripts () #12 0x080be4f8 in php_execute_script () #13 0x080f063a in apache_php_module_main () #14 0x080b6eae in ssl_expr_yyinput () #15 0x080b6f18 in ssl_expr_yyinput () #16 0x081b1f03 in ap_invoke_handler () #17 0x081c745f in ap_some_auth_required () #18 0x081c78ba in ap_internal_redirect () #19 0x0809883e in ap_get_server_built () #20 0x081b1f03 in ap_invoke_handler () #21 0x081c745f in ap_some_auth_required () #22 0x081c74be in ap_process_request () #23 0x081be458 in ap_child_terminate () #24 0x081be626 in ap_child_terminate () #25 0x081be78c in ap_child_terminate () #26 0x081bee4c in ap_child_terminate () #27 0x081bf684 in main () #28 0x4016dd06 in __libc_start_main () from /lib/libc.so.6 (gdb) -- Edit bug report at http://bugs.php.net/?id=31210&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31210&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31210&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31210&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=31210&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=31210&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31210&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31210&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31210&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31210&r=support Expected behavior: http://bugs.php.net/fix.php?id=31210&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31210&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31210&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=31210&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31210&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=31210&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31210&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31210&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31210&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=31210&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=31210&r=mysqlcfg