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: 5.0.3 New Comment:
Backtrace: #0 ps_mm_destroy (data=0x82df880) at /home/terrence/php/php5-STABLE-200502211130/ext/session/mod_mm.c:243 #1 0x284d0a1d in zm_shutdown_ps_mm (type=1, module_number=3) at /home/terrence/php/php5-STABLE-200502211130/ext/session/mod_mm.c:295 #2 0x284cf895 in zm_shutdown_session (type=1, module_number=3) at /home/terrence/php/php5-STABLE-200502211130/ext/session/session.c:1824 #3 0x2856acfa in module_destructor (module=0x82f0c80) at /home/terrence/php/php5-STABLE-200502211130/Zend/zend_API.c:1500 #4 0x2856d0bd in zend_hash_apply_deleter (ht=0x285e8360, p=0x82efd00) at /home/terrence/php/php5-STABLE-200502211130/Zend/zend_hash.c:574 #5 0x2856d1ee in zend_hash_graceful_reverse_destroy (ht=0x285e8360) at /home/terrence/php/php5-STABLE-200502211130/Zend/zend_hash.c:640 #6 0x28566f34 in zend_shutdown () at /home/terrence/php/php5-STABLE-200502211130/Zend/zend.c:699 #7 0x28538b54 in php_module_shutdown () at /home/terrence/php/php5-STABLE-200502211130/main/main.c:1516 #8 0x28538b23 in php_module_shutdown_wrapper (sapi_globals=0x285e3140) at /home/terrence/php/php5-STABLE-200502211130/main/main.c:1491 #9 0x285a3d85 in php_apache_server_shutdown (tmp=0x0) at /home/terrence/php/php5-STABLE-200502211130/sapi/apache2handler/sapi_apache2.c:331 #10 0x2831d8f8 in run_cleanups () from /usr/local/lib/apache2/libapr-0.so.9 #11 0x2831cd11 in apr_pool_clear () from /usr/local/lib/apache2/libapr-0.so.9 #12 0x806890e in main () #13 0x805ce2e in _start () Previous Comments: ------------------------------------------------------------------------ [2005-02-18 13:09:46] root at mediamonks dot net I thought I'd give the mm handler a try as a workaround, but the same problem is present there: PHP Fatal error: Unknown: Cannot find save handler \x02 in Unknown on line 0 [Fri Feb 18 13:08:04 2005] [notice] child pid 73434 exit signal Segmentation fault (11) ------------------------------------------------------------------------ [2005-02-16 16:02:35] root at mediamonks dot net That CVS build has screwed even more on my system... Log file records: httpd in free(): warning: page is already free httpd in free(): warning: page is already free httpd in free(): warning: page is already free httpd in free(): warning: page is already free Allowed memory size of 16777216 bytes exhausted (tried to allocate 1 bytes) httpd in free(): warning: page is already free httpd in free(): warning: page is already free httpd in free(): warning: page is already free httpd in free(): warning: page is already free httpd in free(): warning: page is already free httpd in free(): warning: page is already free httpd in free(): warning: page is already free httpd in free(): warning: page is already free httpd in free(): warning: page is already free httpd in free(): warning: page is already free [Wed Feb 16 16:00:54 2005] [notice] child pid 21258 exit signal Segmentation fault (11) This repeats thousands of times, apache children segfault after each 10 or so, original save handler error remains. ------------------------------------------------------------------------ [2005-02-16 00:23:58] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.0-win32-latest.zip ------------------------------------------------------------------------ [2005-02-15 14:30:56] root at mediamonks dot net with notices on the log file records: PHP Fatal error: Unknown: Cannot find save handler \x02 in Unknown on line 0 PHP Fatal error: Unknown: Cannot find save handler \x02 in Unknown on line 0 PHP Fatal error: Unknown: Cannot find save handler \x02 in Unknown on line 0 [Tue Feb 15 14:27:45 2005] [notice] child pid 83780 exit signal Segmentation fault (11) [Tue Feb 15 14:27:45 2005] [notice] child pid 83776 exit signal Segmentation fault (11) [Tue Feb 15 14:27:45 2005] [notice] child pid 83710 exit signal Segmentation fault (11) PHP Fatal error: Unknown: Cannot find save handler \x02 in Unknown on line 0 PHP Fatal error: Unknown: Cannot find save handler \x02 in Unknown on line 0 [Tue Feb 15 14:27:48 2005] [notice] child pid 83752 exit signal Segmentation fault (11) [Tue Feb 15 14:27:48 2005] [notice] child pid 83713 exit signal Segmentation fault (11) ------------------------------------------------------------------------ [2005-02-15 13:44:44] root at mediamonks dot net Description: ------------ Apache 2.0.53 & mod_php5 5.0.3 Sessions occasionally work, but in two-thirds of the session requests an error is generated and the apache child segfaults. Error recorded in the logfile: PHP Fatal error: Unknown: Cannot find save handler \x02 in Unknown on line 0 Error reported on site: Notice: Undefined variable: HTTP_SESSION_VARS in <file> Notice: Undefined variable: _SESSION in in <file> Warning: session_register() [function.session-register]: Cannot find save handler in <file> Warning: session_register() [function.session-register]: Cannot find save handler in <file> I'm using php.ini-recommended as php.ini. Tried commenting out session.save_handler, setting it to "files" and just files. Reproduce code: --------------- session_start(); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31984&edit=1