From nobody  Thu Jan 22 17:11:30 1998
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id RAA09992;
          Thu, 22 Jan 1998 17:11:30 -0800 (PST)
          (envelope-from nobody)
Message-Id: <199801230111.RAA09992@hub.freebsd.org>
Date: Thu, 22 Jan 1998 17:11:30 -0800 (PST)
From: rantapaa@uswest.net
To: freebsd-gnats-submit@freebsd.org
Subject: syslogd core dumps when signaled
X-Send-Pr-Version: www-1.0

>Number:         5548
>Category:       bin
>Synopsis:       syslogd core dumps when signaled
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 22 17:20:01 PST 1998
>Closed-Date:    Sun Dec 27 19:36:34 PST 1998
>Last-Modified:  Sun Dec 27 19:37:49 PST 1998
>Originator:     Erik Rantapaa
>Release:        2.2.5-STABLE
>Organization:
US West !nteract
>Environment:
FreeBSD phnxauth.phnx.uswest.net 2.2.5-RELEASE FreeBSD 2.2.5-RELEASE #0: Fri Oct 24 04:49:36 MST 1997     root@phnxauth.phnx.uswest.net:/usr/src/sys/compile/AUTH  i386

>Description:
If syslogd is HUP'ed while in the gethostbyaddr() routine in
cvthname() it will core dump upon returning from the signal handler.
Apparently this happens because the signal handler (the function
init() in this case) calls gethostbyname() and I'm guessing that there
is some common routine which is not re-entrant.

One fix is to block SIGHUP around the gethostbyaddr() call in cvthname().

>How-To-Repeat:
Launch syslogd, start up a process which sends syslog requests
from various ip addresses.  Start up another process which just
signals the syslogd process very frequently. syslogd will die with in
a minute or so.
>Fix:
See above.
>Release-Note:
>Audit-Trail:

From: Steve Price <sprice@hiwaay.net>
To: freebsd-gnats-submit@freebsd.org
Cc:  Subject: Re: bin/5548: syslogd core dumps when signaled
Date: Sat, 30 May 1998 17:51:39 -0500 (CDT)

 See also PR# 2191 and PR# 6216 for similar problems.
 
 Steve
 
 
State-Changed-From-To: open->closed  
State-Changed-By: cwt 
State-Changed-When: Sun Dec 27 19:36:34 PST 1998 
State-Changed-Why:  
OpenBSD's fix applied to v1.44 of syslogd.c 
>Unformatted:
