Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Oct 2012 09:48:38 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        Randy Bush <randy@psg.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: atkbd attach excitement during boot
Message-ID:  <201210010948.38713.jhb@freebsd.org>
In-Reply-To: <m2bogmqrd7.wl%randy@psg.com>
References:  <m2a9w7v3bs.wl%randy@psg.com> <201210010855.02130.jhb@freebsd.org> <m2bogmqrd7.wl%randy@psg.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday, October 01, 2012 9:00:36 am Randy Bush wrote:
> >> Fatal trap 12: page fault while in kernel mode
> >> cpuid = 0; apic id = 00
> >> fault virtual address   = 0x38
> >> fault code              = supervisor read data, page not present
> >> instruction pointer     = 0x20:0xffffffff80704740
> >> stack pointer           = 0x28:0xffffffff815336e0
> >> frame pointer           = 0x28:0xffffffff81533730
> >> code segment            = base 0x0, limit 0xfffff, type 0x1b
> >>                         = DPL 0, pres 1, long 1, def32 0, gran 1
> >> processor eflags        = interrupt enabled, resume, IOPL = 0
> >> current process         = 0 (swapper)
> >> trap number             = 12
> >> panic: page fault
> >> cpuid = 0
> >> KDB: stack backtrace:
> >> #0 0xffffffff809221d6 at kdb_backtrace+0x66
> >> #1 0xffffffff808ec40e at panic+0x1ce
> >> #2 0xffffffff80bd91a0 at trap_fatal+0x290
> >> #3 0xffffffff80bd94d8 at trap_pfault+0x1e8
> >> #4 0xffffffff80bd9ade at trap+0x3be
> >> #5 0xffffffff80bc33ff at calltrap+0x8
> >> #6 0xffffffff80be95fb at atkbd_intr+0xab
> > 
> > Can you run 'gdb /boot/kernel/kernel' and do 'l *atkbd_intr+0xab'?
> > 
> >> #7 0xffffffff80be9dd6 at atkbd_timeout+0x96
> >> #8 0xffffffff80be9e94 at atkbd_attach_unit+0xb4
> >> #9 0xffffffff80bea0c8 at atkbdattach+0x78
> 
> fbsd64.psg.com:/root# gdb /boot/kernel/kernel
> GNU gdb 6.1.1 [FreeBSD]
> Copyright 2004 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 "amd64-marcel-freebsd"...
> (gdb) l *atkbd_intr+0xab
> 0xffffffff80be95fb is in atkbd_intr (/usr/src/sys/dev/atkbdc/atkbd.c:512).
> 507                     do {
> 508                             c = atkbd_read_char(kbd, FALSE);
> 509                     } while (c != NOKEY);
> 510             }
> 511             return 0;
> 512     }

Humm.  It seems this wasn't the actual faulting instruction.  Can you do
'l *0xffffffff80704740'?

-- 
John Baldwin



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