From nobody@FreeBSD.org  Tue May  8 21:44:34 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id A8E081065673
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  8 May 2012 21:44:34 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 92DB88FC17
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  8 May 2012 21:44:34 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q48LiYkT094747
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 8 May 2012 21:44:34 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q48LiYqi094746;
	Tue, 8 May 2012 21:44:34 GMT
	(envelope-from nobody)
Message-Id: <201205082144.q48LiYqi094746@red.freebsd.org>
Date: Tue, 8 May 2012 21:44:34 GMT
From: Amailland Gerard <gerard.amailland@jouy.inra.fr>
To: freebsd-gnats-submit@FreeBSD.org
Subject: VirtualBox 4.1.14- Guest: Freebsd9.0- Xorg with driver  vboxvideo is failed
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         167720
>Category:       ports
>Synopsis:       emulators/virtualbox-ose: VirtualBox 4.1.14- Guest: Freebsd9.0- Xorg with driver vboxvideo is failed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    vbox
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 08 22:00:40 UTC 2012
>Closed-Date:    Thu Feb 27 23:13:41 UTC 2014
>Last-Modified:  Thu Feb 27 23:13:41 UTC 2014
>Originator:     Amailland Gerard
>Release:        FreeBSD 9.0-RELEASE
>Organization:
INRA
>Environment:
FreeBSD  9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Hello
Host: VirtualBox 4.1.14 debian "Wheezy" amd64
Guest: Freebsd9.0
Xorg with driver  vboxvideo is failed.
I do not think it comes from the Host.
I have the same problem host freebsd 9.0 and the same version of virtualbox.
>How-To-Repeat:

>Fix:
This is possible with the vesa driver

Add:
/boot/loader.conf -> vesa_load = "YES"

/etc/rc.conf -> 
allscreens_flags="MODE_279" 
#vboxguest_enable="YES"     <--- disable with #    

create an xorg.conf with      :
cd /root
Xorg -configure
cp xorg.conf.news  /etc/X11/xorg.conf
       

/etc/X11/xorg.conf
 Section "ServerLayout"
 Option "AllowEmptyInput"  "false"

 Section "Monitor"
        HorizSync    24-82
        VertRefresh  50-75
        ModeLine "1152x864"  81.62  1152 1216 1336 1520  864 865 868 895  -HSync +Vsync
      

Section "Device"
        Driver    "vesa"
        

 Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth 24
        SubSection "Display"
                Depth   24
                Viewport   0 0
        Modes  "1152x864" "1280x1024"  "1024x768" "832x624"  "800x600"
        EndSubSection

Patch attached with submission follows:

============================= /var/log/Xorg.0.log ==============================


X.Org X Server 1.7.7
Release Date: 2010-05-04
X Protocol Version 11, Revision 0
Build Operating System: FreeBSD 9.0-RELEASE amd64 
Current Operating System: FreeBSD  9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
Build Date: 03 May 2012  10:38:31AM
 
Current version of pixman: 0.24.2
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Tue May  8 22:53:18 2012
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "X.org Configured"
(**) |-->Screen "Screen0" (0)
(**) |   |-->Monitor "Monitor0"
(**) |   |-->Device "Card0"
(**) |-->Input Device "Mouse0"
(**) |-->Input Device "Keyboard0"
(**) Option "DontZap" "off"
(**) Option "AllowEmptyInput" "false"
(==) Automatically adding devices
(==) Automatically enabling devices
(**) FontPath set to:
	/usr/local/lib/X11/fonts/misc/,
	/usr/local/lib/X11/fonts/TTF/,
	/usr/local/lib/X11/fonts/OTF,
	/usr/local/lib/X11/fonts/Type1/,
	/usr/local/lib/X11/fonts/100dpi/,
	/usr/local/lib/X11/fonts/75dpi/,
	/usr/local/lib/X11/fonts/misc/,
	/usr/local/lib/X11/fonts/TTF/,
	/usr/local/lib/X11/fonts/OTF,
	/usr/local/lib/X11/fonts/Type1/,
	/usr/local/lib/X11/fonts/100dpi/,
	/usr/local/lib/X11/fonts/75dpi/
(**) ModulePath set to "/usr/local/lib/xorg/modules"
(II) Loader magic: 0x8719a0
(II) Module ABI versions:
	X.Org ANSI C Emulation: 0.4
	X.Org Video Driver: 6.0
	X.Org XInput driver : 7.0
	X.Org Server Extension : 2.0
(--) Using syscons driver with X support (version 503316482.0)
(--) using VT number 9

(--) PCI:*(0:0:2:0) 80ee:beef:0000:0000 InnoTek Systemberatung GmbH VirtualBox Graphics Adapter rev 0, Mem @ 0xe0000000/134217728, BIOS @ 0x????????/65536
(II) "extmod" will be loaded. This was enabled by default and also specified in the config file.
(II) "dbe" will be loaded. This was enabled by default and also specified in the config file.
(II) "glx" will be loaded. This was enabled by default and also specified in the config file.
(II) "record" will be loaded. This was enabled by default and also specified in the config file.
(II) "dri" will be loaded. This was enabled by default and also specified in the config file.
(II) "dri2" will be loaded. This was enabled by default and also specified in the config file.
(II) LoadModule: "dbe"
(II) Loading /usr/local/lib/xorg/modules/extensions/libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
	compiled for 1.7.7, module version = 1.0.0
	Module class: X.Org Server Extension
	ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "dri"
(II) Loading /usr/local/lib/xorg/modules/extensions/libdri.so
(II) Module dri: vendor="X.Org Foundation"
	compiled for 1.7.7, module version = 1.0.0
	ABI class: X.Org Server Extension, version 2.0
(II) Loading extension XFree86-DRI
(II) LoadModule: "dri2"
(II) Loading /usr/local/lib/xorg/modules/extensions/libdri2.so
(II) Module dri2: vendor="X.Org Foundation"
	compiled for 1.7.7, module version = 1.1.0
	ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DRI2
(II) LoadModule: "extmod"
(II) Loading /usr/local/lib/xorg/modules/extensions/libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
	compiled for 1.7.7, module version = 1.0.0
	Module class: X.Org Server Extension
	ABI class: X.Org Server Extension, version 2.0
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: "glx"
(II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
(II) Module glx: vendor="X.Org Foundation"
	compiled for 1.7.7, module version = 1.0.0
	ABI class: X.Org Server Extension, version 2.0
(==) AIGLX disabled
(II) Loading extension GLX
(II) LoadModule: "record"
(II) Loading /usr/local/lib/xorg/modules/extensions/librecord.so
(II) Module record: vendor="X.Org Foundation"
	compiled for 1.7.7, module version = 1.13.0
	Module class: X.Org Server Extension
	ABI class: X.Org Server Extension, version 2.0
(II) Loading extension RECORD
(II) LoadModule: "vboxvideo"
(II) Loading /usr/local/lib/xorg/modules/drivers/vboxvideo_drv.so
(II) Module vboxvideo: vendor="Oracle Corporation"
	compiled for 1.5.99.901, module version = 1.0.1
	Module class: X.Org Video Driver
	ABI class: X.Org Video Driver, version 6.0
(**) Load address of symbol "VBOXVIDEO" is 0x8049743a0
(II) LoadModule: "mouse"
(II) Loading /usr/local/lib/xorg/modules/input/mouse_drv.so
(II) Module mouse: vendor="X.Org Foundation"
	compiled for 1.7.7, module version = 1.7.1
	Module class: X.Org XInput Driver
	ABI class: X.Org XInput driver, version 7.0
(II) LoadModule: "kbd"
(II) Loading /usr/local/lib/xorg/modules/input/kbd_drv.so
(II) Module kbd: vendor="X.Org Foundation"
	compiled for 1.7.7, module version = 1.6.1
	Module class: X.Org XInput Driver
	ABI class: X.Org XInput driver, version 7.0
(II) VBoxVideo: guest driver for VirtualBox: vbox
(II) Primary Device is: PCI 00@00:02:0
(II) VBOXPciProbe(II) : entering
(II) VBOXPciProbe(II) returning TRUE
(WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
(II) VBOXPreInit(II) : entering
(II) VBoxVideo(0): VirtualBox guest additions video driver version 4.1.14_OSE
(II) vbox_init(II) : entering

===================== End /var/log/Xorg.0.log ====================================

====================== /var/log/kdm.log ========================================= 

X.Org X Server 1.7.7
Release Date: 2010-05-04
X Protocol Version 11, Revision 0
Build Operating System: FreeBSD 9.0-RELEASE amd64 
Current Operating System: FreeBSD  9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
Build Date: 03 May 2012  10:38:31AM
 
Current version of pixman: 0.24.2
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Tue May  8 22:53:18 2012
(==) Using config file: "/etc/X11/xorg.conf"

!!Assertion Failed!!
Expression: hFile != NIL_RTFILE
Location  : /usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-4.1.14/src/VBox/Runtime/r3/posix/fileio-posix.cpp(373) RTHCINTPTR RTFileToNative(RTFILEINT*)

======================================= End /var/log/kdm.log ====================


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-amd64->vbox 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon May 21 08:37:22 UTC 2012 
Responsible-Changed-Why:  
Make this a ports PR and assign. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=167720 

From: Bernhard Froehlich <decke@bluelife.at>
To: <bug-followup@FreeBSD.org>, <gerard.amailland@jouy.inra.fr>
Cc:  
Subject: Re: ports/167720: emulators/virtualbox-ose: VirtualBox 4.1.14- Guest:
 Freebsd9.0- Xorg with driver vboxvideo is failed
Date: Mon, 21 May 2012 13:17:29 +0200

 (II) Loading /usr/local/lib/xorg/modules/drivers/vboxvideo_drv.so
 (II) Module vboxvideo: vendor="Oracle Corporation"
 	compiled for 1.5.99.901, module version = 1.0.1
 	Module class: X.Org Video Driver
 	ABI class: X.Org Video Driver, version 6.0
 
 Compiled for 1.5.99.901 looks odd. Where is the package coming from?
 vboxvideo_drv.so is usually build for a handfull of different xorg
 server versions and then the one that is running on the system is
 installed. So whenever you update your xorg-server version to an ABI
 incompatible version you need to update virtualbox-ose-additions.
 But that is the same as with every other xorg driver.
 
 -- 
 Bernhard Fröhlich
 http://www.bluelife.at/

From: Gerard Amailland <gerard.amailland@jouy.inra.fr>
To: bug-followup@FreeBSD.org, gerard.amailland@jouy.inra.fr
Cc:  
Subject: Re: ports/167720: emulators/virtualbox-ose: VirtualBox 4.1.14- Guest:
 Freebsd9.0- Xorg with driver vboxvideo is failed
Date: Tue, 22 May 2012 01:01:27 +0200

 I responds to decke@bluelife.
 
 VM
 
 version :
 FreeBSD 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC 
 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
 xorg-7.5.2
 xorg-server-1.7.7_5,1
 virtualbox-ose-additions-4.1.14_1
 
 I use freebsd with kde4
 kde-4.7.4_1
 
 best regards
 
 Gerard
 
State-Changed-From-To: open->feedback 
State-Changed-By: miwi 
State-Changed-When: Thu Feb 27 14:57:24 UTC 2014 
State-Changed-Why:  
this problem still present? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=167720 
State-Changed-From-To: feedback->closed 
State-Changed-By: miwi 
State-Changed-When: Thu Feb 27 23:13:40 UTC 2014 
State-Changed-Why:  
close by submitter request. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=167720 
>Unformatted:
