Bug #28171 Possible ABI imcompatibility between 5.0 and 5.1 libmysqclient and libndbclient
Submitted: 30 Apr 2007 20:37 Modified: 4 May 2007 13:04
Reporter: Monty Taylor Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server: C API (client library) Severity:S2 (Serious)
Version:5.0, 5.1 OS:Linux
Assigned to: Sveta Smirnova CPU Architecture:Any

[30 Apr 2007 20:37] Monty Taylor
Description:
It seems there may be some sort of ABI problem between 5.0 and 5.1 versions of libmysqlclient15. When I build a program using libmysqlclient15 and libndbclient3 both from 5.1, things work fine. But if I mix libmysqlclient15 from 5.0 and libndbclient3 from 5.1, I get a segfault when I try to end the program. 

How to repeat:
I'm attaching a test case. Build it and run it and you should see: 

Insert time for 10 1177965353 -- 1177965353 = 0
Testing Query Time
Select time for 10 1177965353 -- 1177965353 = 0
NDBAPI time for 10 1177965353 -- 1177965353 = 0
*** stack smashing detected ***: ./ndbapi_simple_index terminated
Aborted (core dumped)

Suggested fix:
Not really sure. I think if libmysqlclient15 from 5.0 and 5.1 can't be used interchangably, then we need to bump the soname in 5.1, as otherwise we are breaking things.
[30 Apr 2007 20:38] Monty Taylor
Test case for ABI problems

Attachment: testabi.tgz (application/x-compressed-tar, text), 2.99 KiB.

[4 May 2007 13:04] Sveta Smirnova
Thank you for the report.

I can not repeate described behaviour on Linux with MySQl-5.0.37 and last MySQL 5.1.17.

Please try with last versions and if you still have problems, feel free to reopen the bug report and indicate more information about your platform.