Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 May 2001 17:56:38 +0000
From:      K Karthik <kar_alerts@mglorysb.com>
To:        Peter Pentchev <roam@orbitel.bg>
Cc:        freebsd-bugs@FreeBSD.ORG
Subject:   Re: i386/27280: netstat -rn prints "kvm_read: Bad Address"
Message-ID:  <01051217563801.01385@svr.mgsb.domain>
In-Reply-To: <200105121751.f4CHpnA01379@svr.mgsb.domain>
References:  <200105121751.f4CHpnA01379@svr.mgsb.domain>

next in thread | previous in thread | raw e-mail | index | archive | help
Patch worked well. Problem SOLVED.

Thank you very much.


On Saturday 12 May 2001 09:59, K Karthik wrote:
> ------- Start of forwarded message -------
> From: Peter Pentchev <roam@orbitel.bg>
> To: freebsd-bugs@FreeBSD.ORG
> Reply-To: Peter Pentchev <roam@orbitel.bg>
> Subject: Re: i386/27280: netstat -rn prints "kvm_read: Bad Address"
> Date: 12/05/2001 5:40:05 PM
>
> The following reply was made to PR i386/27280; it has been noted by GNATS.
>
> From: Peter Pentchev <roam@orbitel.bg>
> To: kar_alerts@mglorysb.com
> Cc: freebsd-gnats-submit@FreeBSD.org
> Subject: Re: i386/27280: netstat -rn prints "kvm_read: Bad Address"
> Date: Sat, 12 May 2001 12:34:14 +0300
>
>  On Sat, May 12, 2001 at 02:15:43AM -0700, kar_alerts@mglorysb.com wrote:
>  > >Number:         27280
>  > >Category:       i386
>  > >Synopsis:       netstat -rn prints "kvm_read: Bad Address"
>  > >Originator:     Karthik
>  > >Release:        4.3-STABLE
>  > >Organization:
>  >
>  > MGSB
>  >
>  > >Environment:
>  >
>  > FreeBSD svr.mgsb.domain 4.3-STABLE FreeBSD 4.3-STABLE #0: Fri May 11
>  > 22:41:02 GM T 2001     root@svr.mgsb.domain:/usr/src/sys/compile/SVRFW 
>  > i386
>  >
>  > >Description:
>  >
>  > when i give "netstat -rn", the system prints:
>  >
>  > inet4 section:
>  >
>  > *** -- message start -- ****
>  > Routing tables
>  >
>  > Internet:
>  > Destination        Gateway            Flags     Refs     Use     Netif
>  > Expire default            161.142.113.3      UGSc       54      993    
>  > tun0 127.0.0.1          127.0.0.1          UH          0      947     
>  > lo0 161.142.113.3      202.187.194.33     UH         52        0    
>  > tun0 192.168            link#1             UC          0        0     
>  > xl0 => netstat: kvm_read: Bad address
>  > 192.168.0.1        0:50:4:d2:ec:5     UHLW        2      918      lo0
>  > netstat: kvm_read: Bad address
>  > 192.168.0.101      0:10:a4:e8:45:3    UHLW        5   521930      xl0   
>  > 999 netstat: kvm_read: Bad address
>  > 192.168.0.102      0:0:b4:85:a2:f6    UHLW        0     1481      xl0   
>  > 610 netstat: kvm_read: Bad address
>  > 192.168.0.201      0:0:b4:9d:5:4a     UHLW        1     1473      xl0   
>  > 465 netstat: kvm_read: Bad address
>  > 192.168.0.202      0:50:4:b8:16:f3    UHLW        1  2015523      xl0   
>  >  55 netstat: kvm_read: Bad address
>  > 192.168.0.255      ff:ff:ff:ff:ff:ff  UHLWb       2       39      xl0
>  >
>  > *** -- message end -- ****
>  >
>  > please note the message "netstat: kvm_read: Bad address" in the above
>  > output.
>
>  Confirmed here, on a 4.3-STABLE system rebuilt yesterday.
>
>  Can you try the attached patch and see if it helps?
>
>  G'luck,
>  Peter
>
>  --
>  I've heard that this sentence is a rumor.
>
>  Index: src/usr.bin/netstat/route.c
>  ===================================================================
>  RCS file: /home/ncvs/src/usr.bin/netstat/route.c,v
>  retrieving revision 1.41.2.6
>  diff -u -r1.41.2.6 route.c
>  --- src/usr.bin/netstat/route.c	2001/05/10 08:26:46	1.41.2.6
>  +++ src/usr.bin/netstat/route.c	2001/05/12 09:33:20
>  @@ -591,7 +591,7 @@
>   	/*
>   	 * Don't print protocol-cloned routes unless -a.
>   	 */
>  -	if (rt->rt_flags & RTF_WASCLONED && !aflag) {
>  +	if (rt->rt_flags & RTF_WASCLONED && rt->rt_parent != NULL && !aflag) {
>   		kget(rt->rt_parent, parent);
>   		if (parent.rt_flags & RTF_PRCLONING)
>   			return;
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-bugs" in the body of the message
>
>
> -------- End of forwarded message --------

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01051217563801.01385>