
Код: Выделить всё
vpn1# kgdb /usr/src/sys/i386/compile/GENERIC/kernel.debug /var/crash/vmcore.1
[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".
Unread portion of the kernel message buffer:
Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address = 0x4
fault code = supervisor read, page not present
instruction pointer = 0x20:0x80492f07
stack pointer = 0x28:0xf07ad904
frame pointer = 0x28:0xf07ad97c
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 = 34 (dummynet)
trap number = 12
panic: page fault
cpuid = 0
Uptime: 1d16h13m28s
Physical memory: 3317 MB
Dumping 307 MB: 292 276 260 244 228 212 196 180 164 148 132 116 100 84 68 52 36 20 4
#0 doadump () at pcpu.h:195
195 __asm __volatile("movl %%fs:0,%0" : "=r" (td));
(kgdb) where
#0 doadump () at pcpu.h:195
#1 0x8066cff7 in boot (howto=260) at ../../../kern/kern_shutdown.c:409
#2 0x8066d2b9 in panic (fmt=Variable "fmt" is not available.
) at ../../../kern/kern_shutdown.c:563
#3 0x8094722c in trap_fatal (frame=0xf07ad8c4, eva=4) at ../../../i386/i386/trap.c:899
#4 0x80947490 in trap_pfault (frame=0xf07ad8c4, usermode=0, eva=4) at ../../../i386/i386/trap.c:812
#5 0x80947e12 in trap (frame=0xf07ad8c4) at ../../../i386/i386/trap.c:490
#6 0x8092e79b in calltrap () at ../../../i386/i386/exception.s:139
#7 0x80492f07 in nat_new (fin=0xf07ad9fc, np=0x89c56e00, natsave=0x0, flags=Variable "flags" is not available.
) at ../../../contrib/ipfilter/netinet/ip_nat.c:2577
#8 0x80496db3 in fr_checknatout (fin=0xf07ad9fc, passp=0xf07ad9f8) at ../../../contrib/ipfilter/netinet/ip_nat.c:3828
#9 0x8048a30f in fr_check (ip=0x8a526834, hlen=20, ifp=0x899a4000, out=1, mp=0xf07adae4)
at ../../../contrib/ipfilter/netinet/fil.c:2624
#10 0x8048c80f in fr_check_wrapper (arg=0x0, mp=0xf07adae4, ifp=0x899a4000, dir=2)
at ../../../contrib/ipfilter/netinet/ip_fil_freebsd.c:178
#11 0x80716d88 in pfil_run_hooks (ph=0x80a5bd00, mp=0xf07adb74, ifp=0x899a4000, dir=2, inp=0x0) at ../../../net/pfil.c:78
#12 0x80769392 in ip_output (m=0x8b663600, opt=0x0, ro=0xf07adb48, flags=1, imo=0x0, inp=0x0) at ../../../netinet/ip_output.c:438
#13 0x80766535 in ip_forward (m=0x8b663600, srcrt=0) at ../../../netinet/ip_input.c:1361
#14 0x80767a23 in ip_input (m=0x8b663600) at ../../../netinet/ip_input.c:610
#15 0x80715505 in netisr_dispatch (num=2, m=0x8b663600) at ../../../net/netisr.c:185
#16 0x807581e2 in dummynet_send (m=0x8b663600) at ../../../netinet/ip_dummynet.c:846
#17 0x80759796 in dummynet_task (context=0x0, pending=1) at ../../../netinet/ip_dummynet.c:822
#18 0x8069ca35 in taskqueue_run (queue=0x899f8780) at ../../../kern/subr_taskqueue.c:255
#19 0x8069cc3b in taskqueue_thread_loop (arg=0x80a5b550) at ../../../kern/subr_taskqueue.c:374
#20 0x8064bf59 in fork_exit (callout=0x8069cb80 <taskqueue_thread_loop>, arg=0x80a5b550, frame=0xf07add38)
---Type <return> to continue, or q <return> to quit---
at ../../../kern/kern_fork.c:781
#21 0x8092e810 in fork_trampoline () at ../../../i386/i386/exception.s:205
(kgdb)