Bug #66076 [Opn->Fbk]: Segfault on SimpleXML toString

From: Date: Mon, 11 Nov 2013 03:50:08 +0000
Subject: Bug #66076 [Opn->Fbk]: Segfault on SimpleXML toString
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-182696@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66076&edit=1

 ID:                 66076
 Updated by:         laruence@php.net
 Reported by:        mengpg2 at engene dot se
 Summary:            Segfault on SimpleXML toString
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            Reproducible crash
 Operating System:   Linux and MacOS
 PHP Version:        5.4.21
 Block user comment: N
 Private report:     N

 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.




Previous Comments:
------------------------------------------------------------------------
[2013-11-11 02:04:23] mengpg2 at engene dot se

This seems related to bug 62328. I undoed that patch which fixed my problem but gave me a...

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Bug #62328 (implementing __toString and a cast to string fails) [ext/xml/tests/bug62328.phpt]
=====================================================================

------------------------------------------------------------------------
[2013-11-11 01:25:46] mengpg2 at engene dot se

Description:
------------
Hi,

I use far too old PHP libs for AWS and when upgrading from 5.3 to 5.4.21 I noticed that the string
typecast made the entire PHP process segfault

    $DDB = new AmazonDynamoDB();
    $DDB->use_ssl = false;
    $Key = array('HashKeyElement' => array(AmazonDynamoDB::TYPE_NUMBER =>
(string)$itemid));
    $Res = $DDB->get_item(array('TableName' => 'pond_item_meta',
'Key' => $Key));
    $tt = (string)$Res->body->Item->exif_json->S;

[Mon Nov 11 02:02:07 2013] [notice] child pid 27086 exit signal Segmentation fault (11)

However, if I undo the patch between 5.4.6 and 5.4.7 in Zend/zend.c it works.






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



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


Thread (12 messages)

« previous php.bugs (#182696) next »