Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 09 Aug 2009 21:10:29 -0700
From:      Doug Barton <dougb@FreeBSD.org>
To:        Beat Gaetzi <beat@FreeBSD.org>
Cc:        freebsd-emulation@freebsd.org
Subject:   Re: virtualbox not building on -current
Message-ID:  <4A7F9DB5.503@FreeBSD.org>
In-Reply-To: <26f6c7210908091035y64099cb8i1a1860547d03fc83@mail.gmail.com>
References:  <200908081617.n78GHUOW003735@triton8.kn-bremen.de>	 <4A7DC528.4070306@FreeBSD.org>	 <26f6c7210908081217u6935fedeobd936ccdfed63697@mail.gmail.com>	 <4A7DD9E4.3000900@FreeBSD.org>	 <26f6c7210908081318p7b29d299yb27c826fba1438ff@mail.gmail.com>	 <4A7E0565.4070002@FreeBSD.org> <26f6c7210908091035y64099cb8i1a1860547d03fc83@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Beat Gaetzi wrote:
> 2009/8/9 Doug Barton <dougb@freebsd.org>:
>> Beat Gaetzi wrote:
>>> 2009/8/8 Doug Barton <dougb@freebsd.org>:
>>>> Beat Gaetzi wrote:
>>>>
>>>>> The current svn port fixes a lot of known problems (also for HEAD) so
>>>>> I hope we could update the port before the port freeze.
>>>> Can you post a patch to the existing port so that I can give it a try?
>>> Please try this patch:
>>> http://people.freebsd.org/~beat/vbox/virtualbox-cvs-3.0.51r22072.patch
>> Ok, with that patch it builds, runs, and I can start installing WinXP.
>> Unfortunately it panic'ed early in the process.
> 
> Thanks for testing. This looks like a new problem so far.

Well I'm not sure about that, it's never worked for me. I probably
should have pointed out in the last message that I have a
plain-vanilla -current running i386 SMP on an Intel C2D. I do have
witness in my kernel which might be why some of these problems are
showing up.

> Is this
> panic reproducible? If yes, could you please add this patch to the
> port:
> http://people.freebsd.org/~beat/vbox/patch-src-VBox-Runtime-r0drv-semevent-r0drv-freebsd.c

With that patch I get an instant panic when I kldload vboxdrv:

Unread portion of the kernel message buffer:
VBoxDrvFreeBSDLoad:
6/0: off=10bc
5/0: off=54230
supdrvDetermineAsyncTsc: iCpu=0 cLoops=3 CurTsc=55fe8f3a692
PrevTsc=56146f4ffa6
supdrvDetermineAsyncTsc: returns 1; iLastCpu=31 rc=0 offMin=15e015914
offMax=15e015914
vboxdrv: fAsync=1 offMin=0x5e015914 offMax=0x5e015914
supdrvGipCreate: omni timer not supported, falling back to synchronous
mode
supdrvGipCreate: 10000000 nps ainnteirvcal:. sleeping without a lock
VBoxDrvFreeBSDLoad: returns successfully
cpuid = 1

(kgdb) #0  doadump () at pcpu.h:246
#1  0xc05f11ae in boot (howto=260)
    at /usr/local/src/sys/kern/kern_shutdown.c:419
#2  0xc05f1482 in panic (fmt=Variable "fmt" is not available.
) at /usr/local/src/sys/kern/kern_shutdown.c:575
#3  0xc05f9e28 in _sleep (ident=0xc7e6e910, lock=0x0, priority=84,
    wmesg=0xc91d6eee "iprtev", timo=0)
    at /usr/local/src/sys/kern/kern_synch.c:149
#4  0xc91c4175 in rtSemEventWait (EventSem=0xc7e6e910,
cMillies=4294967295,
    fInterruptible=false)
    at
/usr/local/home/dougb/virtualbox/work/virtualbox-3.0.51r22072/src/VBox/Runtime/r0drv/freebsd/semevent-r0drv-freebsd.c:185
#5  0xc91c6617 in rtTimerThread (Thread=0xc7eff310, pvUser=0xc9004d10)
    at
/usr/local/home/dougb/virtualbox/work/virtualbox-3.0.51r22072/src/VBox/Runtime/generic/timer-generic.cpp:244
#6  0xc91c3479 in rtThreadMain (pThread=0xc7eff310,
NativeThread=3323851328,
    pszThreadName=0xc7eff350 "TIMER")
    at
/usr/local/home/dougb/virtualbox/work/virtualbox-3.0.51r22072/src/VBox/Runtime/common/misc/thread.cpp:637
#7  0xc91c5d03 in rtThreadNativeMain (pvThreadInt=0xc7eff310)
    at
/usr/local/home/dougb/virtualbox/work/virtualbox-3.0.51r22072/src/VBox/Runtime/r0drv/freebsd/thread2-r0drv-freebsd.c:112
#8  0xc05c7fa8 in fork_exit (callout=0xc91c5ce0 <rtThreadNativeMain>,
    arg=0xc7eff310, frame=0xe7decd38)
    at /usr/local/src/sys/kern/kern_fork.c:838
#9  0xc083e9c0 in fork_trampoline ()
    at /usr/local/src/sys/i386/i386/exception.s:270

Full core.txt.5 is in my freefall home directory.


Doug

-- 

    This .signature sanitized for your protection




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