#32514 [NEW]: session_start() crashes when session exists
| From: | red at raven dot ch | Date: | Thu, 31 Mar 2005 09:06:41 +0000 |
| Subject: | #32514 [NEW]: session_start() crashes when session exists | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-76110@lists.php.net to get a copy of this message | ||
From: red at raven dot ch
Operating system: Fedora Core 3
PHP version: 5.0.3
PHP Bug Type: Session related
Bug description: session_start() crashes when session exists
Description:
------------
When I create a session and write some objects to it the server crashes
with a segmentation fault on the next request.
When searching in the bug database I found
http://bugs.php.net/bug.php?id=31734 which seems
to have similar behaviour
on my machine.
Reproduce code:
---------------
This is the content of the session file: The code is a bit too complex to
post here.
VidaAuth|O:8:"VidaAuth":4:{s:14:"VidaAuthuser";N;s:18:"VidaAuthloggedIn";N;s:25:
"VidaAuthuserEntityClass";s:4:"User";s:25:"VidaAuthuserObjectCache";O:4:"User":5
:{s:13:"*entityCore";N;s:14:"*tableScheme";O:13:"DBTableScheme":9:{s:20:"DBTable
Schemetable";s:5:"users";s:21:"DBTableSchemefields";a:3:{i:0;s:8:"username";i:1;
s:8:"password";i:2;s:5:"email";}s:20:"DBTableSchemetypes";a:3:{s:8:"username";s:
6:"string";s:8:"password";s:6:"string";s:5:"email";s:6:"string";}s:18:"DBTableSc
hemekey";s:8:"username";s:19:"DBTableSchemenull";a:3:{s:8:"username";b:0;s:8:"pa
ssword";b:0;s:5:"email";b:0;}s:29:"DBTableSchemeeffectiveTypes";a:3:{s:8:"userna
me";s:7:"varchar";s:8:"password";s:7:"varchar";s:5:"email";s:7:"varchar";}s:21:"
DBTableSchemelength";a:3:{s:8:"username";s:3:"255";s:8:"password";s:3:"255";s:5:
"email";s:3:"255";}s:26:"DBTableSchemeforeignKeys";a:0:{}s:22:"DBTableSchemesetI
nfo";a:0:{}}s:12:"*newValues";a:0:{}s:13:"*nullValues";a:0:{}s:8:"*state";i:0;}}
FormManager|O:11:"FormManager":2:{s:7:"counter";i:2;s:5:"stock";a:2:{s:13:"VidaL
oginForm";a:1:{i:1;O:15:"FormDataStorage":7:{s:6:"values";a:0:{}s:25:"FormDataSt
orageinvalids";a:0:{}s:8:"messages";a:0:{}s:29:"FormDataStoragesystemValues";a:2
:{s:15:"controllerClass";s:11:"LoginAction";s:3:"url";O:7:"ThisURL":5:{s:11:"URL
scheme";s:0:"";s:9:"URLhost";s:0:"";s:9:"URLpath";s:6:"/vita/";s:9:"URLfile";s:1
0:"index.php5";s:16:"URLqueryValues";a:0:{}}}s:23:"FormDataStorageparent";N;s:27
:"FormDataStorageidentifier";i:1;s:24:"FormDataStoragereferer";O:7:"Referer":5:{
s:11:"URLscheme";s:0:"";s:9:"URLhost";s:0:"";s:9:"URLpath";s:6:"/vita/";s:9:"URL
file";s:10:"index.php5";s:16:"URLqueryValues";a:0:{}}}}s:13:"XmlModuleForm";a:1:
{i:2;O:15:"FormDataStorage":7:{s:6:"values";a:0:{}s:25:"FormDataStorageinvalids"
;a:0:{}s:8:"messages";a:0:{}s:29:"FormDataStoragesystemValues";a:2:{s:15:"contro
llerClass";s:15:"XmlModuleAction";s:3:"url";r:45;}s:23:"FormDataStorageparent";N
;s:27:"FormDataStorageidentifier";i:2;s:24:"FormDataStoragereferer";O:7:"Referer
":5:{s:11:"URLscheme";s:0:"";s:9:"URLhost";s:0:"";s:9:"URLpath";s:6:"/vita/";s:9
Expected result:
----------------
To load the session and create the Objects.
Actual result:
--------------
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208899904 (LWP 28088)]
0x012d7aaf in zend_do_fcall_common_helper (execute_data=0xbfe83c20,
opline=0x99f46dc, op_array=0x99ef37c)
at /usr/local/src/php-5.0.3/Zend/zend_execute.c:2656
2656 if (EX(function_state).function->common.fn_flags &
ZEND_ACC_ABSTRACT) {
--
Edit bug report at http://bugs.php.net/?id=32514&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32514&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32514&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32514&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32514&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32514&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32514&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32514&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32514&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32514&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32514&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=32514&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=32514&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32514&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32514&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32514&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32514&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32514&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32514&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32514&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32514&r=mysqlcfg