php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70286 double free or corruption (out)
Submitted: 2015-08-17 18:02 UTC Modified: -
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: vanhoof dot bob at telenet dot be Assigned:
Status: Open Package: PDO ODBC
PHP Version: 5.6.12 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: vanhoof dot bob at telenet dot be
New email:
PHP Version: OS:

 

 [2015-08-17 18:02 UTC] vanhoof dot bob at telenet dot be
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!";
?>


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Nov 22 09:01:25 2019 UTC