Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 08 Dec 2000 13:11:16 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Wilko Bulte <wkb@freebie.demon.nl>
Cc:        Bill Paul <wpaul@FreeBSD.org>, alpha@FreeBSD.org
Subject:   Re: cvs commit: src/sys/alpha/conf GENERIC
Message-ID:  <XFMail.001208131116.jhb@FreeBSD.org>
In-Reply-To: <20001208212540.A750@freebie.demon.nl>

next in thread | previous in thread | raw e-mail | index | archive | help

On 08-Dec-00 Wilko Bulte wrote:
> On Fri, Dec 08, 2000 at 11:23:55AM -0800, John Baldwin wrote:
>> 
>> On 08-Dec-00 Wilko Bulte wrote:
>> > On Fri, Dec 08, 2000 at 11:00:04AM -0800, John Baldwin wrote:
>> >> [ moved to -alpha ]
>> >> 
>> >> On 08-Dec-00 Bill Paul wrote:
>> >> >> mx5# ifconfig tx0 10.0.0.1
>> >> >> 
>> >> >> fatal kernel trap:
>> >> >> 
>> >> >>     trap entry = 0x2 (memory management fault)
>> >> >>     a0         = 0x464000
>> >> >>     a1         = 0x1
>> >> >>     a2         = 0x0
>> >> >>     pc         = 0xfffffc000046b008
>> >> >>     ra         = 0xfffffc0000469dac
>> >> >>     curproc    = 0xfffffe00042f5e40
>> >> >>         pid = 206, comm = ifconfig
>> >> >> 
>> >> >> panic: trap
>> >> > 
>> >> > Hm. This doesn't look like an alignment problem. Unfortunately, I'd
>> >> > need
>> >> > an EPIC card to fix this, and I don't have one.
>> >> 
>> >> Looks like a NULL dereference.  ra is the offending address.  Wilko, if
>> >> you
>> >> have
>> >> a kernel.debug laying around, do a gdb -k kernel.debug /dev/mem and then
>> >> do
>> >> 'l *0xfffffc0000469dac' to get the source line associated with the panic.
>> 
>> Argh, ok.  ra is where the function was called.  Oops.  So now we know it is
>> in
>> the epic_init_rings() function.  Can you do a 'l *' on the pc address?  This
>> should give us the actual line it died on.
> 
> You mean this?

Yes, it looks like sc->rx_desc[i] (pointer arith ugly) is NULL.  I can't say
more w/o digging into the code though as I don't know how/when the RX
descriptors are set up.

-- 

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.001208131116.jhb>