From root@flappie.debank.tv  Wed Feb 18 03:26:48 2009
Return-Path: <root@flappie.debank.tv>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id A2932106566B
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 18 Feb 2009 03:26:48 +0000 (UTC)
	(envelope-from root@flappie.debank.tv)
Received: from smtp.debank.tv (59-80-ftth.onsneteindhoven.nl [88.159.80.59])
	by mx1.freebsd.org (Postfix) with ESMTP id 69B018FC08
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 18 Feb 2009 03:26:48 +0000 (UTC)
	(envelope-from root@flappie.debank.tv)
Received: from flappie.debank.tv (smtp.debank.tv [192.168.1.25])
	by smtp.debank.tv (Postfix) with SMTP id 2FEC61DB2007
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 18 Feb 2009 04:06:36 +0100 (CET)
Received: by flappie.debank.tv (sSMTP sendmail emulation); Wed, 18 Feb 2009 04:06:36 +0100
Message-Id: <20090218030636.2FEC61DB2007@smtp.debank.tv>
Date: Wed, 18 Feb 2009 04:06:36 +0100
From: "Charlie &" <root@flappie.debank.tv>
Reply-To: Rob Evers <rob@debank.tv>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: rpcbind fails to start in jail
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         131800
>Category:       bin
>Synopsis:       rpcbind(8) fails to start in jail
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 18 03:30:03 UTC 2009
>Closed-Date:    
>Last-Modified:  Mon Mar 02 19:22:09 UTC 2009
>Originator:     Rob Evers
>Release:        FreeBSD 7.1-STABLE amd64
>Organization:
>Environment:
System: FreeBSD flappie.debank.tv 7.1-STABLE FreeBSD 7.1-STABLE #0: Wed Feb 18 01:52:24 CET 2009 root@flappie.debank.tv:/usr/obj/usr/src/sys/FLAPPIE amd64


>Description:
	rpcbind fails to start in a jail with only one ipv4 address assigned on amd64 (no other platform available for testing)

>How-To-Repeat:
	Install 7.1-STABLE to a version after the multiple ip jail changes
	Start rpcbind, it fails with "Segmentation fault (core dumped)"
>Fix:

	As a workaround I disabled udp6 and tcp6 in /etc/netconfig, rpcbind works fine now, the last part of a "ktrace rpcbind" is shown below

13860 rpcbind  GIO   fd 7 wrote 70 bytes
       "<27>Feb 18 03:55:12 rpcbind: cannot bind ::1 on udp6: Invalid argument"
 13860 rpcbind  RET   sendto 70/0x46
 13860 rpcbind  CALL  socket(PF_INET6,SOCK_DGRAM,IPPROTO_UDP)
 13860 rpcbind  RET   socket 8
 13860 rpcbind  PSIG  SIGSEGV SIG_DFL
 13860 rpcbind  NAMI  "rpcbind.core"


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-jail 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Feb 18 03:47:51 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer(s). 

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

From: "Bjoern A. Zeeb" <bz@FreeBSD.org>
To: bug-followup@FreeBSD.org, rob@debank.tv
Cc:  
Subject: Re: bin/131800: [jail] rpcbind(8) fails to start in jail
Date: Wed, 18 Feb 2009 10:23:02 +0000 (UTC)

 Hi,
 
 this jail behaviour will soon change again that opening an IPv6 socket
 will be possible w/o the IP though this currently matches the behavior
 of the base system.
 
 The problem here seems to be that (without looking at the code) rpcbind
 is not checking return codes properly.
 
 /bz
 
 -- 
 Bjoern A. Zeeb                      The greatest risk is not taking one.

From: "Bjoern A. Zeeb" <bz@FreeBSD.org>
To: bug-followup@FreeBSD.org, rob@debank.tv
Cc:  
Subject: Re: bin/131800: [jail] rpcbind(8) fails to start in jail
Date: Mon, 23 Feb 2009 15:22:12 +0000 (UTC)

 From the jail side this should have been fixed with the latest MFC
 from jamie@ .
 
 But this really is an rpcbind bug.
 
 -- 
 Bjoern A. Zeeb                      The greatest risk is not taking one.

From: rob@debank.tv
To: "Bjoern A. Zeeb" <bz@FreeBSD.org>
Cc: bug-followup@freebsd.org,
 rob@debank.tv
Subject: Re: bin/131800: [jail] rpcbind(8) fails to start in jail
Date: Tue, 24 Feb 2009 16:28:13 +1300 (NZDT)

 > From the jail side this should have been fixed with the latest MFC
 > from jamie@ .
 >
 > But this really is an rpcbind bug.
 >
 > --
 > Bjoern A. Zeeb                      The greatest risk is not taking one.
 >
 
 Hi Bjoern,
 
 I can confirm it now works again without editing the /etc/netconfig file,
 should we leave the p.r. open for reference to the rpcbind problem?
 
 Thanks,
 Rob Evers
 -- 
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting frowned upon?
 
Responsible-Changed-From-To: freebsd-jail->freebsd-bugs 
Responsible-Changed-By: bz 
Responsible-Changed-When: Mon Mar 2 19:20:13 UTC 2009 
Responsible-Changed-Why:  


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