libmyodbc segfaults when Percona Server is installed
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS | Status tracked in 5.7 | |||||
5.1 |
Won't Fix
|
High
|
Unassigned | |||
5.5 |
Expired
|
High
|
Unassigned | |||
5.6 |
Expired
|
High
|
Unassigned | |||
5.7 |
Expired
|
High
|
Unassigned |
Bug Description
Both in Debian Squeeze and Debian Wheezy, as soon as Percona's libmysqlclient in the appropriate version is installed unixodbc (using libmyodbc) segfaults
Plain Squeeze:
ii libmyodbc 5.1.6-1 the MySQL ODBC driver
ii libmysqlclient16 5.1.66-0+squeeze1 MySQL database client library
host:~# echo "SELECT now()" | isql DSN
+------
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
+------
SQL> SELECT now()
+------
| now() |
+------
| 2012-12-13 15:50:05|
+------
SQLRowCount returns 1
1 rows fetched
SQL> host:~#
Squeeze + Percona:
ii libmyodbc 5.1.6-1 the MySQL ODBC driver
ii libmysqlclient16 5.1.66-
host:~# echo "SELECT now()" | isql DSN
+------
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
+------
SQL> SELECT now()
+------
| now() |
+------
| 2012-12-13 15:51:34|
+------
SQLRowCount returns 1
1 rows fetched
Segmentation fault
In GDB:
(gdb) run DSN < query
Starting program: /usr/bin/isql DSN < query
[Thread debugging using libthread_db enabled]
[New Thread 0x7ffff51d9700 (LWP 3051)]
[Thread 0x7ffff51d9700 (LWP 3051) exited]
+------
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
+------
SQL> select NOW();
+------
| NOW() |
+------
| 2012-12-13 15:57:19|
+------
SQLRowCount returns 1
1 rows fetched
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff5d2eb63 in list_delete (root=0x660940, element=0x660940) at list.c:48
48 list.c: No such file or directory.
in list.c
(gdb) bt
#0 0x00007ffff5d2eb63 in list_delete (root=0x660940, element=0x660940) at list.c:48
#1 0x00007ffff6100139 in my_SQLFreeStmtE
#2 0x00007ffff7b91350 in ?? () from /usr/lib/
#3 0x00007ffff7b91d02 in SQLFreeStmt () from /usr/lib/
#4 0x0000000000402b5f in ?? ()
#5 0x0000000000403a94 in ?? ()
#6 0x00007ffff73d6c8d in __libc_start_main () from /lib/libc.so.6
summary: |
- libmyodbc segfaults when Percona libmysqlclient is installed + libmyodbc segfaults when Percona Server is installed |
is there any workaround?