Bug 217258 - emulators/virtualbox-ose: Segmentation fault on startup
Summary: emulators/virtualbox-ose: Segmentation fault on startup
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Virtualbox Team (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-20 23:08 UTC by Jason W. Bacon
Modified: 2018-01-22 14:50 UTC (History)
6 users (show)

See Also:
bugzilla: maintainer-feedback? (vbox)


Attachments
terminal outputs from two boot environments (7.35 KB, text/plain)
2017-02-25 21:42 UTC, Graham Perrin
no flags Details
output from truss (27.47 KB, text/plain)
2017-02-25 21:43 UTC, Graham Perrin
no flags Details
screenshot of the dialogue that appears following a truss run of VirtualBox (233.70 KB, image/png)
2017-02-26 07:18 UTC, Graham Perrin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason W. Bacon freebsd_committer freebsd_triage 2017-02-20 23:08:12 UTC
VirtualBox is seg faulting on startup on three similar machines and working fine on others.  All are running the latest package on 10.3-RELEASE, except one of the failing machines, which is running 11.0-RELEASE.

Version        : 5.1.14_2

I was able to run vbox-headless on one of the failing machines, did not try the other.

VirtualBox works fine on an AMD E-240 and on a Core-2 Duo.

I also tried building virtualbox-ose from source, but get the same results.

The machines on which it is failing all have Athlon X2 processors:

FreeBSD 10.3-RELEASE-p11 #0: Mon Oct 24 18:49:24 UTC 2016
    root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
VT(vga): resolution 640x480
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ (2211.37-MHz K8-class CPU)
  Origin="AuthenticAMD"  Id=0x40fb2  Family=0xf  Model=0x4b  Stepping=2
  Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x2001<SSE3,CX16>
  AMD Features=0xea500800<SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+,3DNow!>
  AMD Features2=0x1f<LAHF,CMP,SVM,ExtAPIC,CR8>
  SVM: NAsids=64
real memory  = 4294967296 (4096 MB)
avail memory = 4111437824 (3920 MB)

FreeBSD 10.3-RELEASE-p11 #0: Mon Oct 24 18:49:24 UTC 2016
    root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
VT(vga): resolution 640x480
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 5600+ (2901.24-MHz K8-class CPU)
  Origin="AuthenticAMD"  Id=0x60fb2  Family=0xf  Model=0x6b  Stepping=2
  Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x2001<SSE3,CX16>
  AMD Features=0xea500800<SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+,3DNow!>
  AMD Features2=0x11f<LAHF,CMP,SVM,ExtAPIC,CR8,Prefetch>
  SVM: NAsids=64
real memory  = 4294967296 (4096 MB)
avail memory = 4112224256 (3921 MB)

FreeBSD 11.0-RELEASE-p2 #0: Mon Oct 24 06:55:27 UTC 2016
    root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0)
VT(vga): resolution 640x480
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 6000+ (2999.96-MHz K8-class CPU)
  Origin="AuthenticAMD"  Id=0x40f33  Family=0xf  Model=0x43  Stepping=3
  Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x2001<SSE3,CX16>
  AMD Features=0xea500800<SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+,3DNow!>
  AMD Features2=0x1f<LAHF,CMP,SVM,ExtAPIC,CR8>
  SVM: NAsids=64
real memory  = 2147483648 (2048 MB)
avail memory = 2035429376 (1941 MB)

Happy to provide more information if it will help.

Thanks,

   Jason
Comment 1 Steven Hartland freebsd_committer freebsd_triage 2017-02-21 02:24:50 UTC
Sounds like it might be a missing an expected instruction but I would not expect that to be SIGSEGV but more like SIGILL.

When you run gdb on the core what do you get?

You may need to install gdb from ports if it is SIGILL to get it to interpet the unknown instruction properly.

If you're compiling the ports / packages locally make sure your not compiling with native arch targeting.
Comment 2 Jason W. Bacon freebsd_committer freebsd_triage 2017-02-21 14:46:28 UTC
Not getting a core when running as a normal user, and can't load the executable 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 f95dfa7ff3969ed6ea52777d650eabbb

<<<ROOT@sculpin.acadix>>> /home/bacon 1009 # VirtualBox                         
!!Assertion Failed!!
Expression: vrc == VERR_ENV_VAR_NOT_FOUND
Location  : /usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.14/src/VBox/Main/glue/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 
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.html>
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=0x7fffffff93e0 "", aDirLen=4100, fCreateDir=true)
    at /usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.14/src/VBox/Main/glue/com.cpp:238
238                 AssertMsg(vrc == VERR_ENV_VAR_NOT_FOUND, ("%Rrc\n", vrc));
[Current thread is 1 (LWP 100452)]
(gdb) where
#0  0x00000008062347fb in com::GetVBoxUserHomeDirectory (
    aDir=0x7fffffff93e0 "", aDirLen=4100, fCreateDir=true)
    at /usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.14/src/VBox/Main/glue/com.cpp:238
#1  0x0000000806231410 in com::Initialize (fGui=true, fAutoRegUpdate=true)
    at /usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.14/src/VBox/Main/glue/initterm.cpp:385
#2  0x0000000805d86ffc in COMBase::InitializeCOM (fGui=true)
    at /usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.14/src/VBox/Frontends/VirtualBox/src/globals/COMDefs.cpp:106
#3  0x0000000805dd54e5 in VBoxGlobal::prepare (this=0x801c10400)
    at /usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.14/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp:3925
#4  0x0000000805dd53fa in VBoxGlobal::create ()
    at /usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.14/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp:203
#5  0x0000000805d0d208 in TrustedMain (argc=1, argv=0x7fffffffe970)
    at /usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.14/src/VBox/Frontends/VirtualBox/src/main.cpp:523
#6  0x0000000000403f8e in SUPR3HardenedMain (
    pszProgName=0x407af5 "VirtualBox", fFlags=3, argc=1, argv=0x7fffffffe970, 
    envp=0x7fffffffe980)
    at /usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.14/src/VBox/HostDrivers/Support/SUPR3HardenedMain.cpp:2405
#7  0x0000000000401417 in main (argc=1, argv=0x7fffffffe970, 
    envp=0x7fffffffe980)
    at /usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.14/src/VBox/Frontends/VirtualBox/src/hardenedmain.cpp:72


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

FreeBSD porpoise.acadix  bacon ~ 122: su
Password:
root@porpoise:/home/bacon # xauth add porpoise.acadix.biz/unix:10  MIT-MAGIC-COOKIE-1  b2958a425ca9930992be33699632494c
root@porpoise:/home/bacon # VirtualBox 
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 with the same results.
Comment 3 Graham Perrin freebsd_committer freebsd_triage 2017-02-22 06:40:01 UTC
The tail of http://www.virtualbox.org/svn/vbox/trunk/src/VBox/Frontends/VirtualBox/src/hardenedmain.cpp (includes line 72): 




#ifdef VIRTUALBOX_VM
    return SUPR3HardenedMain("VirtualBoxVM",
                             fFlags | SUPSECMAIN_FLAGS_TRUSTED_ERROR | SUPSECMAIN_FLAGS_OSX_VM_APP,
                             argc, argv, envp);
#else
    return SUPR3HardenedMain("VirtualBox", fFlags | SUPSECMAIN_FLAGS_TRUSTED_ERROR, argc, argv, envp);
#endif
}
Comment 4 Jason W. Bacon freebsd_committer freebsd_triage 2017-02-23 04:44:17 UTC
You may already have realized this, but it's not limited to AMD CPUs:

I just encountered the issue on an old Core 2 Duo iMac:

FreeBSD 10.3-RELEASE-p11 #0: Mon Oct 24 18:49:24 UTC 2016
    root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
VT(vga): resolution 640x480
CPU: Intel(R) Core(TM)2 CPU         T7200  @ 2.00GHz (1997.37-MHz K8-class CPU)
  Origin="GenuineIntel"  Id=0x6f6  Family=0x6  Model=0xf  Stepping=6
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0xe3bd<SSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM>
  AMD Features=0x20100800<SYSCALL,NX,LM>
  AMD Features2=0x1<LAHF>
  VT-x: HLT,PAUSE
  TSC: P-state invariant, performance statistics
real memory  = 2147483648 (2048 MB)
avail memory = 2034184192 (1939 MB)
Comment 5 Graham Perrin freebsd_committer freebsd_triage 2017-02-25 21:37:47 UTC
TrueOS Desktop based on FreeBSD-CURRENT: VirtualBox does run, with KMS (modesetting_drv.so) for graphics, with a boot environment that was created on 2017-02-11. 

With more recent distributions of the OS I found that VirtualBox no longer ran. 

With a boot environment created today: 

* with modesetting_drv.so VirtualBox does not run
  (segmentation fault)

* with intel_drv.so VirtualBox does run.
Comment 6 Graham Perrin freebsd_committer freebsd_triage 2017-02-25 21:42:15 UTC
Created attachment 180296 [details]
terminal outputs from two boot environments

Boot environment 
2017-02-25-05-22-57---custom-2dc2a76-38-a

* modesetting_drv.so segmentation fault
* intel_drv.so no such fault. 

Boot ennvironment 
2017-02-11-04-42-40-cea905a-24-a

* modesetting_drv.so no such fault.
Comment 7 Graham Perrin freebsd_committer freebsd_triage 2017-02-25 21:43:39 UTC
Created attachment 180297 [details]
output from truss

Boot environment 
2017-02-25-05-22-57---custom-2dc2a76-38-a
modesetting_drv.so
Comment 8 Graham Perrin freebsd_committer freebsd_triage 2017-02-26 07:18:53 UTC
Created attachment 180308 [details]
screenshot of the dialogue that appears following a truss run of VirtualBox

Transcript of the error dialogue that appears following 
truss VirtualBox
on TrueOS-Desktop-201702250619

> VirtualBox - Error In error in SUPR3HardenedMain
> 
> Effective UID is not root (euid=1004 egid=1004 uid=1004 gid=1004) (rc=-10) 
> 
> Please try reinstalling VirtualBox. 
> 
> where: SUPR3HardenedMain what: 2 VERR_PERMISSION_DENIED (-10) - Permission denied.
Comment 9 Jason W. Bacon freebsd_committer freebsd_triage 2017-02-27 21:13:41 UTC
For what it's worth, rolling back to 5.1.12 doesn't help.  Perhaps the problem was triggered by a dependency rather than the virtualbox upgrade.  I'll try earlier versions if the rollback is easy enough from the 5.1.14 framework.
Comment 10 Trenton Schulz 2017-03-01 11:14:55 UTC
Just thought I would try to add another data point, but it seems to have something to do with permissions. That is, if I run as a user in the vboxusers group, it segfaults; running as root (via sudo for example), works fine.

A *quick* look at the files doesn't seem like anything has changed between the two boot environments (attached from another user). All the same files have the setuid bit for root.

Not really knowing much more, I'd hazard to guess something with permission checking has changed in FreeBSD and this is a symptom (i.e., the change isn't in VirtualBox).

Sorry, that's about all I can do for the moment.
Comment 11 Jason W. Bacon freebsd_committer freebsd_triage 2017-03-01 17:17:25 UTC
I'd be surprised if it turned out to be permissions.

As a reminder, it works fine for me on some systems, but not others.  My Thinkpad T61 with Intel GPU runs VirtulBox fine, as does a dev server running it remotely.

All are running identical 10.3-RELEASE installations with the latest updates.

The failing systems are 10.3-RELEASE with Radeon and an 11.0-RELEASE system with nvidia (nv driver).

Thanks.
Comment 12 Trenton Schulz 2017-03-01 18:56:07 UTC
(In reply to Jason Bacon from comment #11)
Hmmm… OK. This is actually with a TrueOS (a.k.a. FreeBSD 12) build.  The thing is that just happened recently with an upgrade on TrueOS, but running an earlier boot environment from two weeks back and VirtualBox works fine. I believe that I also was able to run VirtualBox from the new boot environment, from the old.

Maybe, I've jumped onto a "similar but different" bug. In which case, I apologize.
Comment 13 Jason W. Bacon freebsd_committer freebsd_triage 2017-03-01 20:05:24 UTC
I suspect you're right that it was triggered by a change outside virtualbox.  It's only the permissions issue that I have doubts about.

This is difficult to debug since gdb cannot honor setuid() for security reasons.  VirtualBox also crashes within a couple seconds of starting.

However, by successfully guessing the PID of my next VirtualBox run (it was incremented by 3 each time) and practicing my "fast draw", I managed a to attach a root gdb session to it before it seg faulted.

Below is a trace of a failed run on my 11.0-RELEASE workstation and below that another trace from a successful run on my ThinkPad.  Most obvious difference I see is the failed run loading llvm37 and llvm39 libraries.

I'll explore this more ASAP.

<<<ROOT@porpoise.acadix>>> /home/bacon 427 # gdb
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.html>
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-freebsd11.0".
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".
(gdb) attach 2914
Attaching to process 2914
Couldn't get registers: Device busy.
Couldn't get registers: Device busy.
(gdb) Reading symbols from /usr/local/lib/virtualbox/VirtualBox...(no debugging symbols found)...done.
[New LWP 100458 of process 2914]
Reading symbols from /lib/libthr.so.3...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libc++.so.1...(no debugging symbols found)...done.
Reading symbols from /lib/libcxxrt.so.1...(no debugging symbols found)...done.
Reading symbols from /lib/libm.so.5...(no debugging symbols found)...done.
Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done.
Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/virtualbox/VBoxRT.so...done.
Reading symbols from /usr/lib/librt.so.1...(no debugging symbols found)...done.
Reading symbols from /lib/libz.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxml2.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libcurl.so.4...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libssl.so.8...(no debugging symbols found)...done.
Reading symbols from /lib/libcrypto.so.8...(no debugging symbols found)...done.
Reading symbols from /usr/lib/liblzma.so.5...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libnghttp2.so.14...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libheimntlm.so.11...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libhx509.so.11...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libcom_err.so.5...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libasn1.so.11...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libwind.so.11...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libheimbase.so.11...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libroken.so.11...(no debugging symbols found)...done.
Reading symbols from /lib/libcrypt.so.5...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libkrb5.so.11...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libgssapi.so.10...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libgssapi_krb5.so.10...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libprivateheimipcc.so.11...(no debugging symbols found)...done.
Reading symbols from /usr/lib/i18n/libiconv_std.so.4...(no debugging symbols found)...done.
Reading symbols from /usr/lib/i18n/libUTF8.so.4...(no debugging symbols found)...done.
Reading symbols from /usr/lib/i18n/libmapper_none.so.4...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/virtualbox/VirtualBox.so...done.
Reading symbols from /usr/local/lib/libXinerama.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libGL.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/virtualbox/VBoxDDU.so...done.
Reading symbols from /usr/local/lib/virtualbox/VBoxKeyboard.so...done.
Reading symbols from /usr/local/lib/virtualbox/VBoxREM.so...done.
Reading symbols from /usr/local/lib/virtualbox/VBoxVMM.so...done.
Reading symbols from /usr/local/lib/libXcursor.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libXext.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libX11.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/virtualbox/VBoxXPCOM.so...done.
Reading symbols from /usr/local/lib/qt5/libQt5X11Extras.so.5...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/qt5/libQt5Core.so.5...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/qt5/libQt5Gui.so.5...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/qt5/libQt5Widgets.so.5...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/qt5/libQt5PrintSupport.so.5...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/qt5/libQt5OpenGL.so.5...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libXau.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libpthread-stubs.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libXdmcp.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libexpat.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-dri3.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-present.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-sync.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxshmfence.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libglapi.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libXdamage.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libXfixes.so.3...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libX11-xcb.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-glx.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-dri2.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libXxf86vm.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libdrm.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libXrender.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libexecinfo.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libicui18n.so.58...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libicuuc.so.58...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libpcre16.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libglib-2.0.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libharfbuzz.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libpng16.so.16...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libdevq.so.0...(no debugging symbols found)...done.
Reading symbols from /lib/libelf.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libicudata.so.58...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libiconv.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libpcre.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libintl.so.8...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libfreetype.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libgraphite2.so.3...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libprocstat.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libbz2.so.4...(no debugging symbols found)...done.
Reading symbols from /lib/libkvm.so.7...(no debugging symbols found)...done.
Reading symbols from /lib/libutil.so.9...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/qt5/plugins/platforms/libqxcb.so...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/qt5/libQt5XcbQpa.so.5...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libXi.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-render.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-render-util.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libSM.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libICE.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-image.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-icccm.so.4...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-xfixes.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-shm.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-randr.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-shape.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-keysyms.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-xinerama.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-xkb.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxkbcommon-x11.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxkbcommon.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libfontconfig.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/qt5/libQt5DBus.so.5...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-util.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libdbus-1.so.3...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/qt5/plugins/xcbglintegrations/libqxcb-glx-integration.so...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/qt5/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/dri/swrast_dri.so...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libdrm_radeon.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libdrm_amdgpu.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm39/lib/libLLVM-3.9.so...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLTO.so...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libedit.so.0...(no debugging symbols found)...done.
Reading symbols from /lib/libncurses.so.8...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMAArch64CodeGen.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMAArch64AsmPrinter.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMAArch64AsmParser.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMAArch64Desc.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMAArch64Info.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMAArch64Disassembler.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMAMDGPUCodeGen.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMAMDGPUAsmPrinter.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMAMDGPUAsmParser.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMAMDGPUDesc.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMAMDGPUInfo.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMARMCodeGen.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMARMAsmPrinter.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMARMAsmParser.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMARMDesc.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMARMInfo.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMARMDisassembler.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMBPFCodeGen.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMBPFAsmPrinter.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMBPFDesc.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMBPFInfo.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMCppBackendCodeGen.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMCppBackendInfo.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMHexagonCodeGen.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMHexagonDesc.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMHexagonInfo.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMHexagonDisassembler.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMMipsCodeGen.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMMipsAsmPrinter.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMMipsAsmParser.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMMipsDesc.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMMipsInfo.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMMipsDisassembler.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMMSP430CodeGen.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMMSP430AsmPrinter.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMMSP430Desc.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMMSP430Info.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMNVPTXCodeGen.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMNVPTXAsmPrinter.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMNVPTXDesc.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMNVPTXInfo.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMPowerPCCodeGen.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMPowerPCAsmPrinter.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMPowerPCAsmParser.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMPowerPCDesc.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMPowerPCInfo.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMPowerPCDisassembler.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMSparcCodeGen.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMSparcAsmPrinter.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMSparcAsmParser.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMSparcDesc.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMSparcInfo.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMSparcDisassembler.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMSystemZCodeGen.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMSystemZAsmPrinter.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMSystemZAsmParser.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMSystemZDesc.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMSystemZInfo.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMSystemZDisassembler.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMX86CodeGen.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMX86AsmPrinter.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMX86AsmParser.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMX86Desc.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMX86Info.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMX86Disassembler.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMXCoreCodeGen.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMXCoreAsmPrinter.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMXCoreDesc.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMXCoreInfo.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMXCoreDisassembler.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMCore.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMLTO.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMMC.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMMCDisassembler.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMSupport.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMTarget.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMAArch64Utils.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMAnalysis.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMAsmPrinter.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMCodeGen.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMScalarOpts.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMSelectionDAG.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMMCParser.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMAMDGPUUtils.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMTransformUtils.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMipo.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMX86Utils.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMObject.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMBitReader.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMBitWriter.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMInstCombine.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMLinker.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMObjCARCOpts.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMipa.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMInstrumentation.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMProfileData.so.3.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/llvm37/lib/libLLVMVectorize.so.3.7...(no debugging symbols found)...done.
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
[Switching to LWP 100145 of process 2914]
0x00000008006112b2 in ?? () from /libexec/ld-elf.so.1

(gdb) cont
Continuing.

Thread 1 received signal SIGSEGV, Segmentation fault.
0x0000000815cc0340 in llvm::StringMapImpl::LookupBucketFor(llvm::StringRef) ()
   from /usr/local/llvm39/lib/libLLVM-3.9.so
(gdb) where
#0  0x0000000815cc0340 in llvm::StringMapImpl::LookupBucketFor(llvm::StringRef)
    () from /usr/local/llvm39/lib/libLLVM-3.9.so
#1  0x0000000815c841df in ?? () from /usr/local/llvm39/lib/libLLVM-3.9.so
#2  0x0000000815c8433c in ?? () from /usr/local/llvm39/lib/libLLVM-3.9.so
#3  0x0000000815c78dec in llvm::cl::Option::addArgument() ()
   from /usr/local/llvm39/lib/libLLVM-3.9.so
#4  0x0000000823dadd9d in ?? ()
   from /usr/local/llvm37/lib/libLLVMSupport.so.3.7
#5  0x0000000823de6232 in ?? ()
   from /usr/local/llvm37/lib/libLLVMSupport.so.3.7
#6  0x00000008017d2800 in ?? ()
#7  0x00007fffffffa058 in ?? ()
#8  0x00007fffffffa010 in ?? ()
#9  0x0000000823d44eae in _init ()
   from /usr/local/llvm37/lib/libLLVMSupport.so.3.7
#10 0x00007fffffffa010 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

A trace from a successful run on my ThinkPad:

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.html>
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".
(gdb) attach 46433
Attaching to process 46433
Couldn't get registers: Device busy.
Couldn't get registers: Device busy.
(gdb) Reading symbols from /usr/local/lib/virtualbox/VirtualBox...(no debugging symbols found)...done.
[New LWP 100422 of process 46433]
[New LWP 100421 of process 46433]
[New LWP 100412 of process 46433]
[New LWP 100411 of process 46433]
[New LWP 100410 of process 46433]
[New LWP 100409 of process 46433]
[New LWP 100189 of process 46433]
Reading symbols from /lib/libthr.so.3...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libc++.so.1...(no debugging symbols found)...done.
Reading symbols from /lib/libcxxrt.so.1...(no debugging symbols found)...done.
Reading symbols from /lib/libm.so.5...(no debugging symbols found)...done.
Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done.
Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/virtualbox/VBoxRT.so...done.
Reading symbols from /usr/lib/librt.so.1...(no debugging symbols found)...done.
Reading symbols from /lib/libz.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxml2.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libcurl.so.4...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libssl.so.7...(no debugging symbols found)...done.
Reading symbols from /lib/libcrypto.so.7...(no debugging symbols found)...done.
Reading symbols from /usr/lib/liblzma.so.5...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libnghttp2.so.14...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libheimntlm.so.11...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libhx509.so.11...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libcom_err.so.5...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libasn1.so.11...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libwind.so.11...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libheimbase.so.11...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libroken.so.11...(no debugging symbols found)...done.
Reading symbols from /lib/libcrypt.so.5...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libkrb5.so.11...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libgssapi.so.10...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libgssapi_krb5.so.10...(no debugging symbols found)...done.
Reading symbols from /usr/lib/private/libheimipcc.so.11...(no debugging symbols found)...done.
Reading symbols from /usr/lib/i18n/libiconv_std.so.4...(no debugging symbols found)...done.
Reading symbols from /usr/lib/i18n/libUTF8.so.4...(no debugging symbols found)...done.
Reading symbols from /usr/lib/i18n/libmapper_none.so.4...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/virtualbox/VirtualBox.so...done.
Reading symbols from /usr/local/lib/libXinerama.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libGL.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/virtualbox/VBoxDDU.so...done.
Reading symbols from /usr/local/lib/virtualbox/VBoxKeyboard.so...done.
Reading symbols from /usr/local/lib/virtualbox/VBoxREM.so...done.
Reading symbols from /usr/local/lib/virtualbox/VBoxVMM.so...done.
Reading symbols from /usr/local/lib/libXcursor.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libXext.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libX11.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/virtualbox/VBoxXPCOM.so...done.
Reading symbols from /usr/local/lib/qt5/libQt5X11Extras.so.5...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/qt5/libQt5Core.so.5...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/qt5/libQt5Gui.so.5...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/qt5/libQt5Widgets.so.5...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/qt5/libQt5PrintSupport.so.5...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/qt5/libQt5OpenGL.so.5...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libXau.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libpthread-stubs.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libXdmcp.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libexpat.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-dri3.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-present.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-sync.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxshmfence.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libglapi.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libXdamage.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libXfixes.so.3...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libX11-xcb.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-glx.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-dri2.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libXxf86vm.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libdrm.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libXrender.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libexecinfo.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libicui18n.so.58...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libicuuc.so.58...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libpcre16.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libglib-2.0.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libharfbuzz.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libpng16.so.16...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libdevq.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libelf.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libicudata.so.58...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libiconv.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libpcre.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libintl.so.8...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libfreetype.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libgraphite2.so.3...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libprocstat.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libbz2.so.4...(no debugging symbols found)...done.
Reading symbols from /lib/libkvm.so.6...(no debugging symbols found)...done.
Reading symbols from /lib/libutil.so.9...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/qt5/plugins/platforms/libqxcb.so...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/qt5/libQt5XcbQpa.so.5...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libXi.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-render.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-render-util.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libSM.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libICE.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-image.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-icccm.so.4...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-xfixes.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-shm.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-randr.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-shape.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-keysyms.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-xinerama.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-xkb.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxkbcommon-x11.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxkbcommon.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libfontconfig.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/qt5/libQt5DBus.so.5...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-util.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libdbus-1.so.3...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/qt5/plugins/xcbglintegrations/libqxcb-glx-integration.so...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/qt5/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/dri/i965_dri.so...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libdrm_intel.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libdrm_radeon.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libpciaccess.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/virtualbox/components/VBoxXPCOMIPCC.so...done.
Reading symbols from /usr/local/lib/virtualbox/components/VBoxC.so...done.
Reading symbols from /usr/local/lib/virtualbox/components/VBoxSVCM.so...done.
Reading symbols from /usr/local/lib/qt5/plugins/imageformats/libqdds.so...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/qt5/plugins/imageformats/libqgif.so...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/qt5/plugins/imageformats/libqicns.so...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/qt5/plugins/imageformats/libqico.so...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/qt5/plugins/imageformats/libqjp2.so...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libjasper.so.4...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libjpeg.so.8...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/qt5/plugins/imageformats/libqjpeg.so...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/qt5/plugins/imageformats/libqmng.so...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libmng.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/liblcms.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/qt5/plugins/imageformats/libqsvg.so...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/qt5/libQt5Svg.so.5...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/qt5/plugins/imageformats/libqtga.so...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/qt5/plugins/imageformats/libqtiff.so...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libtiff.so.5...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libjbig.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/qt5/plugins/imageformats/libqwbmp.so...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/qt5/plugins/imageformats/libqwebp.so...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libwebp.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libwebpdemux.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/qt5/plugins/iconengines/libqsvgicon.so...(no debugging symbols found)...done.
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
[Switching to LWP 100424 of process 46433]
0x000000080083913c in ?? () from /lib/libthr.so.3

(gdb) exit
Undefined command: "exit".  Try "help".
(gdb) quit
A debugging session is active.

        Inferior 1 [process 46433] will be detached.

Quit anyway? (y or n) y
Detaching from program: /usr/local/lib/virtualbox/VirtualBox, process 46433
Comment 14 Jason W. Bacon freebsd_committer freebsd_triage 2017-03-01 20:43:21 UTC
On my 10.3 systems, doing the following resolved the issue:

pkg delete llvm37
pkg delete virtualbox\* (for good measure)
pkg autoremove (for good measure)
pkg upgrade
pkg install virtualbox-ose

VirtualBox now opens normally.

I'm not sure where the llvm37 installation came from.  My guess is is was orphaned by pkg upgrade when it upgraded to llvm39.

I'm getting a different error on my 11.0 system, but I don't think it's related.  Popup error box:

Failed to acquire the VirtualBox COM object.

Callee RC: 
NS_BASE_STREAM_WOULD_BLOCK (0x80470007)

So it appears the VirtualBox should protect against loading llvm37 libraries if they're present.
Comment 15 Jason W. Bacon freebsd_committer freebsd_triage 2017-03-01 21:32:37 UTC
The "Failed to acquire the VirtualBox COM object." error was caused by a corrupt ~/.config/VirtualBox folder.  Apparently it was created by either the failed runs as a normal user, or the successful runs as root (su from normal user).  In any case, it was owned by root and unreadable.  After removing it, VirtualBox started normally.
Comment 16 Trenton Schulz 2017-03-02 13:08:18 UTC
Yes, it seems the llvm37 causes havoc for me too. Removing it and everything works again. Hooray. Though it seems there must be some sort of version mismatch going on with different llvm versions. From the ports, it seems they should coexist, but obviously it's grabbing different llvm libraries at different times. That can't work well. But I currently have llvm38 and llvm39 installed and they live together OK.

That is something that probably needs to be investigated. But at the moment, this allows me to do my actual work assignments (in a Windows VM, ick). So, I guess that falls to someone else at the moment.
Comment 17 rkoberman 2017-03-02 14:27:51 UTC
This is a problem that recently hit the mesa ports need for OpenGL support. Basically, you are best off with only one LLVM version installed and, for several ports, that most be llvm39. Some change between 37 and 38 triggered this. The recommendation for the mesa ports was to delete all old llvm ports and, so far, no reports of issues with old llvm ports being needed for anything. They were just old orphans that were no longer needed. (I am not saying that no port needed some old LLVM port, but it has not been an issue.)
Comment 18 Jason W. Bacon freebsd_committer freebsd_triage 2017-03-02 14:48:36 UTC
Looks like onlyu lang/rubinius *might* install it as a dep, and it's not a default option.  The other possibility is if someone installed clang37.

Nevertheless, it's a nasty issue for people to run into, so something should be done to prevent it.  Perhaps at least a warning should be added to any ports affected by the presence of llvm37, or to the llvm37 port itself?

FreeBSD unixdev.ceas  bacon /usr/wip/biology/linux-birdsuite/work 405: port-grep llvm37
Searching accessibility...
Searching arabic...
Searching archivers...
Searching astro...
Searching audio...
Searching base...
Searching benchmarks...
Searching biology...
Searching cad...
Searching chinese...
Searching comms...
Searching converters...
Searching databases...
Searching deskutils...
Searching devel...
devel/llvm37/Makefile:# $FreeBSD: head/devel/llvm37/Makefile 428179 2016-12-09 11:40:59Z tcberner $
Searching dns...
Searching editors...
Searching emulators...
Searching finance...
Searching french...
Searching ftp...
Searching games...
Searching german...
Searching graphics...
Searching hebrew...
Searching hungarian...
Searching irc...
Searching japanese...
Searching java...
Searching korean...
Searching lang...
lang/rubinius/Makefile:         LLVM_PORT=devel/llvm37 \
Searching mail...
Searching math...
Searching misc...
Searching multimedia...
Searching net...
Searching net-im...
Searching net-mgmt...
Searching net-p2p...
Searching news...
Searching palm...
Searching polish...
Searching ports-mgmt...
Searching portuguese...
Searching print...
Searching russian...
Searching science...
Searching security...
Searching shells...
Searching sysutils...
Searching textproc...
Searching ukrainian...
Searching vietnamese...
Searching www...
Searching x11...
Searching x11-clocks...
Searching x11-drivers...
Searching x11-fm...
Searching x11-fonts...
Searching x11-servers...
Searching x11-themes...
Searching x11-toolkits...
Searching x11-wm...
Comment 19 Trenton Schulz 2017-03-02 15:23:13 UTC
(In reply to rkoberman from comment #17)

Well, this explains lots of problems I was having in TrueOS with OpenGL (well, Mesa). I'm glad I stumbled onto that bit of info. I removed all my llvm orphans; I'm very interested to see if it solves some other head-scratching issues I was having.

As for a solution: isn't this where the CONFLICTS keyword comes in? Otherwise, I'm not familiar with the FreeBSD library version numbering (or ELF), but I know that MacOS has a way that you can specify a Major and Minor version number so things built with later version (e.g., llvm39 in this case) would only accept a 3.9 library (or higher). If such a mechanism is available in FreeBSD, that would seem to be the correct solution.

I if this is already what's happening.
Comment 20 Jason W. Bacon freebsd_committer freebsd_triage 2017-03-04 21:22:50 UTC
FYI, llvm37 by itself is not sufficient to cause of this issue.  In trying to reproduce the problem, I found that even with llvm37 installed on my ThinkPad with Intel graphics, I do not experience a crash and gdb shows no loading of llvm libs.

Reinstalling llvm37 does bring back the seg fault on another system using radeon graphics.
Comment 21 robert.ayrapetyan 2017-05-09 17:47:53 UTC
Nothing had helped me. I've removed llvm37 etc, but VirtualBox always segfaults on startup (no core is produced).
I'm also sure it's a permissions related issue, because it starts fine under root.
This has all begun after another "freebsd-install fetch update", so I'm also sure something has changed in OS core itself and not in the port.
Comment 22 robert.ayrapetyan 2017-05-09 18:12:02 UTC
Ok, so here is what helped me after another 5 minutes of research...

pkg info | grep llvm
llvm39-3.9.1_4                 LLVM and Clang
(so only one llvm is installed)

VirtualBox segfaults

/usr/local % ls | grep llvm
llvm36
llvm39
(hm, this is really strange)

pkg install llvm36
pkg remove llvm36

VirtualBox segfaults

/usr/local % ls | grep llvm
llvm36
llvm39
(nasty llvm36 is still there!)

rm -rf /usr/local/llvm36

VirtualBox
it works now!!!

Also I need to note that not so long ago I've switched from "latest" to "quarterly" (default FreeBSD 11-RELEASE mode) pkg update server, and probably this caused all that mess on my machine...
Comment 23 Jason W. Bacon freebsd_committer freebsd_triage 2017-05-09 18:59:53 UTC
That fact that it worked as root does not mean it's a permissions issue.  There are many other variables between the root env and other envs.  In my case, it was PATH differences that caused it to work under root but not my regular login.
Comment 24 Walter Schwarzenfeld freebsd_triage 2018-01-22 09:24:05 UTC
Is this still relevant? Or could it be closed?
Comment 25 Jason W. Bacon freebsd_committer freebsd_triage 2018-01-22 14:50:25 UTC
I would consider this resolved.

I'll add that problems like this might be averted by regularly running pkg autoremove following upgrades.  I've made this the default in auto-update-system, one of the scripts in sysutils/auto-admin.