page fault in nd6_output()

Mohacsi Janos mohacsi at niif.hu
Tue May 27 08:39:11 UTC 2008


>Submitter-Id:	current-users
>Originator:	Mohacsi Janos
>Organization:	NIIF
>Confidential:	no 
>Synopsis:	page fault in nd6_output()
>Severity:	serious
>Priority:	medium
>Category:	kern
>Class:		sw-bug
>Release:	FreeBSD 6.3-STABLE i386
>Environment:
System: FreeBSD mignon.ki.iif.hu 6.3-STABLE FreeBSD 6.3-STABLE #12: Mon May 19 18:48:06 CEST 2008 root at mignon.ki.iif.hu:/usr/obj/usr/src/sys/MIGNON2 i386

>Description:
	Kernel panicked in nd6_output() function.

root at mignon# kgdb kernel.debug /var/crash/vmcore.1 
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:
kernel trap 12 with interrupts disabled


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address	= 0x104
fault code		= supervisor read, page not present
instruction pointer	= 0x20:0xc055cc65
stack pointer	        = 0x28:0xef85289c
frame pointer	        = 0x28:0xef8528b4
code segment		= base 0x0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, def32 1, gran 1
processor eflags	= resume, IOPL = 0
current process		= 30145 (sshd)
trap number		= 12
panic: page fault
cpuid = 0
Uptime: 4d5h35m21s
Dumping 1023 MB (2 chunks)
  chunk 0: 1MB (159 pages) ... ok
  chunk 1: 1023MB (261872 pages) 1007 991 975 959 943 927 911 895 879 863 847 831 815 799 783 767 751 735 719 703 687 671 655 639 623 607 591 575 559 543 527 511 495 479 463 447 431 415 399 383 367 351 335 319 303 287 271 255 239 223 207 191 175 159 143 127 111 95 79 63 47 31 15

Reading symbols from /boot/kernel/ispfw.ko...done.
Loaded symbols for /boot/kernel/ispfw.ko
Reading symbols from /boot/kernel/acpi.ko...done.
Loaded symbols for /boot/kernel/acpi.ko
Reading symbols from /boot/kernel/fdescfs.ko...done.
Loaded symbols for /boot/kernel/fdescfs.ko
Reading symbols from /boot/kernel/pflog.ko...done.
Loaded symbols for /boot/kernel/pflog.ko
Reading symbols from /boot/kernel/pf.ko...done.
Loaded symbols for /boot/kernel/pf.ko
Reading symbols from /boot/kernel/accf_http.ko...done.
Loaded symbols for /boot/kernel/accf_http.ko
Reading symbols from /boot/kernel/daemon_saver.ko...done.
Loaded symbols for /boot/kernel/daemon_saver.ko
#0  doadump () at pcpu.h:165
165		__asm __volatile("movl %%fs:0,%0" : "=r" (td));
(kgdb) bt
#0  doadump () at pcpu.h:165
#1  0xc056802d in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:410
#2  0xc05683de in panic (fmt=0xc0759e9a "%s")
    at /usr/src/sys/kern/kern_shutdown.c:566
#3  0xc0729180 in trap_fatal (frame=0xef85285c, eva=0)
    at /usr/src/sys/i386/i386/trap.c:838
#4  0xc0728865 in trap (frame=
      {tf_fs = -276496376, tf_es = -1067188184, tf_ds = -276496344, tf_edi = -939729920, tf_esi = 4, tf_ebp = -276485964, tf_isp = -276486008, tf_ebx = -987277284, tf_edx = 6, tf_ecx = 3, tf_eax = 1, tf_trapno = 12, tf_err = 0, tf_eip = -1068118939, tf_cs = 32, tf_eflags = 65538, tf_esp = -987277284, tf_ss = -991664924}) at /usr/src/sys/i386/i386/trap.c:270
#5  0xc071186a in calltrap () at /usr/src/sys/i386/i386/exception.s:139
#6  0xc055cc65 in _mtx_lock_sleep (m=0xc527581c, tid=3355237376, opts=0, 
    file=0x0, line=0) at /usr/src/sys/kern/kern_mutex.c:546
#7  0xc0642437 in nd6_output (ifp=0xc4c3e000, origifp=0x1, m0=0xc6c18300, 
    dst=0xc4e464dc, rt0=0xc5275840) at /usr/src/sys/netinet6/nd6.c:2008
#8  0xc063b712 in ip6_output (m0=0xef852a78, opt=0x0, ro=0xef852a78, flags=0, 
    im6o=0x0, ifpp=0x0, inp=0xc54ae2d0)
    at /usr/src/sys/netinet6/ip6_output.c:994
#9  0xc0619e31 in tcp_output (tp=0xc588acb0)
    at /usr/src/sys/netinet/tcp_output.c:1059
#10 0xc06225bb in tcp_usr_send (so=0xc589b000, flags=0, m=0xc7baaa00, nam=0x0, 
    control=0x0, td=0xc7fcdc00) at /usr/src/sys/netinet/tcp_usrreq.c:698
#11 0xc05ad5df in sosend (so=0xc589b000, addr=0x0, uio=0xef852cb0, 
    top=0xc7baaa00, control=0x0, flags=0, td=0xc7fcdc00)
    at /usr/src/sys/kern/uipc_socket.c:836
#12 0xc05992c7 in soo_write (fp=0x1, uio=0xef852cb0, active_cred=0xc5d60000, 
    flags=0, td=0xc7fcdc00) at /usr/src/sys/kern/sys_socket.c:118
#13 0xc05923da in dofilewrite (td=0xc7fcdc00, fd=1, fp=0xc59ffd38, 
    auio=0xef852cb0, offset=Unhandled dwarf expression opcode 0x93
) at file.h:253
#14 0xc059220b in kern_writev (td=0xc7fcdc00, fd=3, auio=0x1)
    at /usr/src/sys/kern/sys_generic.c:402
#15 0xc05920dd in write (td=0x1, uap=0x3)
    at /usr/src/sys/kern/sys_generic.c:326
#16 0xc0729567 in syscall (frame=
      {tf_fs = 134676539, tf_es = -1078001605, tf_ds = -1078001605, tf_edi = 134701160, tf_esi = 80, tf_ebp = -1077941848, tf_isp = -276484764, tf_ebx = 672000184, tf_edx = 134701160, tf_ecx = 3, tf_eax = 4, tf_trapno = 0, tf_err = 2, tf_eip = 674877415, tf_cs = 51, tf_eflags = 518, tf_esp = -1077941876, tf_ss = 59})
    at /usr/src/sys/i386/i386/trap.c:984
#17 0xc07118bf in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception.s:200
#18 0x00000033 in ?? ()
Previous frame inner to this frame (corrupt stack?)
(kgdb) quit
>How-To-Repeat:
	This crash occurs basically every 2-3 months since FreeBSD 6.x
>Fix:
	If you need more infromation about the crash and the kernel - I can provide you.



More information about the freebsd-net mailing list