Проблема с зависанием сервера

На доскональное знание данной темы, не может претендовать, пожалуй ни один спец, из ныне живущих на земле. ;-)
Так поможем друг другу.

Модераторы: Trinity admin`s, Free-lance moderator`s

dmp
Advanced member
Сообщения: 80
Зарегистрирован: 07 апр 2006, 13:42
Откуда: Troitsk

Сообщение dmp » 04 июл 2008, 11:38

Ребята сильно не пинайте если что не так, в такие бедри никогда не заходил :oops:

Код: Выделить всё

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) 

squirL
Advanced member
Сообщения: 114
Зарегистрирован: 11 апр 2006, 20:16
Откуда: Киев

Сообщение squirL » 04 июл 2008, 13:22

ну так и есть, судя по дампу, валится он именно из-за ipnat. почему именно - этого я вам так сходу не скажу, попробуйте отписаться в список рассылки FreeBSD, приложив ваш дамп.

а пока - меняйте ipnat на что-то более актуальное - pfnat или ipfw nat (НЕ через divert'ы, а новый, ядерный)

dmp
Advanced member
Сообщения: 80
Зарегистрирован: 07 апр 2006, 13:42
Откуда: Troitsk

Сообщение dmp » 04 июл 2008, 14:36

Большое спасибо за внимание к вопросу!

С наилучшими,
Дмитрий.

porutchik
member
Сообщения: 23
Зарегистрирован: 26 июл 2008, 17:00
Откуда: Москва

Сообщение porutchik » 26 июл 2008, 17:16

Не могу на эту платформу поставить FreeBSD 7.0 (насчет 6.3 не
==========
Все вырезано злобным модератором

Аватара пользователя
Stranger03
Сотрудник Тринити
Сотрудник Тринити
Сообщения: 12979
Зарегистрирован: 14 ноя 2003, 16:25
Откуда: СПб, Екатеринбург
Контактная информация:

Сообщение Stranger03 » 28 июл 2008, 09:48

"porutchik"
Коллега, слов бл.... не хватает. Вы правила умеете читать!!!!

dmp
Advanced member
Сообщения: 80
Зарегистрирован: 07 апр 2006, 13:42
Откуда: Troitsk

Сообщение dmp » 25 авг 2008, 16:30

Еще раз всех приветствую!
Перешел с ipnat на ipfwnat (не диверт). Сервер все же продолжает зависать. Хотя пингуется, но на консоль не реагирует. Зависает реже, но в самый неподходящий момент.

Код: Выделить всё

vpn3# kgdb /usr/src/sys/i386/compile/GENERIC/kernel.debug /var/crash/vmcore.5
[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   = 0x8
fault code              = supervisor read, page not present
instruction pointer     = 0x20:0x80756ed5
stack pointer           = 0x28:0xf07adc24
frame pointer           = 0x28:0xf07adc58
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: 2d3h15m7s
Physical memory: 3317 MB
Dumping 259 MB: 244 228 212 196 180 164 148 132 116 100 84 68 52 36 20 4

#0  doadump () at pcpu.h:195
195     pcpu.h: No such file or directory.
        in pcpu.h
(kgdb) where
#0  doadump () at pcpu.h:195
#1  0x8066c677 in boot (howto=260) at ../../../kern/kern_shutdown.c:409
#2  0x8066c939 in panic (fmt=Variable "fmt" is not available.
) at ../../../kern/kern_shutdown.c:563
#3  0x8094022c in trap_fatal (frame=0xf07adbe4, eva=8) at ../../../i386/i386/trap.c:899
#4  0x80940490 in trap_pfault (frame=0xf07adbe4, usermode=0, eva=8) at ../../../i386/i386/trap.c:812
#5  0x80940e12 in trap (frame=0xf07adbe4) at ../../../i386/i386/trap.c:490
#6  0x8092779b in calltrap () at ../../../i386/i386/exception.s:139
#7  0x80756ed5 in ready_event (q=0x8a74fe00, head=0xf07adc8c, tail=0xf07adc88) at ../../../netinet/ip_dummynet.c:537
#8  0x80758cd5 in dummynet_task (context=0x0, pending=1) at ../../../netinet/ip_dummynet.c:792
#9  0x8069c0b5 in taskqueue_run (queue=0x899f5900) at ../../../kern/subr_taskqueue.c:255
#10 0x8069c2bb in taskqueue_thread_loop (arg=0x80a47a10) at ../../../kern/subr_taskqueue.c:374
#11 0x8064b5d9 in fork_exit (callout=0x8069c200 <taskqueue_thread_loop>, arg=0x80a47a10, frame=0xf07add38)
    at ../../../kern/kern_fork.c:781
#12 0x80927810 in fork_trampoline () at ../../../i386/i386/exception.s:205
(kgdb) 

Ответить

Вернуться в «Серверы - ПО, Unix подобные системы»

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и 19 гостей