ID: 31984 User updated by: root at mediamonks dot net Reported By: root at mediamonks dot net Status: Open Bug Type: Session related Operating System: FreeBSD 4.11-STABLE PHP Version: 5CVS-2005-04-11 New Comment:
The following "patch" fixes all the errors, and everything works as usual after applying it: --- session.c Thu Mar 24 02:32:45 2005 +++ session-new.c Mon Apr 11 08:39:38 2005 @@ -96,6 +96,8 @@ { SESSION_CHECK_ACTIVE_STATE; + new_value="files"; PS(mod) = _php_find_ps_module(new_value TSRMLS_CC); if (PG(modules_activated) && !PS(mod)) { Previous Comments: ------------------------------------------------------------------------ [2005-04-11 08:24:46] root at mediamonks dot net I thought I'd try attaching gdb to an apache child and provoke a segfault with the latest stable CVS snapshot. The result is: Continuing. Program received signal SIGSEGV, Segmentation fault. 0x285d9179 in php_apache_sapi_ub_write ( str=0x80ca924 "<br />\n<b>Fatal error</b>: Unknown: Cannot find save handler \002 in <b>Unknown</b> on line <b>0</b><br />\n", str_length=105) at /home/terrence/php/php5-STABLE-200504110038/sapi/apache2handler/sapi_apache2.c:76 76 r = ctx->r; (gdb) bt #0 0x285d9179 in php_apache_sapi_ub_write ( str=0x80ca924 "<br />\n<b>Fatal error</b>: Unknown: Cannot find save handler \002 in <b>Unknown</b> on line <b>0</b><br />\n", str_length=105) at /home/terrence/php/php5-STABLE-200504110038/sapi/apache2handler/sapi_apache2.c:76 #1 0x2857567f in php_ub_body_write_no_header ( str=0x80ca924 "<br />\n<b>Fatal error</b>: Unknown: Cannot find save handler \002 in <b>Unknown</b> on line <b>0</b><br />\n", str_length=105) at /home/terrence/php/php5-STABLE-200504110038/main/output.c:684 #2 0x28574592 in php_body_write ( str=0x80ca924 "<br />\n<b>Fatal error</b>: Unknown: Cannot find save handler \002 in <b>Unknown</b> on line <b>0</b><br />\n", str_length=105) at /home/terrence/php/php5-STABLE-200504110038/main/output.c:119 #3 0x28564667 in php_printf (format=0x285f5f20 "%s<br />\n<b>%s</b>: %s in <b>%s</b> on line <b>%d</b><br />\n%s") at /home/terrence/php/php5-STABLE-200504110038/main/main.c:399 #4 0x28565192 in php_error_cb (type=1, error_filename=0x28611b8b "Unknown", error_lineno=0, format=0x285f5cb4 "%s", args=0xbfbff1e0 "$\2174\b\021]_(0") at /home/terrence/php/php5-STABLE-200504110038/main/main.c:740 #5 0x285a857b in zend_error (type=1, format=0x285f5cb4 "%s") at /home/terrence/php/php5-STABLE-200504110038/Zend/zend.c:921 #6 0x28564aff in php_verror (docref=0x0, params=0x285f5b58 "", type=1, format=0x285dcf77 "Cannot find save handler %s", args=0xbfbff294 "ä~4\bÀ\221b(ä~4\bàò¿¿\233~[(") at /home/terrence/php/php5-STABLE-200504110038/main/main.c:539 #7 0x28564c3d in php_error_docref0 (docref=0x0, type=1, format=0x285dcf77 "Cannot find save handler %s") at /home/terrence/php/php5-STABLE-200504110038/main/main.c:559 #8 0x284d2d3e in OnUpdateSaveHandler (entry=0x82f7a00, new_value=0x8347ee4 "\002", new_value_length=5, mh_arg1=0x0, mh_arg2=0x0, mh_arg3=0x0, stage=16) at /home/terrence/php/php5-STABLE-200504110038/ext/session/session.c:102 #9 0x285b7e9b in zend_alter_ini_entry (name=0x835d0e0 "session.save_handler", name_length=21, new_value=0x835c600 "\002", new_value_length=5, modify_type=2, stage=16) at /home/terrence/php/php5-STABLE-200504110038/Zend/zend_ini.c:227 #10 0x285da754 in apply_config (dummy=0x8107350) at /home/terrence/php/php5-STABLE-200504110038/sapi/apache2handler/apache_config.c:169 #11 0x285d9c1c in php_handler (r=0x8355050) at /home/terrence/php/php5-STABLE-200504110038/sapi/apache2handler/sapi_apache2.c:452 #12 0x8063f34 in ap_run_handler () #13 0x806448d in ap_invoke_handler () #14 0x806173f in ap_process_request () #15 0x805d217 in ap_process_http_connection () #16 0x806cc10 in ap_run_process_connection () #17 0x806ced4 in ap_process_connection () #18 0x8062b3b in child_main () #19 0x8062c92 in make_child () #20 0x8062cee in startup_children () #21 0x8063037 in ap_mpm_run () #22 0x8068aac in main () #23 0x805ce2e in _start () ------------------------------------------------------------------------ [2005-03-22 06:36:23] root at mediamonks dot net Every time I tried, I downloaded the latest stable CVS snapshot and deleted the old dirs. php5-200503220330 does not change anything about the error or the effects. ------------------------------------------------------------------------ [2005-03-21 23:39:02] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip ------------------------------------------------------------------------ [2005-03-21 23:37:42] [EMAIL PROTECTED] You tried it with latest CVS snapshot? Fresh sources? (delete config.cache always before reconfigure, and 'make clean' before 'make') ------------------------------------------------------------------------ [2005-03-21 12:21:55] root at mediamonks dot net does not change anything ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/31984 -- Edit this bug report at http://bugs.php.net/?id=31984&edit=1