Bug 17657

Summary: 4.0-RELEASE routed cores with GENERIC kernel
Product: Base System Reporter: m.seaman <m.seaman>
Component: binAssignee: shin
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-STABLE   
Hardware: Any   
OS: Any   

Description m.seaman 2000-03-29 09:50:00 UTC
I only noticed this after the fact, but I guess it's reproducible.  It
seems that routed will segfault after about 5 minutes.  This was a
freshly installed 4.0-RELEASE system with the GENERIC kernel, before
I'd had a chance to finish cvsup'ing to 4.0-STABLE and re-compile the
kernel.

cannon-st:/home/local:# gdb -c /routed.core 
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or 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.
This GDB was configured as "i386-unknown-freebsd".
Core was generated by `routed'.
Program terminated with signal 11, Segmentation fault.
#0  0x8050887 in ?? ()
(gdb) where
#0  0x8050887 in ?? ()
#1  0x80541bf in ?? ()
#2  0x804c209 in ?? ()
#3  0x80480f9 in ?? ()
(gdb) q

from /var/log/messages

[Booting as normal...]
Mar 28 11:40:39 cannon-st /kernel: ad0: 6485MB <Maxtor 90680D4> [13176/16/63] at
 ata0-master using UDMA33
Mar 28 11:40:39 cannon-st /kernel: acd0: CDROM <Pioneer CD-ROM ATAPI Model DR-74
4 0102> at ata1-master using PIO4
Mar 28 11:40:39 cannon-st /kernel: Mounting root from ufs:/dev/ad0s1a
Mar 28 11:40:39 cannon-st /kernel: de0: starting DAD for fe80:0001::02c0:f0ff:fe
1f:5c87
Mar 28 11:40:39 cannon-st /kernel: de0: DAD complete for fe80:0001::02c0:f0ff:fe
1f:5c87 - no duplicates found
Mar 28 11:40:34 cannon-st ntpdate[81]: step time server 192.168.122.3 offset -5.
210562 sec
Mar 28 11:40:45 cannon-st login: ROOT LOGIN (root) ON ttyv0
Mar 28 11:45:33 cannon-st routed[67]: rnh_deladdr() failed
Mar 28 11:45:33 cannon-st /kernel: pid 67 (routed), uid 0: exited on signal 11 (
core dumped)

Our local network is strictly IPv4 at the moment.

Fix: 

After stripping out "options INET6" from the kernel, routed appears to
be operating as advertised.
How-To-Repeat: 
/usr/sbin/routed -q
Comment 1 Sheldon Hearn freebsd_committer freebsd_triage 2000-03-29 12:04:28 UTC
Responsible Changed
From-To: freebsd-bugs->shin

Inoue-san, could you take a look at this one? 
Comment 2 shin freebsd_committer freebsd_triage 2000-04-03 01:35:23 UTC
State Changed
From-To: open->closed

The patches are already applied. Thanks!