#36862 [NEW]: *** glibc detected *** double free or corruption

From: Date: Sun, 26 Mar 2006 10:19:58 +0000
Subject: #36862 [NEW]: *** glibc detected *** double free or corruption
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-94896@lists.php.net to get a copy of this message
From: nick at sterlingintegrated dot com Operating system: Fedora Core 3 (FC3) PHP version: 5.1.2 PHP Bug Type: MySQL related Bug description: *** glibc detected *** double free or corruption Description: ------------ After an upgrade of MySQL from 3.23 to 4.0, I kept getting "mysql_connect not a valid function call". So I recompiled php. Then I got a blank scrren on the browser. When run, "~php ./test.php" produces an error message (which can't be seen in the browser). The solution for me was to "export MALLOC_CHECK=0;" on the command line, so glibc stops going crazy then restart httpd. I set this env variable in my .bash_profile. It seems to work fine so far. Reproduce code: --------------- <?php error_reporting(E_ALL); $link = mysql_connect('localhost', 'user', 'password'); if (!$link) { die('Could not connect: ' . mysql_error()); } echo 'Connected successfully'; mysql_close($link); ?> Expected result: ---------------- Connected successfully Actual result: -------------- *** glibc detected *** double free or corruption -- Edit bug report at http://bugs.php.net/?id=36862&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36862&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36862&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36862&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36862&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36862&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36862&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=36862&r=needscript Try newer version: http://bugs.php.net/fix.php?id=36862&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36862&r=support Expected behavior: http://bugs.php.net/fix.php?id=36862&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36862&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36862&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36862&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36862&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36862&r=dst IIS Stability: http://bugs.php.net/fix.php?id=36862&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36862&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36862&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36862&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=36862&r=mysqlcfg

« previous php.bugs (#94896) next »