Attached is a new reproducer that just uses the libmysqlclient directly without using Qt.
It's based on an example from a zetcode tutorial. I used this to compile it :- gcc mysql_test.c -o mysql_test -I/usr/include `mysql_config --cflags --libs` The interesting thing is if you comment out both mysql_server_end() and mysql_library_end() at the bottom of the example it works without segfault. Uncomment either call and it will segfault. The mysql docs say mysql_server_end() is depreciated and new code should use mysql_library_end() but they both cause a segfault. Ref: https://dev.mysql.com/doc/refman/8.0/en/mysql-server-end.html This is the bt with debugging symbols installed for libmysqlclient which is a little more informative and should help a MySQL dev pinpoint the problem. (gdb) bt #0 0x00007ffff793823f in charset_uninit () at ./mysys/charset.cc:925 #1 0x00007ffff793d753 in my_end (infoflag=infoflag@entry=0) at ./mysys/my_init.cc:200 #2 0x00007ffff78db173 in mysql_server_end () at ./libmysql/libmysql.cc:202 #3 0x00005555555554f0 in main () I'll also attached a bt with bt full in case it's useful. ** Attachment added: "mysql_test.c" https://bugs.launchpad.net/ubuntu/+source/mysql-8.0/+bug/1877504/+attachment/5371664/+files/mysql_test.c -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to the bug report. https://bugs.launchpad.net/bugs/1877504 Title: new version of libmysqlclient21 8.0.20-0ubuntu0.20.04.1 causes mythtv- set, mythbackend and mythfrontend to segfault on exit. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mysql-8.0/+bug/1877504/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs