VirtualBox

Ticket #9955 (new defect)

Opened 2 years ago

Last modified 2 years ago

VirtualBox 4.1.4 incompatible with gcc 4.6's libstdc++

Reported by: jmcp Owned by:
Priority: major Component: VMM
Version: VirtualBox 4.1.4 Keywords:
Cc: Guest type: Windows
Host type: Solaris

Description (last modified by frank) (diff)

I'm running Solaris 11 FCS (snv_175b), with VirtualBox 4.1.4 on a Sun Ultra40m2.

I installed the gcc 3.6 package from OpenIndiana (pkg.openindiana.org/sfe) so I could build darktable. Some days later I needed to start my Windows XP vbox instance but was unable to. I noticed this failure::

$ /opt/VirtualBox/VBoxManage startvm XPvbox
Waiting for VM "XPvbox" to power on...
VBoxManage: error: Code NS_ERROR_ABORT (0x80004004) - Operation aborted (extended info not available)
Context: "WaitForCompletion(-1)" at line 565 of file VBoxManageMisc.cpp
blinder:.VirtualBox $ 
blinder:.VirtualBox $ pfexec pstack  /var/crash/cores/core.VBoxSVC.5255
core '/var/crash/cores/core.VBoxSVC.5255' of 5255:	/opt/VirtualBox/amd64/VBoxSVC --auto-shutdown
-----------------  lwp# 1 / thread# 1  --------------------
 fffffd7fff1b2597 __lwp_park () + 17
 fffffd7fff1abfae cond_wait_queue () + 62
 fffffd7fff1ac54c __cond_wait () + 78
 fffffd7fff1ac591 cond_wait () + 1d
 fffffd7fff1ac5bd pthread_cond_wait () + 9
 fffffd7ff7213f2d VBoxNsprPR_WaitCondVar () + 6b
 fffffd7ff7214239 VBoxNsprPR_Wait () + 46
 fffffd7ff71e036d VBoxNsplPL_WaitForEvent () + 35
 fffffd7ff71e1f5c _ZN16nsEventQueueImpl12WaitForEventEPP7PLEvent () + 28
 00000000006f5c5c main () + aac
 000000000050714c _start () + 6c
-----------------  lwp# 2 / thread# 2  --------------------
 fffffd7fff1bb3ea __pollsys () + a
 fffffd7fff15daa7 poll () + 5f
 fffffd7ff72129ee _pr_poll_with_poll () + 3b4
 fffffd7ff7212b79 VBoxNsprPR_Poll () + 9
 fffffd7ff6e9dd21 _Z10ConnThreadPv () + 41
 fffffd7ff721487a _pt_root () + 90
 fffffd7ff721493f _pt_iprt_root () + c
 fffffd7ff73f372c rtThreadMain () + 2c
 fffffd7ff7440301 _Z18rtThreadNativeMainPv () + 81
 fffffd7fff1b22ad _thrp_setup () + a5
 fffffd7fff1b2550 _lwp_start ()
-----------------  lwp# 3 / thread# 3  --------------------
 fffffd7fff1b2597 __lwp_park () + 17
 fffffd7fff1abfae cond_wait_queue () + 62
 fffffd7fff1ac54c __cond_wait () + 78
 fffffd7fff1ac591 cond_wait () + 1d
 fffffd7fff1ac5bd pthread_cond_wait () + 9
 fffffd7ff743d172 _Z34rtSemEventMultiPosixWaitIndefiniteP23RTSEMEVENTMULTIINTERNALjPK15RTLOCKVALSRCPOS () + 72
 fffffd7ff743d52c RTSemEventMultiWaitEx () + bc
 fffffd7ff7432763 RTSemEventMultiWait () + 23
 0000000000513eac _ZN8Progress17WaitForCompletionEi () + ec
 fffffd7ff71f1f19 VBoxNsxpXPTC_InvokeByIndex () + 173
 fffffd7ff6e9b823 _ZN18ipcDConnectService8OnInvokeEjPK14DConnectInvokej () + 41b
 fffffd7ff6e9a92c _ZN18ipcDConnectService17OnIncomingRequestEjPK10DConnectOpj () + 42
 fffffd7ff6e99071 _ZN14DConnectWorker3RunEv () + 211
 fffffd7ff71e38de _ZN8nsThread4MainEPv () + 2e
 fffffd7ff721487a _pt_root () + 90
 fffffd7ff721493f _pt_iprt_root () + c
 fffffd7ff73f372c rtThreadMain () + 2c
 fffffd7ff7440301 _Z18rtThreadNativeMainPv () + 81
 fffffd7fff1b22ad _thrp_setup () + a5
 fffffd7fff1b2550 _lwp_start ()
-----------------  lwp# 4 / thread# 4  --------------------
 fffffd7fff1b2597 __lwp_park () + 17
 fffffd7fff1abfae cond_wait_queue () + 62
 fffffd7fff1ac54c __cond_wait () + 78
 fffffd7fff1ac591 cond_wait () + 1d
 fffffd7fff1ac5bd pthread_cond_wait () + 9
 fffffd7ff743c7f9 RTSemEventWait () + 1d9
 fffffd7ff7421d1e _Z15rtTimerLRThreadP11RTTHREADINTPv () + 2e
 fffffd7ff73f372c rtThreadMain () + 2c
 fffffd7ff7440301 _Z18rtThreadNativeMainPv () + 81
 fffffd7fff1b22ad _thrp_setup () + a5
 fffffd7fff1b2550 _lwp_start ()
-----------------  lwp# 5 / thread# 5  --------------------
 fffffd7fff1b2597 __lwp_park () + 17
 fffffd7fff1abfae cond_wait_queue () + 62
 fffffd7fff1ac3ec cond_wait_common () + 1dc
 fffffd7fff1ac631 __cond_timedwait () + 5d
 fffffd7fff1ac6c5 cond_timedwait () + 29
 fffffd7fff1ac6f9 pthread_cond_timedwait () + 9
 fffffd7ff743c74f RTSemEventWait () + 12f
 fffffd7ff7421db6 _Z15rtTimerLRThreadP11RTTHREADINTPv () + c6
 fffffd7ff73f372c rtThreadMain () + 2c
 fffffd7ff7440301 _Z18rtThreadNativeMainPv () + 81
 fffffd7fff1b22ad _thrp_setup () + a5
 fffffd7fff1b2550 _lwp_start ()
-----------------  lwp# 6 / thread# 6  --------------------
 fffffd7fff1b2597 __lwp_park () + 17
 fffffd7fff1abfae cond_wait_queue () + 62
 fffffd7fff1ac3ec cond_wait_common () + 1dc
 fffffd7fff1ac631 __cond_timedwait () + 5d
 fffffd7fff1ac6c5 cond_timedwait () + 29
 fffffd7fff1ac6f9 pthread_cond_timedwait () + 9
 fffffd7ff743c74f RTSemEventWait () + 12f
 0000000000700493 _ZN15USBProxyService13serviceThreadEP11RTTHREADINTPv () + 33
 fffffd7ff73f372c rtThreadMain () + 2c
 fffffd7ff7440301 _Z18rtThreadNativeMainPv () + 81
 fffffd7fff1b22ad _thrp_setup () + a5
 fffffd7fff1b2550 _lwp_start ()
-----------------  lwp# 7 / thread# 7  --------------------
 fffffd7fff1b2597 __lwp_park () + 17
 fffffd7fff1abfae cond_wait_queue () + 62
 fffffd7fff1ac3ec cond_wait_common () + 1dc
 fffffd7fff1ac631 __cond_timedwait () + 5d
 fffffd7fff1ac6c5 cond_timedwait () + 29
 fffffd7fff1ac6f9 pthread_cond_timedwait () + 9
 fffffd7ff743c74f RTSemEventWait () + 12f
 000000000069d01f _ZN10VirtualBox13ClientWatcherEP11RTTHREADINTPv () + bf
 fffffd7ff73f372c rtThreadMain () + 2c
 fffffd7ff7440301 _Z18rtThreadNativeMainPv () + 81
 fffffd7fff1b22ad _thrp_setup () + a5
 fffffd7fff1b2550 _lwp_start ()
-----------------  lwp# 8 / thread# 8  --------------------
 fffffd7fff1bb3ea __pollsys () + a
 fffffd7fff162bed pselect () + 181
 fffffd7fff16306c select () + 68
 000000000071e8c8 _ZN3com10EventQueue17processEventQueueEj () + 158
 000000000068953d _ZN10VirtualBox17AsyncEventHandlerEP11RTTHREADINTPv () + 5d
 fffffd7ff73f372c rtThreadMain () + 2c
 fffffd7ff7440301 _Z18rtThreadNativeMainPv () + 81
 fffffd7fff1b22ad _thrp_setup () + a5
 fffffd7fff1b2550 _lwp_start ()
-----------------  lwp# 9 / thread# 9  --------------------
 fffffd7ff3213090 _ZL28read_encoded_value_with_basehmPKhPm () + 70
 fffffd7ff32131b7 _ZL17parse_lsda_headerP15_Unwind_ContextPKhP16lsda_header_info.constprop.5 () + 57
 fffffd7ff321344b __gxx_personality_v0 () + 8b
 fffffd7ff3103da6 _Unwind_RaiseException () + 76
 fffffd7ff31040a6 _Unwind_Resume_or_Rethrow () + 36
 fffffd7ff3213f31 __cxa_rethrow () + 41
 fffffd7ff3216844 _ZN9__gnu_cxx27__verbose_terminate_handlerEv () + c4
 fffffd7ff3213d7a _ZN10__cxxabiv111__terminateEPFvvE () + a
 fffffd7ff3212cd9 ???????? ()
 fffffd7ff321362a __gxx_personality_v0 () + 26a
 fffffd7fff1ba171 _Unwind_RaiseException_Body () + 1f1
 fffffd7fff1ba2a5 _SUNW_Unwind_RaiseException () + 55
 fffffd7ff3213ed9 __cxa_throw () + 59
 000000000062bfd8 _ZN6Medium9queryInfoEbb () + b28
 000000000062d60e _ZN6Medium12RefreshStateEPj () + 1be
 fffffd7ff71f1f19 VBoxNsxpXPTC_InvokeByIndex () + 173
 fffffd7ff6e9b823 _ZN18ipcDConnectService8OnInvokeEjPK14DConnectInvokej () + 41b
 fffffd7ff6e9a92c _ZN18ipcDConnectService17OnIncomingRequestEjPK10DConnectOpj () + 42
 fffffd7ff6e99071 _ZN14DConnectWorker3RunEv () + 211
 fffffd7ff71e38de _ZN8nsThread4MainEPv () + 2e
 fffffd7ff721487a _pt_root () + 90
 fffffd7ff721493f _pt_iprt_root () + c
 fffffd7ff73f372c rtThreadMain () + 2c
 fffffd7ff7440301 _Z18rtThreadNativeMainPv () + 81
 fffffd7fff1b22ad _thrp_setup () + a5
 fffffd7fff1b2550 _lwp_start ()

After checking the ldd and elfdump -d output I thought to check where the "vanilla" libstdc++.so and libgcc_s.so are; running VirtualBox and VBoxManage from the commandline with

$ LD_LIBRARY_PATH=/usr/sfw/lib:/usr/sfw/lib/64:   

prefixed enabled them to work.

For the moment, I've worked around this issue (which, yes, is entirely of my own making since I wanted the newer gcc packages) by symlinking the /usr/sfw/lib versions of libgcc_s.so and libstdc++.so into /opt/VirtualBox/i386 and /opt/VirtualBox/amd64.

$ pkginfo -l SUNWvbox
   PKGINST:  SUNWvbox
      NAME:  Oracle VM VirtualBox
  CATEGORY:  application
      ARCH:  i386
   VERSION:  4.1.4,REV=2011.10.03.16.41.74291
   BASEDIR:  /
    VENDOR:  Oracle Corporation
      DESC:  A powerful PC virtualization solution
    PSTAMP:  vbox20111003164102_r74291
  INSTDATE:  Oct 04 2011 10:39
   HOTLINE:  Please contact your local service provider
     EMAIL:  info@virtualbox.org
    STATUS:  completely installed
     FILES:      427 installed pathnames
                  10 linked files
                  22 directories
                  43 executables
                  12 setuid/setgid executables
              484156 blocks used (approx)



blinder:.VirtualBox $ ldd /opt/VirtualBox/amd64/VirtualBox
	librt.so.1 =>	 /lib/64/librt.so.1
	libsocket.so.1 =>	 /lib/64/libsocket.so.1
	libstdc++.so.6 =>	 /usr/lib/64/libstdc++.so.6
	libm.so.2 =>	 /lib/64/libm.so.2
	libgcc_s.so.1 =>	 /usr/lib/64/libgcc_s.so.1
	libc.so.1 =>	 /lib/64/libc.so.1
	libnsl.so.1 =>	 /lib/64/libnsl.so.1
	libmp.so.2 =>	 /lib/64/libmp.so.2
	libmd.so.1 =>	 /lib/64/libmd.so.1
blinder:.VirtualBox $ pkg search -l /usr/lib/64/libstdc++.so.6
blinder:.VirtualBox $ ls -lart /usr/lib/64/libstdc++.so.6
   1 lrwxrwxrwx   1 root     root          38 Nov 19 23:13 /usr/lib/64/libstdc++.so.6 -> ../../gcc/4.6/lib/amd64/libstdc++.so.6*
blinder:.VirtualBox $ pkg search -l libstdc++\*
INDEX      ACTION VALUE                              PACKAGE
basename   file   usr/sfw/lib/amd64/libstdc++.a      pkg:/developer/gcc-3@3.4.3-0.175.0.0.0.2.537
basename   file   usr/sfw/lib/libstdc++.a            pkg:/developer/gcc-3@3.4.3-0.175.0.0.0.2.537
basename   file   usr/sfw/lib/amd64/libstdc++.la     pkg:/developer/gcc-3@3.4.3-0.175.0.0.0.2.537
basename   file   usr/sfw/lib/libstdc++.la           pkg:/developer/gcc-3@3.4.3-0.175.0.0.0.2.537
basename   link   usr/sfw/lib/libstdc++.so           pkg:/system/library/gcc-3-runtime@3.4.3-0.175.0.0.0.2.537
basename   link   usr/sfw/lib/amd64/libstdc++.so     pkg:/system/library/gcc-3-runtime@3.4.3-0.175.0.0.0.2.537
basename   link   usr/lib/amd64/libstdc++.so         pkg:/runtime/gcc@4.6.2-0.151.1
basename   link   usr/lib/libstdc++.so               pkg:/runtime/gcc@4.6.2-0.151.1
basename   link   usr/gcc/4.6/lib/libstdc++.so       pkg:/runtime/gcc@4.6.2-0.151.1
basename   link   usr/gcc/4.6/lib/amd64/libstdc++.so pkg:/runtime/gcc@4.6.2-0.151.1
basename   link   usr/sfw/lib/amd64/libstdc++.so.6   pkg:/system/library/gcc-3-runtime@3.4.3-0.175.0.0.0.2.537
basename   link   usr/sfw/lib/libstdc++.so.6         pkg:/system/library/gcc-3-runtime@3.4.3-0.175.0.0.0.2.537
basename   link   usr/gcc/4.6/lib/libstdc++.so.6     pkg:/runtime/gcc@4.6.2-0.151.1
INDEX      ACTION VALUE                                            PACKAGE
basename   link   usr/lib/amd64/libstdc++.so.6                     pkg:/runtime/gcc@4.6.2-0.151.1
basename   link   usr/lib/libstdc++.so.6                           pkg:/runtime/gcc@4.6.2-0.151.1
basename   link   usr/gcc/4.6/lib/amd64/libstdc++.so.6             pkg:/runtime/gcc@4.6.2-0.151.1
basename   file   usr/gcc/4.6/lib/amd64/libstdc++.so.6.0.16        pkg:/runtime/gcc@4.6.2-0.151.1
basename   file   usr/gcc/4.6/lib/libstdc++.so.6.0.16              pkg:/runtime/gcc@4.6.2-0.151.1
basename   file   usr/gcc/4.6/lib/amd64/libstdc++.so.6.0.16-gdb.py pkg:/runtime/gcc@4.6.2-0.151.1
basename   file   usr/gcc/4.6/lib/libstdc++.so.6.0.16-gdb.py       pkg:/runtime/gcc@4.6.2-0.151.1
basename   file   usr/sfw/lib/libstdc++.so.6.0.3                   pkg:/system/library/gcc-3-runtime@3.4.3-0.175.0.0.0.2.537
basename   file   usr/sfw/lib/amd64/libstdc++.so.6.0.3             pkg:/system/library/gcc-3-runtime@3.4.3-0.175.0.0.0.2.537
blinder:.VirtualBox $ pkg search -l libgcc_s\*
INDEX      ACTION VALUE                               PACKAGE
basename   link   usr/sfw/lib/amd64/libgcc_s.so       pkg:/system/library/gcc-3-runtime@3.4.3-0.175.0.0.0.2.537
basename   link   usr/sfw/lib/libgcc_s.so             pkg:/system/library/gcc-3-runtime@3.4.3-0.175.0.0.0.2.537
basename   link   usr/lib/libgcc_s.so                 pkg:/runtime/gcc@4.6.2-0.151.1
basename   link   usr/gcc/4.6/lib/libgcc_s.so         pkg:/runtime/gcc@4.6.2-0.151.1
basename   link   usr/lib/amd64/libgcc_s.so           pkg:/runtime/gcc@4.6.2-0.151.1
basename   link   usr/gcc/4.6/lib/amd64/libgcc_s.so   pkg:/runtime/gcc@4.6.2-0.151.1
basename   file   usr/sfw/lib/amd64/libgcc_s.so.1     pkg:/system/library/gcc-3-runtime@3.4.3-0.175.0.0.0.2.537
basename   file   usr/sfw/lib/libgcc_s.so.1           pkg:/system/library/gcc-3-runtime@3.4.3-0.175.0.0.0.2.537
basename   file   usr/gcc/4.6/lib/amd64/libgcc_s.so.1 pkg:/runtime/gcc@4.6.2-0.151.1
basename   file   usr/gcc/4.6/lib/libgcc_s.so.1       pkg:/runtime/gcc@4.6.2-0.151.1
basename   link   usr/lib/amd64/libgcc_s.so.1         pkg:/runtime/gcc@4.6.2-0.151.1
basename   link   usr/lib/libgcc_s.so.1               pkg:/runtime/gcc@4.6.2-0.151.1
basename   link   usr/sfw/lib/amd64/libgcc_s_amd64.so pkg:/system/library/gcc-3-runtime@3.4.3-0.175.0.0.0.2.537
blinder:.VirtualBox $ LD_LIBRARY_PATH=/usr/sfw/lib:/usr/sfw/lib/
64/                 libg2c.la           libiberty.a         libsmbclient.so     libstdc++.so.6.0.3
amd64/              libg2c.so           libobjc.a           libsmbclient.so.0   libsupc++.a
ant/                libg2c.so.0         libobjc.la          libstdc++.a         libsupc++.la
gcc/                libg2c.so.0.0.0     libobjc.so          libstdc++.la        locale/
libfrtbegin.a       libgcc_s.so         libobjc.so.1        libstdc++.so        
libg2c.a            libgcc_s.so.1       libobjc.so.1.0.0    libstdc++.so.6      
blinder:.VirtualBox $ LD_LIBRARY_PATH=/usr/sfw/lib:/usr/sfw/lib/64:  /opt/VirtualBox/VirtualBox

succeeds

Change History

comment:1 Changed 2 years ago by frank

  • Description modified (diff)

comment:2 in reply to: ↑ description Changed 2 years ago by sergiomb

Replying to jmcp:

I'm running Solaris 11 FCS (snv_175b), with VirtualBox 4.1.4 on a Sun Ultra40m2.

Fedora 15/16 with VirtualBox 4.1.x and gcc 4.6.2, don't have problems.

comment:3 follow-up: ↓ 4 Changed 2 years ago by jmcp

Sergio: It's a problem on _Solaris_ due to the fact that the gcc libraries shipped by default are for 3.4.3, not 4.x. Telling me that this works on Fedora is irrelevant to the issue.

When Solaris eventually updates those gcc libs to 4.x versions by default, this issue will go away. In the meantime, having the VirtualBox search path start with /opt/VirtualBox/$MACH allows a workaround.

comment:4 in reply to: ↑ 3 Changed 2 years ago by sergiomb

Replying to jmcp:

Sergio: It's a problem on _Solaris_ due to the fact that the gcc libraries shipped by default are for 3.4.3, not 4.x. Telling me that this works on Fedora is irrelevant to the issue.

ah ! , I don't read correctly, so VirtualBox 4.1.4 incontatible with gcc 3.4.3 ? , I am writing a new ticket where I have a compile problem with gcc 4.7 . Thanks,

comment:5 follow-up: ↓ 6 Changed 2 years ago by jmcp

Sergio: Problem summary is as follows.

#1 install Solaris 11. #2 install Solaris' developer/gcc-3 system/library/gcc-3-runtime packages #3 add the sfe publisher ( http://pkg.openindiana.org/sfe/) #4 install the sfe runtime/gcc pacakge.

#5 without the workaround listed in comment#1, VBox will dump core.

VirtualBox is compatible with gcc 3.4.3 *on a Solaris host*. Your problems with Fedora are not relevant to this ticket.

comment:6 in reply to: ↑ 5 Changed 2 years ago by sergiomb

Replying to jmcp:

VirtualBox is compatible with gcc 3.4.3 *on a Solaris host*.

ok , sorry for disturb,

Had you tried versions 4.1.6 and 4.1.8 ? just try to help.

comment:7 Changed 2 years ago by jmcp

It's a problem with 4.1.[4,6,8]

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use