From nobody@FreeBSD.org  Wed Mar 27 17:40:33 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 4997437B41E
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 27 Mar 2002 17:40:16 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g2S1eGE99269;
	Wed, 27 Mar 2002 17:40:16 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200203280140.g2S1eGE99269@freefall.freebsd.org>
Date: Wed, 27 Mar 2002 17:40:16 -0800 (PST)
From: "George V. Neville-Neil" <gnn@neville-neil.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: netstat crashes when trying to display AF_LOCAL (i.e UNIX) sockets
X-Send-Pr-Version: www-1.0

>Number:         36400
>Category:       bin
>Synopsis:       netstat crashes when trying to display AF_LOCAL (i.e UNIX) sockets
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 27 17:50:01 PST 2002
>Closed-Date:    Fri Aug 09 09:54:14 PDT 2002
>Last-Modified:  Fri Aug 09 09:54:14 PDT 2002
>Originator:     George V. Neville-Neil
>Release:        4.5-STABLE (CVSupped March 17th)
>Organization:
Neville-Neil Consulting
>Environment:
FreeBSD jchurch.neville-neil.com 4.5-STABLE FreeBSD 4.5-STABLE #3: Sun Mar 17 23:00:31 PST 2002     gnn@jchurch.neville-neil.com:/usr/local/src-STABLE/src/sys/compile/JCHURCH  i386

>Description:
After I have started xdm and X11 (XFree86 4.2) on my machine
I can no longer get information on LOCAL (i.e. UNIX) domain sockets because
netstat seg faults.  I have built a version with debugging and traced this down to
the printf() call on line 149 of unix.c in -STABLE (the same line occurs in -CURRENT).
It would seem that the xsocket data structure passed to printf causes it to
barf.

>How-To-Repeat:
Run XFree86 4.2
Run netstat by itself
See sparks fly.

>Fix:
     
>Release-Note:
>Audit-Trail:

From: Thomas Quinot <thomas@cuivre.fr.eu.org>
To: "George V. Neville-Neil" <gnn@neville-neil.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/36400: netstat crashes when trying to display AF_LOCAL (i.e UNIX) sockets
Date: Thu, 28 Mar 2002 10:54:18 +0100

 Le 2002-03-28, George V. Neville-Neil crivait :
 
 > >Synopsis:       netstat crashes when trying to display AF_LOCAL (i.e UNIX) sockets
 
 I had the same problem recently on a -STABLE box where I had upgraded
 only the kernel. Have you tried a make world?
 
 -- 
     Thomas.Quinot@Cuivre.FR.EU.ORG
State-Changed-From-To: open->feedback 
State-Changed-By: cjc 
State-Changed-When: Thu Mar 28 12:27:31 PST 2002 
State-Changed-Why:  
I am unable to reproduce this on -CURRENT or -STABLE. As previously 
requested, are your kernel and userland in sync? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36400 
State-Changed-From-To: feedback->closed 
State-Changed-By: schweikh 
State-Changed-When: Fri Aug 9 09:52:53 PDT 2002 
State-Changed-Why:  
Not reproducible + feedback timeout. 

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