Bug #70286 [NEW]: double free or corruption (out)

From: Date: Mon, 17 Aug 2015 18:02:30 +0000
Subject: Bug #70286 [NEW]: double free or corruption (out)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-195262@lists.php.net to get a copy of this message
From: vanhoof dot bob at telenet dot be Operating system: Linux PHP version: 5.6.12 Package: PDO ODBC Bug Type: Bug Bug description:double free or corruption (out) Description: ------------ Had this corruption error from a far more complicated php page as part of a webshop-in-development. Narrowed it down to this. Note: I only get a core crash when asking doubles from the database. I can retrieve normal text, currencies, dates,... Connecting to the database or querying it does not give any core crash. Only the fetch() or fetchAll(), etc. give the core crash and only for doubles... results from running the php-script: -- $ php test3.php Array ( [arStkReel] => 5.0000000000000000e+00 [0] => 5.0000000000000000e+00 ) made it!*** Error in `php': double free or corruption (out): 0x08f86650 *** Aborted (core dumped) -- runnig gc_collect_cycles(); or unset($row); or var_dump($row); or $row = array(); don't solve the problem. Test script: --------------- <?php // init database conn. $path = "/var/www"; $dbName = $path . "/ll2/access/ll.mdb"; if (!file_exists($dbName)) { die("Could not find database file."); } $dbh = new PDO ("odbc:Driver=MDBTools; DBQ=$dbName;"); // $stmt is an array with two doubles in it $stmt = $dbh->query("SELECT arStkReel FROM Article"); $row = $stmt->fetch(); // row is printed print_r($row); echo "made it!"; ?> -- Edit bug report at https://bugs.php.net/bug.php?id=70286&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70286&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70286&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70286&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=70286&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=70286&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=70286&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=70286&r=needscript Try newer version: https://bugs.php.net/fix.php?id=70286&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=70286&r=support Expected behavior: https://bugs.php.net/fix.php?id=70286&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=70286&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=70286&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=70286&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70286&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=70286&r=dst IIS Stability: https://bugs.php.net/fix.php?id=70286&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=70286&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=70286&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=70286&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=70286&r=mysqlcfg

« previous php.bugs (#195262) next »