Subject: Re: netbsd 2.99.9 panic on sparc64
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Sean Davis <dive@endersgame.net>
List: current-users
Date: 10/03/2004 13:03:42
On Sun, Oct 03, 2004 at 09:36:52AM -0400, Sean Davis wrote:
> On Sun, Oct 03, 2004 at 11:00:30AM +0200, Manuel Bouyer wrote:
> > On Sun, Oct 03, 2004 at 03:47:16AM -0400, Sean Davis wrote:
> > > 
> > > 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.
> > > 
> > > 
> > > [...]
> > > 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
> > 
> > could you find the line in the sources matching wdc_drvprobe+0x274 ?
> > gdb netbsd.gdb
> > l *(wdc_drvprobe+0x274)
> 
> (gdb) exec-file /netbsd.test
> (gdb) symbol-file netbsd.gdb
> Reading symbols from netbsd.gdb...done.
> (gdb) l *(wdc_drvprobe+0x274)
> 0x103b554 is in wdc_drvprobe
> (/misc/cvs/netbsd/current/src/sys/dev/ic/wdc.c:296).
> 291                     /* Shortcut in case we've been shutdown */
> 292                     if (chp->ch_flags & ATACH_SHUTDOWN)
> 293                             return;
> 294
> 295                     /* issue an identify, to try to detect ghosts */
> 296                     error = ata_get_params(&chp->ch_drive[i],
> 297                         AT_WAIT | AT_POLL, &params);
> 298                     if (error != CMD_OK) {
> 299                             tsleep(&params, PRIBIO, "atacnf", mstohz(1000));
> 300

Predictably enough, a kernel built without cmdide/atapibus/cd (no great loss
on an ultra 5) boots just fine, since there is never any atabus thread to
hang it. Just an FYI. Guess I'll leave IDE out of that kernel for now (not
that I ever use the cdrom anyway...)

-Sean

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