Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Mar 2014 16:06:19 GMT
From:      Arrigo Marchiori <ardovm@yahoo.it>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/187580: emulators/virtualbox-ose panic when starting virtual machine on 9.2-STABLE
Message-ID:  <201403141606.s2EG6J9L029563@cgiserv.freebsd.org>
Resent-Message-ID: <201403141610.s2EGA0hk048308@freefall.freebsd.org>

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

>Number:         187580
>Category:       ports
>Synopsis:       emulators/virtualbox-ose panic when starting virtual machine on 9.2-STABLE
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 14 16:10:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Arrigo Marchiori
>Release:        9-STABLE
>Organization:
>Environment:
# uname -a
FreeBSD myhost 9.2-STABLE FreeBSD 9.2-STABLE #65 r263155: Fri Mar 14 09:19:25 CET 2014     root@myhost:/usr/obj/usr/src/sys/GENERIC  i386


# svn info /usr/ports | grep Revision
Revision: 348157


# cat /etc/make.conf
CPUTYPE?=athlon64
CFLAGS= -O2 -fno-strict-aliasing -pipe
COPTFLAGS= -O -pipe
BOOTWAIT=2000
SVN_UPDATE=yes
DOC_LANG=       en_US.ISO8859-1
LOCALIZED_LANG=it
WITH_WIDE_CHARS=yes
QT4_OPTIONS= CUPS
WITH_NEW_XORG=yes
WITH_GALLIUM=yes
PORTS_MODULES=emulators/virtualbox-ose-kmod


# cat /var/db/ports/emulators_virtualbox-ose/options 
# This file is auto-generated by 'make config'.
# Options for virtualbox-ose-4.3.6
_OPTIONS_READ=virtualbox-ose-4.3.6
_FILE_COMPLETE_OPTIONS_LIST=DBUS DEBUG GUESTADDITIONS NLS PULSEAUDIO PYTHON QT4 UDPTUNNEL VDE VNC VPX WEBSERVICE X11
OPTIONS_FILE_SET+=DBUS
OPTIONS_FILE_UNSET+=DEBUG
OPTIONS_FILE_SET+=GUESTADDITIONS
OPTIONS_FILE_SET+=NLS
OPTIONS_FILE_UNSET+=PULSEAUDIO
OPTIONS_FILE_SET+=PYTHON
OPTIONS_FILE_SET+=QT4
OPTIONS_FILE_SET+=UDPTUNNEL
OPTIONS_FILE_UNSET+=VDE
OPTIONS_FILE_SET+=VNC
OPTIONS_FILE_UNSET+=VPX
OPTIONS_FILE_UNSET+=WEBSERVICE
OPTIONS_FILE_SET+=X11


# cat /var/db/ports/emulators_virtualbox-ose-kmod/options                                                           
# This file is auto-generated by 'make config'.
# Options for virtualbox-ose-kmod-4.3.8
_OPTIONS_READ=virtualbox-ose-kmod-4.3.8
_FILE_COMPLETE_OPTIONS_LIST=DEBUG VIMAGE
OPTIONS_FILE_UNSET+=DEBUG
OPTIONS_FILE_SET+=VIMAGE
>Description:
Panic when trying to start a virtual machine under the latest VirtualBox, on up-to-date world and up-to-date ports.

kgdb session follows.


# 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:
panic: vm_page_insert: page already inserted
cpuid = 3
KDB: stack backtrace:
#0 0xc0adbaaf at kdb_backtrace+0x4f
#1 0xc0aa1e9f at panic+0x16f
#2 0xc0d38cca at vm_page_insert+0x2a
#3 0xc1668bf8 at rtR0MemObjFreeBSDContigPhysAllocHelper+0xe8
#4 0xc1668d5d at rtR0MemObjFreeBSDPhysAllocHelper+0x10d
#5 0xc166904a at rtR0MemObjFreeBSDAllocHelper+0xca
#6 0xc1669131 at rtR0MemObjNativeAllocCont+0x61
#7 0xc91d2e5b at _end+0xc98a43
#8 0xc91c26bb at _end+0xc882a3
#9 0xc91d84fc at _end+0xc9e0e4
#10 0xc165157d at supdrvIOCtl+0x29ad
#11 0xc16565fe at VBoxDrvFreeBSDIOCtl+0x1fe
#12 0xc0978eea at devfs_ioctl_f+0x10a
#13 0xc0aee6a0 at kern_ioctl+0x2a0
#14 0xc0aee7ff at sys_ioctl+0x12f
#15 0xc0f66ce3 at syscall+0x443
#16 0xc0f50771 at Xint0x80_syscall+0x21
Uptime: 4m11s
Physical memory: 3051 MB
Dumping 189 MB: (CTRL-C to abort)  174 158 142 126 110 94 78 62 46 30 14

Reading symbols from /boot/modules/vboxdrv.ko...done.
Loaded symbols for /boot/modules/vboxdrv.ko
Reading symbols from /boot/kernel/fdescfs.ko...Reading symbols from /boot/kernel/fdescfs.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/fdescfs.ko
Reading symbols from /boot/modules/vboxnetflt.ko...done.
Loaded symbols for /boot/modules/vboxnetflt.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/modules/vboxnetadp.ko...done.
Loaded symbols for /boot/modules/vboxnetadp.ko
Reading symbols from /boot/kernel/linux.ko...Reading symbols from /boot/kernel/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/radeon.ko...Reading symbols from /boot/kernel/radeon.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/radeon.ko
Reading symbols from /boot/kernel/drm.ko...Reading symbols from /boot/kernel/drm.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/drm.ko
#0  doadump (textdump=1) at pcpu.h:249
249		__asm("movl %%fs:%1,%0" : "=r" (td)
(kgdb) bt
#0  doadump (textdump=1) at pcpu.h:249
#1  0xc0aa1bee in kern_reboot (howto=260)
    at /usr/src/sys/kern/kern_shutdown.c:454
#2  0xc0aa1ee5 in panic (fmt=<value optimized out>)
    at /usr/src/sys/kern/kern_shutdown.c:642
#3  0xc0d38cca in vm_page_insert (m=0xc435b598, object=0xc91b1818, pindex=Unhandled dwarf expression opcode 0x93
)
    at /usr/src/sys/vm/vm_page.c:915
#4  0xc1668bf8 in rtR0MemObjFreeBSDContigPhysAllocHelper ()
   from /boot/modules/vboxdrv.ko
#5  0xc1668d5d in rtR0MemObjFreeBSDPhysAllocHelper ()
   from /boot/modules/vboxdrv.ko
#6  0xc166904a in rtR0MemObjFreeBSDAllocHelper () from /boot/modules/vboxdrv.ko
#7  0xc1669131 in rtR0MemObjNativeAllocCont () from /boot/modules/vboxdrv.ko
#8  0xc91d2e5b in ?? ()
#9  0xc92a5ae0 in ?? ()
#10 0x00003000 in ?? ()
#11 0x00000000 in ?? ()
>How-To-Repeat:
Launch VirtualBox and try to start a virtual machine. System hangs immediately.

The above panic was caused outside of X, by trying to start a headless VM using VBoxManage.
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



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