Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 661908 - Zoneminder 1.30.4 and mariadb 10.1.34 cause segfault
Summary: Zoneminder 1.30.4 and mariadb 10.1.34 cause segfault
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-23 17:33 UTC by Karl Hakimian
Modified: 2018-07-23 18:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karl Hakimian 2018-07-23 17:33:42 UTC
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.
Comment 1 Brian Evans (RETIRED) gentoo-dev 2018-07-23 17:55:59 UTC
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"
Comment 2 Brian Evans (RETIRED) gentoo-dev 2018-07-23 17:56:39 UTC
Oops, should be

elog "Please run: revdep-rebuild --library libmysqlclient.so.18"
Comment 3 Karl Hakimian 2018-07-23 18:02:55 UTC
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.
Comment 4 Karl Hakimian 2018-07-23 18:24:42 UTC
That took care of the segfault. Thanks.
Comment 5 Karl Hakimian 2018-07-23 18:58:18 UTC
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.