Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 07 May 2005 15:57:11 +0300
From:      Erik Udo <erik.u@dnainternet.net>
To:        freebsd-hackers@freebsd.org
Subject:   Trouble with 5.4
Message-ID:  <427CBB27.4000201@dnainternet.net>

next in thread | raw e-mail | index | archive | help
I've had this problem with the latest releng_5_4 and releng_5.
They boot fine, but after kernel has loaded, it panics at the same
moment i press any keyboard button. My memory and keyboard has been
working fine and i dont they they are the cause.

So if i boot to single user mode, keyboard wont work.
If i boot normally, it starts all services etc..
at this point, before X is started(i have it in my ttys file)
it panics if i press any button. After X has started, it wont
panic.

I've cvsupped couple of times from cvsup5.freebsd.org to make sure
i didn't cvsup at a bad time. Then i proceeded to make buildworld,
make buildkernel and make installkernel. Then i've booted. This
happens on GENERIC kernel aswell my own.

My current working system is:
FreeBSD koti 5.3-STABLE FreeBSD 5.3-STABLE #3: Wed Jan 26 15:09:46 EET 
2005     erik@koti:/usr/obj/usr/src/sys/bsdkernel  i386

This kernel panic is reproducible. I have the memory dump
and kernel.debug which i've tried to debug. Here is some output:

Here is /etc/make.conf, i've tried with/without kernconf, cputype, and
O2 optimization.
KERNCONF=bsdkernel
CPUTYPE?=athlon-xp
CFLAGS+=-O -pipe
CXXFLAGS+=-O -pipe
COPTFLAGS+=-O -pipe
INET6=no

The panic:
Fatal trap 12: page fault while in kernel mode
fault virtual address = 0xae
fault code            = supervisor read, page not present
instruction pointer   = 0x8:0xae
stack pointer         = 0x10:0xd3f89ca4
frame pointer         = 0x10:0xd3f89cc0
code segment          = base 0x0, limit 0xfffff, type 0x1b
                       = DPL 0, pres 1, def32 1, gran 1
processor eflags      = interrupt enabled, resume, IOPL = 0
current process       = 12 (irq1: atkbd0)
trap number           = 12
panic: page fault
Uptime: 5s
Dumping 511 MB


Here is my attempt to debug it:
koti# kgdb kernel.debug vmcore.0
[GDB will not be able to debug user-mode threads: 
/usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"]
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 "i386-marcel-freebsd".
#0  doadump () at pcpu.h:159
159     pcpu.h: No such file or directory.
         in pcpu.h
(kgdb) backtrace
#0  doadump () at pcpu.h:159
#1  0xc04f4876 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:410
#2  0xc04f4b0c in panic (fmt=0xc0652f6a "%s")
     at /usr/src/sys/kern/kern_shutdown.c:566
#3  0xc062f5ac in trap_fatal (frame=0xd3f89c64, eva=174)
     at /usr/src/sys/i386/i386/trap.c:817
#4  0xc062f317 in trap_pfault (frame=0xd3f89c64, usermode=0, eva=174)
     at /usr/src/sys/i386/i386/trap.c:735
#5  0xc062ef59 in trap (frame=
       {tf_fs = 24, tf_es = 16, tf_ds = 16, tf_edi = 107, tf_esi = 
-1066574816, tf_ebp = -738681664, tf_isp = -738681712, tf_ebx = 
-1049888768, tf_edx = -1068366976, tf_ecx = -1066759068, tf_eax = 107, 
tf_trapno = 12, tf_err = 0, tf_eip = 174, tf_cs = 8, tf_eflags = 66050, 
tf_esp = -1067367967, tf_ss = 107})
     at /usr/src/sys/i386/i386/trap.c:425
#6  0xc061f12a in calltrap () at /usr/src/sys/i386/i386/exception.s:140
#7  0x00000018 in ?? ()
#8  0x00000010 in ?? ()
#9  0x00000010 in ?? ()
#10 0x0000006b in ?? ()
#11 0xc06d5c20 in sc_devclass ()
#12 0xd3f89cc0 in ?? ()
#13 0xd3f89c90 in ?? ()
#14 0xc16bf800 in ?? ()
f_ebp = -738681664, tf_isp = -738681712, tf_ebx = -1049888768, tf_edx = 
-1068366976, tf_ecx = -1066759068, tf_eax = 107, tf_trapno = 12, tf_err 
= 0, tf_eip = 174, tf_cs = 8, tf_eflags = 66050, tf_esp = -1067367967, 
tf_ss = 107})
     at /usr/src/sys/i386/i386/trap.c:425
#6  0xc061f12a in calltrap () at /usr/src/sys/i386/i386/exception.s:140
#7  0x00000018 in ?? ()
#8  0x00000010 in ?? ()
#9  0x00000010 in ?? ()
#10 0x0000006b in ?? ()
#11 0xc06d5c20 in sc_devclass ()
#12 0xd3f89cc0 in ?? ()
#13 0xd3f89c90 in ?? ()
#14 0xc16bf800 in ?? ()
#15 0xc0520380 in ttylclose () at /usr/src/sys/kern/tty.c:1567
#16 0xc0607a50 in atkbd_intr (kbd=0xc06d5c20, arg=0x0)
     at /usr/src/sys/dev/kbd/atkbd.c:461
#17 0xc06366b6 in atkbd_isa_intr (arg=0x0) at 
/usr/src/sys/isa/atkbd_isa.c:177
#18 0xc04e1189 in ithread_loop (arg=0xc1578c80)
     at /usr/src/sys/kern/kern_intr.c:547
#19 0xc04e041c in fork_exit (callout=0xc04e1038 <ithread_loop>,
     arg=0xc1578c80, frame=0xd3f89d48) at /usr/src/sys/kern/kern_fork.c:791
#20 0xc061f18c in fork_trampoline () at 
/usr/src/sys/i386/i386/exception.s:209

What should i do now?

Cheers, Erik.



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