Bug #66076 [NEW]: Segfault on SimpleXML toString

From: Date: Mon, 11 Nov 2013 01:25:47 +0000
Subject: Bug #66076 [NEW]: Segfault on SimpleXML toString
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-182693@lists.php.net to get a copy of this message
From:             mengpg2 at engene dot se
Operating system: Linux and MacOS
PHP version:      5.4.21
Package:          Reproducible crash
Bug Type:         Bug
Bug description:Segfault on SimpleXML toString

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 bug report at https://bugs.php.net/bug.php?id=66076&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=66076&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=66076&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=66076&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=66076&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=66076&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=66076&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=66076&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=66076&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=66076&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=66076&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=66076&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=66076&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=66076&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66076&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=66076&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=66076&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=66076&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66076&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=66076&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=66076&r=mysqlcfg



Thread (12 messages)

« previous php.bugs (#182693) next »