0

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:

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=..., side=side@entry=yaSSL::client_end, buffer=buffer@entry=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 (ssl=ssl@entry=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=<optimised out>, 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=<optimised out>, timeout=<optimised out>, ssl_errno_holder=0x7fffffffd508, vio=0x62dd50, ptr=ptr@entry=0x62eff0)
at /export/home/pb2/build/sb_0-33648028-1555163597.15/release/mysql-5.7.26/vio/viossl.c:447
#6  sslconnect (ptr=ptr@entry=0x62bf90, vio=0x62dd50, timeout=<optimised out>, ssl_errno_holder=ssl_errno_holder@entry=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=<optimised out>, user=<optimised out>, passwd=<optimised out>, db=0x620888 "test", port=<optimised out>,
unix_socket=<optimised out>, client_flag=65536) at /export/home/pb2/build/sb_0-33648028-1555163597.15/release/mysql-5.7.26/sql-common/client.c:4870

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.