Bug #55688 [Opn->Csd]: Crash when calling SessionHandler::gc()

From: Date: Wed, 14 Sep 2011 05:32:07 +0000
Subject: Bug #55688 [Opn->Csd]: Crash when calling SessionHandler::gc()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-163515@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=55688&edit=1 ID: 55688 Updated by: laruence@php.net Reported by: felipe@php.net Summary: Crash when calling SessionHandler::gc() -Status: Open +Status: Closed Type: Bug Package: Session related PHP Version: trunk-SVN-2011-09-14 (SVN) -Assigned To: +Assigned To: laruence Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2011-09-14 05:02:34] laruence@php.net Automatic comment from SVN on behalf of laruence Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=316714 Log: Add test for bug #55688 ------------------------------------------------------------------------ [2011-09-14 04:53:02] laruence@php.net This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. ------------------------------------------------------------------------ [2011-09-14 04:10:30] laruence@php.net Automatic comment from SVN on behalf of laruence Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=316711 Log: Fix bug #55688 (Crash when calling SessionHandler::gc()) Need arpad to review this change ------------------------------------------------------------------------ [2011-09-14 01:08:46] felipe@php.net Description: ------------ See below. Test script: --------------- <?php ini_set('session.save_handler', 'files'); $x = new SessionHandler; $x->gc(1); Expected result: ---------------- No crash. Actual result: -------------- Program received signal SIGSEGV, Segmentation fault. 0x08281f38 in ps_gc_files (mod_data=0x8949fe4, maxlifetime=1, nrdels=0xbfffcd50, tsrm_ls=0x88b0050) at /home/felipe/dev/phptrunk/ext/session/mod_files.c:447 447 if (data->dirdepth == 0) { (gdb) p data $1 = (ps_files *) 0x0 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=55688&edit=1

« previous php.bugs (#163515) next »