Re: [oi-dev] Virtualbox crash

2023-09-15 Thread Carsten Grzemba via oi-dev
Am 15.09.2023 08:58 schrieb Stephan Althaus :Hello Carsten!





I have seen your new PR to VirtualBox.



I don't understand why it is a good idea to compile packges with GCC-12 

instead of GCC-10.



Shoudn't we stay with GCC-10 not to break further more things with an 

additional ABI incompatibility in the line GCC-7 - GCC-10 - GCC-12 ?



What will be the next standard-compiler (after GCCC-10) for illumos/OI, 

GCC-12 or GCC-13 ?





Would you be so kind and explain it in short, or maybe present a link 

for further reading?



Thanks!



Stephan







___

oi-dev mailing list

oi-dev@openindiana.org

https://openindiana.org/mailman/listinfo/oi-dev


Vbox builds with gcc10 or gcc11 always crash in c++ excepion handling. Only gcc7 or gcc12 builds survived.That's the reason.

___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


Re: [oi-dev] Virtualbox crash

2023-09-15 Thread Marcel Telka
On Fri, Sep 15, 2023 at 10:29:20AM +0300, Toomas Soome via oi-dev wrote:
> we are planning gcc 13 (C23 features),

This one? https://github.com/illumos/gcc/tree/il-13_1_0

> unfortunately oi does not provide it yet, does it?

Yep, OI does not have gcc-13 yet.

-- 
+---+
| Marcel Telka   e-mail:   mar...@telka.sk  |
|homepage: http://telka.sk/ |
+---+

___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


Re: [oi-dev] Virtualbox crash

2023-09-15 Thread Toomas Soome via oi-dev



> On 15. Sep 2023, at 09:58, Stephan Althaus  
> wrote:
> 
> Hello Carsten!
> 
> 
> I have seen your new PR to VirtualBox.
> 
> I don't understand why it is a good idea to compile packges with GCC-12 
> instead of GCC-10.
> 
> Shoudn't we stay with GCC-10 not to break further more things with an 
> additional ABI incompatibility in the line GCC-7 - GCC-10 - GCC-12 ?
> 
> What will be the next standard-compiler (after GCCC-10) for illumos/OI, 
> GCC-12 or GCC-13 ?
> 
> 
> Would you be so kind and explain it in short, or maybe present a link for 
> further reading?
> 
> Thanks!
> 
> Stephan
> 


we are planning gcc 13 (C23 features), unfortunately oi does not provide it 
yet, does it?

rgds,
toomas
___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


Re: [oi-dev] Virtualbox crash

2023-09-15 Thread Stephan Althaus

Hello Carsten!


I have seen your new PR to VirtualBox.

I don't understand why it is a good idea to compile packges with GCC-12 
instead of GCC-10.


Shoudn't we stay with GCC-10 not to break further more things with an 
additional ABI incompatibility in the line GCC-7 - GCC-10 - GCC-12 ?


What will be the next standard-compiler (after GCCC-10) for illumos/OI, 
GCC-12 or GCC-13 ?



Would you be so kind and explain it in short, or maybe present a link 
for further reading?


Thanks!

Stephan



___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


Re: [oi-dev] Virtualbox crash

2023-08-30 Thread Carsten Grzemba via oi-dev


Am 28.08.23 13:27 schrieb "Carsten Grzemba"  : 
> 
> 
> 
> Am 28.08.23 12:38 schrieb Toomas Soome  : 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > > 
> > > On 28. Aug 2023, at 13:32, Carsten Grzemba via oi-dev 
> > >  wrote:
> > > 
> > > 
> > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > > 
> > > > > #11 0x007b1eb5 in Medium::i_queryInfo 
> > > > > (this=this@entry=0xe004c0, fSetImageId=fSetImageId@entry=false,
> > > > >  fSetParentId=fSetParentId@entry=false, autoCaller=...)
> > > > >  at 
> > > > > /code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/VBox/Main/src-server/MediumImpl.cpp:7176
> > > > > #12 0x007b2dc5 in Medium::refreshState (this=0xe004c0, 
> > > > > autoCaller=..., aState=0xe0b1a0)
> > > > >  at 
> > > > > /code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/VBox/Main/src-server/MediumImpl.cpp:2180
> > > > > #13 0x009acf71 in MediumWrap::RefreshState (this=0xe004c0, 
> > > > > aState=0xe0b1a0)
> > > > >  at 
> > > > > /code/github/oi-userland/components/sysutils/virtualbox/build/amd64/out/solaris.amd64/debug/obj/VBoxAPIWrap/MediumWrap.cpp:1344
> > > > > 
> > > > 
> > > > 
> > > >  
> > > > 
> > > 
> > > 
> > 
> > 
> > 
> > 
> > Those are bits you want to look into, as you get throw from:
> > 
> > 
> > Medium::i_queryInfo+0x2ae() 
> > 
> > 
> >  
> > 
> > rgds, 
> > 
> > toomas 
> > 
> > 
> >  
> > 
>  try 
>  {
>  /* skip accessibility checks for host drives */
>  if (m->hostDrive)
>  { 
>  success = true; 
>  --->> throw S_OK; 
>  } 
> 
> 
> ...8<..
> 
> 
>  }
>  catch (HRESULT aRC)
>  {
>  rc = aRC;
>  }
> 
> 
> Which is a very impressive application of C++-Exception ...
>  
> 
>  
> 
> -- 
> Carsten 
> 

A little bit confusing, the working binary compiled with gcc7:

$ gdb /opt/VirtualBox/amd64/VBoxSVC 
GNU gdb (GDB) 13.2

...

(gdb) b Medium::i_queryInfo
warning: could not convert 'Medium::i_queryInfo' from the host encoding 
(ISO-8859-1) to UTF-32.
This normally should not happen, please file a bug report.
Breakpoint 1 at 0x75f0c0: file 
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/VBox/Main/src-server/MediumImpl.cpp,
 line 7054.

and the not working compiled with gcc10


$ gdb /opt/VirtualBox/amd64/VBoxSVC 
GNU gdb (GDB) 13.2

...

(gdb) b Medium::i_queryInfo
warning: could not convert 'Medium::i_queryInfo' from the host encoding 
(ISO-8859-1) to UTF-32.
This normally should not happen, please file a bug report.
Breakpoint 1 at 0x7bb2a0: file 
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/include/VBox/com/AutoLock.h,
 line 266.


the symbol Medium::i_queryInfo is mapped different.

-- 
Carsten
___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


Re: [oi-dev] Virtualbox crash

2023-08-28 Thread Carsten Grzemba via oi-dev


Am 28.08.23 12:38 schrieb Toomas Soome  : 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> > 
> > On 28. Aug 2023, at 13:32, Carsten Grzemba via oi-dev 
> >  wrote:
> > 
> > 
> > 
> > > 
> > > 
> > > 
> > > 
> > > > 
> > > > #11 0x007b1eb5 in Medium::i_queryInfo 
> > > > (this=this@entry=0xe004c0, fSetImageId=fSetImageId@entry=false,  
> > > >  fSetParentId=fSetParentId@entry=false, autoCaller=...)
> > > >  at 
> > > > /code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/VBox/Main/src-server/MediumImpl.cpp:7176
> > > > #12 0x007b2dc5 in Medium::refreshState (this=0xe004c0, 
> > > > autoCaller=..., aState=0xe0b1a0)
> > > >  at 
> > > > /code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/VBox/Main/src-server/MediumImpl.cpp:2180
> > > > #13 0x009acf71 in MediumWrap::RefreshState (this=0xe004c0, 
> > > > aState=0xe0b1a0)
> > > >  at 
> > > > /code/github/oi-userland/components/sysutils/virtualbox/build/amd64/out/solaris.amd64/debug/obj/VBoxAPIWrap/MediumWrap.cpp:1344
> > > > 
> > > 
> > > 
> > >  
> > > 
> > 
> > 
> 
> 
> 
> 
> Those are bits you want to look into, as you get throw from:
> 
> 
> Medium::i_queryInfo+0x2ae() 
> 
> 
>  
> 
> rgds, 
> 
> toomas 
> 
> 
>  
> 
 try 
 {
 /* skip accessibility checks for host drives */
 if (m->hostDrive)
 { 
 success = true; 
 --->> throw S_OK; 
 } 


...8<..


 }
 catch (HRESULT aRC)
 {
 rc = aRC;
 }


Which is a very impressive application of C++-Exception ...
 

 

-- 
Carsten
___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


Re: [oi-dev] Virtualbox crash

2023-08-28 Thread Toomas Soome via oi-dev


> On 28. Aug 2023, at 13:32, Carsten Grzemba via oi-dev 
>  wrote:
> 
>> 
>>> #11 0x007b1eb5 in Medium::i_queryInfo (this=this@entry=0xe004c0, 
>>> fSetImageId=fSetImageId@entry=false, 
>>> fSetParentId=fSetParentId@entry=false, autoCaller=...)
>>> at 
>>> /code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/VBox/Main/src-server/MediumImpl.cpp:7176
>>> #12 0x007b2dc5 in Medium::refreshState (this=0xe004c0, 
>>> autoCaller=..., aState=0xe0b1a0)
>>> at 
>>> /code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/VBox/Main/src-server/MediumImpl.cpp:2180
>>> #13 0x009acf71 in MediumWrap::RefreshState (this=0xe004c0, 
>>> aState=0xe0b1a0)
>>> at 
>>> /code/github/oi-userland/components/sysutils/virtualbox/build/amd64/out/solaris.amd64/debug/obj/VBoxAPIWrap/MediumWrap.cpp:1344


Those are bits you want to look into, as you get throw from:

Medium::i_queryInfo+0x2ae()

rgds,
toomas___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


Re: [oi-dev] Virtualbox crash

2023-08-28 Thread Udo Grabowski (IMK)

Isn't that the same gcc-7/10 mixup again ? Somewhere hidden by indirect loading?
That gxx_personality_v0/Unwind_RaiseException_Phase2 stuff looks like its that
signature ... Set LD_DEBUG to 'files' or 'libs' and start it from that
commandline.

On 28/08/2023 11:30, Carsten Grzemba via oi-dev wrote:

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
but it seems the correct libs are loaded in the correct sequence.

(gdb) bt
#0  0x7fffaf4091ca in _lwp_kill () from /lib/64/libc.so.1
#1  0x7fffaf3ffa9a in thr_kill () from /lib/64/libc.so.1
#2  0x7fffaf39b762 in raise () from /lib/64/libc.so.1
#3  0x7fffaf374fa8 in abort () from /lib/64/libc.so.1
#4  0x7fffa67fa42d in ?? () from /usr/gcc/10/lib/amd64/libstdc++.so.6
#5  0x7fffa67f7249 in ?? () from /usr/gcc/10/lib/amd64/libstdc++.so.6
#6  0x7fffa67f6099 in ?? () from /usr/gcc/10/lib/amd64/libstdc++.so.6
#7  0x7fffa67f6a8c in __gxx_personality_v0 () from
/usr/gcc/10/lib/amd64/libstdc++.so.6
#8  0x7fffa8235716 in _Unwind_RaiseException_Phase2 (exc=exc@entry=0xe5c410,
context=context@entry=0x7fffadfce5a0,
frames_p=frames_p@entry=0x7fffadfce690)
at
/jenkins/jobs/oi-userland/workspace/components/developer/gcc-10/gcc-releases-gcc-10.5.0/libgcc/unwind.inc:64
#9  0x7fffa8235dc1 in _Unwind_RaiseException (exc=0xe5c410)
at
/jenkins/jobs/oi-userland/workspace/components/developer/gcc-10/gcc-releases-gcc-10.5.0/libgcc/unwind.inc:136
#10 0x7fffa67f7570 in __cxa_throw () from 
/usr/gcc/10/lib/amd64/libstdc++.so.6
#11 0x007b1eb5 in Medium::i_queryInfo (this=this@entry=0xe004c0,
fSetImageId=fSetImageId@entry=false,
fSetParentId=fSetParentId@entry=false, autoCaller=...)
at
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/VBox/Main/src-server/MediumImpl.cpp:7176
#12 0x007b2dc5 in Medium::refreshState (this=0xe004c0, autoCaller=...,
aState=0xe0b1a0)
at
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/VBox/Main/src-server/MediumImpl.cpp:2180
#13 0x009acf71 in MediumWrap::RefreshState (this=0xe004c0, 
aState=0xe0b1a0)
at
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/out/solaris.amd64/debug/obj/VBoxAPIWrap/MediumWrap.cpp:1344
#14 0x7fff8d47a040 in XPTC_InvokeByIndex (that=0xe00530, methodIndex=41,
paramCount=1, params=0xe0b1a0)
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
#15 0x7fff8f7b53f9 in ipcDConnectService::OnInvoke (this=0xcf6c40, peer=2,
invoke=0xe0b170, opLen=18)
at
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/libs/xpcom18a4/ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp:4076
#16 0x7fff8f7b3f5d in ipcDConnectService::OnIncomingRequest (this=0xcf6c40,
peer=2, op=0xe0b170, opLen=18)
at
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/libs/xpcom18a4/ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp:3706
#17 0x7fff8f7b1afb in DConnectWorker::Run (this=0xe0b650)
at
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/libs/xpcom18a4/ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp:2979
#18 0x7fff8d4637bc in nsThread::Main (arg=0xd9a100)
at
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/libs/xpcom18a4/xpcom/threads/nsThread.cpp:118
#19 0x7fff8d4afdc1 in _pt_root (arg=0xe97870)
at
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/libs/xpcom18a4/nsprpub/pr/src/pthreads/ptthread.c:224
#20 0x7fff8d4aff0a in _pt_iprt_root (Thread=0xe2cbb0, pvUser=0xe97870)
at
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/libs/xpcom18a4/nsprpub/pr/src/pthreads/ptthread.c:272
#21 0x7fff8d7d6563 in rtThreadMain (pThread=pThread@entry=0xe2cbb0,
NativeThread=NativeThread@entry=11,
pszThreadName=pszThreadName@entry=0xe2d488 "nspr-3")
at
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/VBox/Runtime/common/misc/thread.cpp:727
#22 0x7fff8d8de1d3 in rtThreadNativeMain (pvArgs=0xe2cbb0)
at
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/VBox/Runtime/r3/posix/thread-posix.cpp:386
#23 0x7fffaf401de7 in _thrp_setup () from /lib/64/libc.so.1
#24 0x7fffaf402130 in ?? () from /lib/64/libc.so.1

or the mdb view:

$C

7fffae33c0e0 libc.so.1`_lwp_kill+0xa()
7fffae33c110 libc.so.1`raise+0x22(6)
7fffae33c160 libc.so.1`abort+0x58()
7fffae33c1a0 
libstdc++.so.6.0.28`__gnu_cxx::__verbose_terminate_handler+0x65()
7fffae33c1c0 libstdc++.so.6.0.28`__cxxabiv1::__terminate+9()
7fffae33c1e0 0x7fffa67f6099()
7fffae33c2d0 libstdc++.so.6.0.28`__gxx_personality_v0+0x2bc()
7fffae33c4a0 

Re: [oi-dev] Virtualbox crash

2023-08-28 Thread Carsten Grzemba via oi-dev


Am 28.08.23 12:22 schrieb Stephan Althaus  : 
> 
> 
>   
> 
> 
> 
>  
> 
> On 8/28/23 11:30, Carsten Grzemba via oi-dev wrote:
>  
>  
> >   
> > 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
> >  
> > but it seems the correct libs are loaded in the correct sequence.   
> >  
> > 
> >  
> >  
> > (gdb) bt
> >  #0 0x7fffaf4091ca in _lwp_kill () from /lib/64/libc.so.1
> >  #1 0x7fffaf3ffa9a in thr_kill () from /lib/64/libc.so.1
> >  #2 0x7fffaf39b762 in raise () from /lib/64/libc.so.1
> >  #3 0x7fffaf374fa8 in abort () from /lib/64/libc.so.1
> >  #4 0x7fffa67fa42d in ?? () from /usr/gcc/10/lib/amd64/libstdc++.so.6
> >  #5 0x7fffa67f7249 in ?? () from /usr/gcc/10/lib/amd64/libstdc++.so.6
> >  #6 0x7fffa67f6099 in ?? () from /usr/gcc/10/lib/amd64/libstdc++.so.6
> >  #7 0x7fffa67f6a8c in __gxx_personality_v0 () from 
> > /usr/gcc/10/lib/amd64/libstdc++.so.6
> >  #8 0x7fffa8235716 in _Unwind_RaiseException_Phase2 
> > (exc=exc@entry=0xe5c410, context=context@entry=0x7fffadfce5a0, 
> >  frames_p=frames_p@entry=0x7fffadfce690)
> >  at
> > /jenkins/jobs/oi-userland/workspace/components/developer/gcc-10/gcc-releases-gcc-10.5.0/libgcc/unwind.inc:64
> >  #9 0x7fffa8235dc1 in _Unwind_RaiseException (exc=0xe5c410)
> >  at
> > /jenkins/jobs/oi-userland/workspace/components/developer/gcc-10/gcc-releases-gcc-10.5.0/libgcc/unwind.inc:136
> >  #10 0x7fffa67f7570 in __cxa_throw () from 
> > /usr/gcc/10/lib/amd64/libstdc++.so.6
> >  #11 0x007b1eb5 in Medium::i_queryInfo (this=this@entry=0xe004c0, 
> > fSetImageId=fSetImageId@entry=false, 
> >  fSetParentId=fSetParentId@entry=false, autoCaller=...)
> >  at
> > /code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/VBox/Main/src-server/MediumImpl.cpp:7176
> >  #12 0x007b2dc5 in Medium::refreshState (this=0xe004c0, 
> > autoCaller=..., aState=0xe0b1a0)
> >  at
> > /code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/VBox/Main/src-server/MediumImpl.cpp:2180
> >  #13 0x009acf71 in MediumWrap::RefreshState (this=0xe004c0, 
> > aState=0xe0b1a0)
> >  at
> > /code/github/oi-userland/components/sysutils/virtualbox/build/amd64/out/solaris.amd64/debug/obj/VBoxAPIWrap/MediumWrap.cpp:1344
> >  #14 0x7fff8d47a040 in XPTC_InvokeByIndex (that=0xe00530, 
> > methodIndex=41, paramCount=1, params=0xe0b1a0)
> >  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
> >  #15 0x7fff8f7b53f9 in ipcDConnectService::OnInvoke (this=0xcf6c40, 
> > peer=2, invoke=0xe0b170, opLen=18)
> >  at
> > /code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/libs/xpcom18a4/ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp:4076
> >  #16 0x7fff8f7b3f5d in ipcDConnectService::OnIncomingRequest 
> > (this=0xcf6c40, peer=2, op=0xe0b170, opLen=18)
> >  at
> > /code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/libs/xpcom18a4/ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp:3706
> >  #17 0x7fff8f7b1afb in DConnectWorker::Run (this=0xe0b650)
> >  at
> > /code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/libs/xpcom18a4/ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp:2979
> >  #18 0x7fff8d4637bc in nsThread::Main (arg=0xd9a100)
> >  at
> > /code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/libs/xpcom18a4/xpcom/threads/nsThread.cpp:118
> >  #19 0x7fff8d4afdc1 in _pt_root (arg=0xe97870)
> >  at
> > /code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/libs/xpcom18a4/nsprpub/pr/src/pthreads/ptthread.c:224
> >  #20 0x7fff8d4aff0a in _pt_iprt_root (Thread=0xe2cbb0, pvUser=0xe97870)
> >  at
> > /code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/libs/xpcom18a4/nsprpub/pr/src/pthreads/ptthread.c:272
> >  #21 0x7fff8d7d6563 in rtThreadMain (pThread=pThread@entry=0xe2cbb0, 
> > NativeThread=NativeThread@entry=11, 
> >  pszThreadName=pszThreadName@entry=0xe2d488 "nspr-3")
> >  at
> > /code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/VBox/Runtime/common/misc/thread.cpp:727
> >  #22 0x7fff8d8de1d3 in rtThreadNativeMain (pvArgs=0xe2cbb0)
> >  at
> > /code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/VBox/Runtime/r3/posix/thread-posix.cpp:386
> >  
> > #23 0x7fffaf401de7 in _thrp_setup () from /lib/64/libc.so.1
> >  #24 0x7fffaf402130 in ?? () from /lib/64/libc.so.1
> >  
> >  
> > 
> >  
> >  
> > or the mdb view:
> >  
> > > $C
> >  7fffae33c0e0 libc.so.1`_lwp_kill+0xa()
> >  7fffae33c110 libc.so.1`raise+0x22(6)
> >  7fffae33c160 libc.so.1`abort+0x58()
> >  7fffae33c1a0 
> > libstdc++.so.6.0.28`__gnu_cxx::__verbose_terminate_handler+0x65()
> >  7fffae33c1c0 

Re: [oi-dev] Virtualbox crash

2023-08-28 Thread Stephan Althaus

On 8/28/23 11:30, Carsten Grzemba via oi-dev wrote:
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

but it seems the correct libs are loaded in the correct sequence.

(gdb) bt
#0  0x7fffaf4091ca in _lwp_kill () from /lib/64/libc.so.1
#1  0x7fffaf3ffa9a in thr_kill () from /lib/64/libc.so.1
#2  0x7fffaf39b762 in raise () from /lib/64/libc.so.1
#3  0x7fffaf374fa8 in abort () from /lib/64/libc.so.1
#4  0x7fffa67fa42d in ?? () from /usr/gcc/10/lib/amd64/libstdc++.so.6
#5  0x7fffa67f7249 in ?? () from /usr/gcc/10/lib/amd64/libstdc++.so.6
#6  0x7fffa67f6099 in ?? () from /usr/gcc/10/lib/amd64/libstdc++.so.6
#7  0x7fffa67f6a8c in __gxx_personality_v0 () from 
/usr/gcc/10/lib/amd64/libstdc++.so.6
#8  0x7fffa8235716 in _Unwind_RaiseException_Phase2 
(exc=exc@entry=0xe5c410, context=context@entry=0x7fffadfce5a0,

    frames_p=frames_p@entry=0x7fffadfce690)
    at 
/jenkins/jobs/oi-userland/workspace/components/developer/gcc-10/gcc-releases-gcc-10.5.0/libgcc/unwind.inc:64

#9  0x7fffa8235dc1 in _Unwind_RaiseException (exc=0xe5c410)
    at 
/jenkins/jobs/oi-userland/workspace/components/developer/gcc-10/gcc-releases-gcc-10.5.0/libgcc/unwind.inc:136
#10 0x7fffa67f7570 in __cxa_throw () from 
/usr/gcc/10/lib/amd64/libstdc++.so.6
#11 0x007b1eb5 in Medium::i_queryInfo 
(this=this@entry=0xe004c0, fSetImageId=fSetImageId@entry=false,

    fSetParentId=fSetParentId@entry=false, autoCaller=...)
    at 
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/VBox/Main/src-server/MediumImpl.cpp:7176
#12 0x007b2dc5 in Medium::refreshState (this=0xe004c0, 
autoCaller=..., aState=0xe0b1a0)
    at 
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/VBox/Main/src-server/MediumImpl.cpp:2180
#13 0x009acf71 in MediumWrap::RefreshState (this=0xe004c0, 
aState=0xe0b1a0)
    at 
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/out/solaris.amd64/debug/obj/VBoxAPIWrap/MediumWrap.cpp:1344
#14 0x7fff8d47a040 in XPTC_InvokeByIndex (that=0xe00530, 
methodIndex=41, paramCount=1, params=0xe0b1a0)
    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
#15 0x7fff8f7b53f9 in ipcDConnectService::OnInvoke (this=0xcf6c40, 
peer=2, invoke=0xe0b170, opLen=18)
    at 
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/libs/xpcom18a4/ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp:4076
#16 0x7fff8f7b3f5d in ipcDConnectService::OnIncomingRequest 
(this=0xcf6c40, peer=2, op=0xe0b170, opLen=18)
    at 
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/libs/xpcom18a4/ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp:3706

#17 0x7fff8f7b1afb in DConnectWorker::Run (this=0xe0b650)
    at 
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/libs/xpcom18a4/ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp:2979

#18 0x7fff8d4637bc in nsThread::Main (arg=0xd9a100)
    at 
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/libs/xpcom18a4/xpcom/threads/nsThread.cpp:118

#19 0x7fff8d4afdc1 in _pt_root (arg=0xe97870)
    at 
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/libs/xpcom18a4/nsprpub/pr/src/pthreads/ptthread.c:224

#20 0x7fff8d4aff0a in _pt_iprt_root (Thread=0xe2cbb0, pvUser=0xe97870)
    at 
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/libs/xpcom18a4/nsprpub/pr/src/pthreads/ptthread.c:272
#21 0x7fff8d7d6563 in rtThreadMain 
(pThread=pThread@entry=0xe2cbb0, NativeThread=NativeThread@entry=11,

    pszThreadName=pszThreadName@entry=0xe2d488 "nspr-3")
    at 
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/VBox/Runtime/common/misc/thread.cpp:727

#22 0x7fff8d8de1d3 in rtThreadNativeMain (pvArgs=0xe2cbb0)
    at 
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/VBox/Runtime/r3/posix/thread-posix.cpp:386

#23 0x7fffaf401de7 in _thrp_setup () from /lib/64/libc.so.1
#24 0x7fffaf402130 in ?? () from /lib/64/libc.so.1

or the mdb view:
> $C
7fffae33c0e0 libc.so.1`_lwp_kill+0xa()
7fffae33c110 libc.so.1`raise+0x22(6)
7fffae33c160 libc.so.1`abort+0x58()
7fffae33c1a0 
libstdc++.so.6.0.28`__gnu_cxx::__verbose_terminate_handler+0x65()

7fffae33c1c0 libstdc++.so.6.0.28`__cxxabiv1::__terminate+9()
7fffae33c1e0 0x7fffa67f6099()
7fffae33c2d0 libstdc++.so.6.0.28`__gxx_personality_v0+0x2bc()
7fffae33c4a0 libgcc_s.so.1`_Unwind_RaiseException_Phase2+0xa6()
7fffae33c850 libgcc_s.so.1`_Unwind_RaiseException+0x331()
7fffae33c880 libstdc++.so.6.0.28`__cxa_throw+0x40()
7fffae33ca70 Medium::i_queryInfo+0x2ae()
7fffae33cab0 Medium::refreshState+0xa5()

[oi-dev] Virtualbox crash

2023-08-28 Thread Carsten Grzemba via oi-dev
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
but it seems the correct libs are loaded in the correct sequence.   

(gdb) bt
#0 0x7fffaf4091ca in _lwp_kill () from /lib/64/libc.so.1
#1 0x7fffaf3ffa9a in thr_kill () from /lib/64/libc.so.1
#2 0x7fffaf39b762 in raise () from /lib/64/libc.so.1
#3 0x7fffaf374fa8 in abort () from /lib/64/libc.so.1
#4 0x7fffa67fa42d in ?? () from /usr/gcc/10/lib/amd64/libstdc++.so.6
#5 0x7fffa67f7249 in ?? () from /usr/gcc/10/lib/amd64/libstdc++.so.6
#6 0x7fffa67f6099 in ?? () from /usr/gcc/10/lib/amd64/libstdc++.so.6
#7 0x7fffa67f6a8c in __gxx_personality_v0 () from 
/usr/gcc/10/lib/amd64/libstdc++.so.6
#8 0x7fffa8235716 in _Unwind_RaiseException_Phase2 (exc=exc@entry=0xe5c410, 
context=context@entry=0x7fffadfce5a0, 
 frames_p=frames_p@entry=0x7fffadfce690)
 at 
/jenkins/jobs/oi-userland/workspace/components/developer/gcc-10/gcc-releases-gcc-10.5.0/libgcc/unwind.inc:64
#9 0x7fffa8235dc1 in _Unwind_RaiseException (exc=0xe5c410)
 at 
/jenkins/jobs/oi-userland/workspace/components/developer/gcc-10/gcc-releases-gcc-10.5.0/libgcc/unwind.inc:136
#10 0x7fffa67f7570 in __cxa_throw () from 
/usr/gcc/10/lib/amd64/libstdc++.so.6
#11 0x007b1eb5 in Medium::i_queryInfo (this=this@entry=0xe004c0, 
fSetImageId=fSetImageId@entry=false, 
 fSetParentId=fSetParentId@entry=false, autoCaller=...)
 at 
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/VBox/Main/src-server/MediumImpl.cpp:7176
#12 0x007b2dc5 in Medium::refreshState (this=0xe004c0, autoCaller=..., 
aState=0xe0b1a0)
 at 
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/VBox/Main/src-server/MediumImpl.cpp:2180
#13 0x009acf71 in MediumWrap::RefreshState (this=0xe004c0, 
aState=0xe0b1a0)
 at 
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/out/solaris.amd64/debug/obj/VBoxAPIWrap/MediumWrap.cpp:1344
#14 0x7fff8d47a040 in XPTC_InvokeByIndex (that=0xe00530, methodIndex=41, 
paramCount=1, params=0xe0b1a0)
 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
#15 0x7fff8f7b53f9 in ipcDConnectService::OnInvoke (this=0xcf6c40, peer=2, 
invoke=0xe0b170, opLen=18)
 at 
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/libs/xpcom18a4/ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp:4076
#16 0x7fff8f7b3f5d in ipcDConnectService::OnIncomingRequest (this=0xcf6c40, 
peer=2, op=0xe0b170, opLen=18)
 at 
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/libs/xpcom18a4/ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp:3706
#17 0x7fff8f7b1afb in DConnectWorker::Run (this=0xe0b650)
 at 
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/libs/xpcom18a4/ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp:2979
#18 0x7fff8d4637bc in nsThread::Main (arg=0xd9a100)
 at 
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/libs/xpcom18a4/xpcom/threads/nsThread.cpp:118
#19 0x7fff8d4afdc1 in _pt_root (arg=0xe97870)
 at 
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/libs/xpcom18a4/nsprpub/pr/src/pthreads/ptthread.c:224
#20 0x7fff8d4aff0a in _pt_iprt_root (Thread=0xe2cbb0, pvUser=0xe97870)
 at 
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/libs/xpcom18a4/nsprpub/pr/src/pthreads/ptthread.c:272
#21 0x7fff8d7d6563 in rtThreadMain (pThread=pThread@entry=0xe2cbb0, 
NativeThread=NativeThread@entry=11, 
 pszThreadName=pszThreadName@entry=0xe2d488 "nspr-3")
 at 
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/VBox/Runtime/common/misc/thread.cpp:727
#22 0x7fff8d8de1d3 in rtThreadNativeMain (pvArgs=0xe2cbb0)
 at 
/code/github/oi-userland/components/sysutils/virtualbox/build/amd64/src/VBox/Runtime/r3/posix/thread-posix.cpp:386
#23 0x7fffaf401de7 in _thrp_setup () from /lib/64/libc.so.1
#24 0x7fffaf402130 in ?? () from /lib/64/libc.so.1


or the mdb view:
> $C
7fffae33c0e0 libc.so.1`_lwp_kill+0xa()
7fffae33c110 libc.so.1`raise+0x22(6)
7fffae33c160 libc.so.1`abort+0x58()
7fffae33c1a0 
libstdc++.so.6.0.28`__gnu_cxx::__verbose_terminate_handler+0x65()
7fffae33c1c0 libstdc++.so.6.0.28`__cxxabiv1::__terminate+9()
7fffae33c1e0 0x7fffa67f6099()
7fffae33c2d0 libstdc++.so.6.0.28`__gxx_personality_v0+0x2bc()
7fffae33c4a0 libgcc_s.so.1`_Unwind_RaiseException_Phase2+0xa6()
7fffae33c850 libgcc_s.so.1`_Unwind_RaiseException+0x331()
7fffae33c880 libstdc++.so.6.0.28`__cxa_throw+0x40()
7fffae33ca70 Medium::i_queryInfo+0x2ae()
7fffae33cab0 Medium::refreshState+0xa5()
7fffae33cb00 MediumWrap::RefreshState+0x121()
7fffae33cbd0 VBoxXPCOM.so`XPTC_InvokeByIndex+0x1c7()
7fffae33cdd0