[vbox-dev] python: launchVMProcess(session, 'sdl', None) segfaults

Francisco J. Vázquez franjva at gmail.com
Thu Jan 20 10:09:34 GMT 2011


2011/1/19 Nikolay Igotti <nikolay.igotti at oracle.com>:
> Hi Francisco,
>
> Gentoo surely could be nominate for Oscar for entertaining so many people
> :).

Yep :P

> Can you run QT frontend from the same program?

Yeah, I installed qt4 and vm.launchVMProcess(session, 'gui', None) works ok.

> Any chance to inspect core generated by
> VBoxSDL (as it was killed with SIGSEGV).
>

I would if I knew how :). Running gdb python and pasting the previous
commands doesn't work. gdb doesn't "see" the segfault:

$ gdb python
[...]
(gdb) run
Starting program: /usr/bin/python
process 19723 is executing new program: /usr/bin/python2.7
[Thread debugging using libthread_db enabled]
Python 2.7.1 (r271:86832, Dec 16 2010, 16:58:30)
[GCC 4.5.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from vboxapi import VirtualBoxManager
>>> vbox_mgr = VirtualBoxManager(None, None)
Traceback (most recent call last):
  File "/usr/share/gdb/auto-load/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.2/libstdc++.so.6.0.14-gdb.py",
line 59, in <module>
    from libstdcxx.v6.printers import register_libstdcxx_printers
ImportError: No module named libstdcxx.v6.printers
[New Thread 0x7ffff7e78700 (LWP 19728)]
[Thread 0x7ffff7e78700 (LWP 19728) exited]
[New Thread 0x7ffff7e78700 (LWP 19736)]
[New Thread 0x7ffff7e9b700 (LWP 19737)]
>>> vbox = vbox_mgr.vbox
>>> mgr = vbox_mgr.mgr
>>> vms = vbox.getMachines()
>>> session = mgr.getSessionObject(vbox)
>>> vm = vms[0]
>>> progress = vm.launchVMProcess(session, 'sdl', None)
>>> progress.waitForCompletion(-1)
>>> print progress.errorInfo.text
The virtual machine 'Windows 3.1' has terminated unexpectedly during
startup because of signal 11
>>> quit()
[Thread 0x7ffff7e9b700 (LWP 19737) exited]
[Thread 0x7ffff7e78700 (LWP 19736) exited]

Program exited normally.
(gdb) bt
No stack.

There is a new import error (libstdcxx.v6.printers) that I don't see
when running python directly, but it doesn't seem relevant.

Any idea?

Fran




More information about the vbox-dev mailing list