Subject: port-sparc64/27118: sparc64 panic when adding loopback alias
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <carton@Ivy.NET>
List: netbsd-bugs
Date: 10/02/2004 21:57:19
>Number:         27118
>Category:       port-sparc64
>Synopsis:       sparc64 panic when adding loopback alias
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    port-sparc64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 02 21:58:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Miles Nordin
>Release:        NetBSD 2.0_BETA 2004-08-15
>Organization:
Ivy Ministries
>Environment:
	
	
System: NetBSD lucette 2.0_BETA NetBSD 2.0_BETA (LUCETTE-$Revision: 1.1 $) #1: Sat Oct 2 15:52:29 EDT 2004 carton@castrovalva:/scratch/src/sys/arch/sparc64/compile/LUCETTE sparc64
Architecture: sparc64
Machine: sparc64
>Description:
Script started on Thu Sep 30 06:47:00 2004
$ sudo cu -l ttyC1 -s 9600
Password:
Connected.

db> dmesg 0t400
ing bit
tlp1: receive error: CRC error
tlp1: receive error: dribbling bit
tlp1: receive error: CRC error
hfsccmd_add_filter: not a leaf class!
hfsccmd_add_filter: not a leaf class!
hfsccmd_add_filter: not a leaf class!
hfsccmd_add_filter: not a leaf class!
tlp1: receive error: CRC error
trap type 0x34: pc=1064e5c npc=1064e60 pstate=ffffffff99820006<PRIV,IE>
kernel trap 34: mem address not aligned
db> bt
pfxlist_onlink_check(3343980, 0, 0, ffffffff, e06fa50, ffffffffffffffff) at netb
sd:pfxlist_onlink_check+0x21c
in6_control(0, 8078691a, e06fc10, 306a058, 46ed600, 0) at netbsd:in6_control+0x4
34
ifioctl(4ad45d0, 8078691a, e06fc10, e114c30, 100a3ac, 0) at netbsd:ifioctl+0x150

sys_ioctl(8078691a, e06fdd0, e06fdc0, 0, e06fdd0, 0) at netbsd:sys_ioctl+0xf0
syscall(e06fed0, 36, 41132f1c, 41132f1c, e06fdd0, 41132f20) at netbsd:syscall+0x
130
?(f, 8078691a, ffffffffffffcc80, 198, 2aa115, ffffffffffffffff) at 0x1008cec
db> ps
 PID	       PPID	PGRP	    UID S   FLAGS LWPS		COMMAND	   WAIT
 26566	      12522    15997	      0 2    0x12    1		     sh
 12522	      15997    15997	      0 2  0x4002    1		     sh	 ppwait
 8234	       5590    16485	      0 2  0x4002    1		   more	  ttyin
 5590	      16485    16485	      0 2  0x4002    1		     sh	   wait
 16485	      26445    16485	      0 2  0x4002    1		  vtysh	   wait
 26445	       7467    26445	    405 2  0x4003    1		    ksh	  pause
 7467	       6101	7467	    405 2  0x4102    1		 owntty	   wait
 15997	      26162    15997	      0 2  0x4002    1		  vtysh	  netio
 26162	      29101    26162	    405 2  0x4003    1		    ksh	  pause
 29101	       6101    29101	    405 2  0x4102    1		 owntty	   wait
 6101		856	6101	    405 2	0    1	   screen-4.0.2	 select
 856	      24477	 856	    405 2  0x4002    1	   screen-4.0.2	  pause
 23752		  1    23752	      0 2   0x101    1		   bgpd	 select
 25167		  1    25167	      0 2   0x101    1		 ospf6d	 select
 3625		  1	3625	      0 2   0x101    1		  ospfd	 select
>How-To-Repeat:
This happened while I was adding an alias to the loopback interface 
during IPv6 renumbering.  zebra is listening to the routing socket for 
interface addr add/removes, too.  I'm not sure what caused it and I 
don't know how to repeat it on demand.
>Fix:
hard even to test fixes, and I didn't get a crash dump.  I'll report if 
it happens again with a dump, otherwise maybe just close the PR after 
a while.
>Release-Note:
>Audit-Trail:
>Unformatted:
 >24059		  1    24059	      0 2   0x101    1		  zebra
  1573	       1105	1105	     12 2  0x4100    1		 pickup	 select
  24477	      25717    24477	    405 2  0x4002    1		    ksh	  pause
  25717	      25420    25420	    405 2   0x100    1		   sshd	 select
  25420		 96    25420	      0 2   0x101    1		   sshd	  netio
  4963	      23839	4963	    602 2  0x4002    1		    ssh	 select
 -23839ore--   23700    23839	    602 2  0x4002    1		    ksh	  pause
  23700	       6381	6381	    602 2   0x100    1		   sshd	 select
  6381		 96	6381	      0 2	0    1		   sshd	  netio
  20497		  1    20497	      0 2	0    1		  altqd	 select
  22718	       1084	1084	      0 2  0x4000    1		telnetd	  netio
  16280		  1    16280	      0 2	0    1		  dhcpd	 select
  29274		  0	   0	      0 2 0x20200    1		  nfsio	 nfsidl
  28663		  0	   0	      0 2 0x20200    1		  nfsio	 nfsidl
  1072		  0	   0	      0 2 0x20200    1		  nfsio	 nfsidl
  29339		  0	   0	      0 2 0x20200    1		  nfsio	 nfsidl
  2799		  1	2799	      0 2  0x1000    1		 atalkd	 select
  295		  1	 295	      0 2  0x4002    1		  getty	  ttyin
  172		  1	 172	      0 2	0    1		   cron nanosle
  1084		  1	1084	      0 2	0    1		  inetd	 kqread
  568		  1	 568	     67 2	0    1		   ircd nanosle
  230	       1105	1105	     12 2  0x4100    1		   qmgr	 select
  1105		  1	1105	      0 2  0x4108    1		 master	 select
  96		  1	  96	      0 2	0    1		   sshd	 select
  886		  1	 886	      0 2	0    1		 rtadvd
  821		  1	 821	      0 2	0    1		  rarpd	 select
  860		  1	 860	     15 2   0x100    1		   ntpd	  pause
  479		  1	 479	      0 2	0    1	      mount_mfs	 mfsidl
  473		  1	 473	      0 2	0    1		rpcbind	   poll
 -468_more--	  1	 468	     14 2   0x500    3		  named	      *
  407		  1	 407	      0 2	0    1		  ipmon nanosle
  370		  1	 370	      0 2	0    1		syslogd
  307		  1	  16	      0 2  0x4002    1		choparp	 select
  15		  0	   0	      0 2 0x20200    1	       aiodoned aiodone
  14		  0	   0	      0 2 0x20200    1		ioflush	 syncer
  13		  0	   0	      0 2 0x20200    1	     pagedaemon pgdaemo
  12		  0	   0	      0 2 0x20200    1	     lfs_writer lfswrit
  11		  0	   0	      0 2 0x20200    1	      atapibus0	 sccomp
  10		  0	   0	      0 2 0x20200    1	       scsibus1	 sccomp
  9		  0	   0	      0 2 0x20200    1	       scsibus0	 sccomp
  8		  0	   0	      0 2 0x20200    1		   usb1	 usbevt
  7		  0	   0	      0 2 0x20200    1		atabus1	  atath
  6		  0	   0	      0 2 0x20200    1		atabus0	  atath
  5		  0	   0	      0 2 0x20200    1		usbtask	 usbtsk
  4		  0	   0	      0 2 0x20200    1		   usb0	 usbevt
  3		  0	   0	      0 2 0x20200    1		 sysmon smtaskq
  2		  0	   0	      0 2 0x20200    1	      cryptoret crypto_
  1		  0	   1	      0 2  0x4000    1		   init	   wait
  0		 -1	   0	      0 2 0x20200    1		swapper schedul
 db> reboot
 syncing disks... tlp3: receive ring overrun
 tlp2: receive ring overrun
 tlp1: receive ring overrun
 tlp0: receive ring overrun
 2 done
 rebooting
 
 Res
 LOM event: +19d+9h45m51s host reset
 etting ...
 
 
 Netra T1 200 (UltraSPARC-IIe 500MHz), No Keyboard
 OpenBoot 4.0, 1024 MB memory installed, Serial #51358277.
 Ethernet address 0:3:ba:f:aa:45, Host ID: 830faa45.