Bug #14834 Updated: SegFault when passing HTTP_SESSION_VARS

From: Date: Sat, 25 May 2002 14:55:41 +0000
Subject: Bug #14834 Updated: SegFault when passing HTTP_SESSION_VARS
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-8543@lists.php.net to get a copy of this message
ID: 14834 Updated by: milen_a_radev@yahoo.com Reported By: Keith.Watkins@developonline.com Status: Analyzed Bug Type: Session related Operating System: Debian 3.0 (Woody) PHP Version: 4.1.0 New Comment: I just installed (compiled) PHP 4.2.1 and made the same tests. Now there are NO segfaults in the log. I suppose the bug IS fixed. Anyone to confirm that? Previous Comments: ------------------------------------------------------------------------ [2002-03-06 20:22:00] yohgaki@php.net There is problem still ------------------------------------------------------------------------ [2002-03-05 18:35:53] yohgaki@php.net This bug has been fixed in CVS. It's probably fixed in CVS. Please reopen if there is the problem. ------------------------------------------------------------------------ [2002-03-05 03:43:55] yohgaki@php.net Zeev was tried to fix (the idea was the same as mine when I update this report) There are issue about wrong reference to $_SESSION and $HTTP_SESSION_VARS even with the patch. Therefore, I didn't committed. Problem is solved partially, there is a _serious_ problem for $_SESSION/$HTTP_SESSION_VARS. This will be fixed by 4.2.0 ------------------------------------------------------------------------ [2002-02-13 22:39:44] yohgaki@php.net Will be fixed soon ------------------------------------------------------------------------ [2002-01-16 12:41:20] milen_a_radev@yahoo.com Confirmed with CVS snapshot php4-200201160300 (compiled as CGI), Linux 2.4.12. PHP configuration is: ./configure --enable-debug And another test case: <? session_register("test"); $HTTP_SESSION_VARS=$test; ?> And the backtrace: #0 0x8114b7e in _zend_is_inconsistent (ht=0x5a5a5a5a, file=0x8161e04 "zend_hash.c", line=975) at zend_hash.c:84 #1 0x8117116 in zend_hash_internal_pointer_reset_ex (ht=0x5a5a5a5a, pos=0xbffff320) at zend_hash.c:975 #2 0x808c5e2 in php_session_save_current_state () at session.c:577 #3 0x808ecb5 in php_session_flush () at session.c:1450 #4 0x808ece6 in zm_deactivate_session (type=1, module_number=3) at session.c:1467 #5 0x8113dbc in module_registry_cleanup (module=0x81ab508) at zend_API.c:1166 #6 0x811664c in zend_hash_apply (ht=0x818b920, apply_func=0x8113d84 <module_registry_cleanup>) at zend_hash.c:669 #7 0x8110d57 in zend_deactivate_modules () at zend.c:581 #8 0x806126e in php_request_shutdown (dummy=0x0) at main.c:722 #9 0x805fe14 in main (argc=2, argv=0xbffff9f4) at cgi_main.c:798 #10 0x400a5577 in __libc_start_main () from /lib/libc.so.6 The backtrace is the same as the one generated by the previous test case. ------------------------------------------------------------------------ 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/14834 -- Edit this bug report at http://bugs.php.net/?id=14834&edit=1

« previous php.bugs (#8543) next »