Subject: Re: netbsd 2.99.9 panic on sparc64
To: Martin Husemann <martin@duskware.de>
From: Sean Davis <dive-nb@endersgame.net>
List: port-sparc64
Date: 10/03/2004 03:47:16
On Sun, Oct 03, 2004 at 09:38:49AM +0200, Martin Husemann wrote:
> On Sun, Oct 03, 2004 at 03:24:40AM -0400, Sean Davis wrote:
> > text_access_fault: pc=0 va=0
> > panic: kernel fault
> 
> Looks like a jump through a NULL function pointer.

I agree... trouble is, it won't write out a core. Anyway, I scripted it
booting a DEBUG kernel (only changes in the kernel were the addition of DDB,
DEBUG, makeoptions DEBUG="-g")

Here it is:

Program terminated
ok boot netbsd.test
Resetting ... 

Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 333MHz), No Keyboard
OpenBoot 3.31, 256 MB (60 ns) memory installed, Serial #10389508.
Ethernet address 8:0:20:9e:88:4, Host ID: 809e8804.



Initializing Memory
Boot device: /pci@1f,0/pci@1/scsi@1/disk@0,0:a  File and args: netbsd.test
NetBSD IEEE 1275 Bootblock
..>> NetBSD/sparc64 OpenFirmware Boot, Revision 1.8
>> (dive@eros.endersgame.net, Sat Oct  2 23:28:52 EDT 2004)
loadfile: reading header
elf64_exec: Booting /pci@1f,0/pci@1/scsi@1/disk@0,0:a/netbsd.test
<spinny stuff>
chain: calling OF_chain(800000, cb50, 1000000, fffa9a80, 18)
Loaded initial symtab at 0xfff34000, strtab at 0xfff56bc0, # entries 5857
consinit()
stdin node = f0061c64
stdout package = f0061c64
buffer @ 0x1c09d70
console is /pci@1f,0/pci@1,1/ebus@1/se@14,400000:a
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 2.99.9 (STARWAYS) #1: Sun Oct  3 03:34:02 EDT 2004
	dive@eros.endersgame.net:/misc/obj/bsdobj/netbsd-current/20041002/sparc64/sys/arch/sparc64/compile/STARWAYS
total memory = 256 MB
avail memory = 243 MB
bootpath: /pci@1f,0/pci@1,0/scsi@1,0/disk@0,0
mainbus0 (root): SUNW,Ultra-5_10: hostid 809e8804
cpu0 at mainbus0: SUNW,UltraSPARC-IIi @ 333 MHz, version 0 FPU
cpu0: 32K instruction (32 b/l), 16K data (32 b/l), 2048K external (64 b/l)
psycho0 at mainbus0 addr 0xfffc4000
SUNW,sabre: impl 0, version 0: ign 7c0 bus range 0 to 2; PCI bus 0
extent `psycho mem' (0x0 - 0xffffffff), flags = 0x0
     0x0 - 0x1ffff
extent `psycho io' (0x0 - 0xffffff), flags = 0x0
     0x0 - 0x3ff
DVMA map: c0000000 to e0000000
IOTSB: 43a000 to 4ba000
pci0 at psycho0
pci0: i/o space, memory space enabled
ppb0 at pci0 dev 1 function 1: vendor 0x108e product 0x5000 (rev. 0x11)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
ebus0 at pci1 dev 1 function 0
ebus0: vendor 0x108e product 0x1000, revision 0x01
auxio0 at ebus0 addr 726000-726003, 728000-728003, 72a000-72a003, 72c000-72c003, 72f000-72f003
power at ebus0 addr 724000-724003 ipl 37 not configured
SUNW,pll at ebus0 addr 504000-504002 not configured
sab0 at ebus0 addr 400000-40007f ipl 43: rev 3.2
sabtty0 at sab0 port 0: console i/o
sabtty1 at sab0 port 1
su at ebus0 addr 3083f8-3083ff ipl 41 not configured
su at ebus0 addr 3062f8-3062ff ipl 42 not configured
lpt0 at ebus0 addr 3043bc-3043cb, 30015c-30015d, 700000-70000f ipl 34
fdthree at ebus0 addr 3023f0-3023f7, 706000-70600f, 720000-720003 ipl 39 not configured
clock0 at ebus0 addr 0-1fff: mk48t59
flashprom at ebus0 addr 0-fffff not configured
SUNW,CS4231 at ebus0 addr 200000-2000ff, 702000-70200f, 704000-70400f, 722000-722003 ipl 35 ipl 36 not configured
hme0 at pci1 dev 1 function 1: Sun Happy Meal Ethernet, rev. 1
hme0: interrupting at ivec 3021
hme0: Ethernet address 08:00:20:9e:88:04
nsphy0 at hme0 phy 1: DP83840 10/100 media interface, rev. 1
nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vendor 0x1002 product 0x4754 (VGA display, revision 0x9a) at pci1 dev 2 function 0 not configured
cmdide0 at pci1 dev 3 function 0
cmdide0: CMD Technology PCI0646 (rev. 0x03)
cmdide0: bus-master DMA support present
cmdide0: primary channel configured to native-PCI mode
cmdide0: using ivec 1820 for native-PCI interrupt
atabus0 at cmdide0 channel 0
cmdide0: secondary channel configured to native-PCI mode
atabus1 at cmdide0 channel 1
ppb1 at pci0 dev 1 function 0: vendor 0x108e product 0x5000 (rev. 0x11)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled
ahc0 at pci2 dev 1 function 0: Adaptec 2940 Ultra SCSI adapter
ahc0: interrupting at ivec 10
ahc0: aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs
scsibus0 at ahc0: 16 targets, 8 luns per target
pcons at mainbus0 not configured
No counter-timer -- using %tick at 333MHz as system clock.
Using %tick -- intr in 3330000 cycles...done.
scsibus0: waiting 2 seconds for devices to settle...
text_access_fault: pc=0 va=0
kernel trap 64: +fast instruction access MMU miss
Stopped in pid 4.1 (atabus1) at 0:      undefined
db> t
wdc_drvprobe(20f64c8, 0, 359, 115ccd0, a, 1812c00) at netbsd:wdc_drvprobe+0x274
atabusconfig(2087680, 0, 1808198, 18738a8, 1, 18766f0) at netbsd:atabusconfig+0x
14
atabus_thread(2087680, 0, 359, 115ccd0, a, 0) at netbsd:atabus_thread+0x48
proc_trampoline(0, 0, 0, 0, 0, 0) at netbsd:proc_trampoline+0x4
db> sync
syncing disks... done
unmounting file systems... done
Frame pointer is at 0x810e6d1
Call traceback:
1134840(115f000, ffffffffffffffff, 0, 0, 810f0c8, 1, 810e791) fp = 810e791
1076ad0(100, 0, 0, 810fe7c, 8, 810f2f8, 810e851) fp = 810e851
1076308(0, 0, ffffffffffffffff, 810f1e0, 810f2f8, 4, 810e911) fp = 810e911
1075fb8(180dcf0, 0, 0, 0, 810f3d8, c1f83fe0, 810ea71) fp = 810ea71
1079de0(4, 0, 1, 78ee961, fffffffffffffffd, 0, 810eb51) fp = 810eb51
1143d04(0, 0, 0, 0, 1800000, 1000000, 810ec21) fp = 810ec21
1141c20(64, 810f690, 0, 115af38, 2, f, 810ece1) fp = 810ece1
1009138(810f690, 64, 0, 0, 0, 1fffee08b48, 810ede1) fp = 810ede1
1117bb4(20f6510, 810f870, fffffffffffffffa, 1, 810fb60, 1000000, 810efc1) fp = 810efc1
103b554(20f6510, 18, 810fb60, 6, fffffffffffffffd, 18766f0, 810f2b1) fp = 810f2b1
1117194(20f64c8, 0, 359, 115ccd0, a, 1812c00, 810f481) fp = 810f481
1117528(2087680, 0, 1808198, 18738a8, 1, 18766f0, 810f561) fp = 810f561
100b5b0(2087680, 0, 359, 115ccd0, a, 0, 810f621) fp = 810f621
0(0, 0, 0, 0, 0, 0, 0) fp = 0

dump to dev 7,1 not possible
rebooting

-Sean

--
/~\ The ASCII
\ / Ribbon Campaign                   Sean Davis
 X  Against HTML                       aka dive
/ \ Email!