apport-retrace sandbox produces poor stacktraces
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Apport |
New
|
Undecided
|
Unassigned |
Bug Description
ENVIRONMENT:
Ubuntu 20.04, fully upgraded as of Mar 14 2020.
ISSUE:
Running apport-retrace -v -s -R -S system ./crash/
--- stack trace ---
#0 0x00007fa95a8273eb in ?? ()
No symbol table info available.
#1 0x0000000000000000 in ?? ()
No symbol table info available.
--- source code stack trace ---
#0 0x00007fa95a8273eb in ?? ()
#1 0x0000000000000000 in ?? ()
EXPECTED BEHAVIOR:
apport-retrace should actually give a meaningful symbolic backtrace, after all it downloads tons of debug packages to a sandbox directory, but it seems gdb is unable to use them currently.
NOTES:
When just running apport-retrace without sandbox
apport-retrace -v -s -R ./crash/
the backtrace is a lot more meaningful:
--- stack trace ---
#0 0x00007fa95a8273eb in __sigqueue (pid=-1846630280, sig=1428118536, val=...) at ../sysdeps/
__arg2 = <optimized out>
_a3 = 0
_a1 = 2
resultvar = <optimized out>
__arg3 = <optimized out>
__arg1 = <optimized out>
_a2 = 1428117936
resultvar = <optimized out>
info = {si_signo = 0, si_errno = 0, si_code = 0, __pad0 = 0, _sifields = {_pad = {0, 0, 0, 0, 0, 0, 0, 0, 232, 0, -1846620176, 22096, 63, 0, -1, 0, -1, 0, 1524671248, 32681, 228, 0, 1428118368, 32764, 1428118368, 32764, 752987136, 629759851}, _kill = {si_pid = 0, si_uid = 0}, _timer = {si_tid = 0, si_overrun = 0, si_sigval = {sival_int = 0, sival_ptr = 0x0}}, _rt = {si_pid = 0, si_uid = 0, si_sigval = {sival_int = 0, sival_ptr = 0x0}}, _sigchld = {si_pid = 0, si_uid = 0, si_status = 0, si_utime = 0, si_stime = 0}, _sigfault = {si_addr = 0x0, si_addr_lsb = 0, _bounds = {_addr_bnd = {_lower = 0x0, _upper = 0x0}, _pkey = 0}}, _sigpoll = {si_band = 0, si_fd = 0}, _sigsys = {_call_addr = 0x0, _syscall = 0, _arch = 0}}}
#1 0xffffffffffffffff in ?? ()
No symbol table info available.
#2 0xffffffffffffffff in ?? ()
No symbol table info available.
#3 0xffffffffffffffff in ?? ()
No symbol table info available.
#4 0xffffffffffffffff in ?? ()
No symbol table info available.
#5 0xffffffffffffffff in ?? ()
No symbol table info available.
#6 0xffffffffffffffff in ?? ()
No symbol table info available.
#7 0xffffffffffffffff in ?? ()
No symbol table info available.
#8 0xffffffffffffffff in ?? ()
No symbol table info available.
#9 0xffffffffffffffff in ?? ()
No symbol table info available.
#10 0x0000565091eecff0 in ?? ()
No symbol table info available.
#11 0x25895f6b2ce1ac00 in ?? ()
No symbol table info available.
#12 0x0000565091eecdf8 in ?? ()
No symbol table info available.
#13 0x00007fa95a806899 in _IO_acquire_
fp = 0xffffffffffffffff
fp = <optimized out>
__value = <optimized out>
__futex = <optimized out>
__private = <optimized out>
__oldval = <optimized out>
result = <optimized out>
__ret = <optimized out>
resultvar = <optimized out>
__arg4 = <optimized out>
__arg3 = <optimized out>
__arg2 = <optimized out>
__arg1 = <optimized out>
_a4 = <optimized out>
_a3 = <optimized out>
_a2 = <optimized out>
_a1 = <optimized out>
#14 __fread_chk (ptr=0x7ffc551f
bytes_read = <optimized out>
#15 0x0000000000000000 in ?? ()
No symbol table info available.
--- source code stack trace ---
#0 0x00007fa95a8273eb in __sigqueue (pid=-1846630280, sig=1428118536, val=...) at ../sysdeps/
[Error: sigqueue.c was not found in source tree]
#1 0xffffffffffffffff in ?? ()
#2 0xffffffffffffffff in ?? ()
#3 0xffffffffffffffff in ?? ()
#4 0xffffffffffffffff in ?? ()
#5 0xffffffffffffffff in ?? ()
#6 0xffffffffffffffff in ?? ()
#7 0xffffffffffffffff in ?? ()
#8 0xffffffffffffffff in ?? ()
#9 0xffffffffffffffff in ?? ()
#10 0x0000565091eecff0 in ?? ()
#11 0x25895f6b2ce1ac00 in ?? ()
#12 0x0000565091eecdf8 in ?? ()
#13 0x00007fa95a806899 in _IO_acquire_
[Error: libioP.h was not found in source tree]
#14 __fread_chk (ptr=0x7ffc551f
[Error: fread_chk.c was not found in source tree]
#15 0x0000000000000000 in ?? ()
Full command-line output of apport-retrace in sandbox mode producing the poor stacktrace.