ID:               32514
 User updated by:  red at raven dot ch
 Reported By:      red at raven dot ch
 Status:           Bogus
 Bug Type:         Session related
 Operating System: Fedora Core 3
 PHP Version:      5CVS-2005-03-30
 New Comment:

but why is it possible if it's no a good idea?


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

[2005-04-05 01:43:18] [EMAIL PROTECTED]

Have you ever thought that it might not be good idea to put everything
into a session?


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

[2005-04-04 10:32:08] red at raven dot ch

Sorry, I can't reduce this to a few lines of code. It seems this
segmentation fault does only occure in rather complex situations (and I
can't put the finger on it). I'm working with the Vida-Framework (
http://www.vidaframework.ch/ - latest cvs-version) and it seems the
problem can be found in these lines:

<?php
class User extends VidaUser {
    public static function __classConstruct(){
        $class = __CLASS__;
        parent::__classConstruct($class);
        DBEntity::setTable($class,'users');
    }
    
    /*
    Other methods
     */
}
User::__classConstruct();
?>

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

[2005-04-03 01:09:52] [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.



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

[2005-04-01 00:02:40] red at raven dot ch

tried the latest snapshot (200503312030) . still the same.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208932672 (LWP 3881)]
0x012dbcee in zend_do_fcall_common_helper_SPEC
(execute_data=0xbfe190b0)
    at zend_vm_execute.h:120
120             if (EX(function_state).function->common.fn_flags &
ZEND_ACC_ABST
RACT) {
(gdb) bt
#0  0x012dbcee in zend_do_fcall_common_helper_SPEC
(execute_data=0xbfe190b0)
    at zend_vm_execute.h:120
#1  0x012dc705 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0xbfe190b0)
    at zend_vm_execute.h:288
#2  0x012dbc3b in execute (op_array=0x8a24f6c) at zend_vm_execute.h:78
#3  0x012dc073 in zend_do_fcall_common_helper_SPEC
(execute_data=0xbfe19220)
    at zend_vm_execute.h:204
#4  0x012dc705 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0xbfe19220)
    at zend_vm_execute.h:288
#5  0x012dbc3b in execute (op_array=0x875be54) at zend_vm_execute.h:78
#6  0x012dc073 in zend_do_fcall_common_helper_SPEC
(execute_data=0xbfe19360)
    at zend_vm_execute.h:204
#7  0x012dc705 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0xbfe19360)
    at zend_vm_execute.h:288
#8  0x012dbc3b in execute (op_array=0x875ae9c) at zend_vm_execute.h:78
#9  0x0130d185 in ZEND_INCLUDE_OR_EVAL_SPEC_CV_HANDLER (
    execute_data=0xbfe194d0) at zend_vm_execute.h:18130
#10 0x012dbc3b in execute (op_array=0x88f01c4) at zend_vm_execute.h:78
#11 0x012dc073 in zend_do_fcall_common_helper_SPEC
(execute_data=0xbfe19670)
    at zend_vm_execute.h:204
#12 0x012dc705 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0xbfe19670)
    at zend_vm_execute.h:288
#13 0x012dbc3b in execute (op_array=0x870ad08) at zend_vm_execute.h:78
#14 0x012ac2f3 in zend_call_function (fci=0xbfe19810,
fci_cache=0xbfe19800)
    at /usr/local/src/php5-200503312030/Zend/zend_execute_API.c:851
#15 0x012ac842 in zend_lookup_class (name=0x876b32c "User",
name_length=4, 
    ce=0xbfe198e4)
    at /usr/local/src/php5-200503312030/Zend/zend_execute_API.c:956
#16 0x0125c5fa in php_var_unserialize (rval=0xbfe19950, p=0xbfe19a90, 
    max=0x87e05e8 "\204&#65533;217*ZZZZZZZZA", var_hash=0xbfe19a70)
    at
/usr/local/src/php5-200503312030/ext/standard/var_unserializer.c:565
#17 0x0125d704 in process_nested_data (rval=0xbfe19a84, p=0xbfe19a90, 
    max=0x87e05e8 "\204&#65533;217*ZZZZZZZZA", var_hash=0xbfe19a70,
ht=0x87e192c, 
    elements=0)
    at
/usr/local/src/php5-200503312030/ext/standard/var_unserializer.c:232
#18 0x0125da92 in object_common2 (rval=0xbfe19a84, p=0xbfe19a90, 
    max=0x87e05e8 "\204&#65533;217*ZZZZZZZZA", var_hash=0xbfe19a70,
elements=4)
    at
/usr/local/src/php5-200503312030/ext/standard/var_unserializer.c:322
#19 0x0125c8fd in php_var_unserialize (rval=0xbfe19a84, p=0xbfe19a90, 
    max=0x87e05e8 "\204&#65533;217*ZZZZZZZZA", var_hash=0xbfe19a70)
    at
/usr/local/src/php5-200503312030/ext/standard/var_unserializer.c:623
#20 0x01150b56 in ps_srlzr_decode_php (
    val=0x87dfd34 "VidaAuth|O:8:\"VidaAuth\":4:{s:14:\"", vallen=2228)
    at /usr/local/src/php5-200503312030/ext/session/session.c:509
#21 0x01151015 in php_session_decode (
    val=0x87dfd34 "VidaAuth|O:8:\"VidaAuth\":4:{s:14:\"", vallen=2228)
at /usr/local/src/php5-200503312030/ext/session/session.c:571
#22 0x011515a8 in php_session_initialize ()
    at /usr/local/src/php5-200503312030/ext/session/session.c:752
#23 0x01153265 in php_session_start ()
    at /usr/local/src/php5-200503312030/ext/session/session.c:1203
#24 0x01154c98 in zif_session_start (ht=0, return_value=0x8762bc4, 
    this_ptr=0x0, return_value_used=0)
    at /usr/local/src/php5-200503312030/ext/session/session.c:1665
#25 0x012dbf22 in zend_do_fcall_common_helper_SPEC
(execute_data=0xbfe19e70)
    at zend_vm_execute.h:175
#26 0x012e0074 in ZEND_DO_FCALL_SPEC_CONST_HANDLER
(execute_data=0xbfe19e70)
    at zend_vm_execute.h:1535
#27 0x012dbc3b in execute (op_array=0x870e19c) at zend_vm_execute.h:78
#28 0x0130d185 in ZEND_INCLUDE_OR_EVAL_SPEC_CV_HANDLER (
    execute_data=0xbfe1a150) at zend_vm_execute.h:18130
#29 0x012dbc3b in execute (op_array=0x8a01be4) at zend_vm_execute.h:78
#30 0x012e0b88 in ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER (
    execute_data=0xbfe1a350) at zend_vm_execute.h:1835
#31 0x012dbc3b in execute (op_array=0x876e204) at zend_vm_execute.h:78
#32 0x012b7752 in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
    at /usr/local/src/php5-200503312030/Zend/zend.c:1059
#33 0x0127711a in php_execute_script (primary_file=0xbfe1c6c0)
    at /usr/local/src/php5-200503312030/main/main.c:1639
#34 0x01328681 in php_handler (r=0x86fb2a8)
    at /usr/local/src/php5-200503312030/sapi/apache2handler/sa
#35 0x0087a9f7 in ap_run_handler () from /usr/sbin/httpd
#36 0x08511a70 in ?? ()
#37 0x0087a9ce in ap_run_handler () from /usr/sbin/httpd
#38 0x086fb2a8 in ?? ()
#39 0x086fb2a8 in ?? ()
#40 0xbfe1c838 in ?? ()
#41 0x0087ae63 in ap_invoke_handler () from /usr/sbin/httpd
Previous frame inner to this frame (corrupt stack?)

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

[2005-03-31 20:39:43] [EMAIL PROTECTED]

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



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

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/32514

-- 
Edit this bug report at http://bugs.php.net/?id=32514&edit=1

Reply via email to