VirtualBox

Opened 15 years ago

Closed 15 years ago

#3089 closed defect (fixed)

VBoxHeadless segfaults when starting a VM that has 3D Acceleration enabled -> Fixed in SVN

Reported by: Chas Emerick Owned by:
Component: 3D support Version: VirtualBox 2.1.0
Keywords: Cc:
Guest type: Solaris Host type: Solaris

Description

Given a VM that has 3D acceleration enabled, VBoxHeadless (or VBoxManage startvm blah -type vrdp) will segfault when starting if X is not available (e.g. when starting the VM over an ssh connection). This is with v2.1.0 on an OpenSolaris 2008.11 host and guest.

Turning 3D acceleration off results in normal functionality. It seems that either VBoxHeadless should simply ignore 3D acceleration, or at least emit a reasonable error message.

Many thanks to klaus-vb in #vbox who diagnosed the problem. A pstack from the core dump is pasted below; I can attach the full core if that'd be helpful.

core '/var/core/core.VBoxHeadless.10027.1232544771' of 10027:   /opt/VirtualBox/VBoxHeadless -s code
-----------------  lwp# 1 / thread# 1  --------------------
 fffffd7fff08a0e7 __lwp_park () + 17
 fffffd7fff0836b0 cond_wait_queue () + 68
 fffffd7fff083bc7 __cond_wait () + 5f
 fffffd7fff083c0b cond_wait () + 23
 fffffd7fff083c41 pthread_cond_wait () + 9
 fffffd7ffedf1f90 _Z19rtSemEventMultiWaitP23RTSEMEVENTMULTIINTERNALjb () + 1a0
 fffffd7ffe4c5d17 _ZN8Progress17WaitForCompletionEi () + 227
 fffffd7ffeba9afe TrustedMain () + 17ae
 00000000004034f0 SUPR3HardenedMain () + 260
 00000000004027ec _start () + 6c
-----------------  lwp# 2 / thread# 2  --------------------
 fffffd7fff08a0e7 __lwp_park () + 17
 fffffd7fff0836b0 cond_wait_queue () + 68
 fffffd7fff083bc7 __cond_wait () + 5f
 fffffd7fff083c0b cond_wait () + 23
 fffffd7fff083c41 pthread_cond_wait () + 9
 fffffd7ffe7ab9bd VBoxNsprPR_WaitCondVar () + 6b
 fffffd7ffe7a64b8 WaitPidDaemonThread () + a8
 fffffd7ffe7ac30a _pt_root () + 90
 fffffd7ffe7ac3cf _pt_iprt_root () + c
 fffffd7ffedd016c rtThreadMain () + 2c
 fffffd7ffedf2c2b _Z18rtThreadNativeMainPv () + 7b
 fffffd7fff089de5 _thrp_setup () + 8d
 fffffd7fff08a0a0 _lwp_start ()
-----------------  lwp# 3 / thread# 3  --------------------
 fffffd7fff092e9a __pollsys () + a
 fffffd7fff032c9a poll () + 62
 fffffd7ffe7aa4ae _pr_poll_with_poll () + 3b4
 fffffd7ffe7aa639 VBoxNsprPR_Poll () + 9
 fffffd7ffeb382a1 _Z10ConnThreadPv () + 41
 fffffd7ffe7ac30a _pt_root () + 90
 fffffd7ffe7ac3cf _pt_iprt_root () + c
 fffffd7ffedd016c rtThreadMain () + 2c
 fffffd7ffedf2c2b _Z18rtThreadNativeMainPv () + 7b
 fffffd7fff089de5 _thrp_setup () + 8d
 fffffd7fff08a0a0 _lwp_start ()
-----------------  lwp# 4 / thread# 4  --------------------
 fffffd7fff08a0e7 __lwp_park () + 17
 fffffd7fff0836b0 cond_wait_queue () + 68
 fffffd7fff083bc7 __cond_wait () + 5f
 fffffd7fff083c0b cond_wait () + 23
 fffffd7fff083c41 pthread_cond_wait () + 9
 fffffd7ffe7ab9bd VBoxNsprPR_WaitCondVar () + 6b
 fffffd7ffe7abcc9 VBoxNsprPR_Wait () + 46
 fffffd7ffeb34d9a _ZN14DConnectWorker3RunEv () + 124
 fffffd7ffe77bfce _ZN8nsThread4MainEPv () + 2e
 fffffd7ffe7ac30a _pt_root () + 90
 fffffd7ffe7ac3cf _pt_iprt_root () + c
 fffffd7ffedd016c rtThreadMain () + 2c
 fffffd7ffedf2c2b _Z18rtThreadNativeMainPv () + 7b
 fffffd7fff089de5 _thrp_setup () + 8d
 fffffd7fff08a0a0 _lwp_start ()
-----------------  lwp# 5 / thread# 5  --------------------
 fffffd7fff08a0e7 __lwp_park () + 17
 fffffd7fff0836b0 cond_wait_queue () + 68
 fffffd7fff083bc7 __cond_wait () + 5f
 fffffd7fff083c0b cond_wait () + 23
 fffffd7fff083c41 pthread_cond_wait () + 9
 fffffd7ffedf1f90 _Z19rtSemEventMultiWaitP23RTSEMEVENTMULTIINTERNALjb () + 1a0
 fffffd7ffe55b923 _ZN10HGCMThread7MsgPostEP11HGCMMsgCorePFviS1_Eb () + a3
 fffffd7ffe55bdf9 _Z19hgcmMsgPostInternaljPFviP11HGCMMsgCoreEb () + 49
 fffffd7ffe55c9a3 _ZN11HGCMService14instanceCreateEPKcS1_ () + 103
 fffffd7ffe55cd59 _ZN11HGCMService11LoadServiceEPKcS1_ () + 79
 fffffd7ffe55da5a _Z10hgcmThreadjPv () + 1ba
 fffffd7ffe55b319 _Z20hgcmWorkerThreadFuncP11RTTHREADINTPv () + 39
 fffffd7ffedd016c rtThreadMain () + 2c
 fffffd7ffedf2c2b _Z18rtThreadNativeMainPv () + 7b
 fffffd7fff089de5 _thrp_setup () + 8d
 fffffd7fff08a0a0 _lwp_start ()
-----------------  lwp# 6 / thread# 6  --------------------
 fffffd7fff08a0e7 __lwp_park () + 17
 fffffd7fff0836b0 cond_wait_queue () + 68
 fffffd7fff083bc7 __cond_wait () + 5f
 fffffd7fff083c0b cond_wait () + 23
 fffffd7fff083c41 pthread_cond_wait () + 9
 fffffd7ffedf19f4 _Z14rtSemEventWaitP18RTSEMEVENTINTERNALjb () + 1a4
 fffffd7ffe362745 VMR3ReqWait () + a5
 fffffd7ffe362d69 VMR3ReqQueue () + 1f9
 fffffd7ffe362f9c VMR3ReqCallVU () + 18c
 fffffd7ffe36307c VMR3ReqCallU () + 8c
 fffffd7ffe35fa3b VMR3Create () + 1fb
 fffffd7ffe4f85d6 _ZN7Console13powerUpThreadEP11RTTHREADINTPv () + 16e6
 fffffd7ffedd016c rtThreadMain () + 2c
 fffffd7ffedf2c2b _Z18rtThreadNativeMainPv () + 7b
 fffffd7fff089de5 _thrp_setup () + 8d
 fffffd7fff08a0a0 _lwp_start ()
-----------------  lwp# 7 / thread# 7  --------------------
 fffffd7fff09228a __nanosleep () + a
 fffffd7ffedf2d9e RTThreadSleep () + 5e
 fffffd7ffdf7ec6a _ZN10VRDPServer11InputThreadEP11RTTHREADINTP25_VRDPServerThreadStartCtx () + 4a
 fffffd7ffedd016c rtThreadMain () + 2c
 fffffd7ffedf2c2b _Z18rtThreadNativeMainPv () + 7b
 fffffd7fff089de5 _thrp_setup () + 8d
 fffffd7fff08a0a0 _lwp_start ()
-----------------  lwp# 8 / thread# 8  --------------------
 fffffd7fff08a0e7 __lwp_park () + 17
 fffffd7fff0836b0 cond_wait_queue () + 68
 fffffd7fff083a79 cond_wait_common () + 1e1
 fffffd7fff083c9e __cond_timedwait () + 46
 fffffd7fff083d2f cond_timedwait () + 27
 fffffd7fff083d61 pthread_cond_timedwait () + 9
 fffffd7ffedf1ecb _Z19rtSemEventMultiWaitP23RTSEMEVENTMULTIINTERNALjb () + db
 fffffd7ffdf7bafe _ZN10VRDPServer12OutputThreadEP11RTTHREADINTP25_VRDPServerThreadStartCtx () + 2fe
 fffffd7ffedd016c rtThreadMain () + 2c
 fffffd7ffedf2c2b _Z18rtThreadNativeMainPv () + 7b
 fffffd7fff089de5 _thrp_setup () + 8d
 fffffd7fff08a0a0 _lwp_start ()
-----------------  lwp# 9 / thread# 9  --------------------
 fffffd7fff08a0e7 __lwp_park () + 17
 fffffd7fff0836b0 cond_wait_queue () + 68
 fffffd7fff083bc7 __cond_wait () + 5f
 fffffd7fff083c0b cond_wait () + 23
 fffffd7fff083c41 pthread_cond_wait () + 9
 fffffd7ffedf1f90 _Z19rtSemEventMultiWaitP23RTSEMEVENTMULTIINTERNALjb () + 1a0
 fffffd7ffe55b923 _ZN10HGCMThread7MsgPostEP11HGCMMsgCorePFviS1_Eb () + a3
 fffffd7ffe55bdf9 _Z19hgcmMsgPostInternaljPFviP11HGCMMsgCoreEb () + 49
 fffffd7ffe55db72 HGCMHostLoad () + 82
 fffffd7ffe558678 _ZN6VMMDev15hgcmLoadServiceEPKcS1_ () + 28
 fffffd7ffe5157d8 _ZN7Console17configConstructorEP2VMPv () + 1c2d8
 fffffd7ffe3a3e61 CFGMR3Init () + 81
 fffffd7ffe35fd78 _Z11vmR3CreateUP3UVMjPFiP2VMPvES3_ () + 138
 fffffd7ffe36290f _Z18vmR3ReqProcessOneUP3UVMP5VMREQ () + 18f
 fffffd7ffe362b2b VMR3ReqProcessU () + 9b
 fffffd7ffe360d42 _Z19vmR3EmulationThreadP11RTTHREADINTPv () + e2
 fffffd7ffedd016c rtThreadMain () + 2c
 fffffd7ffedf2c2b _Z18rtThreadNativeMainPv () + 7b
 fffffd7fff089de5 _thrp_setup () + 8d
 fffffd7fff08a0a0 _lwp_start ()
-----------------  lwp# 10 / thread# 10  --------------------
 fffffd7fff08a0e7 __lwp_park () + 17
 fffffd7fff0836b0 cond_wait_queue () + 68
 fffffd7fff083bc7 __cond_wait () + 5f
 fffffd7fff083c0b cond_wait () + 23
 fffffd7fff083c41 pthread_cond_wait () + 9
 fffffd7ffedf1f90 _Z19rtSemEventMultiWaitP23RTSEMEVENTMULTIINTERNALjb () + 1a0
 fffffd7ffe55b9a8 _ZN10HGCMThread6MsgGetEPP11HGCMMsgCore () + 38
 fffffd7ffe55be9e _Z10hgcmMsgGetjPP11HGCMMsgCore () + 4e
 fffffd7ffe55c500 _Z17hgcmServiceThreadjPv () + 30
 fffffd7ffe55b319 _Z20hgcmWorkerThreadFuncP11RTTHREADINTPv () + 39
 fffffd7ffedd016c rtThreadMain () + 2c
 fffffd7ffedf2c2b _Z18rtThreadNativeMainPv () + 7b
 fffffd7fff089de5 _thrp_setup () + 8d
 fffffd7fff08a0a0 _lwp_start ()
-----------------  lwp# 11 / thread# 11  --------------------
 fffffd7ffeff9c30 strlen () + 40
 fffffd7fff04ed4e vsprintf () + 36
 fffffd7ffd73cb85 crDebug () + 1c5
 fffffd7ffd784796 renderspu_SystemInitVisual () + 56
 fffffd7ffd781901 renderspuFindVisual () + d1
 fffffd7ffd781d3c renderspuWindowCreate () + 4c
 fffffd7ffd78409e renderSPUInit () + 10e
 fffffd7ffd85ae20 crSPULoad () + 150
 fffffd7ffd85af76 crSPULoadChain () + 56
 fffffd7ffd7f4456 crServerSetVBoxConfigurationHGCM () + 56
 fffffd7ffd7f2c69 crVBoxServerInit () + 109
 fffffd7ffd7f269d VBoxHGCMSvcLoad () + 9d
 fffffd7ffe55c275 _ZN11HGCMService14loadServiceDLLEv () + 95
 fffffd7ffe55c72d _Z17hgcmServiceThreadjPv () + 25d
 fffffd7ffe55b319 _Z20hgcmWorkerThreadFuncP11RTTHREADINTPv () + 39
 fffffd7ffedd016c rtThreadMain () + 2c
 fffffd7ffedf2c2b _Z18rtThreadNativeMainPv () + 7b
 fffffd7fff089de5 _thrp_setup () + 8d
 fffffd7fff08a0a0 _lwp_start ()

Change History (2)

comment:1 by Leonid Lobachev, 15 years ago

Summary: VBoxHeadless segfaults when starting a VM that has 3D Acceleration enabledVBoxHeadless segfaults when starting a VM that has 3D Acceleration enabled -> Fixed in SVN

Thank you for the info.

comment:2 by Frank Mehnert, 15 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use