Sessions don't work with save_handler mm
| From: | Andreas Karajannis | Date: | Tue, 27 Jun 2000 09:50:23 +0000 |
| Subject: | Sessions don't work with save_handler mm | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-22436@lists.php.net to get a copy of this message | ||
In latest cvs, the session module doesn't work with shared memory.
Storing to files seems to work.
Debugging the mm Module shows that the global init function gets called
twice, but the shared memory initialization seems to fail (data->mm ==
NULL, data->hash == NULL in ps_mm_initialize()).
Apache finally crashes on request shutdown, see backtrace:
#0 0xfea36d68 in strlen () from /usr/lib/libc.so.1
#1 0xf0348 in _ps_files_path_create () <-- !!
#2 0xf05a4 in _ps_files_open () <-- !!
#3 0xf0ca8 in _ps_write_files () <-- !!
#4 0xec3a4 in _php_session_save_current_state ()
#5 0xf0078 in php_rshutdown_session ()
#6 0x185de4 in module_registry_cleanup ()
#7 0x1897c8 in zend_hash_apply ()
#8 0x1822f0 in zend_deactivate_modules ()
#9 0xbc628 in php_request_shutdown ()
#10 0xb88b4 in php_apache_request_shutdown ()
#11 0x1e6380 in run_cleanups ()
#12 0x1e3620 in ap_clear_pool ()
#13 0x1e36c4 in ap_destroy_pool ()
#14 0x1e35d8 in ap_clear_pool ()
#15 0x1fd7c8 in child_main ()
#16 0x1fe144 in make_child ()
#17 0x1fe360 in startup_children ()
#18 0x1fecf8 in standalone_main ()
#19 0x1ffa54 in main ()
Interestingly enough, though the save handler is set to mm, the module
tries to save session data via the file handlers.
-Andreas
--
Andreas Karajannis
GMD National Research Center for Information Technology
Schloss Birlinghoven, D-53754 Sankt Augustin
Phone +49 2241 142948