Bug #88994 Crash in client library in multithread connect and SSL
Submitted: 20 Dec 2017 16:02 Modified: 21 Dec 2017 9:52
Reporter: Aleksandr Lyapunov Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: C API (client library) Severity:S2 (Serious)
Version:5.5.31, 6.1.11 OS:CentOS (7)
Assigned to: CPU Architecture:Any

[20 Dec 2017 16:02] Aleksandr Lyapunov
Description:
Using mysql-5.5.31 client library I try to simultaneously connect to a server.
Sometimes I get errors in some threads and sometimes the program crashes.
Simple program that I wrote to reproduce the bug:
https://pastebin.com/a5Q9Aist
Here are output and backtrace of a crash:
https://pastebin.com/PcubxXv2

How to repeat:
https://pastebin.com/a5Q9Aist
Just complile and run.
[21 Dec 2017 9:52] MySQL Verification Team
Hello Aleksandr,

Thank you for the report and test case.

Thanks,
Umesh