ID:               40374
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-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] [EMAIL PROTECTED]

Description:
------------
On my amd64 the following code snippet lead to a warning from glibc,
probably double free:
[EMAIL PROTECTED]:~/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

Reply via email to