Created attachment 182789 [details] Link against thread-safe libmysqlclient When this module is built and PHP is also build with ZTS (Thread-Safety) then this will cause Apache to segfault. Forcing it to link against the _r thread-safe version of the libmysqlclient library fixes the problem. A crude patch is attached, but there should be a better way to specify WITH_THREADS or something like that.
A commit references this bug: Author: brnrd Date: Sun Nov 5 12:55:03 UTC 2017 New revision: 453544 URL: https://svnweb.freebsd.org/changeset/ports/453544 Log: www/mod_auth_mysql_another: Fix runtime error with ZTS php - Linking regular libmysqlclient will segfault apache mod_php [1] - Fix building with MariaDB 10.2 PR: 219445 [1] Submitted by: amistry@am-productions.biz [1] With hat: apache Changes: head/www/mod_auth_mysql_another/Makefile head/www/mod_auth_mysql_another/files/patch-mod__auth__mysql.c
Thanks!