#40374 [NEW]: Double free during shutdown

From: Date: Tue, 06 Feb 2007 17:08:46 +0000
Subject: #40374 [NEW]: Double free during shutdown
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-108496@lists.php.net to get a copy of this message
From: andrey@php.net Operating system: Linux/Debian amd64 PHP version: 6CVS-2007-02-06 (CVS) PHP Bug Type: Reproducible crash Bug description: Double free during shutdown 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 bug report at http://bugs.php.net/?id=40374&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40374&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40374&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40374&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40374&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40374&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40374&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=40374&r=needscript Try newer version: http://bugs.php.net/fix.php?id=40374&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40374&r=support Expected behavior: http://bugs.php.net/fix.php?id=40374&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40374&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40374&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40374&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40374&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40374&r=dst IIS Stability: http://bugs.php.net/fix.php?id=40374&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40374&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40374&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40374&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=40374&r=mysqlcfg

« previous php.bugs (#108496) next »