ID:               32514
 Updated by:       [EMAIL PROTECTED]
 Reported By:      red at raven dot ch
-Status:           Open
+Status:           Feedback
 Bug Type:         Session related
 Operating System: Fedora Core 3
 PHP Version:      5.0.3
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip




Previous Comments:
------------------------------------------------------------------------

[2005-03-31 11:43:43] red at raven dot ch

Unfortunatly I am not able to write a short script which reproduces
this segfault.

(gdb) bt
#0  0x012b4aaf in zend_do_fcall_common_helper (execute_data=0xbfeed720,

    opline=0x891d6dc, op_array=0x891837c)
    at /usr/local/src/php-5.0.3/Zend/zend_execute.c:2656
#1  0x012b5583 in zend_do_fcall_by_name_handler
(execute_data=0xbfeed720, 
    opline=0x891d6dc, op_array=0x891837c)
    at /usr/local/src/php-5.0.3/Zend/zend_execute.c:2825
#2  0x012af3ed in execute (op_array=0x891837c)
    at /usr/local/src/php-5.0.3/Zend/zend_execute.c:1400
#3  0x012b4ece in zend_do_fcall_common_helper (execute_data=0xbfeed8c0,

    opline=0x890cd7c, op_array=0x8949dc4)
    at /usr/local/src/php-5.0.3/Zend/zend_execute.c:2740
#4  0x012b5583 in zend_do_fcall_by_name_handler
(execute_data=0xbfeed8c0, 
    opline=0x890cd7c, op_array=0x8949dc4)
    at /usr/local/src/php-5.0.3/Zend/zend_execute.c:2825
#5  0x012af3ed in execute (op_array=0x8949dc4)
    at /usr/local/src/php-5.0.3/Zend/zend_execute.c:1400
#6  0x012b4ece in zend_do_fcall_common_helper (execute_data=0xbfeeda00,

    opline=0x85ce3f4, op_array=0x89498fc)
    at /usr/local/src/php-5.0.3/Zend/zend_execute.c:2740
#7  0x012b5583 in zend_do_fcall_by_name_handler
(execute_data=0xbfeeda00, 
    opline=0x85ce3f4, op_array=0x89498fc)
    at /usr/local/src/php-5.0.3/Zend/zend_execute.c:2825
#8  0x012af3ed in execute (op_array=0x89498fc)
at /usr/local/src/php-5.0.3/Zend/zend_execute.c:1400
#9  0x012b7c40 in zend_include_or_eval_handler
(execute_data=0xbfeedba0, 
    opline=0x8630e30, op_array=0x85d3dac)
    at /usr/local/src/php-5.0.3/Zend/zend_execute.c:3565
#10 0x012af3ed in execute (op_array=0x85d3dac)
    at /usr/local/src/php-5.0.3/Zend/zend_execute.c:1400
#11 0x012b4ece in zend_do_fcall_common_helper (execute_data=0xbfeedda0,

    opline=0x871aec8, op_array=0x871b1d0)
    at /usr/local/src/php-5.0.3/Zend/zend_execute.c:2740
#12 0x012b5583 in zend_do_fcall_by_name_handler
(execute_data=0xbfeedda0, 
    opline=0x871aec8, op_array=0x871b1d0)
    at /usr/local/src/php-5.0.3/Zend/zend_execute.c:2825
#13 0x012af3ed in execute (op_array=0x871b1d0)
    at /usr/local/src/php-5.0.3/Zend/zend_execute.c:1400
#14 0x0127b952 in zend_call_function (fci=0xbfeedf00, fci_cache=0x0)
    at /usr/local/src/php-5.0.3/Zend/zend_execute_API.c:836
#15 0x0127a9a4 in call_user_function_ex (function_table=0x850de20, 
    object_pp=0x0, function_name=0xbfeedfc0, retval_ptr_ptr=0xbfeedfa8,

    param_count=1, params=0xbfeedfdc, no_separation=0,
symbol_table=0x0)
    at /usr/local/src/php-5.0.3/Zend/zend_execute_API.c:551
#16 0x0127be99 in zend_lookup_class (name=0x85e0224 "User",
name_length=4, 
    ce=0xbfeee028) at
/usr/local/src/php-5.0.3/Zend/zend_execute_API.c:928
#17 0x01225613 in php_var_unserialize (rval=0xbfeee08c, p=0xbfeee1bc,
max=0x863d0e0 "\204�217*ZZZZZZZZI", var_hash=0xbfeee1a4)
    at /usr/local/src/php-5.0.3/ext/standard/var_unserializer.c:488
#18 0x0122669f in process_nested_data (rval=0xbfeee1b0, p=0xbfeee1bc, 
    max=0x863d0e0 "\204�217*ZZZZZZZZI", var_hash=0xbfeee1a4,
ht=0x863d6c4, 
    elements=0) at
/usr/local/src/php-5.0.3/ext/standard/var_unserializer.c:196
#19 0x01226964 in object_common2 (rval=0xbfeee1b0, p=0xbfeee1bc, 
    max=0x863d0e0 "\204�217*ZZZZZZZZI", var_hash=0xbfeee1a4,
elements=4)
    at /usr/local/src/php-5.0.3/ext/standard/var_unserializer.c:259
#20 0x01225910 in php_var_unserialize (rval=0xbfeee1b0, p=0xbfeee1bc, 
    max=0x863d0e0 "\204�217*ZZZZZZZZI", var_hash=0xbfeee1a4)
    at /usr/local/src/php-5.0.3/ext/standard/var_unserializer.c:540
#21 0x01116ad1 in ps_srlzr_decode_php (
    val=0x863c82c "VidaAuth|O:8:\"VidaAuth\":4:{s:14:\"", vallen=2228)
    at /usr/local/src/php-5.0.3/ext/session/session.c:509
#22 0x01116f76 in php_session_decode (
    val=0x863c82c "VidaAuth|O:8:\"VidaAuth\":4:{s:14:\"", vallen=2228)
    at /usr/local/src/php-5.0.3/ext/session/session.c:567
#23 0x011175b2 in php_session_initialize ()
    at /usr/local/src/php-5.0.3/ext/session/session.c:748
#24 0x011195b4 in php_session_start ()
    at /usr/local/src/php-5.0.3/ext/session/session.c:1195
#25 0x0111b14f in zif_session_start (ht=0, return_value=0x87122dc, 
    this_ptr=0x0, return_value_used=0)
#26 0x012b4d35 in zend_do_fcall_common_helper (execute_data=0xbfeee680,

    opline=0x8714b88, op_array=0x85dccfc)
    at /usr/local/src/php-5.0.3/Zend/zend_execute.c:2711
#27 0x012b5691 in zend_do_fcall_handler (execute_data=0xbfeee680, 
    opline=0x8714b88, op_array=0x85dccfc)
    at /usr/local/src/php-5.0.3/Zend/zend_execute.c:2843
#28 0x012af3ed in execute (op_array=0x85dccfc)
    at /usr/local/src/php-5.0.3/Zend/zend_execute.c:1400
#29 0x012b7c40 in zend_include_or_eval_handler
(execute_data=0xbfeeea00, 
    opline=0x871a6dc, op_array=0x85d368c)
    at /usr/local/src/php-5.0.3/Zend/zend_execute.c:3565
#30 0x012af3ed in execute (op_array=0x85d368c)
    at /usr/local/src/php-5.0.3/Zend/zend_execute.c:1400
#31 0x012b7c40 in zend_include_or_eval_handler
(execute_data=0xbfeeec10, 
    opline=0x85dc22c, op_array=0x875a66c)
    at /usr/local/src/php-5.0.3/Zend/zend_execute.c:3565
#32 0x012af3ed in execute (op_array=0x875a66c)
    at /usr/local/src/php-5.0.3/Zend/zend_execute.c:1400
#33 0x01287ba4 in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
    at /usr/local/src/php-5.0.3/Zend/zend.c:1069
#34 0x01241020 in php_execute_script (primary_file=0xbfef0f70)
    at /usr/local/src/php-5.0.3/main/main.c:1628
#35 0x012bb6c4 in php_handler (r=0x85c82e0)
    at /usr/local/src/php-5.0.3/sapi/apache2handler/sapi_apache2.c:537
#36 0x005e49f7 in ap_run_handler () from /usr/sbin/httpd
#37 0x083faa70 in ?? ()
#38 0x005e49ce in ap_run_handler () from /usr/sbin/httpd
#39 0x085c82e0 in ?? ()
#40 0x085c82e0 in ?? ()
#41 0xbfef10e8 in ?? ()
#42 0x005e4e63 in ap_invoke_handler () from /usr/sbin/httpd
Previous frame inner to this frame (corrupt stack?)
(gdb) frame 30
#30 0x012af3ed in execute (op_array=0x85d368c)
    at /usr/local/src/php-5.0.3/Zend/zend_execute.c:1400
1400                    if (EX(opline)->handler(&execute_data,
EX(opline), op_array TSRMLS_CC)) {

------------------------------------------------------------------------

[2005-03-31 11:11:34] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.

Please try to reduce your reproduce script to reasonable size (~20
lines) or upload it somewhere and gives us the link.
Also, please post _full_ backtrace instead of the last line.

------------------------------------------------------------------------

[2005-03-31 11:06:39] red at raven dot ch

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 this bug report at http://bugs.php.net/?id=32514&edit=1

Reply via email to