Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 May 1996 08:48:51 +0200 (SAT)
From:      R Bezuidenhout <rbezuide@mikom.csir.co.za>
To:        wollman@lcs.mit.edu (Garrett Wollman)
Cc:        hackers@freebsd.org
Subject:   Re: Panic: route add -net !!
Message-ID:  <199605270648.IAA11537@zibbi.mikom.csir.co.za>
In-Reply-To: <9605241548.AA27588@halloran-eldar.lcs.mit.edu> from Garrett Wollman at "May 24, 96 11:48:11 am"

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Garrett


> > /etc/hosts
> > 12.12.12.12	ddd.csir.co.za	ddd
> > 13.13.13.0	ccc.csir.co.za	ccc
> 
> > duzi# route add -net ccc ddd
> 
> > This causes the system to panic.
> 
> This is clearly a bug, although how easy it may be to fix is unclear.
> It would be of considerable value if you could use the `-v' option to
> `route' so that it's possible to see precisely what is being sent down
> the routing socket.  And if you could compile with debugging, a
> backtrace (from either DDB or gdb on the core dump) would also be
> tremendously helpful.
> 
> This bug may actually be related to another one which was submitted
> some months ago.
> 

Kernel debug backtrace ....

duzi# gdb -k kernel.0 vmcore.0 
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.13 (i386-unknown-freebsd), 
Copyright 1994 Free Software Foundation, Inc...(no debugging symbols found)...
IdlePTD 1b2000
current pcb at 1a0e38
panic: page fault
#0  0xf0167d77 in boot ()
(kgdb) bt
#0  0xf0167d77 in boot ()
#1  0xf010d483 in panic ()
#2  0xf016ff2e in trap_fatal ()
#3  0xf016faa0 in trap_pfault ()
#4  0xf016f73f in trap ()
#5  0xf01656c1 in calltrap ()
#6  0xf0134637 in rtrequest ()
#7  0xf0134de9 in route_output ()
#8  0xf0133c02 in raw_usrreq ()
#9  0xf0134baa in route_usrreq ()
#10 0xf0117142 in sosend ()
#11 0xf010f6e5 in soo_write ()
#12 0xf010e856 in write ()
#13 0xf0170197 in syscall ()
#14 0xf016570b in Xsyscall ()
#15 0x2955 in ?? ()
#16 0x1a9d in ?? ()
#17 0x10d3 in ?? ()



I had to use gdb to get the -v option to print everything, otherwise
the system panics before it gets to print everything :)

(gdb) run -v add -net ddd 12.12.12.12
Starting program: /ns/admin/bugs/route -v add -net ddd 12.12.12.12
u: inet 146.64.54.20; u: inet 12.12.12.12; RTM_ADD: Add Route: len 124, pid: 0, seq 1, errno 0, flags:<UP,GATEWAY,STATIC>
locks:  inits: 
sockaddrs: <DST,GATEWAY>
 ddd.ac.za 12.12.12.12

### A Panic follows ###


With the route add that uses only IP numbers there is a extra entry NETMASK
in the list sockaddrs.



I hope this helps ... :)

Reinier



-- 
########################################################################
#                                                                      #
#   Reinier Bezuidenhout             Company: Mikomtek CSIR, ZA        #
#                                                                      #
#   Network Engineer - NetSec development team                         #
#                                                                      #
#   Current Projects: NetSec - Secure Platform firewall system         #
#                     http://www.mikom.csir.co.za                      #
#                                                                      #
#   E-mail: rbezuide@mikom.csir.co.za                                  #
#                                                                      #
########################################################################



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