Андрей писал(а):Не дебажится.
- Код: Выделить всё
nas# gdb /var/crash/vmcore.0
NAME
kgdb -- kernel debugger
SYNOPSIS
kgdb [-a | -f | -fullname] [-q | -quiet] [-v] [-w] [-d crashdir]
[-c core | -n dumpnr | -r device] [kernel [core]]
- Код: Выделить всё
kgdb /boot/kernel/kernel /var/crash/vmcore.0
затем
- Код: Выделить всё
bt
пример:
- Код: Выделить всё
#kgdb /boot/kernel/kernel /var/crash/vmcore.3
(kgdb) bt
#0 doadump () at pcpu.h:223
#1 0xffffffff8038a3f9 in boot (howto=260) at ../../../kern/kern_shutdown.c:416
#2 0xffffffff8038a82c in panic (fmt=0xffffffff805c7444 "%s") at ../../../kern/kern_shutdown.c:590
#3 0xffffffff8055eef8 in trap_fatal (frame=0xffffff0001590000, eva=Variable "eva" is not available.
) at ../../../amd64/amd64/trap.c:777
#4 0xffffffff8055f2c4 in trap_pfault (frame=0xffffff80724f2470, usermode=0) at ../../../amd64/amd64/trap.c:693
#5 0xffffffff8055fb0a in trap (frame=0xffffff80724f2470) at ../../../amd64/amd64/trap.c:451
#6 0xffffffff805454d3 in calltrap () at ../../../amd64/amd64/exception.S:223
#7 0xffffffff803e4f87 in m_copym (m=0x0, off0=2980, len=1480, wait=1) at ../../../kern/uipc_mbuf.c:542
#8 0xffffffff8046e357 in ip_fragment (ip=0xffffff0040992a58, m_frag=0xffffff80724f2688, mtu=Variable "mtu" is not available.
) at ../../../netinet/ip_output.c:819
[b]#9 0xffffffff8046f3bf in ip_output (m=0xffffff0040992a00, opt=Variable "opt" is not available.[/b]
) at ../../../netinet/ip_output.c:650
...
(kgdb) frame [b]9[/b]
#9 0xffffffff8046f3bf in ip_output (m=0xffffff0040992a00, opt=Variable "opt" is not available.
) at ../../../netinet/ip_output.c:650
650 error = ip_fragment(ip, &m, mtu, ifp->if_hwassist, sw_csum);
(kgdb) p /x *ip
$1 = {ip_hl = 0x5, ip_v = 0x4, ip_tos = 0x0, [b]ip_len = 0xdc05[/b], ip_id = 0xaa5d, ip_off = 0x20, ip_ttl = 0x7a, [b]ip_p = 0x1[/b], ip_sum = 0xeac0, ip_src = {
s_addr = [b]0x92aa1151[/b]}, ip_dst = {s_addr = [b]0x3ade553[/b]}}
(kgdb) x /s ifp.if_xname
0xffffff0040167828: "ng0"