From owner-freebsd-virtualization@FreeBSD.ORG Wed Oct 21 07:47:50 2009 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 271E21065672 for ; Wed, 21 Oct 2009 07:47:50 +0000 (UTC) (envelope-from jorn_rikkers@hotmail.com) Received: from col0-omc4-s8.col0.hotmail.com (col0-omc4-s8.col0.hotmail.com [65.55.34.210]) by mx1.freebsd.org (Postfix) with ESMTP id 0978F8FC1D for ; Wed, 21 Oct 2009 07:47:49 +0000 (UTC) Received: from COL104-W14 ([65.55.34.199]) by col0-omc4-s8.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 21 Oct 2009 00:35:48 -0700 Message-ID: X-Originating-IP: [212.178.200.29] From: Jorn Rikkers To: Date: Wed, 21 Oct 2009 07:35:48 +0000 Importance: Normal Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 21 Oct 2009 07:35:48.0223 (UTC) FILETIME=[1B7FA8F0:01CA5221] Subject: setting MROUTING option in kernel causes reboot on delete vimage X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Oct 2009 07:47:50 -0000 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 to continue=2C or q 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/=