Bug 205718
| Summary: | memory corruption on php odbc_exec call to mysql | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 4 | Reporter: | Alan <chekov> |
| Component: | mysql | Assignee: | Tom Lane <tgl> |
| Status: | CLOSED WONTFIX | QA Contact: | Kevin Baker <kbaker> |
| Severity: | high | Docs Contact: | |
| Priority: | medium | ||
| Version: | 4.4 | CC: | byte, hhorak, ineilsen |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-06-20 16:13:36 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Alan
2006-09-08 07:31:47 UTC
I know nearly zip about php. Would you mind providing a complete test case, that is a php script that triggers the problem and an example of how to run it? ok, a more complete test case. On a fresh RHEL4 update 4 install:
1. start mysqld (service mysqld start). this assume you haven't created any
tables or set any passwords. your "test" database will be there, but myodbc
won't even make it that far.
2. edit /etc/odbc.ini to include the entry from (1) above
2a. you /etc/odbcinst.ini file should have an entry that looks like:
[MySQL]
Description = MySQL Connector 2.5
Driver = libmyodbc.so
Setup = libodbcmyS.so
UsageCount = 1
FileUsage = 1
3. open a text editor, copy and paste the following, name it test.php:
<?php
$connect = odbc_connect("localtest", "root", "");
print "connected\n";
$result = odbc_exec($connect, "use test;") or die ("Query Failed.");
print "$result\n";
?>
4. execute it (php ./test.php)
you'll see the output:
*** glibc detected *** malloc(): memory corruption: 0x0854d638 ***
Abort
or something similar
-alan
Hmm ... it suddenly occurs to me that maybe this is the same problem diagnosed and fixed in bug #185343, which would make it MyODBC's fault not mysql's. might be MyODBC's fault, but since it works in some configurations and not others while leaving mysql-connector-odbc constant it at least seems to be an interoperability issue. on a further note, this bug seems to have disappeared in RHEL5. still present in 4.5 though -alan Thank you for submitting this issue for consideration in Red Hat Enterprise Linux. The release for which you requested us to review is now End of Life. Please See https://access.redhat.com/support/policy/updates/errata/ If you would like Red Hat to re-consider your feature request for an active release, please re-open the request via appropriate support channels and provide additional supporting details about the importance of this issue. |