#14497 [Ana->Fbk]: PHP causes segfault when session handler=user

From: Date: Wed, 18 Sep 2002 01:48:32 +0000
Subject: #14497 [Ana->Fbk]: PHP causes segfault when session handler=user
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-19582@lists.php.net to get a copy of this message
ID: 14497 Updated by: iliaa@php.net Reported By: jbozza@thinkburst.com -Status: Analyzed +Status: Feedback Bug Type: Session related Operating System: FreeBSD 4.4-Stable PHP Version: 4.1.0, 4-2001121 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2002-04-15 15:09:04] cpeake.php@absolutedigital.net Since ver 4.1.2 was released Feb 27 and the post of Feb 2 says the fix has been commited to the CVS and because of this line in the NEWS: 'Fixed a crash in the session module (Yasuo)', I'm assuming the fix was commited in ver 4.1.2. If not, then this is probably a moot post. Nonetheless, I'm still having this problem. I'm currently using the work around (return '') and httpd no longer seg faults but returning php booleans does cause the crash. My server info: linux 2.2.19, apache 1.3.24, php 4.1.2 and Ying Zhang's mysql session handlers. This is the backtrace I've gotten from it: Program received signal SIGSEGV, Segmentation fault. 0x81ace4a in _zend_is_inconsistent (ht=0x0, file=0x82905e4 "zend_hash.c", line=975) at zend_hash.c:84 84 if (ht->inconsistent==HT_OK) { -- Thanks. ------------------------------------------------------------------------ [2002-02-02 22:18:22] yohgaki@php.net This bug has been fixed in CVS. ------------------------------------------------------------------------ [2002-01-06 22:23:57] yohgaki@php.net I've not committed the fix for this bug yet, but you can work around the segfault. Return string when there is no data to read or failed to write. (i.e. return '';) User session save handler expect string data, if you return other than string, it segfualts. ------------------------------------------------------------------------ [2001-12-21 03:36:49] yohgaki@php.net Assigned to myself. By the I updated this bug report, I know the fix, but I forgot what is was now :( I'll work on this after I finish things have to do.... ------------------------------------------------------------------------ [2001-12-19 23:00:15] yohgaki@php.net Is this fixed? Anyone mind if I fix this and commit? -- Yasuo Ohgaki ------------------------------------------------------------------------ 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/14497 -- Edit this bug report at http://bugs.php.net/?id=14497&edit=1

« previous php.bugs (#19582) next »