From peter@rulingia.com  Sat Sep 28 22:50:50 2013
Return-Path: <peter@rulingia.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id 2760FACC
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 28 Sep 2013 22:50:50 +0000 (UTC)
	(envelope-from peter@rulingia.com)
Received: from vps.rulingia.com (host-122-100-2-194.octopus.com.au [122.100.2.194])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 9CB6E277E
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 28 Sep 2013 22:50:48 +0000 (UTC)
Received: from server.rulingia.com (c220-239-237-213.belrs5.nsw.optusnet.com.au [220.239.237.213])
	by vps.rulingia.com (8.14.7/8.14.5) with ESMTP id r8SMokdo029968
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 29 Sep 2013 08:50:47 +1000 (EST)
	(envelope-from peter@rulingia.com)
Received: from server.rulingia.com (localhost.rulingia.com [127.0.0.1])
	by server.rulingia.com (8.14.7/8.14.7) with ESMTP id r8SMofw0023231
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO);
	Sun, 29 Sep 2013 08:50:41 +1000 (EST)
	(envelope-from peter@server.rulingia.com)
Received: (from peter@localhost)
	by server.rulingia.com (8.14.7/8.14.7/Submit) id r8SMofvo023230;
	Sun, 29 Sep 2013 08:50:41 +1000 (EST)
	(envelope-from peter)
Message-Id: <201309282250.r8SMofvo023230@server.rulingia.com>
Date: Sun, 29 Sep 2013 08:50:41 +1000 (EST)
From: Peter Jeremy <peter@rulingia.com>
Reply-To: Peter Jeremy <peter@rulingia.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: emulators/virtualbox-ose gets SIGBUS with VNC
X-Send-Pr-Version: 3.114
X-GNATS-Notify:

>Number:         182471
>Category:       ports
>Synopsis:       emulators/virtualbox-ose gets SIGBUS with VNC
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    vbox
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 28 23:00:00 UTC 2013
>Closed-Date:    Thu Feb 27 15:00:57 UTC 2014
>Last-Modified:  Thu Feb 27 15:00:57 UTC 2014
>Originator:     Peter Jeremy
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
n/a
>Environment:
System: FreeBSD server.rulingia.com 10.0-CURRENT FreeBSD 10.0-CURRENT #21: Wed Jul 10 19:50:48 EST 2013 root@server.rulingia.com:/var/obj/usr/src/sys/server amd64

virtualbox-ose-4.2.18_1
tightvnc-1.3.10_3

>Description:
	If I configure a VBox client to use VNC with simple authentication
	then connecting to it from a VNC viewer causes it to die with SIGBUS.

	This doesn't occur if I don't configure authentication (though my
	VNC client still asks for a password and VBox always rejects the
	connection).

	This is a regression from VBox 4.1 - which didn't request
	authentication if it wasn't configured.

>How-To-Repeat:

	VBoxManage setproperty vrdeauthlibrary "VBoxAuthSimple"
	VBoxManage modifyvm FreeBSD_64-10  --vrde on --vrdeextpack VNC --vrdeaddress 192.168.123.200 --vrdeport 6213  --vrdeauthtype external
	VBoxManage setextradata FreeBSD-10 "VBoxAuthSimple/users/peter" $(VBoxManage internalcommands passwordhash MyVncPassword | sed 's/^.* //')
	VBoxHeadless -s FreeBSD_64-10

Oracle VM VirtualBox Headless Interface 4.2.18_OSE
(C) 2008-2013 Oracle Corporation
All rights reserved.

28/09/2013 19:26:05 Listening for VNC connections on TCP port 6213
VRDE server is listening on port 6213.

	Then in another terminal:
	vncviewer 192.168.123.200:6213
Connected to RFB server, using protocol version 3.8
Performing standard VNC authentication
Password: 
password check failed!

	 This triggers the following output from VBoxHeadless (the 'Password:'
	 prompt matches 08:33:16 and the password was entered at 08:33:25)
		
29/09/2013 08:33:16   other clients:
29/09/2013 08:33:16 Client Protocol Version 3.8
29/09/2013 08:33:16 Protocol version sent 3.8, using 3.8
29/09/2013 08:33:16 rfbProcessClientSecurityType: executing handler for type 2
29/09/2013 08:33:25 authProcessClientMessage: authentication failed from 192.168.123.161
29/09/2013 08:33:25 rfbAuthProcessClientMessage: password check failed
29/09/2013 08:33:25 rfbClientSendString("password check failed!")
zsh: bus error  VBoxHeadless -s FreeBSD_64-10
	
>Fix:

	Unknown.



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->vbox 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Sep 28 23:00:09 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

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

From: =?ISO-8859-1?Q?Bernhard_Fr=F6hlich?= <decke@bluelife.at>
To: bug-followup@FreeBSD.org, peter@rulingia.com
Cc:  
Subject: Re: ports/182471: emulators/virtualbox-ose gets SIGBUS with VNC
Date: Wed, 13 Nov 2013 13:36:38 +0100

 Please try to generate a coredump and a stacktrace from it. The vbox binari=
 es
 all have uid bit set so per default FreeBSD does not generate a coredump fo=
 r
 them. You can temporary set a sysctl flag to overwrite that:
 
 sysctl kern.sugid_coredump=3D1
 
 --=20
 Bernhard Fr=F6hlich
 http://www.bluelife.at/
State-Changed-From-To: open->closed 
State-Changed-By: miwi 
State-Changed-When: Thu Feb 27 15:00:56 UTC 2014 
State-Changed-Why:  
feedback timeout. 

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