NetBSD Problem Report #46528

From www@NetBSD.org  Sun Jun  3 03:11:06 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 1169563BEE1
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  3 Jun 2012 03:11:06 +0000 (UTC)
Message-Id: <20120603031105.7C37463BA27@www.NetBSD.org>
Date: Sun,  3 Jun 2012 03:11:05 +0000 (UTC)
From: piotr@durlej.net
Reply-To: piotr@durlej.net
To: gnats-bugs@NetBSD.org
Subject: kernel diagnostic assertion "rt != rt->rt_gwroute" failed: file "/usr/src/sys/net/route.c", line 860
X-Send-Pr-Version: www-1.0

>Number:         46528
>Category:       kern
>Synopsis:       kernel diagnostic assertion "rt != rt->rt_gwroute" failed: file "/usr/src/sys/net/route.c", line 860
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 03 03:15:00 +0000 2012
>Last-Modified:  Sun Jun 03 16:50:02 +0000 2012
>Originator:     Piotr Durlej
>Release:        6.0_BETA
>Organization:
>Environment:
NetBSD neo10.durlej.net 6.0_BETA NetBSD 6.0_BETA (GENERIC) i386
>Description:
System experienced a crash while routed(8) was updating the routing table.

Dmesg, backtrace, and the output of netstat -nrM are available at http://www.durlej.net/nbsd-routed-crash.
>How-To-Repeat:

>Fix:

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/46528: kernel diagnostic assertion "rt != rt->rt_gwroute" failed: file "/usr/src/sys/net/route.c", line 860
Date: Sun, 3 Jun 2012 11:52:25 +0200

 Sounds like a bug in routed to me:

 Internet:
 Destination        Gateway            Flags    Refs      Use    Mtu Interface
 [..]
 192.168.254.21     192.168.254.21     UH          0        0  33192  lo0 =>


 Not nice of the kernel to crash, I would suggest to replace the KASSERT
 with an if and return EINVAL or something.

 Martin

From: Piotr Durlej <piotr@durlej.net>
To: gnats-bugs@NetBSD.org
Cc: Martin Husemann <martin@duskware.de>, kern-bug-people@netbsd.org,
        gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: kern/46528: kernel diagnostic assertion "rt != rt->rt_gwroute"
 failed: file "/usr/src/sys/net/route.c", line 860
Date: Sun, 03 Jun 2012 12:28:13 +0200

 Martin Husemann wrote:
 > The following reply was made to PR kern/46528; it has been noted by GNATS.
 >
 > From: Martin Husemann<martin@duskware.de>
 > To: gnats-bugs@NetBSD.org
 > Cc:
 > Subject: Re: kern/46528: kernel diagnostic assertion "rt != rt->rt_gwroute" failed: file "/usr/src/sys/net/route.c", line 860
 > Date: Sun, 3 Jun 2012 11:52:25 +0200
 >
 >   Sounds like a bug in routed to me:
 >
 >   Internet:
 >   Destination        Gateway            Flags    Refs      Use    Mtu Interface
 >   [..]
 >   192.168.254.21     192.168.254.21     UH          0        0  33192  lo0 =>
 >
 >
 >   Not nice of the kernel to crash, I would suggest to replace the KASSERT
 >   with an if and return EINVAL or something.
 >
 >   Martin
 >
 >

 The lo0 route was created as a result of adding an alias to the lo0 
 interface.

 What I wanted to accomplish was to have routed(8) -m advertise a host 
 route to this address.

 neo10$ netstat -rnf inet|fgrep lo
 127/8              127.0.0.1          UGRS        0        0  33192  lo0
 127.0.0.1          127.0.0.1          UH          0        8  33192  lo0
 192.168.254.21     192.168.254.21     UH          0        0  33192  lo0
 neo10$ cat /etc/ifconfig.lo0
 inet 127.0.0.1 netmask 255.0.0.0
 !ifconfig lo0 alias 192.168.254.21/32
 neo10$ ifconfig lo0
 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33192
          inet 192.168.254.21 netmask 0xffffffff
          inet alias 127.0.0.1 netmask 0xff000000
          inet6 ::1 prefixlen 128
          inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
 neo10$

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.