PANIC - kernconf.c? [a -current newbie writes]

From: Ben Paley <ben_at_spooty.net>
Date: Fri, 5 Mar 2004 00:12:02 +0000
Hello,

All new sources as of the evening of the 3rd. I get a kernel panic before 
login but after rc.conf turns dumping on, so I've got a core dump. Here's 
some output from gdb: I hope it's useful. Let me know what else to post if 
this isn't enough.

#####################################################################
<warranty stuff snipped>
panic: page fault
panic messages:
---
Fatal trap 12: page fault while in kernel mode
fault virtual address	= 0x29
fault code		= supervisor write, page not present
instruction pointer	= 0x8:0xc05e5f05
stack pointer	        = 0x10:0xd7654bf8
frame pointer	        = 0x10:0xd7654c04
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		= 474 (kldload)
trap number		= 12
panic: page fault
at line 819 in file /usr/src/sys/i386/i386/trap.c

syncing disks, buffers remaining... 3022 3022 3022 3022 3022 3022 3022 3022 
3022 3022 3022 3022 3022 3022 3022 ad1: WARNING - WRITE_DMA interrupt was 
seen but timeout fired LBA=768415
3022 3022 3022 3022 3022 
giving up on 2774 buffers
Uptime: 47s
Dumping 383 MB
 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 256 272 288 304 320 336 
352 368
---

warning: cannot find file for module rtc.ko

Error while mapping shared library sections:
rtc.ko: No such file or directory.
Reading symbols from /usr/obj/usr/src/sys/POTATO/modules/usr/src/sys/modules/
acpi/acpi.ko...done.
Loaded symbols for /usr/obj/usr/src/sys/POTATO/modules/usr/src/sys/modules/
acpi/acpi.ko
Reading symbols from /usr/obj/usr/src/sys/POTATO/modules/usr/src/sys/modules/
linprocfs/linprocfs.ko.debug...done.
Loaded symbols for /usr/obj/usr/src/sys/POTATO/modules/usr/src/sys/modules/
linprocfs/linprocfs.ko.debug
Reading symbols from /usr/obj/usr/src/sys/POTATO/modules/usr/src/sys/modules/
linux/linux.ko.debug...done.
Loaded symbols for /usr/obj/usr/src/sys/POTATO/modules/usr/src/sys/modules/
linux/linux.ko.debug
Reading symbols from /boot/kernel/warp_saver.ko...done.
Loaded symbols for /boot/kernel/warp_saver.ko
Error while reading shared library symbols:
rtc.ko: No such file or directory.
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:240
240		dumping++;
(kgdb) where
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:240
#1  0xc05ff47e in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:374
#2  0xc05ff6f7 in __panic () at /usr/src/sys/kern/kern_shutdown.c:552
#3  0xc0761b1c in trap_fatal (frame=0xd7654bb8, eva=41) at /usr/src/sys/i386/
i386/trap.c:819
#4  0xc0761853 in trap_pfault (frame=0xd7654bb8, usermode=0, eva=41) at /usr/
src/sys/i386/i386/trap.c:733
#5  0xc07614d5 in trap (frame=
      {tf_fs = -1067384808, tf_es = -1011286000, tf_ds = -1067384816, tf_edi = 
-1011274368, tf_esi = -1064728012, tf_ebp = -681227260, tf_isp = -681227292, 
tf_ebx = -1064728176, tf_edx = 1, tf_ecx = -681227312, tf_eax = -1064728140, 
tf_trapno = 12, tf_err = 2, tf_eip = -1067557115, tf_cs = 8, tf_eflags = 
66050, tf_esp = 0, tf_ss = -1011274312})
    at /usr/src/sys/i386/i386/trap.c:420
#6  0xc05e5f05 in make_dev (devsw=0xc3b92d80, minornr=0, uid=0, gid=0, 
perms=0, fmt=0xc3b91cf8 "rtc") at /usr/src/sys/kern/kern_conf.c:510
#7  0xc3b91ad3 in ?? ()
#8  0xc3b91b21 in ?? ()
#9  0xc05f7f92 in module_register_init (arg=0xc3b92db8) at /usr/src/sys/kern/
kern_module.c:108
#10 0xc05f38d9 in linker_file_sysinit (lf=0xc3b8fa00) at /usr/src/sys/kern/
kern_linker.c:192
#11 0xc05f3b8d in linker_load_file (filename=0xc37f9320 "/usr/local/modules/
rtc.ko", result=0xd7654cb0) at /usr/src/sys/kern/kern_linker.c:357
#12 0xc05f5be3 in linker_load_module (kldname=0xc37f9320 "/usr/local/modules/
rtc.ko", modname=0x0, parent=0x0, verinfo=0x0, lfpp=0xd7654cdc)
    at /usr/src/sys/kern/kern_linker.c:1670
#13 0xc05f4583 in kldload (td=0xc38ed000, uap=0x0) at /usr/src/sys/kern/
kern_linker.c:773
#14 0xc0761dab in syscall (frame=
      {tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = 0, tf_esi = -1077940560, 
tf_ebp = -1077940636, tf_isp = -681226892, tf_ebx = 0, tf_edx = -1077940564, 
tf_ecx = 2, tf_eax = 304, tf_trapno = 12, tf_err = 2, tf_eip = 671870127, 
tf_cs = 31, tf_eflags = 658, tf_esp = -1077940692, tf_ss = 47}) at /usr/src/
sys/i386/i386/trap.c:1008
#15 0x280becaf in ?? ()
---Can't read userspace from dump, or kernel process---

(kgdb) up 6
#6  0xc05e5f05 in make_dev (devsw=0xc3b92d80, minornr=0, uid=0, gid=0, 
perms=0, fmt=0xc3b91cf8 "rtc") at /usr/src/sys/kern/kern_conf.c:510
510		LIST_INSERT_HEAD(&devsw->d_devs, dev, si_list);
(kgdb) p &devsw
Can't take address of "devsw" which isn't an lvalue.
(kgdb) p &devsw      d_devs
No symbol "d_devs" in current context.
(kgdb) p d_devs 
$1 = 0xc0898990
(kgdb) p dev*
$2 = {si_flags = 5, si_atime = {tv_sec = 1078442981, tv_nsec = 904214000}, 
si_ctime = {tv_sec = 1078443014, tv_nsec = 0}, si_mtime = {tv_sec = 
1078443014, tv_nsec = 0}, 
  si_udev = 0, si_refcount = 4, si_list = {le_next = 0x1, le_prev = 
0xc083be24}, si_clone = {le_next = 0x0, le_prev = 0x0}, si_hash = {le_next = 
0xc0898438, 
    le_prev = 0xc089a9d4}, si_hlist = {slh_first = 0xc38f7820}, si_children = 
{lh_first = 0x0}, si_siblings = {le_next = 0x0, le_prev = 0x0}, si_parent = 
0x0, si_inode = 15, 
  si_name = 0xc0898a34 "rtc", si_drv1 = 0x0, si_drv2 = 0x0, si_devsw = 
0xc3b92d80, si_iosize_max = 65536, si_stripesize = 0, si_stripeoffset = 0, 
si_uid = 0, si_gid = 0, 
  si_mode = 420, si_usecount = 3, __si_u = {__si_tty = {__sit_tty = 0x0}, 
__si_disk = {__sid_mountpoint = 0x0, __sid_bsize_phys = 0, __sid_bsize_best = 
0, __sid_snapshots = {
        tqh_first = 0x0, tqh_last = 0xc0898a1c}, __sid_snaplistsize = 0, 
__sid_snapblklist = 0x0, __sid_copyonwrite = 0}}, __si_namebuf = "rtc\0ole", 
'\0' <repeats 56 times>}
(kgdb) p si_list
No symbol "si_list" in current context.
(kgdb) quit

#####################################################################
Received on Thu Mar 04 2004 - 15:13:17 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:46 UTC