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 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[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/
#2 0x00007f3d0752f350 in ?? () from /usr/lib/

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.