И вот тут мой мог ничего не соображает. наверно сказывается вчерашняя травма шеи, не могу головой поворачивать в обще:
Код: Выделить всё
9:03 [kernel01]#make gdbinit
grep -v '# XXX' /usr/src/sys/../tools/debugscripts/dot.gdbinit | sed "s:MODPATH:/usr/obj/usr/src/sys/kernel01/modules:" > .gdbinit
cp /usr/src/sys/../tools/debugscripts/gdbinit.kernel /usr/obj/usr/src/sys/kernel01
cp /usr/src/sys/../tools/debugscripts/gdbinit.i386 /usr/obj/usr/src/sys/kernel01/gdbinit.machine
9:03 admin@zelenograd [kernel01]#kgdb kernel.debug /var/crash/vmcore.0
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 = 0xc
fault code = supervisor read, page not present
instruction pointer = 0x20:0xc08379ec
stack pointer = 0x28:0xe50d289c
frame pointer = 0x28:0xe50d28a4
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 = 37 (ath0 taskq)
trap number = 12
panic: page fault
cpuid = 0
Uptime: 38m2s
Physical memory: 1515 MB
Dumping 180 MB: 165 149 133 117 101 85 69 53 37 21 5
Reading symbols from /boot/kernel/if_tap.ko...Reading symbols from /boot/kernel/if_tap.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/if_tap.ko
Reading symbols from /boot/kernel/ng_bridge.ko...Reading symbols from /boot/kernel/ng_bridge.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/ng_bridge.ko
Reading symbols from /boot/kernel/wlan_xauth.ko...Reading symbols from /boot/kernel/wlan_xauth.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/wlan_xauth.ko
Reading symbols from /boot/kernel/wlan_acl.ko...Reading symbols from /boot/kernel/wlan_acl.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/wlan_acl.ko
Reading symbols from /boot/modules/kqemu.ko...done.
Loaded symbols for /boot/modules/kqemu.ko
Reading symbols from /boot/kernel/acpi.ko...Reading symbols from /boot/kernel/acpi.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/acpi.ko
Reading symbols from /boot/kernel/ng_pppoe.ko...Reading symbols from /boot/kernel/ng_pppoe.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/ng_pppoe.ko
#0 doadump () at pcpu.h:196
196 __asm __volatile("movl %%fs:0,%0" : "=r" (td));
Ready to go. Enter 'tr' to connect to the remote target
with /dev/cuad0, 'tr /dev/cuad1' to connect to a different port
or 'trf portno' to connect to the remote target with the firewire
interface. portno defaults to 5556.
Type 'getsyms' after connection to load kld symbols.
If you're debugging a local system, you can use 'kldsyms' instead
to load the kld symbols. That's a less obnoxious interface.
(kgdb) backtrace
#0 doadump () at pcpu.h:196
During symbol reading, Incomplete CFI data; unspecified registers at 0xc07e3343.
#1 0xc07e3a57 in boot (howto=0x104) at /usr/src/sys/kern/kern_shutdown.c:418
#2 0xc07e3d29 in panic (fmt=Variable "fmt" is not available.
) at /usr/src/sys/kern/kern_shutdown.c:574
#3 0xc0b0a29c in trap_fatal (frame=0xe50d285c, eva=0xc) at /usr/src/sys/i386/i386/trap.c:939
#4 0xc0b0a520 in trap_pfault (frame=0xe50d285c, usermode=0x0, eva=0xc) at /usr/src/sys/i386/i386/trap.c:852
#5 0xc0b0aecc in trap (frame=0xe50d285c) at /usr/src/sys/i386/i386/trap.c:530
#6 0xc0aef5db in calltrap () at /usr/src/sys/i386/i386/exception.s:159
During symbol reading, unsupported tag: 'DW_TAG_const_type'.
#7 0xc08379ec in sbsndptr (sb=0xc869e424, off=0x13d, len=0x5b4, moff=0xe50d2924)
at /usr/src/sys/kern/uipc_sockbuf.c:939
#8 0xc0954444 in tcp_output (tp=0xc6670cb0) at /usr/src/sys/netinet/tcp_output.c:798
#9 0xc0951845 in tcp_do_segment (m=0xc80c6d00, th=0xc819983c, so=0xc869e340, tp=0xc6670cb0, drop_hdrlen=0x28,
tlen=0x0) at /usr/src/sys/netinet/tcp_input.c:2358
#10 0xc09529b6 in tcp_input (m=0xc80c6d00, off0=0x14) at /usr/src/sys/netinet/tcp_input.c:846
#11 0xc08eb4d8 in ip_input (m=0xc80c6d00) at /usr/src/sys/netinet/ip_input.c:664
#12 0xc088d485 in netisr_dispatch (num=0x2, m=0xc80c6d00) at /usr/src/sys/net/netisr.c:185
#13 0xc08820b1 in ether_demux (ifp=0xc4a01400, m=0xc80c6d00) at /usr/src/sys/net/if_ethersubr.c:834
#14 0xc08824a3 in ether_input (ifp=0xc4a01400, m=0xc80c6d00) at /usr/src/sys/net/if_ethersubr.c:692
#15 0xc08a151d in ieee80211_deliver_data (ic=0xc4a2a22c, ni=0xc533c000, m=0xc80c6d00)
at /usr/src/sys/net80211/ieee80211_input.c:780
#16 0xc08a6bec in ieee80211_input (ic=0xc4a2a22c, m=0xc80c6d00, ni=0xc533c000, rssi=0xf, noise=0xffffffa0,
rstamp=0x4b9f) at /usr/src/sys/net80211/ieee80211_input.c:520
#17 0xc053915c in ath_rx_proc (arg=0xc4a2a000, npending=0x1) at /usr/src/sys/dev/ath/if_ath.c:3675
#18 0xc0818ce5 in taskqueue_run (queue=0xc4a28780) at /usr/src/sys/kern/subr_taskqueue.c:282
#19 0xc0818ef8 in taskqueue_thread_loop (arg=0xc4a2b674) at /usr/src/sys/kern/subr_taskqueue.c:401
#20 0xc07be509 in fork_exit (callout=0xc0818e30 <taskqueue_thread_loop>, arg=0xc4a2b674, frame=0xe50d2d38)
at /usr/src/sys/kern/kern_fork.c:810
#21 0xc0aef650 in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:264
(kgdb)
ну вот и сказочке конец, кто слушал, тот молодец.