Bug #70286 [Opn->Fbk]: double free or corruption (out)

From: Date: Mon, 28 Sep 2020 15:42:18 +0000
Subject: Bug #70286 [Opn->Fbk]: double free or corruption (out)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229250@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70286&edit=1

 ID:                 70286
 Updated by:         cmb@php.net
 Reported by:        vanhoof dot bob at telenet dot be
 Summary:            double free or corruption (out)
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            PDO ODBC
 Operating System:   Linux
 PHP Version:        5.6.12
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

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>


Previous Comments:
------------------------------------------------------------------------
[2015-08-17 18:02:28] 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!";
?>



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



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


Thread (3 messages)

« previous php.bugs (#229250) next »