libmysqlclient.so crash - yaSSL

by user3066279   Last Updated June 13, 2019 07:06 AM

I'm using MySQL as backend. I've a master and slave Qt application running on 2 systems. Slave application connects to master db remotely. I'm on MySQL 5.7.26. I'm using mysql-community-server on Ubuntu 16.04.

libmysqlclient crashes on yaSSL::Sessions::add (this=0x0, ssl=...) when the slave system tries to reconnect to master. The same crash does not happen if I disable SSL (skip_ssl). Is this a bug in MySQL or yaSSL ?

Stack Trace:

Stack Trace: Program received signal SIGSEGV, Segmentation fault. __GI___pthread_mutex_lock (mutex=0x20) at ../nptl/pthread_mutex_lock.c:67 67 ../nptl/pthread_mutex_lock.c: No such file or directory. (gdb) where

0 __GI___pthread_mutex_lock (mutex=0x20) at ../nptl/pthread_mutex_lock.c:67

1 0x00007ffff35497f0 in yaSSL::Sessions::add (this=0x0, ssl=...)

at /export/home/pb2/build/sb_0-33648028-1555163597.15/release/mysql-5.7.26/extra/yassl/src/yassl_int.cpp:1769

2 0x00007ffff3554520 in yaSSL::sendFinished (ssl=..., [email protected]=yaSSL::client_end, [email protected]=yaSSL::buffered)

at /export/home/pb2/build/sb_0-33648028-1555163597.15/release/mysql-5.7.26/extra/yassl/src/handshake.cpp:963

3 0x00007ffff35381a3 in yaSSL::yaSSL_connect ([email protected]=0x62eff0)

at /export/home/pb2/build/sb_0-33648028-1555163597.15/release/mysql-5.7.26/extra/yassl/src/ssl.cpp:323

4 0x00007ffff35117c8 in ssl_handshake_loop (func=, ssl_errno_holder=0x7fffffffd508, ssl=0x62eff0, vio=0x62dd50)

at /export/home/pb2/build/sb_0-33648028-1555163597.15/release/mysql-5.7.26/vio/viossl.c:359

5 ssl_do (func=, timeout=, ssl_errno_holder=0x7fffffffd508, vio=0x62dd50, [email protected]=0x62eff0)

at /export/home/pb2/build/sb_0-33648028-1555163597.15/release/mysql-5.7.26/vio/viossl.c:447

6 sslconnect ([email protected]=0x62bf90, vio=0x62dd50, timeout=, [email protected]=0x7fffffffd508)

at /export/home/pb2/build/sb_0-33648028-1555163597.15/release/mysql-5.7.26/vio/viossl.c:508

7 0x00007ffff34e7776 in cli_establish_ssl (mysql=0x62ea30) at /export/home/pb2/build/sb_0-33648028-1555163597.15/release/mysql-5.7.26/sql-common/client.c:3676

8 mysql_real_connect (mysql=0x62ea30, host=, user=, passwd=, db=0x620888 "test", port=,

unix_socket=, client_flag=65536) at /export/home/pb2/build/sb_0-33648028-1555163597.15/release/mysql-5.7.26/sql-common/client.c:4870

Tags : mysql


Related Questions


Updated November 15, 2016 08:02 AM

Updated April 09, 2015 22:02 PM

Updated August 24, 2018 15:06 PM

Updated December 27, 2018 07:06 AM

Updated June 11, 2015 18:02 PM