#40374 [Fbk->Csd]: Double free during shutdown
| From: | tony2001@php.net | Date: | Tue, 06 Feb 2007 17:36:14 +0000 |
| Subject: | #40374 [Fbk->Csd]: Double free during shutdown | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-108502@lists.php.net to get a copy of this message | ||
ID: 40374
Updated by: tony2001@php.net
Reported By: andrey@php.net
-Status: Feedback
+Status: Closed
Bug Type: Reproducible crash
Operating System: Linux/Debian amd64
PHP Version: 6CVS-2007-02-06 (CVS)
New Comment:
Nevermind, it's fixed in CVS.
Previous Comments:
------------------------------------------------------------------------
[2007-02-06 17:23:45] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
------------------------------------------------------------------------
[2007-02-06 17:08:45] andrey@php.net
Description:
------------
On my amd64 the following code snippet lead to a warning from glibc,
probably double free:
andrey@whirlpool:~/dev/php6$ ./php mysqlnd_local_infile2.php
string(16) "/tmp/test_RS93D8"
done!*** glibc detected *** free(): invalid pointer: 0x00000000007ca1c4
***
Aborted
Reproduce code:
---------------
<?php
$file = tempnam(sys_get_temp_dir(), "test_");
var_dump($file);
$fp = fopen($file, "w");
fwrite($fp, "test");
fclose($fp);
print "done!";
?>
Expected result:
----------------
string(16) "/tmp/test_RS93D8"
done
Actual result:
--------------
string(16) "/tmp/test_RS93D8"
done!*** glibc detected *** free(): invalid pointer: 0x00000000007ca1c4
***
Aborted
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40374&edit=1