sysctl -a crash on todays current

From: Larry Rosenman <ler_at_lerctr.org>
Date: Sat, 9 May 2009 10:23:25 -0500 (CDT)
I hit the following page-fault panic on todays -CURRENT, when running sysctl -a:
I have the core and kernel.


Script started on Sat May  9 10:20:26 2009
# kgdb /boot/kernel/kernel.symbols vmcore.4
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"...

Unread portion of the kernel message buffer:


Fatal trap 12: page fault while in kernel mode
cpuid = 1; apic id = 01
fault virtual address	= 0x0
fault code		= supervisor read data, page not present
instruction pointer	= 0x20:0xffffffff803b9996
stack pointer	        = 0x28:0xfffffffeb9f228d0
frame pointer	        = 0x28:0xfffffffeb9f228e0
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		= 1712 (sysctl)
trap number		= 12
panic: page fault
cpuid = 1
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2a
panic() at panic+0x182
trap_fatal() at trap_fatal+0x2ad
trap_pfault() at trap_pfault+0x294
trap() at trap+0x29a
calltrap() at calltrap+0x8
--- trap 0xc, rip = 0xffffffff803b9996, rsp = 0xfffffffeb9f228d0, rbp = 0xfffffffeb9f228e0 ---
strlcpy() at strlcpy+0x16
sysctl_kern_malloc_stats() at sysctl_kern_malloc_stats+0x20e
sysctl_root() at sysctl_root+0xfd
userland_sysctl() at userland_sysctl+0x14f
__sysctl() at __sysctl+0xaa
syscall() at syscall+0x246
Xfast_syscall() at Xfast_syscall+0xd0
--- syscall (202, FreeBSD ELF64, __sysctl), rip = 0x80073024c, rsp = 0x7fffffffd878, rbp = 0x2 ---
Uptime: 1h7m20s
Physical memory: 4084 MB
Dumping 535 MB: 520 504 488 472 456 440 424 408 392 376 360 344 328 312 296 280 264 248 232 216 200 184 168 152 136 120 104 88 72 56 40 24 8

Reading symbols from /boot/kernel/zfs.ko...Reading symbols from /boot/kernel/zfs.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/zfs.ko
Reading symbols from /boot/kernel/opensolaris.ko...Reading symbols from /boot/kernel/opensolaris.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/opensolaris.ko
Reading symbols from /boot/kernel/cpuctl.ko...Reading symbols from /boot/kernel/cpuctl.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/cpuctl.ko
Reading symbols from /boot/kernel/linux.ko...Reading symbols from /boot/kernel/linux.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/linux.ko
Reading symbols from /boot/modules/cpu.ko...done.
Loaded symbols for /boot/modules/cpu.ko
#0  doadump () at pcpu.h:223
223	pcpu.h: No such file or directory.
 	in pcpu.h
(kgdb) bt
#0  doadump () at pcpu.h:223
#1  0xffffffff8031f599 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:420
#2  0xffffffff8031f9ec in panic (fmt=Variable "fmt" is not available.
) at /usr/src/sys/kern/kern_shutdown.c:576
#3  0xffffffff8057c4cd in trap_fatal (frame=0xc, eva=Variable "eva" is not available.
) at /usr/src/sys/amd64/amd64/trap.c:845
#4  0xffffffff8057c8b4 in trap_pfault (frame=0xfffffffeb9f22820, usermode=0) at /usr/src/sys/amd64/amd64/trap.c:761
#5  0xffffffff8057d1ca in trap (frame=0xfffffffeb9f22820) at /usr/src/sys/amd64/amd64/trap.c:487
#6  0xffffffff80557e13 in calltrap () at /usr/src/sys/amd64/amd64/exception.S:223
#7  0xffffffff803b9996 in strlcpy (dst=0xfffffffeb9f22930 "", src=0x0, siz=Variable "siz" is not available.
) at /usr/src/sys/libkern/strlcpy.c:54
#8  0xffffffff8030e1ee in sysctl_kern_malloc_stats (oidp=Variable "oidp" is not available.
) at /usr/src/sys/kern/kern_malloc.c:808
#9  0xffffffff80328c4d in sysctl_root (oidp=Variable "oidp" is not available.
) at /usr/src/sys/kern/kern_sysctl.c:1514
#10 0xffffffff80328e9f in userland_sysctl (td=0x0, name=0xfffffffeb9f22ab0, namelen=2, old=0x0, oldlenp=0x7fffffffd920, inkernel=0, new=0x0, newlen=0, retval=0xfffffffeb9f22b18, flags=0)
     at /usr/src/sys/kern/kern_sysctl.c:1613
#11 0xffffffff8032906a in __sysctl (td=0xffffff004861cab0, uap=0xfffffffeb9f22c00) at /usr/src/sys/kern/kern_sysctl.c:1544
#12 0xffffffff8057cb26 in syscall (frame=0xfffffffeb9f22c90) at /usr/src/sys/amd64/amd64/trap.c:977
#13 0xffffffff805580a0 in Xfast_syscall () at /usr/src/sys/amd64/amd64/exception.S:364
#14 0x000000080073024c in ?? ()
Previous frame inner to this frame (corrupt stack?)
(kgdb) # ^D

Script done on Sat May  9 10:21:03 2009


-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 512-248-2683                 E-Mail: ler_at_lerctr.org
US Mail: 430 Valona Loop, Round Rock, TX 78681-3893
Received on Sat May 09 2009 - 13:33:53 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:47 UTC