VirtualBox

8 年 前 建立

8 年 前 結束

#15567 closed defect (fixed)

VBoxHeadless crash

回報者: gim 負責人:
元件: other 版本: VirtualBox 5.0.20
關鍵字: 副本:
Guest type: other Host type: other

描述

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?

更動歷史 (1)

comment:1 8 年 前Frank Mehnert 編輯

狀態: newclosed
處理結果: fixed

Please reopen if still relevant with VBox 5.1.22.

注意: 瀏覽 TracTickets 來幫助您使用待辦事項功能

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette