From sudakov@sibptus.tomsk.ru  Fri Dec 27 22:16:28 2002
Return-Path: <sudakov@sibptus.tomsk.ru>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6767637B401
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 27 Dec 2002 22:16:28 -0800 (PST)
Received: from sibptus.tomsk.ru (sibptus.tomsk.ru [213.59.238.16])
	by mx1.FreeBSD.org (Postfix) with ESMTP id B17AB43EB2
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 27 Dec 2002 22:16:26 -0800 (PST)
	(envelope-from sudakov@sibptus.tomsk.ru)
Received: (from sudakov@localhost)
	by sibptus.tomsk.ru (8.11.6/8.11.3) id gBS6CII39437
	for FreeBSD-gnats-submit@freebsd.org; Sat, 28 Dec 2002 12:12:18 +0600 (OMST)
	(envelope-from sudakov)
Received: from big.sibptus.tomsk.ru (Big.sibptus.tomsk.ru [172.16.138.120])
	by sibptus.tomsk.ru (8.11.6/8.11.3) with ESMTP id gBS69Xe39346
	for <sudakov@sibptus.tomsk.ru>; Sat, 28 Dec 2002 12:09:33 +0600 (OMST)
	(envelope-from root@big.sibptus.tomsk.ru)
Received: from big.sibptus.tomsk.ru (localhost [127.0.0.1])
	by big.sibptus.tomsk.ru (8.12.6/8.12.6) with ESMTP id gBS697Y1007707;
	Sat, 28 Dec 2002 12:09:07 +0600 (OMST)
	(envelope-from root@big.sibptus.tomsk.ru)
Received: (from root@localhost)
	by big.sibptus.tomsk.ru (8.12.6/8.12.6/Submit) id gBS697Jb007706;
	Sat, 28 Dec 2002 12:09:07 +0600 (OMST)
Message-Id: <200212280609.gBS697Jb007706@big.sibptus.tomsk.ru>
Date: Sat, 28 Dec 2002 12:09:07 +0600 (OMST)
From: sudakov@sibptus.tomsk.ru
Reply-To: sudakov@sibptus.tomsk.ru
To: FreeBSD-gnats-submit@freebsd.org
Cc: sudakov@sibptus.tomsk.ru
Subject: ftpd started from inetd exits on signal 11
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         46571
>Category:       bin
>Synopsis:       ftpd started from inetd exits on signal 11
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    yar
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 27 22:20:03 PST 2002
>Closed-Date:    Fri Jan 10 08:33:42 PST 2003
>Last-Modified:  Fri Jan 10 08:33:42 PST 2003
>Originator:     BIG &
>Release:        FreeBSD 4.7-RELEASE-p2 i386
>Organization:
SibPTUS
>Environment:
System: FreeBSD big.sibptus.tomsk.ru 4.7-RELEASE-p2 FreeBSD 4.7-RELEASE-p2 #0: Fri Dec 27 12:11:30 OMST 2002 root@big.sibptus.tomsk.ru:/var/tmp/BIG i386
cvsupped RELENG_4_7 and built from scratch on Dec 24.

>Description:
ftpd on a recent RELENG_4_7 dumps core on signal 11 whenever started from inetd.
>How-To-Repeat:
Connect to port 21/tcp on a machine running RELENG_4_7 with ftpd
enabled in inetd.conf
>Fix:
"ftpd -D" does not have this problem. Start standalone daemon as a workaround.
>Release-Note:
>Audit-Trail:

From: sudakov@sibptus.tomsk.ru
To: freebsd-gnats-submit@FreeBSD.org, sudakov@sibptus.tomsk.ru
Cc:  
Subject: Re: bin/46571: ftpd started from inetd exits on signal
Date: Sat, 28 Dec 2002 12:26:39 +0600 (OMST)

 gdb says:
 
 #0  0x804b9af in getsockname ()
 (gdb) where
 #0  0x804b9af in getsockname ()
 #1  0xbfbff340 in ?? ()
 #2  0x804b155 in getsockname ()
 #3  0x804a8b1 in getsockname ()
 (gdb) 
 
 
 -- 
 Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
 2:5005/149@fidonet http://vas.tomsk.ru/

From: Maxim Konovalov <maxim@macomnet.ru>
To: sudakov@sibptus.tomsk.ru
Cc: bug-followup@freebsd.org
Subject: Re: bin/46571: ftpd started from inetd exits on signal 11
Date: Sat, 28 Dec 2002 13:13:48 +0300 (MSK)

 Can't reproduce your problem. Please specify:
 
 grep ^ftp /etc/inetd.conf
 
 Do you have any modifications in /etc/ftphosts, /etc/ftpusers and
 /etc/ftpchroot?
 
 Do you have any optimization flags in /etc/make.conf?
 
 -- 
 Maxim Konovalov, MAcomnet, Internet Dept., system engineer
 phone: +7 (095) 796-9079, mailto:maxim@macomnet.ru

From: Victor Sudakov <sudakov@sibptus.tomsk.ru>
To: Maxim Konovalov <maxim@macomnet.ru>
Cc: bug-followup@freebsd.org
Subject: Re: bin/46571: ftpd started from inetd exits on signal 11
Date: Sat, 28 Dec 2002 20:32:57 +0600

 Maxim Konovalov wrote:
 > 
 > Can't reproduce your problem. Please specify:
 > 
 > grep ^ftp /etc/inetd.conf
 > 
 > Do you have any modifications in /etc/ftphosts, /etc/ftpusers and
 > /etc/ftpchroot?
 
 Yes, I use virtual hosting in /etc/ftphosts
 I seem to have hit the problem which was fixed in version 1.62.2.40 of ftpd.c
 
 You may want to integrate this fix into RELENG_4_7 as the bug can be
 very confusing.
 
 -- 
 Victor Sudakov,  VAS4-RIPE, VAS47-RIPN

From: Maxim Konovalov <maxim@macomnet.ru>
To: Victor Sudakov <sudakov@sibptus.tomsk.ru>
Cc: yar@freebsd.org, "" <bug-followup@freebsd.org>
Subject: Re: bin/46571: ftpd started from inetd exits on signal 11
Date: Sat, 28 Dec 2002 17:58:30 +0300 (MSK)

 On 06:40-0800, Dec 28, 2002, Victor Sudakov wrote:
 
 > The following reply was made to PR bin/46571; it has been noted by GNATS.
 >
 > From: Victor Sudakov <sudakov@sibptus.tomsk.ru>
 > To: Maxim Konovalov <maxim@macomnet.ru>
 > Cc: bug-followup@freebsd.org
 > Subject: Re: bin/46571: ftpd started from inetd exits on signal 11
 > Date: Sat, 28 Dec 2002 20:32:57 +0600
 >
 >  Maxim Konovalov wrote:
 >  >
 >  > Can't reproduce your problem. Please specify:
 >  >
 >  > grep ^ftp /etc/inetd.conf
 >  >
 >  > Do you have any modifications in /etc/ftphosts, /etc/ftpusers and
 >  > /etc/ftpchroot?
 >
 >  Yes, I use virtual hosting in /etc/ftphosts
 >  I seem to have hit the problem which was fixed in version 1.62.2.40
 >  of ftpd.c
 >
 >  You may want to integrate this fix into RELENG_4_7 as the bug can be
 >  very confusing.
 
 Well, I am not sure about that. RELENG_4_7 is a security fix branch
 and this bug definitly is not a security issue but we can always ask
 our SO team. Yar, what is your opinion?
 
 -- 
 Maxim Konovalov, MAcomnet, Internet Dept., system engineer
 phone: +7 (095) 796-9079, mailto:maxim@macomnet.ru

From: Victor Sudakov <sudakov@sibptus.tomsk.ru>
To: Maxim Konovalov <maxim@macomnet.ru>
Cc: yar@freebsd.org, bug-followup@freebsd.org
Subject: Re: bin/46571: ftpd started from inetd exits on signal 11
Date: Sun, 29 Dec 2002 00:01:19 +0600

 Maxim Konovalov wrote:
 > 
 > 
 > > The following reply was made to PR bin/46571; it has been noted by GNATS.
 > >
 > > From: Victor Sudakov <sudakov@sibptus.tomsk.ru>
 > > To: Maxim Konovalov <maxim@macomnet.ru>
 > > Cc: bug-followup@freebsd.org
 > > Subject: Re: bin/46571: ftpd started from inetd exits on signal 11
 > > Date: Sat, 28 Dec 2002 20:32:57 +0600
 > >
 > >  Maxim Konovalov wrote:
 > >  >
 > >  > Can't reproduce your problem. Please specify:
 > >  >
 > >  > grep ^ftp /etc/inetd.conf
 > >  >
 > >  > Do you have any modifications in /etc/ftphosts, /etc/ftpusers and
 > >  > /etc/ftpchroot?
 > >
 > >  Yes, I use virtual hosting in /etc/ftphosts
 > >  I seem to have hit the problem which was fixed in version 1.62.2.40
 > >  of ftpd.c
 > >
 > >  You may want to integrate this fix into RELENG_4_7 as the bug can be
 > >  very confusing.
 > 
 > Well, I am not sure about that. RELENG_4_7 is a security fix branch
 > and this bug definitly is not a security issue but we can always ask
 > our SO team. Yar, what is your opinion?
 
 At least mention it in the ERRATA.TXT for 4.7-RELEASE
 
 -- 
 Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
Responsible-Changed-From-To: freebsd-bugs->yar 
Responsible-Changed-By: yar 
Responsible-Changed-When: Mon Jan 6 04:49:06 PST 2003 
Responsible-Changed-Why:  
It's me who let this bug in and who fixed it. 
So it's me who should do the rest of the work. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=46571 

From: Yar Tikhiy <yar@freebsd.org>
To: Victor Sudakov <sudakov@sibptus.tomsk.ru>
Cc: Maxim Konovalov <maxim@macomnet.ru>, bug-followup@freebsd.org
Subject: Re: bin/46571: ftpd started from inetd exits on signal 11
Date: Mon, 6 Jan 2003 15:48:27 +0300

 > > >  I seem to have hit the problem which was fixed in version 1.62.2.40
 > > >  of ftpd.c
 > > >
 > > >  You may want to integrate this fix into RELENG_4_7 as the bug can be
 > > >  very confusing.
 > > 
 > > Well, I am not sure about that. RELENG_4_7 is a security fix branch
 > > and this bug definitly is not a security issue but we can always ask
 > > our SO team. Yar, what is your opinion?
 > 
 > At least mention it in the ERRATA.TXT for 4.7-RELEASE
 
 I've asked our security officer already and got no from him since
 it wasn't a security issue.  Shame on me that I completely forgot
 to add a paragraph about the bug to ERRATA.TXT.  I'll do that after
 making sure "-D" provides a workaround.
 
 -- 
 Yar

From: Victor Sudakov <sudakov@sibptus.tomsk.ru>
To: Yar Tikhiy <yar@freebsd.org>
Cc: Maxim Konovalov <maxim@macomnet.ru>, bug-followup@freebsd.org
Subject: Re: bin/46571: ftpd started from inetd exits on signal 11
Date: Mon, 6 Jan 2003 20:08:23 +0600

 Yar Tikhiy wrote:
 > > > >  I seem to have hit the problem which was fixed in version 1.62.2.40
 > > > >  of ftpd.c
 > > > >
 > > > >  You may want to integrate this fix into RELENG_4_7 as the bug can be
 > > > >  very confusing.
 > > > 
 > > > Well, I am not sure about that. RELENG_4_7 is a security fix branch
 > > > and this bug definitly is not a security issue but we can always ask
 > > > our SO team. Yar, what is your opinion?
 > > 
 > > At least mention it in the ERRATA.TXT for 4.7-RELEASE
 > 
 > I've asked our security officer already and got no from him since
 > it wasn't a security issue.  Shame on me that I completely forgot
 > to add a paragraph about the bug to ERRATA.TXT.  I'll do that after
 > making sure "-D" provides a workaround.
 
 I am afraid "-D" is not a good workaround as /etc/ftphosts does not work
 with it either. The daemon just stops dumping core. Please doublecheck on
 that. I suggested this workaround before I figured out that the
 problem was in the virtual host code.
 
 -- 
 Victor Sudakov,  VAS4-RIPE, VAS47-RIPN

From: Yar Tikhiy <yar@freebsd.org>
To: Victor Sudakov <sudakov@sibptus.tomsk.ru>
Cc: Maxim Konovalov <maxim@macomnet.ru>, bug-followup@freebsd.org
Subject: Re: bin/46571: ftpd started from inetd exits on signal 11
Date: Wed, 8 Jan 2003 15:37:13 +0300

 On Mon, Jan 06, 2003 at 08:08:23PM +0600, Victor Sudakov wrote:
 > Yar Tikhiy wrote:
 > > > > >  I seem to have hit the problem which was fixed in version 1.62.2.40
 > > > > >  of ftpd.c
 > > > > >
 > > > > >  You may want to integrate this fix into RELENG_4_7 as the bug can be
 > > > > >  very confusing.
 > > > > 
 > > > > Well, I am not sure about that. RELENG_4_7 is a security fix branch
 > > > > and this bug definitly is not a security issue but we can always ask
 > > > > our SO team. Yar, what is your opinion?
 > > > 
 > > > At least mention it in the ERRATA.TXT for 4.7-RELEASE
 > > 
 > > I've asked our security officer already and got no from him since
 > > it wasn't a security issue.  Shame on me that I completely forgot
 > > to add a paragraph about the bug to ERRATA.TXT.  I'll do that after
 > > making sure "-D" provides a workaround.
 > 
 > I am afraid "-D" is not a good workaround as /etc/ftphosts does not work
 > with it either. The daemon just stops dumping core. Please doublecheck on
 > that. I suggested this workaround before I figured out that the
 > problem was in the virtual host code.
 
 I had a similar suspicion.  After examining the code, I saw in fact
 that "-D" was stopping ftpd from dumping core by pure accident.
 Therefore I see no good advice to the users suffering from this bug
 but the system upgrade.
 
 -- 
 Yar
State-Changed-From-To: open->closed 
State-Changed-By: yar 
State-Changed-When: Fri Jan 10 08:30:14 PST 2003 
State-Changed-Why:  
This bug has been fixed in -current and -stable already; 
the errata for 4.7-RELEASE has been updated as well. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=46571 
>Unformatted:
