Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jun 2009 23:07:28 +0200 (CEST)
From:      Juergen Lock <nox@jelal.kn-bremen.de>
To:        miwi@FreeBSD.org
Cc:        freebsd-emulation@FreeBSD.org
Subject:   Re: [Call For Testing] VirtualBox for FreeBSD! take 6
Message-ID:  <200906112107.n5BL7Smh005706@triton.kn-bremen.de>
In-Reply-To: <20090611194557.GC98175@bsdcrew.de>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <20090611194557.GC98175@bsdcrew.de> you write:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Huhu,
>
>Yes we life and that's good :-).
>Changes:
>
>  - Fix build error when compiling in debug mode on FreeBSD HEAD
>  - SemEvent?-r0drv/FreeBSD: Don't use tvtohz for an infinite timeout. 
>  - Some FreeBSD relate typos
>  - Enable shared OpenGL service. Completely untested due to lack of
>    appropriate hardware but it compiles at least 

I don't have working gl here either (ati RV730 PRO with xf86-video-ati),
but this caused the gui failing to start, ktrace'ing revealed it was
looking for /usr/local/lib/virtualbox/VBoxTestOGL which doesn't exist:

[...]
  1184 VBoxSVC  CALL  _umtx_op(0x802711160,0x8,0,0x802711140,0x7fffffb3bdb0)
  1184 VBoxSVC  CALL  access(0x7340c0,X_OK)
  1184 VBoxSVC  NAMI  "/usr/local/lib/virtualbox/VBoxTestOGL"
  1184 VBoxSVC  RET   access -1 errno 2 No such file or directory
  1184 VBoxSVC  CALL  write(0x9,0x802414000,0xfc)
  1184 VBoxSVC  GIO   fd 9 wrote 252 bytes
       "
        !!Assertion Failed!!
        Expression: <NULL>
        Location  : /usr/home/nox/vbox/virtualbox/work/virtualbox-2.2.51r20457\
        /src/VBox/Runtime/r3/posix/process-posix.cpp(86) int RTProcCreate(cons\
        t char*, const char* const*, RTENVINTERNAL*, unsigned int, RTPROCESS*)
       "
  1184 VBoxSVC  RET   write 252/0xfc
  1184 VBoxSVC  CALL  write(0x2,0x7fffffbdbeb0,0xfc)
  1184 VBoxSVC  GIO   fd 2 wrote 252 bytes
       "
        !!Assertion Failed!!
        Expression: <none>
        Location  : /usr/home/nox/vbox/virtualbox/work/virtualbox-2.2.51r20457\
        /src/VBox/Runtime/r3/posix/process-posix.cpp(86) int RTProcCreate(cons\
        t char*, const char* const*, RTENVINTERNAL*, unsigned int, RTPROCESS*)
       "
  1184 VBoxSVC  RET   write 252/0xfc
  1184 VBoxSVC  CALL  write(0x9,0x802414000,0x3d)
  1184 VBoxSVC  GIO   fd 9 wrote 61 bytes
       "'/usr/local/lib/virtualbox/VBoxTestOGL' VERR_FILE_NOT_FOUND!
       "
  1184 VBoxSVC  RET   write 61/0x3d
  1184 VBoxSVC  CALL  write(0x2,0x7fffffbdc210,0x3d)
  1184 VBoxSVC  GIO   fd 2 wrote 61 bytes
       "'/usr/local/lib/virtualbox/VBoxTestOGL' VERR_FILE_NOT_FOUND!
       "
  1184 VBoxSVC  RET   write 61/0x3d
  1184 VBoxSVC  PSIG  SIGTRAP caught handler=0x547990 mask=0x2000 code=0x1
[...]

 Disabling VBOX_WITH_CROGL in Config.kmk got me a working install then,
patch below.

>  - Add support for shared clipboards. Requires libXt
>  - FreeBSD: Implement preemption API for guest SMP and enable
>    it (slightly tested). Add neccessary RTMP* methods in userspace
>    for the frontends to detect the number of CPUs
>  - Runtime/semevent-r0drv-freebsd: Use a sleeping mutex
>    instead of a spinlock to fix the problems users are seeing
>    (assertions with debugging enabled) while still being able
>    to run on 100Hz hosts. No problems detected so far and Solaris
>    doesn't use a spin mutex in this code too so it shouldn't do
>    any harm (keeping fingers crossed)space for the frontends to
>    detect the number of CPUs
>  - Add support for curl
>  - Add VBoxSharedClipboard
>
>Ports Changes;
>  - Force guestadditions version to 2.2.4
>  - Removed Qt3 include replacements (already upstream)
>  - Removed cosmetic X11 include path patch
>
>Please make SURE, your world and kernel is in sync and you've read
>the pkg-messages. Also please unload the kernel module before
>you update the port ;-).
>
>Many thx to all Vbox Devs, All supporters, my nice team! :-)
>
>   http://people.freebsd.org/~miwi/vbox/virtualbox_6.tgz
>
> Happy Testing!
>
>- - Martin

 Also, updating the guestadditions in a win7/64 guest caused the main gui
to abort with an assertion failure (the vm kept running):

zsh triton% VirtualBox 
Type Manifest File: /home/nox/.VirtualBox/xpti.dat
nsNativeComponentLoader: autoregistering begins.
nsNativeComponentLoader: autoregistering succeeded
nNCL: registering deferred (0)

!!Assertion Failed!!
Expression: mIface
Location  : /usr/home/nox/vbox/virtualbox/work/virtualbox-2.2.51r20457/out/freebsd.amd64/debug/obj/VirtualBox/include/COMWrappers.h(9620) PRUint32 CSystemProperties::GetMaxBootPosition() const
zsh: trace trap  VirtualBox
zsh triton% 

 And here is the gl disable patch I used:

Index: Config.kmk
@@ -351,7 +351,8 @@
 # VBOX_WITH_FFMPEG = 1
 endif
 # Enable crOpenGL service
-if1of ($(KBUILD_TARGET),win linux solaris darwin freebsd)
+#if1of ($(KBUILD_TARGET),win linux solaris darwin freebsd)
+if1of ($(KBUILD_TARGET),win linux solaris darwin)
  VBOX_WITH_CROGL = 1
 endif
 # Enable shared folders

 Thanx,
	Juergen



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