ID: 48193 Updated by: fel...@php.net Reported By: leo dot nnnaaarrrdddooo at gmail dot com -Status: Open +Status: Feedback Bug Type: ODBC related Operating System: Debian 5.0 "Lenny" AMD64 PHP Version: 5.2CVS-2009-05-08 (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: ------------------------------------------------------------------------ [2009-05-08 17:32:06] leo dot nnnaaarrrdddooo at gmail dot com I did two clean installs of Debian 5.0 AMD64 to check I didn't have anything wrong installed. ------------------------------------------------------------------------ [2009-05-08 17:26:38] leo dot nnnaaarrrdddooo at gmail dot com Description: ------------ ODBC crashes when using php script included (using a MySQL database), and an ALERT - canary mismatch on efree() - heap overflow detected (attacker 'X.X.X.X', etc ...) line pops up in the error.log for apache. This happens on current stable Debian 5.0 "lenny" AMD64, with system up to date as of today, running: apache2, php5, mysql-server. Compiling latest MySQL odbc driver version 5.1.5 doesn't crash, but does lock up the calling process if same script is run with php5 client from command line. Reproduce code: --------------- $conn="DRIVER={MySQL}; DatabaseName='test'; CommLinks=tcpip(Host=localhost); "; $conn=odbc_connect($conn, "user", ""); $sql='SELECT * FROM test.T1;'; echo $sql; $pg_query=odbc_exec($pg_conn, $sql); odbc_close($pg_conn); echo "A"; ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48193&edit=1