<div>Currently the G++10 compiled Virtualbox crashs in exception handling. The stack looks similar to the problem with libexiv2 in https://www.illumos.org/issues/13824</div><div>but it seems the correct libs are loaded in the correct <span class="HwtZe" lang="en"><span class="jCAhz ChMk0b"><span class="ryNqvb">sequence.</span></span></span></div><div><br /></div><div>(gdb) bt<br />#0  0x00007fffaf4091ca in _lwp_kill () from /lib/64/libc.so.1<br />#1  0x00007fffaf3ffa9a in thr_kill () from /lib/64/libc.so.1<br />#2  0x00007fffaf39b762 in raise () from /lib/64/libc.so.1<br />#3  0x00007fffaf374fa8 in abort () from /lib/64/libc.so.1<br />#4  0x00007fffa67fa42d in ?? () from /usr/gcc/10/lib/amd64/libstdc++.so.6<br />#5  0x00007fffa67f7249 in ?? () from /usr/gcc/10/lib/amd64/libstdc++.so.6<br />#6  0x00007fffa67f6099 in ?? () from /usr/gcc/10/lib/amd64/libstdc++.so.6<br />#7  0x00007fffa67f6a8c in __gxx_personality_v0 () from /usr/gcc/10/lib/amd64/libstdc++.so.6<br />#8  0x00007fffa8235716 in _Unwind_RaiseException_Phase2 (exc=exc@entry=0xe5c410, context=context@entry=0x7fffadfce5a0, <br />    frames_p=frames_p@entry=0x7fffadfce690)<br />    at /jenkins/jobs/oi-userland/workspace/components/developer/gcc-10/gcc-releases-gcc-10.5.0/libgcc/unwind.inc:64<br />#9  0x00007fffa8235dc1 in _Unwind_RaiseException (exc=0xe5c410)<br />    at /jenkins/jobs/oi-userland/workspace/components/developer/gcc-10/gcc-releases-gcc-10.5.0/libgcc/unwind.inc:136<br />#10 0x00007fffa67f7570 in __cxa_throw () from /usr/gcc/10/lib/amd64/libstdc++.so.6<br />#11 0x00000000007b1eb5 in Medium::i_queryInfo (this=this@entry=0xe004c0, fSetImageId=fSetImageId@entry=false, <br />    fSetParentId=fSetParentId@entry=false, autoCaller=...)<br />    at /code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/VBox/Main/src-server/MediumImpl.cpp:7176<br />#12 0x00000000007b2dc5 in Medium::refreshState (this=0xe004c0, autoCaller=..., aState=0xe0b1a0)<br />    at /code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/VBox/Main/src-server/MediumImpl.cpp:2180<br />#13 0x00000000009acf71 in MediumWrap::RefreshState (this=0xe004c0, aState=0xe0b1a0)<br />    at /code/github/oi-userland/components/sysutils/virtualbox/build/amd64/out/solaris.amd64/debug/obj/VBoxAPIWrap/MediumWrap.cpp:1344<br />#14 0x00007fff8d47a040 in XPTC_InvokeByIndex (that=0xe00530, methodIndex=41, paramCount=1, params=0xe0b1a0)<br />    at /code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/libs/xpcom18a4/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_x86_64_linux.cpp:221<br />#15 0x00007fff8f7b53f9 in ipcDConnectService::OnInvoke (this=0xcf6c40, peer=2, invoke=0xe0b170, opLen=18)<br />    at /code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/libs/xpcom18a4/ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp:4076<br />#16 0x00007fff8f7b3f5d in ipcDConnectService::OnIncomingRequest (this=0xcf6c40, peer=2, op=0xe0b170, opLen=18)<br />    at /code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/libs/xpcom18a4/ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp:3706<br />#17 0x00007fff8f7b1afb in DConnectWorker::Run (this=0xe0b650)<br />    at /code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/libs/xpcom18a4/ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp:2979<br />#18 0x00007fff8d4637bc in nsThread::Main (arg=0xd9a100)<br />    at /code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/libs/xpcom18a4/xpcom/threads/nsThread.cpp:118<br />#19 0x00007fff8d4afdc1 in _pt_root (arg=0xe97870)<br />    at /code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/libs/xpcom18a4/nsprpub/pr/src/pthreads/ptthread.c:224<br />#20 0x00007fff8d4aff0a in _pt_iprt_root (Thread=0xe2cbb0, pvUser=0xe97870)<br />    at /code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/libs/xpcom18a4/nsprpub/pr/src/pthreads/ptthread.c:272<br />#21 0x00007fff8d7d6563 in rtThreadMain (pThread=pThread@entry=0xe2cbb0, NativeThread=NativeThread@entry=11, <br />    pszThreadName=pszThreadName@entry=0xe2d488 "nspr-3")<br />    at /code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/VBox/Runtime/common/misc/thread.cpp:727<br />#22 0x00007fff8d8de1d3 in rtThreadNativeMain (pvArgs=0xe2cbb0)<br />    at /code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/VBox/Runtime/r3/posix/thread-posix.cpp:386</div><div>#23 0x00007fffaf401de7 in _thrp_setup () from /lib/64/libc.so.1<br />#24 0x00007fffaf402130 in ?? () from /lib/64/libc.so.1<br /></div><div><br /></div><div>or the mdb view:</div><div>> $C<br />00007fffae33c0e0 libc.so.1`_lwp_kill+0xa()<br />00007fffae33c110 libc.so.1`raise+0x22(6)<br />00007fffae33c160 libc.so.1`abort+0x58()<br />00007fffae33c1a0 libstdc++.so.6.0.28`__gnu_cxx::__verbose_terminate_handler+0x65()<br />00007fffae33c1c0 libstdc++.so.6.0.28`__cxxabiv1::__terminate+9()<br />00007fffae33c1e0 0x7fffa67f6099()<br />00007fffae33c2d0 libstdc++.so.6.0.28`__gxx_personality_v0+0x2bc()<br />00007fffae33c4a0 libgcc_s.so.1`_Unwind_RaiseException_Phase2+0xa6()<br />00007fffae33c850 libgcc_s.so.1`_Unwind_RaiseException+0x331()<br />00007fffae33c880 libstdc++.so.6.0.28`__cxa_throw+0x40()<br />00007fffae33ca70 Medium::i_queryInfo+0x2ae()<br />00007fffae33cab0 Medium::refreshState+0xa5()<br />00007fffae33cb00 MediumWrap::RefreshState+0x121()<br />00007fffae33cbd0 VBoxXPCOM.so`XPTC_InvokeByIndex+0x1c7()<br />00007fffae33cdd0 VBoxXPCOMIPCC.so`ipcDConnectService::OnInvoke+0x6cf()<br />00007fffae33ce00 VBoxXPCOMIPCC.so`ipcDConnectService::OnIncomingRequest+0x7b()<br />00007fffae33cea0 VBoxXPCOMIPCC.so`DConnectWorker::Run+0x20b()<br />00007fffae33ced0 VBoxXPCOM.so`nsThread::Main+0xb4()<br />00007fffae33cf00 VBoxXPCOM.so`_pt_root+0x10e()<br />00007fffae33cf30 VBoxXPCOM.so`_pt_iprt_root+0x24()<br />00007fffae33cf70 VBoxRT.so`rtThreadMain+0x53()<br />00007fffae33cfb0 VBoxRT.so`rtThreadNativeMain+0x43()<br />00007fffae33cfe0 libc.so.1`_thrp_setup+0x77(7fffaeac4a40)<br />00007fffae33cff0 libc.so.1`_lwp_start()<br /></div><div><br /></div><div>libgcc_s and libstdc++ seems to be loaded from the GCC10<br /></div><div>> ::objects </div><div>    7fffa66f0000     7fffa690b000           21b000 /usr/gcc/10/lib/amd64/libstdc++.so.6.0.28<br />    7fffa8220000     7fffa823b000            1b000 /usr/gcc/10/lib/amd64/libgcc_s.so.1<br /></div><div><br /></div><div>The same Virtualbox version compiled with GCC7 works. <br /></div><div>What could the problem be for this crash in exception handling?<br /></div>-- <br signature="separator" /><div><signatureafterquotedtext>Carsten</signatureafterquotedtext></div><div><signatureafterquotedtext><br /></signatureafterquotedtext></div><div><signatureafterquotedtext><br /></signatureafterquotedtext></div><div><signatureafterquotedtext><br /></signatureafterquotedtext></div>