[This is a copy of #1069079 but I believe it should be reported here as well] A trivial program that links against both libmysqlclient and libtspi will crash with a segfault. Version-Release number of selected component (if applicable): trousers-devel-0.3.11.2-3.el7 mariadb-devel-5.5.35-2.el7 How reproducible: $ cat test.c int main () { return 0; } $ gcc test.c -o test -L/usr/lib64/mysql -lmysqlclient -ltspi $ ./test Segmentation fault (core dumped) Actual issue: Adding printf() on the constructor and destructor reveals that when linking with both mysqlclient and tspi, only the destructor of tspi is called but not the constructor (and thus the crash). It seems that the issue is in the name of the constructors/destructors. Both mysqlclient and tspi use the name "my_init", and the one responsible for calling them, is probably confused and doesn't call both. A solution is to mark the constructors and destructors in both libraries as static.
Good catch and thanks for reporting. Now we need to figure out if other packages use my_init.
Since bug #1069079 is fixed, there is no problem in mariadb any more either. Closing.