From owner-freebsd-hackers Sun May 26 23:49:51 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id XAA09153 for hackers-outgoing; Sun, 26 May 1996 23:49:51 -0700 (PDT) Received: from zibbi.mikom.csir.co.za (zibbi.mikom.csir.co.za [146.64.24.58]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id XAA09137 for ; Sun, 26 May 1996 23:49:28 -0700 (PDT) Received: (from rbezuide@localhost) by zibbi.mikom.csir.co.za (8.7.5/8.7.3) id IAA11537; Mon, 27 May 1996 08:48:51 +0200 (SAT) From: R Bezuidenhout Message-Id: <199605270648.IAA11537@zibbi.mikom.csir.co.za> Subject: Re: Panic: route add -net !! To: wollman@lcs.mit.edu (Garrett Wollman) Date: Mon, 27 May 1996 08:48:51 +0200 (SAT) Cc: hackers@freebsd.org In-Reply-To: <9605241548.AA27588@halloran-eldar.lcs.mit.edu> from Garrett Wollman at "May 24, 96 11:48:11 am" X-Mailer: ELM [version 2.4ME+ PL16 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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: locks: inits: sockaddrs: 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 # # # ########################################################################