From nobody@FreeBSD.org  Sun Jan 28 01:48:56 2001
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 25B6F37B699
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 28 Jan 2001 01:48:56 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f0S9mud73448;
	Sun, 28 Jan 2001 01:48:56 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200101280948.f0S9mud73448@freefall.freebsd.org>
Date: Sun, 28 Jan 2001 01:48:56 -0800 (PST)
From: pekkas@netcore.fi
To: freebsd-gnats-submit@FreeBSD.org
Subject: map-mbone segfaults at getsockname
X-Send-Pr-Version: www-1.0

>Number:         24691
>Category:       bin
>Synopsis:       map-mbone segfaults at getsockname
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 28 01:50:01 PST 2001
>Closed-Date:    Sun Jul 13 00:51:56 PDT 2003
>Last-Modified:  Sun Jul 13 00:51:56 PDT 2003
>Originator:     Pekka Savola
>Release:        4.2-RELEASE
>Organization:
Netcore
>Environment:
FreeBSD sixpack.csc.fi 4.2-RELEASE FreeBSD 4.2-RELEASE #0: Mon Nov 20 13:02:55 GMT 2000     jkh@bento.FreeBSD.org:/usr/src/sys/compile/GENERIC  i386

>Description:
sixpack# map-mbone
warning - inconsistent metric/threshold for neighbor 0.0.0.0 of 128.214.231.22
warning - inconsistent metric/threshold for neighbor 0.0.0.0 of 212.226.250.2
warning - inconsistent metric/threshold for neighbor 0.0.0.0 of 193.94.248.145
warning - inconsistent metric/threshold for neighbor 0.0.0.0 of 130.230.1.1
warning - inconsistent metric/threshold for neighbor 0.0.0.0 of 130.230.1.1
warning - inconsistent metric/threshold for neighbor 0.0.0.0 of 130.230.1.1
warning - inconsistent metric/threshold for neighbor 0.0.0.0 of 130.230.1.1
warning - inconsistent metric/threshold for neighbor 0.0.0.0 of 130.230.1.1
warning - inconsistent metric/threshold for neighbor 0.0.0.0 of 130.230.1.1
Segmentation fault (core dumped)


# map-mbone -d 3
[snip dozens of lines]
SENT neighbor request 2 from 193.166.3.140   to 130.230.103.10
RECV neighbor list 2    from 193.10.252.94   to 193.166.3.140
warning - inconsistent metric/threshold for neighbor 0.0.0.0 of 193.10.252.94
SENT neighbor request   from 193.166.3.140   to 130.225.244.238
Bus error (core dumped)


The system is directly connected to mbone and 6bone.

Running 'gdb /usr/sbin/map-mbone map-mbone.core', it seems it crashed
at getsockname().  There is only one getsockname in mapper.c.

I believe this might only happen if you have IPv6 in use.



>How-To-Repeat:
See above.

>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: kris 
State-Changed-When: Sat Jul 12 22:48:59 PDT 2003 
State-Changed-Why:  
Does this persist in later releases?  If yes, please 
rebuild map-mbone and libc with debugging symbols: 
CFLAGS=-O -pipe -ggdb 
STRIP= 

and obtain a full traceback from gdb. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=24691 
State-Changed-From-To: feedback->closed 
State-Changed-By: kris 
State-Changed-When: Sun Jul 13 00:51:39 PDT 2003 
State-Changed-Why:  
Submitter reports the bug can no longer be reproduced. 

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