|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-02-06 17:23 UTC] tony2001@php.net
[2007-02-06 17:36 UTC] tony2001@php.net
[2007-02-06 18:02 UTC] andrey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 23 16:00:01 2025 UTC |
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