segfault in mysql_server_end() from libmysqlclient.so.21

Bug #1877183 reported by JonHurst
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
mysql-8.0 (Ubuntu)
Invalid
Undecided
Unassigned
qtbase-opensource-src (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

libmysqlclient.so.21 causes a segfault on shutdown.

Test case attached ==> "Removed database" will not be reported.

Backtrace:
#0 0x00007ffff14c330f in ?? () from /lib/x86_64-linux-gnu/libmysqlclient.so.21
#1 0x00007ffff14c8823 in ?? () from /lib/x86_64-linux-gnu/libmysqlclient.so.21
#2 0x00007ffff1466243 in mysql_server_end () from /lib/x86_64-linux-gnu/libmysqlclient.so.21
#3 0x00007ffff1b4d0ee in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/sqldrivers/libqsqlmysql.so
#4 0x00007ffff1b4d10d in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/sqldrivers/libqsqlmysql.so
#5 0x00007ffff78e55fb in ?? () from /lib/x86_64-linux-gnu/libQt5Sql.so.5
#6 0x00007ffff78e588e in QSqlDatabase::~QSqlDatabase() () from /lib/x86_64-linux-gnu/libQt5Sql.so.5
#7 0x00007ffff78e5d9c in ?? () from /lib/x86_64-linux-gnu/libQt5Sql.so.5
#8 0x0000555555555579 in cause_segfault () at main.cpp:16
#9 0x0000555555555729 in main (argc=1, argv=0x7fffffffeb18) at main.cpp:23

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: libqt5sql5-mysql 5.12.8+dfsg-0ubuntu1
ProcVersionSignature: Ubuntu 5.4.0-29.33-generic 5.4.30
Uname: Linux 5.4.0-29-generic x86_64
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: XFCE
Date: Wed May 6 21:40:58 2020
InstallationDate: Installed on 2020-04-27 (9 days ago)
InstallationMedia: Xubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
SourcePackage: qtbase-opensource-src
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
JonHurst (jon-a-hursts) wrote :
Revision history for this message
Lars Tangvald (lars-tangvald) wrote :

Having trouble reproducing this:
$ ./test
About to remove database
Removed database

I don't know much about QT, so just did the bare minimum to get the test case built.

Did you build or run the test case in any particular way?

Revision history for this message
JonHurst (jon-a-hursts) wrote :

OK, disregard. I was using mariadb-server. After replacing it with mysql-server-8.0, I no longer get the segfault. Thanks for your help.

Changed in mysql-8.0 (Ubuntu):
status: New → Invalid
Changed in qtbase-opensource-src (Ubuntu):
status: New → Invalid
Revision history for this message
Paul Harrison (mythtv-paulh) wrote :

This bug also affects MythTV.

I can also reproduce this using the test app. You obviously need to point it to a valid server and database for the bug to trigger. I'll attach a slightly modified version of the test app that allows you to change the DB credentials to a valid host, user, password and database.

The bug started to trigger after an update to libmysqlclient21 from 8.0.17 to 8.0.20.

The server is Ubuntu Server 18.04.4 LTS.

The client is on Kbuntu 19.10.

Revision history for this message
Paul Harrison (mythtv-paulh) wrote :

Slightly modified test app

Revision history for this message
Robie Basak (racb) wrote :

@Paul

This bug report has been marked Invalid for reasons explained above. To avoid any further confusion, please file a separate bug with full steps to reproduce your problem, and please verify if you're using MySQL or MariaDB and file the bug against the appropriate package.

Revision history for this message
Seth Arnold (seth-arnold) wrote :
Revision history for this message
Lars Tangvald (lars-tangvald) wrote :

Right. This was reported first, but most of the discussion was there, so I'll mark this as a duplicate (as noted in the other report, this is a combination of a bug in mysql and maria still using mysql paths for incompatible files).

Revision history for this message
Otto Kekäläinen (otto) wrote :

The bug started to trigger after an update to libmysqlclient21 from 8.0.19 to 8.0.20. This is Oracle MySQL being backwards incompatible with any earlier version of MySQL or MariaDB. Please don't imply that the MariaDB packaging in any way caused this bug.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.