VirtualBox

Opened 8 years ago

Closed 7 years ago

#15567 closed defect (fixed)

VBoxHeadless crash

Reported by: gim Owned by:
Component: other Version: VirtualBox 5.0.20
Keywords: Cc:
Guest type: other Host type: other

Description

VBoxHeadless --comment ... --startvm f468d094-8232-4b29-8830-1ef4bf5c806a --vrde config

Some times crash happens:

Program terminated with signal SIGSEGV, Segmentation fault.
#0  TrustedMain (argc=argc@entry=7, argv=<optimized out>, envp=envp@entry=0x7ffd20a6dbd8) at /.../VirtualBox-5.0.20/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp:930
930             rc = virtualBox->FindMachine(Bstr(pcszNameOrUUID).raw(), m.asOutParam());

(gdb) bt
#0  TrustedMain (argc=argc@entry=7, argv=<optimized out>, envp=envp@entry=0x7ffd20a6dbd8) at /.../VirtualBox-5.0.20/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp:930
#1  0x0000000000403419 in main (argc=7, argv=0x22639f0, envp=0x7ffd20a6dbd8) at /.../VirtualBox-5.0.20/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp:1372

(gdb) list
925                     break;
926             }
927
928             ComPtr<IMachine> m;
929
930             rc = virtualBox->FindMachine(Bstr(pcszNameOrUUID).raw(), m.asOutParam());
931             if (FAILED(rc))
932             {
933                 LogError("Invalid machine name or UUID!\n", rc);
934                 break;

(gdb) print virtualBox
$13 = {m_p = 0x0}

(gdb) print pcszNameOrUUID
$14 = 0x226bbf0 "f468d094-8232-4b29-8830-1ef4bf5c806a"

I dont' really understand how it's possible, because in code below it has checks:

        rc = pVirtualBoxClient.createInprocObject(CLSID_VirtualBoxClient);
        if (FAILED(rc))
        {
        ...
        rc = pVirtualBoxClient->COMGETTER(VirtualBox)(virtualBox.asOutParam());
        if (FAILED(rc))
        {
        ...

May be some XPCOM magic?

Change History (1)

comment:1 by Frank Mehnert, 7 years ago

Resolution: fixed
Status: newclosed

Please reopen if still relevant with VBox 5.1.22.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use