php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30850 segmentation fall
Submitted: 2004-11-20 15:21 UTC Modified: 2004-12-08 07:09 UTC
From: bugz at nagash dot org Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 5.1.dev OS: linux (gentoo)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bugz at nagash dot org
New email:
PHP Version: OS:

 

 [2004-11-20 15:21 UTC] bugz at nagash dot org
Description:
------------
I receive segmentation fall when try to execute following code


backtrace


(gdb) r -f /home/nagash/dotorgc.org/www/test.php
Starting program: /stuff/php/bin/php -f /home/nagash/dotorgc.org/www/test.php

Program received signal SIGSEGV, Segmentation fault.
zend_std_object_get_class (object=0x1) at /root/src/php/php5-200411201130/Zend/zend_object_handlers.c:826
826             return zobj->ce;


Reproduce code:
---------------
class blah {
	function tester ($var) {
		echo $var;
	}
}

$GLOBALS['dbcon'] = new blah;
$dbcon = $GLOBALS['dbcon'];
$dbcon->tester('aaa');

Expected result:
----------------
aaa

Actual result:
--------------
segmentation fall

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-20 15:29 UTC] bugz at nagash dot org
(gdb) bt 
#0  zend_std_object_get_class (object=0x1) at
/root/src/php/php5-200411201130/Zend/zend_object_handlers.c:826 
#1  0x08210cf7 in zend_get_class_entry (zobject=0x840a224) at
/root/src/php/php5-200411201130/Zend/zend_API.c:227 
#2  0x08292e0b in zend_assign_to_variable (result=0x8417fd4, op1=0x8413464,
op2=0x8417ffc, value=0x8413464, type=4, 
    Ts=0xbfffc40c) at /root/src/php/php5-200411201130/Zend/zend_execute.c:856 
#3  0x0827b048 in ZEND_ASSIGN_SPEC_CV_VAR_HANDLER (execute_data=0xbfffc510) at
zend_vm_execute.h:21839 
#4  0x082321d8 in execute (op_array=0x8413adc) at zend_vm_execute.h:58 
#5  0x0821057f in zend_execute_scripts (type=8, retval=0x0, file_count=3) at
/root/src/php/php5-200411201130/Zend/zend.c:1053 
#6  0x081d4a5f in php_execute_script (primary_file=0xbfffe910) at
/root/src/php/php5-200411201130/main/main.c:1634 
#7  0x082949dc in main (argc=3, argv=0xbfffe994) at
/root/src/php/php5-200411201130/sapi/cli/php_cli.c:943
 [2004-11-25 23:13 UTC] tony2001@php.net
I still cannot reproduce it.
Please, try it under an other system/distribution.
 [2004-12-08 07:09 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 17 16:01:29 2024 UTC