| Summary: | apache2 drops core when sent HUP signal and /etc/nsswitch.conf file exists | ||
|---|---|---|---|
| Product: | Ports & Packages | Reporter: | satz <satz> |
| Component: | Individual Port(s) | Assignee: | freebsd-apache (Nobody) <apache> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
satz
2004-09-14 20:20:19 UTC
Responsible Changed From-To: freebsd-ports-bugs->apache over to maintainer Hi Greg. Can you please send me the list of your modules? If you use PHP you should consider upgrading it, since I already have this problem, and upgrading php fixes the problem. regards, clem I am using the latest libphp from ports, version 4.3.8. Is there a newer version? Looks like a reboot runs /etc/rc.d/nisdomain which generates a new /etc/nsswitch.conf causing the core dump. Thanks, Greg total 2024 -rw-r--r-- 1 root wheel 8440 Sep 14 09:53 httpd.exp -rwxr-xr-x 1 root wheel 995417 Aug 26 00:00 libphp4.so -rwxr-xr-x 1 root wheel 9034 Sep 14 09:55 mod_access.so -rwxr-xr-x 1 root wheel 7718 Sep 14 09:55 mod_actions.so -rwxr-xr-x 1 root wheel 12645 Sep 14 09:55 mod_alias.so -rwxr-xr-x 1 root wheel 7438 Sep 14 09:55 mod_asis.so -rwxr-xr-x 1 root wheel 10346 Sep 14 09:55 mod_auth.so -rwxr-xr-x 1 root wheel 7664 Sep 14 09:55 mod_auth_anon.so -rwxr-xr-x 1 root wheel 9614 Sep 14 09:55 mod_auth_dbm.so -rwxr-xr-x 1 root wheel 35767 Sep 14 09:55 mod_auth_digest.so -rwxr-xr-x 1 root wheel 34026 Sep 14 09:55 mod_autoindex.so -rwxr-xr-x 1 root wheel 32048 Sep 14 09:55 mod_cache.so -rwxr-xr-x 1 root wheel 9207 Sep 14 09:55 mod_cern_meta.so -rwxr-xr-x 1 root wheel 26217 Sep 14 09:55 mod_cgi.so -rwxr-xr-x 1 root wheel 16342 Sep 14 09:55 mod_charset_lite.so -rwxr-xr-x 1 root wheel 96735 Sep 14 09:55 mod_dav.so -rwxr-xr-x 1 root wheel 49323 Sep 14 09:55 mod_dav_fs.so -rwxr-xr-x 1 root wheel 16459 Sep 14 09:55 mod_deflate.so -rwxr-xr-x 1 root wheel 7603 Sep 14 09:55 mod_dir.so -rwxr-xr-x 1 root wheel 18146 Sep 14 09:55 mod_disk_cache.so -rwxr-xr-x 1 root wheel 7685 Sep 14 09:55 mod_env.so -rwxr-xr-x 1 root wheel 11623 Sep 14 09:55 mod_expires.so -rwxr-xr-x 1 root wheel 11376 Sep 14 09:55 mod_file_cache.so -rwxr-xr-x 1 root wheel 13493 Sep 14 09:55 mod_headers.so -rwxr-xr-x 1 root wheel 15186 Sep 14 09:55 mod_imap.so -rwxr-xr-x 1 root wheel 43248 Sep 14 09:55 mod_include.so -rwxr-xr-x 1 root wheel 15761 Sep 14 09:55 mod_info.so -rwxr-xr-x 1 root wheel 23965 Sep 14 09:55 mod_log_config.so -rwxr-xr-x 1 root wheel 7950 Sep 14 09:55 mod_logio.so -rwxr-xr-x 1 root wheel 17333 Sep 14 09:55 mod_mime.so -rwxr-xr-x 1 root wheel 25121 Sep 14 09:55 mod_mime_magic.so -rwxr-xr-x 1 root wheel 32560 Sep 14 09:55 mod_negotiation.so -rwxr-xr-x 1 root wheel 63669 Sep 14 09:55 mod_rewrite.so -rwxr-xr-x 1 root wheel 11523 Sep 14 09:55 mod_setenvif.so -rwxr-xr-x 1 root wheel 12339 Sep 14 09:55 mod_speling.so -rwxr-xr-x 1 root wheel 196933 Sep 14 09:55 mod_ssl.so -rwxr-xr-x 1 root wheel 21833 Sep 14 09:55 mod_status.so -rwxr-xr-x 1 root wheel 9574 Sep 14 09:55 mod_unique_id.so -rwxr-xr-x 1 root wheel 8730 Sep 14 09:55 mod_userdir.so -rwxr-xr-x 1 root wheel 11439 Sep 14 09:55 mod_usertrack.so -rwxr-xr-x 1 root wheel 9919 Sep 14 09:55 mod_vhost_alias.so [Wed Sep 15 01:00:00 2004] [notice] SIGHUP received. Attempting to restart [Wed Sep 15 01:00:00 2004] [notice] seg fault or similar nasty error detected in the parent process [Wed Sep 15 07:17:43 2004] [warn] pid file /var/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Wed Sep 15 07:17:43 2004] [notice] Apache/2.0.50 (FreeBSD) PHP/4.3.8 configured -- resuming normal operations On Sep 15, 2004, at 1:54 AM, Clement Laforet wrote: > Hi Greg. > > Can you please send me the list of your modules? > If you use PHP you should consider upgrading it, since I already have > this problem, and upgrading php fixes the problem. > > regards, > clem The problem persisted regardless of whether there was a /etc/nsswitch.conf file so I spent some time and think I have it figured out. I have mail/squirrelmail installed which depends on lang/php4 which in turn depends on security/php4-mhash. mhash was trying to use the libpthread.so. At one point this machine ran CURRENT but I reverted back to 5.2.1. I had an old libpthread.so which mhash linked against. The crash was apparently confusion between the different threading libraries. I had to remove the libpthread and setup a libmap.conf to use libthr.so. Now httpd survives a HUP signal like it was meant to. Thanks, Greg State Changed From-To: open->closed Submitter said that the problem in fact related to php-mhash extension. |