php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55688 Crash when calling SessionHandler::gc()
Submitted: 2011-09-14 01:08 UTC Modified: 2011-09-14 05:32 UTC
From: felipe@php.net Assigned: laruence (profile)
Status: Closed Package: Session related
PHP Version: trunk-SVN-2011-09-14 (SVN) OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
38 - 36 = ?
Subscribe to this entry?

 
 [2011-09-14 01:08 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-09-14 04:10 UTC] 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 04:53 UTC] laruence@php.net
-Status: Open +Status: Assigned
 [2011-09-14 04:53 UTC] 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 05:02 UTC] 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 05:32 UTC] laruence@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: laruence
 [2012-04-18 09:48 UTC] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=057aa683f1be4b58cce74ea00e0d9a9e15ebab0e
Log: Fix bug #55688 (Crash when calling SessionHandler::gc()) Need arpad to review this change
 [2012-07-24 23:40 UTC] rasmus@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=057aa683f1be4b58cce74ea00e0d9a9e15ebab0e
Log: Fix bug #55688 (Crash when calling SessionHandler::gc()) Need arpad to review this change
 [2013-11-17 09:36 UTC] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=057aa683f1be4b58cce74ea00e0d9a9e15ebab0e
Log: Fix bug #55688 (Crash when calling SessionHandler::gc()) Need arpad to review this change
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 14:01:28 2024 UTC