ports/71740: apache 2 drops core when sent HUP signal and /etc/nsswitch.conf file exists

Greg Satz satz at sprynet.com
Tue Sep 14 19:20:20 UTC 2004


>Number:         71740
>Category:       ports
>Synopsis:       apache 2 drops core when sent HUP signal and /etc/nsswitch.conf file exists
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 14 19:20:19 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Greg Satz
>Release:        FreeBSD 5.2.1-RELEASE-p9
>Organization:
>Environment:
FreeBSD fnu.iranger.com 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #0: Tue Sep 14 09:46:23 MDT 2004     satz at fnu.iranger.com:/usr/src/sys/i386/compile/FNU  i386

>Description:
Whenever the httpd-error or httpd-access log fills up, newsyslog rotates the file. Afterwards, it sends httpd a HUP signal. httpd drops a core file in /usr/local/.

Server version: Apache/2.0.50
Server built:   Sep 14 2004 09:53:26
Server's Module Magic Number: 20020903:8
Architecture:   32-bit
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_FLOCK_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT="/usr/local"
 -D SUEXEC_BIN="/usr/local/bin/suexec"
 -D DEFAULT_PIDLOG="/var/run/httpd.pid"
 -D DEFAULT_SCOREBOARD="/var/run/apache_runtime_status"
 -D DEFAULT_LOCKFILE="/var/run/accept.lock"
 -D DEFAULT_ERRORLOG="/var/log/httpd-error.log"
 -D AP_TYPES_CONFIG_FILE="etc/apache2/mime.types"
 -D SERVER_CONFIG_FILE="etc/apache2/httpd.conf"

(gdb) bt
#0  0x28614708 in ?? ()
#1  0x2840b62c in nsdispatch () from /lib/libc.so.5
#2  0x283e50c5 in getpwnam_r () from /lib/libc.so.5
#3  0x283e531b in getpwuid_r () from /lib/libc.so.5
#4  0x283e526b in getpwuid_r () from /lib/libc.so.5
#5  0x283e53e9 in getpwnam () from /lib/libc.so.5
#6  0x08070d58 in ap_uname2id ()
#7  0x08081683 in unixd_set_user ()
#8  0x080664b3 in invoke_cmd ()
#9  0x0806716d in ap_walk_config_sub ()
#10 0x080671f3 in ap_walk_config ()
#11 0x0806803f in ap_process_config_tree ()
#12 0x0806b10f in main ()
#13 0x0805cee2 in _start ()

The contents of the /etc/nsswitch.conf file:

group: files
group_compat: nis
hosts: files dns
networks: files
passwd: files
passwd_compat: nis
shells: files

>How-To-Repeat:
Send httpd a HUP signal with an /etc/nsswitch.conf file present.
>Fix:
rename or remove the /etc/nsswitch.conf file.
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list