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: 2020-10-11 04:22 UTC
Votes:2
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: vanhoof dot bob at telenet dot be Assigned: cmb (profile)
Status: No Feedback 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 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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-09-28 15:42 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2020-09-28 15:42 UTC] cmb@php.net
I cannot reproduce this with PHP 7.3 and and the Microsoft Access
Driver.  If you can still reproduce this with any of the actively
supported PHP versions[1], then please provide an ODBC trace for
the given test script.

[1] <https://www.php.net/supported-versions.php>
 [2020-10-11 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC