[Bug 267435] www/apache24 core dumps when mod_perl, mod_php7, mod_dbd, and GD active
Date: Tue, 01 Nov 2022 02:42:32 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267435
--- Comment #4 from papowell@astart.com ---
MPORTANT UPDATE - See the end of this comment.
# - Could you please include a full `pkg version -v` output file as an
# attachment
See the attached error file
#
# - Is the issue reproducible without any one or more of the
# perl/php/dbd{,mysql} combinations? It would be great to isolate the minimum
# reproduction requirements
I seem to have found the minimum configuration.
You need mod_perl (with GD), mod_php7, and mod_dbd (apr1 with MySQL)
mod_perl (no mod_php) mod_dbd is OK
mod_perl mod_php (no mod_dbd) is OK
#
# - Reproduction test against packages:latest (versions) would be useful.
#
I did this - see comments at end
# - Are you able to provide a backtrace as an attachment here (via gdb or
# similar) of the resulting core file? Rebuilding one or more or all of the
# implicated apache modules (and apache, and gd) may provide better details.
Tell me how to get the dump/corefile and I will send it.
UPDATE Mon Oct 31 19:17:26 PDT 2022
I started with a new/clean 12-3 machine, downloaded the packages
from 12-3 Latest repository, portsnap fetch extract (latest ports???)
Ran apacchetl restart - no errors, able to fetch gd.cgi, Info.php
I compiled devel/apr1 with MySQL support and enabled
the LoadModule dbd_module line.
# TEST
LoadModule dbd_module libexec/apache24/mod_dbd.so
# TEST
LoadModule perl_module libexec/apache24/mod_perl.so
LoadModule pWhen I ran apachectl restart I got this message - it is the
first time I have seen this.
# apachectl restart
Performing sanity check on apache24 configuration:
ld-elf.so.1: /usr/local/sbin/httpd: Undefined symbol
"apr_crypto_block_cleanup"
root@sim96:/install/SIM95_WEB-1.3 # apachectl start
Performing sanity check on apache24 configuration:
ld-elf.so.1: /usr/local/sbin/httpd: Undefined symbol
"apr_crypto_block_cleanup"
/usr/local/etc/rc.d/apache24: WARNING: failed to start apache24
Here is the apache log files:
root@sim96:/install/SIM95_WEB-1.3 # tail /var/log/apache/*
==> /var/log/apache/httpd-access.log <==
==> /var/log/apache/httpd-error.log <==
[Mon Oct 31 17:47:45.918582 2022] [mpm_prefork:notice] [pid 88032] AH00163:
Apache/2.4.54 (
FreeBSD) PHP/7.4.32 mod_perl/2.0.12 Perl/v5.32.1 configured -- resuming normal
operations
[Mon Oct 31 17:47:45.918672 2022] [core:notice] [pid 88032] AH00094: Command
line: '/usr/lo
cal/sbin/httpd -D NOHTTPACCEPT'
==> /var/log/apache/sim96-access.log <==
128.1.1.5 - - [31/Oct/2022:18:09:44 -0700] "GET /gd.cgi HTTP/1.1" 200 136
128.1.1.5 - - [31/Oct/2022:18:09:45 -0700] "GET /image.png HTTP/1.1" 200 631
==> /var/log/apache/sim96-error.log <==
I update the devel/apr1 configuration, removed the MySQl.
did make clean deinstall reinstall and the restarted apache:
I got the same error.
I went to /var/cache/pkg and did:
pkg add -f apr-1.7.0.1.6.1_2.pkg
This eliminated the error message.
I suspect that the apr1 code may be the culprit.
hp7_module libexec/apache24/libphp7.so
--
You are receiving this mail because:
You are the assignee for the bug.