php.net |  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
Votes:1
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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
2 + 33 = ?
Subscribe to this entry?

 
 [2009-05-08 17:26 UTC] 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";



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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] felipe@php.net
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.


 [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: Thu Apr 25 05:01:33 2024 UTC