|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48193 ODBC crash from PHP
Submitted: 2009-05-08 17:26 UTC Modified: 2009-05-16 01:00 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: leo dot nnnaaarrrdddooo at gmail dot com Assigned:
Status: No Feedback Package: ODBC related
PHP Version: 5.2CVS-2009-05-08 (CVS) OS: Debian 5.0 "Lenny" AMD64
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2009-05-08 17:26 UTC] leo dot nnnaaarrrdddooo at gmail dot com
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);
echo "A";


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-05-08 17:32 UTC] 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 23:28 UTC]
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 for *NIX and 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.

 [2009-05-16 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Feb 26 12:01:26 2024 UTC