Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Feb 2017 14:46:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        vbox@FreeBSD.org
Subject:   [Bug 217258] emulators/virtualbox-ose: Segmentation fault on startup
Message-ID:  <bug-217258-26505-z4hMdBdIBf@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-217258-26505@https.bugs.freebsd.org/bugzilla/>
References:  <bug-217258-26505@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217258

--- Comment #2 from Jason Bacon <bacon4000@gmail.com> ---

Not getting a core when running as a normal user, and can't load the execut=
able
into gdb due to lack of read permission.  After a little experimenting...

<<<ROOT@sculpin.acadix>>> /home/bacon 1008 # xauth add
sculpin.acadix.biz/unix:0 MIT-MAGIC-COOKIE-1 f95dfa7ff3969ed6ea52777d650eab=
bb

<<<ROOT@sculpin.acadix>>> /home/bacon 1009 # VirtualBox=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
!!Assertion Failed!!
Expression: vrc =3D=3D VERR_ENV_VAR_NOT_FOUND
Location  :
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.14/src/VBox/Main/gl=
ue/com.cpp(238)
int com::GetVBoxUserHomeDirectory(char *, size_t, bool)
VINF_SUCCESS
Trace/BPT trap (core dumped)

<<<ROOT@sculpin.acadix>>> /home/bacon 1010 # gdb
/usr/local/lib/virtualbox/VirtualBox VirtualBox.core=20
GNU gdb (GDB) 7.12.1 [GDB v7.12.1 for FreeBSD]
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.htm=
l>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-portbld-freebsd10.3".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/lib/virtualbox/VirtualBox...done.
[New LWP 100452]
[New LWP 100656]
[New LWP 100655]
[New LWP 100654]
Core was generated by `VirtualBox'.
Program terminated with signal SIGTRAP, Trace/breakpoint trap.
#0  0x00000008062347fb in com::GetVBoxUserHomeDirectory (
    aDir=3D0x7fffffff93e0 "", aDirLen=3D4100, fCreateDir=3Dtrue)
    at
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.14/src/VBox/Main/gl=
ue/com.cpp:238
238                 AssertMsg(vrc =3D=3D VERR_ENV_VAR_NOT_FOUND, ("%Rrc\n",=
 vrc));
[Current thread is 1 (LWP 100452)]
(gdb) where
#0  0x00000008062347fb in com::GetVBoxUserHomeDirectory (
    aDir=3D0x7fffffff93e0 "", aDirLen=3D4100, fCreateDir=3Dtrue)
    at
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.14/src/VBox/Main/gl=
ue/com.cpp:238
#1  0x0000000806231410 in com::Initialize (fGui=3Dtrue, fAutoRegUpdate=3Dtr=
ue)
    at
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.14/src/VBox/Main/gl=
ue/initterm.cpp:385
#2  0x0000000805d86ffc in COMBase::InitializeCOM (fGui=3Dtrue)
    at
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.14/src/VBox/Fronten=
ds/VirtualBox/src/globals/COMDefs.cpp:106
#3  0x0000000805dd54e5 in VBoxGlobal::prepare (this=3D0x801c10400)
    at
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.14/src/VBox/Fronten=
ds/VirtualBox/src/globals/VBoxGlobal.cpp:3925
#4  0x0000000805dd53fa in VBoxGlobal::create ()
    at
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.14/src/VBox/Fronten=
ds/VirtualBox/src/globals/VBoxGlobal.cpp:203
#5  0x0000000805d0d208 in TrustedMain (argc=3D1, argv=3D0x7fffffffe970)
    at
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.14/src/VBox/Fronten=
ds/VirtualBox/src/main.cpp:523
#6  0x0000000000403f8e in SUPR3HardenedMain (
    pszProgName=3D0x407af5 "VirtualBox", fFlags=3D3, argc=3D1, argv=3D0x7ff=
fffffe970,=20
    envp=3D0x7fffffffe980)
    at
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.14/src/VBox/HostDri=
vers/Support/SUPR3HardenedMain.cpp:2405
#7  0x0000000000401417 in main (argc=3D1, argv=3D0x7fffffffe970,=20
    envp=3D0x7fffffffe980)
    at
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.14/src/VBox/Fronten=
ds/VirtualBox/src/hardenedmain.cpp:72


Furthermore, if I log in remotely, su to root and xauth the display, it *wi=
ll*
start up.

FreeBSD porpoise.acadix  bacon ~ 122: su
Password:
root@porpoise:/home/bacon # xauth add porpoise.acadix.biz/unix:10=20
MIT-MAGIC-COOKIE-1  b2958a425ca9930992be33699632494c
root@porpoise:/home/bacon # VirtualBox=20
libGL error: failed to open drm device: No such file or directory
libGL error: failed to load driver: r300
Qt WARNING: libpng warning: iCCP: known incorrect sRGB profile

[ GUI launches successfully ]

root@porpoise:/home/bacon # exit

I thought maybe it's a video driver issue, but two of the failing machines =
are
using radeon and one is using nv.

I'm running many other graphical apps with no issues, most of them QT5-based
under Lumina desktop.  I also tried this under a vanilla fluxbox session wi=
th
the same results.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-217258-26505-z4hMdBdIBf>