An upgrade to mariadb-10.1.34 causes zoneminder to segfault when loading the perl module. Downgrading back to mariadb-10.1.31-r1 fixes the problem. Reproducible: Always Steps to Reproduce: 1.upgrade mariadb to 10.1.34 2.attempt to start zoneminder zmpkg.pl start Actual Results: SEGFAULT Expected Results: zoneminder starting up. It looks like the upgrade to mariadb changed how client libraries are handled. I've tried various combinations of use flags on mysql-connector-c and tried using mariadb-connector-c instead.
Did you run the revdep-rebuild command required to get programs to work? elog "Due to ABI changes when switching between different client libraries," elog "revdep-rebuild must find and rebuild all packages linking to libmysqlclient." elog "Please run: revdep-rebuild --library libmysqlclient.so.${SUBSLOT}" ewarn "Failure to run revdep-rebuild may cause issues with other programs or libraries"
Oops, should be elog "Please run: revdep-rebuild --library libmysqlclient.so.18"
Hmm... I read the messages on the mariadb package, but somehow missed the one for themariadb-connector-c package, so no, I did not run the revdep-rebuild. It's running now. I did try rebuilding zoneminder, but that's obviously was not enough. I'll updated if/when the revdep-rebuild finisheds.
That took care of the segfault. Thanks.
While the initial segfault is fixed, the zmc command is now segfaulting. This is not the case with the earlier version of mariadb. The revdep-rebuild rebuilt the following packages dev-perl/DBD-mysql-4.44.0 dev-libs/apr-util-1.5.4 net-mail/mailutils-3.1.1 www-misc/zoneminder-1.30.4 Since zmc is an elf binary, it should have been fixed with the rebuild if zoneminder.