php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27000 Seg Fault when trying to set a value
Submitted: 2004-01-21 15:46 UTC Modified: 2004-01-25 01:17 UTC
From: dylan dot egan at optusnet dot com dot au Assigned:
Status: Closed Package: XML related
PHP Version: 5CVS-2004-01-21 (dev) OS: Linux
Private report: No CVE-ID: None
 [2004-01-21 15:46 UTC] dylan dot egan at optusnet dot com dot au
Description:
------------
Trying to set a value in a loaded xml file, it returns a seg fault in the log. So I ran gdb.

Reproduce code:
---------------
$s = simplexml_load_file('security.xml'); // $s->security[2]->id = 20

$s->security[2]->id = 21;

Expected result:
----------------
It should set that value to 21 from 20.


Actual result:
--------------
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1077749632 (LWP 29325)]
zend_assign_obj_handler (execute_data=0xbfffd170, op_array=0x40832c04)
    at /usr/local/src/php5-200401211830/Zend/zend_execute.c:64
64              z->refcount--;

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-21 17:43 UTC] derick@php.net
Can you please also add the output from "bt" from the GDB command line? (That will generate the backtrace)
 [2004-01-21 18:46 UTC] dylan dot egan at optusnet dot com dot au
#0  zend_assign_obj_handler (execute_data=0xbfffd170, op_array=0x4083253c)
    at /usr/local/src/php5-200401211830/Zend/zend_execute.c:64
#1  0x40619e64 in execute (op_array=0x4083253c)
    at /usr/local/src/php5-200401211830/Zend/zend_execute.c:1264
#2  0x405fc76e in zend_execute_scripts (type=8, retval=0x0, file_count=3)
    at /usr/local/src/php5-200401211830/Zend/zend.c:1051
#3  0x405c5cce in php_execute_script (primary_file=0xbffff410)
    at /usr/local/src/php5-200401211830/main/main.c:1642
#4  0x40624da3 in php_handler (r=0x81bd670)
    at /usr/local/src/php5-200401211830/sapi/apache2handler/sapi_apache2.c:531
#5  0x08068700 in ap_invoke_handler ()
 [2004-01-25 01:17 UTC] sniper@php.net
This bug has been fixed in CVS.

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/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 13:01:27 2024 UTC