Crash in recent libmysqlclient16 delete_list() for version >=5.1.60

We’re using myodbc to connect to a percona mysql server. With version 5.1.57 found here http://repo.percona.com/apt/pool/main/p/percona-server-dfsg- 5.1/libmysqlclient16_5.1.57-rel12.8-233.squeeze_amd64.deb it works fine, however newer version like 5.1.60-rel13.1-413.squeeze crash with the following backtrace:

segfault at 407 ip 00007f5adeb95723 sp 00007f5ad8fdd260 error 6 in libmysqlclient_r.so.16.0.0[7f5adeb2a000+1cf000]

(gdb) bt
#0 0x00007f3d062d6723 in list_delete (root=0x1b19ee0, element=0x1b19ee0) at list.c:48
#1 0x00007f3d066ab139 in my_SQLFreeStmtExtended () from /usr/lib/odbc/libmyodbc.so
#2 0x00007f3d0752f350 in ?? () from /usr/lib/libodbc.so.1

The list_delete is part of my_list from mysqlclient, if I got that correctly. Any ideas how I could tackle this issue? Any more information you’d need to have a look at it?

Sounds like a bug. Please file on Launchpad.