As a workaround I can add the 'Package: qemu' line in the .crash file.
If I do this the following happens:

$ apport-retrace -g -S system _usr_bin_qemu-system-x86_64.106.crash Installing 
extra package qemu-system-x86 to get ExecutablePath
GNU gdb (Ubuntu 7.7-0ubuntu3) 7.7
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
Reading symbols from 
/tmp/apport_sandbox_jPKPtQ//usr/bin/qemu-system-x86_64...(no debugging symbols 
found)...done.
warning: core file may not match specified executable file.
[New LWP 3478]
[New LWP 3483]
[New LWP 3481]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
warning: File 
"/tmp/apport_sandbox_jPKPtQ/usr/lib/debug/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19-gdb.py"
 auto-loading has been declined by your `auto-load safe-path' set to 
"$debugdir:$datadir/auto-load".
To enable execution of this file add
        add-auto-load-safe-path 
/tmp/apport_sandbox_jPKPtQ/usr/lib/debug/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19-gdb.py
line to your configuration file "/home/arges/.gdbinit".
To completely disable this security protection add
        set auto-load safe-path /
line to your configuration file "/home/arges/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
        info "(gdb)Auto-loading safe path"
Core was generated by `qemu-system-x86_64 -enable-kvm -name lp1254120 -S 
-machine pc-i440fx-1.7,accel='.
Program terminated with signal SIGABRT, Aborted.
#0  0x00007f00a770607f in __GI_ppoll (fds=0x7f00af91a4c0, nfds=10, 
timeout=<optimized out>, sigmask=0x0)
    at ../sysdeps/unix/sysv/linux/ppoll.c:56
56      ../sysdeps/unix/sysv/linux/ppoll.c: No such file or directory.
(gdb) bt
#0  0x00007f00a770607f in __GI_ppoll (fds=0x7f00af91a4c0, nfds=10, 
timeout=<optimized out>, sigmask=0x0)
    at ../sysdeps/unix/sysv/linux/ppoll.c:56
#1  0x00007f00ad5d4ee9 in ?? ()
#2  0x00007f00ad59abd4 in ?? ()
#3  0x00007f00ad443d06 in ?? ()
#4  0x00007f00a7639ec5 in __libc_start_main (main=0x7f00ad442770, argc=58, 
argv=0x7fff04e8e0a8, 
    init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, 
stack_end=0x7fff04e8e098)
    at libc-start.c:287
#5  0x00007f00ad44825c in ?? ()


Now I see most of the symbols resolved execpt a choice few. Is this a bug with 
how qemu's debug symbols are generated?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1315530

Title:
  apport-retrace doesn't work with qemu

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1315530/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to