#40374 [Opn->Fbk]: Double free during shutdown

From: Date: Tue, 06 Feb 2007 17:23:45 +0000
Subject: #40374 [Opn->Fbk]: Double free during shutdown
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-108500@lists.php.net to get a copy of this message
ID: 40374 Updated by: tony2001@php.net Reported By: andrey@php.net -Status: Open +Status: Feedback Bug Type: Reproducible crash Operating System: Linux/Debian amd64 PHP Version: 6CVS-2007-02-06 (CVS) New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#108500) next »