Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Oct 2009 07:35:48 +0000
From:      Jorn Rikkers <jorn_rikkers@hotmail.com>
To:        <freebsd-virtualization@freebsd.org>
Subject:   setting MROUTING option in kernel causes reboot on delete vimage
Message-ID:  <COL104-W14BD522BAF9FEC567F51EDF6BF0@phx.gbl>

next in thread | raw e-mail | index | archive | help

Hi=2C

I'm trying to run a multicast simulation with CORE and XORP=2C using vimage=
. I've recompiled my kernel with the MROUTING option set. Unfortunately the=
 system crashes after deleting a vimage=2C even when remove it just after c=
reation. e.g

vimage -c e0_n0
vimage -d e0_n0
# system crash -> reboot

I've used the vimage_7_20090505.tgz source with the folowing build config f=
ile

#--------------------------
include=A0=A0=A0 GENERIC
ident=A0=A0=A0 =A0=A0=A0 CORE

options=A0=A0=A0 IPSEC
device=A0=A0=A0=A0=A0 crypto
options=A0=A0=A0 VIMAGE
options=A0=A0=A0 IPFIREWALL
options=A0=A0=A0 IPFIREWALL_DEFAULT_TO_ACCEPT=A0=A0=A0 #allow everything by=
 default
options=A0=A0=A0 MROUTING

nooptions=A0=A0=A0 SCTP
#--------------------------

I've tried to determine the cause by looking at the backtrace of the crash=
=2C but without success. Could somebody help me with this? See the backtrac=
e below.

thanks=2C

Jorn Rikkers=20


$ sudo kgdb kernel.debug /var/crash/vmcore.6
Password:
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation=2C Inc.
GDB is free software=2C covered by the GNU General Public License=2C and yo=
u are
welcome to change it and/or distribute copies of it under certain condition=
s.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.=A0 Type "show warranty" for detail=
s.
This GDB was configured as "i386-marcel-freebsd"...

Unread portion of the kernel message buffer:
<6>eth0: promiscuous mode disabled


Fatal trap 12: page fault while in kernel mode
cpuid =3D 0=3B apic id =3D 00
fault virtual address=A0=A0=A0 =3D 0x1c74
fault code=A0=A0=A0 =A0=A0=A0 =3D supervisor read=2C page not present
instruction pointer=A0=A0=A0 =3D 0x20:0xc091113d
stack pointer=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0 =3D 0x28:0xe7b9eb20
frame pointer=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0 =3D 0x28:0xe7b9eb44
code segment=A0=A0=A0 =A0=A0=A0 =3D base 0x0=2C limit 0xfffff=2C type 0x1b
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =3D DPL 0=2C pres 1=2C def32 1=2C gran 1
processor eflags=A0=A0=A0 =3D interrupt enabled=2C resume=2C IOPL =3D 0
current process=A0=A0=A0 =A0=A0=A0 =3D 3654 (vimage)
trap number=A0=A0=A0 =A0=A0=A0 =3D 12
panic: page fault
cpuid =3D 0
Uptime: 53m59s
Physical memory: 2034 MB
Dumping 179 MB: 164 148 132 116 100 84 68 52 36 20 4

Reading symbols from /boot/kernel/acpi.ko...Reading symbols from /boot/kern=
el/acpi.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/acpi.ko
Reading symbols from /boot/kernel/linux.ko...Reading symbols from /boot/ker=
nel/linux.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/linux.ko
Reading symbols from /usr/local/modules/fuse.ko...done.
Loaded symbols for /usr/local/modules/fuse.ko
Reading symbols from /boot/kernel/ng_socket.ko...Reading symbols from /boot=
/kernel/ng_socket.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/ng_socket.ko
Reading symbols from /boot/kernel/netgraph.ko...Reading symbols from /boot/=
kernel/netgraph.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/netgraph.ko
Reading symbols from /boot/kernel/ng_ether.ko...Reading symbols from /boot/=
kernel/ng_ether.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/ng_ether.ko
Reading symbols from /boot/kernel/ng_iface.ko...Reading symbols from /boot/=
kernel/ng_iface.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/ng_iface.ko
Reading symbols from /boot/kernel/ng_eiface.ko...Reading symbols from /boot=
/kernel/ng_eiface.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/ng_eiface.ko
Reading symbols from /boot/kernel/ng_ksocket.ko...Reading symbols from /boo=
t/kernel/ng_ksocket.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/ng_ksocket.ko
Reading symbols from /boot/kernel/ng_pipe.ko...Reading symbols from /boot/k=
ernel/ng_pipe.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/ng_pipe.ko
#0=A0 doadump () at pcpu.h:196
196=A0=A0=A0 =A0=A0=A0 __asm __volatile("movl %%fs:0=2C%0" : "=3Dr" (td))=
=3B
(kgdb) backtrace
#0=A0 doadump () at pcpu.h:196
#1=A0 0xc07e6ca7 in boot (howto=3D260) at ../../../kern/kern_shutdown.c:418
#2=A0 0xc07e6f79 in panic (fmt=3DVariable "fmt" is not available.
) at ../../../kern/kern_shutdown.c:574
#3=A0 0xc0ac8a4c in trap_fatal (frame=3D0xe7b9eae0=2C eva=3D7284)
=A0=A0=A0 at ../../../i386/i386/trap.c:939
#4=A0 0xc0ac8cd0 in trap_pfault (frame=3D0xe7b9eae0=2C usermode=3D0=2C eva=
=3D7284)
=A0=A0=A0 at ../../../i386/i386/trap.c:852
#5=A0 0xc0ac967c in trap (frame=3D0xe7b9eae0) at ../../../i386/i386/trap.c:=
530
#6=A0 0xc0aadd6b in calltrap () at ../../../i386/i386/exception.s:159
#7=A0 0xc091113d in X_ip6_mrouter_done () at ../../../netinet6/ip6_mroute.c=
:566
#8=A0 0xc08dfbfd in vnet_mroute_idetach (unused=3D0x0)
=A0=A0=A0 at ../../../netinet/ip_mroute.c:3150
#9=A0 0xc0802de9 in vnet_mod_destructor (vml=3D0x0)
=A0=A0=A0 at ../../../kern/kern_vimage.c:850
#10 0xc08041d2 in vi_td_ioctl (cmd=3D2352769381=2C vi_req=3D0xc655a000=2C=20
=A0=A0=A0 td=3D0xc6d1c240) at ../../../kern/kern_vimage.c:782
#11 0xc0884535 in ifioctl (so=3D0xc6f06d20=2C cmd=3D2352769381=2C=20
=A0=A0=A0 data=3D0xc655a000 "\002"=2C td=3D0xc6d1c240) at ../../../net/if.c=
:2141
#12 0xc08289d2 in soo_ioctl (fp=3D0xc6f00720=2C cmd=3D2352769381=2C data=3D=
0xc655a000=2C=20
=A0=A0=A0 active_cred=3D0xc6897500=2C td=3D0xc6d1c240) at ../../../kern/sys=
_socket.c:198
#13 0xc0821735 in kern_ioctl (td=3D0xc6d1c240=2C fd=3D3=2C com=3D2352769381=
=2C=20
=A0=A0=A0 data=3D0xc655a000 "\002") at file.h:269
#14 0xc0821894 in ioctl (td=3D0xc6d1c240=2C uap=3D0xe7b9ecfc)
---Type <return> to continue=2C or q <return> to quit---
=A0=A0=A0 at ../../../kern/sys_generic.c:571
#15 0xc0ac9025 in syscall (frame=3D0xe7b9ed38) at ../../../i386/i386/trap.c=
:1090
#16 0xc0aaddd0 in Xint0x80_syscall () at ../../../i386/i386/exception.s:255
#17 0x00000033 in ?? ()
Previous frame inner to this frame (corrupt stack?)
(kgdb)=20

 		 	   		 =20
_________________________________________________________________
RU Live de place to be voor Messengerfans
http://www.rulive.nl/=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?COL104-W14BD522BAF9FEC567F51EDF6BF0>