#38406 [NoF->Asn]: PHP crashes when manipulating with SimpleXML object
| From: | tony2001@php.net | Date: | Tue, 20 Feb 2007 12:48:10 +0000 |
| Subject: | #38406 [NoF->Asn]: PHP crashes when manipulating with SimpleXML object | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-109168@lists.php.net to get a copy of this message | ||
ID: 38406
Updated by: tony2001@php.net
Reported By: zizka at seznam dot cz
-Status: No Feedback
+Status: Assigned
Bug Type: SimpleXML related
Operating System: Windows XP
PHP Version: 5.1.4
-Assigned To:
+Assigned To: helly
New Comment:
Marcus, please review this patch:
http://tony2001.phpclub.net/dev/tmp/bug38406.diff
Previous Comments:
------------------------------------------------------------------------
[2007-02-20 12:29:48] dominics at gmail dot com
I've just confirmed that this bug works on Linux (Debian Etch) too.
Using Apache 2.2.3 and PHP 5.2, and the test case above, the apache
process segfaults:
[Wed Feb 21 01:26:50 2007] [notice] child pid 3758 exit signal
Segmentation fault (11)
[Wed Feb 21 01:26:51 2007] [notice] child pid 3938 exit signal
Segmentation fault (11)
------------------------------------------------------------------------
[2007-02-20 12:22:05] dominics at gmail dot com
I forgot to mention the specific error:
Unhandled exception at 0x008eafcb in Apache.exe: 0xC0000005: Access
violation reading location 0x00000002.
------------------------------------------------------------------------
[2007-02-20 12:18:58] dominics at gmail dot com
While this isn't my bug (and so I can't reopen it), and I can't view
the original test case, I still believe I'm experiencing the same
crash.
I'm using PHP 5.2.1, Apache 2.0.54 and Windows XP. A somewhat similar
platform to the original reporter. I am able to consistently reproduce
the bug with the following test case:
<?php
$item = new SimpleXMLElement('<something />');
$item->attribute = 'something';
$item->otherAttribute = $item->attribute;
?>
------------------------------------------------------------------------
[2006-08-18 01:00:01] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2006-08-10 16:27:38] tony2001@php.net
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 the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
------------------------------------------------------------------------
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/38406
--
Edit this bug report at http://bugs.php.net/?id=38406&edit=1