Yes it is really needed, apport-retrace with a gdb-sandbox fails without it.
$ PYTHONPATH=/home/bdmurray/source-trees/apport/trunk ~/source-trees/apport/trunk/bin/apport-retrace -v -S ~/source-trees/daisy/watchtower-archive/ -C /srv/vms/apport-retrace --verbose --gdb-sandbox --stdout test-crashes/mantic/amd64/_usr_bin_cat.2001.crash Hit http://192.168.10.7/ubuntu mantic InRelease Hit http://192.168.10.7/ubuntu mantic-updates InRelease Hit http://192.168.10.7/ubuntu mantic-security InRelease Get:1 http://ddebs.ubuntu.com mantic InRelease [41.3 kB] Get:2 http://ddebs.ubuntu.com mantic-updates InRelease [41.4 kB] Fetched 82.7 kB in 0s (0 B/s) Fetched 0 B in 0s (0 B/s) Extracting downloaded debs... Fetched 0 B in 0s (0 B/s) Extracting downloaded debs... dynamically loaded /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 needs package libc6, queueing dynamically loaded /usr/lib/x86_64-linux-gnu/libc.so.6 needs package libc6, queueing Installing extra package coreutils to get ExecutablePath Fetched 0 B in 0s (0 B/s) Extracting downloaded debs... ERROR: Error: command ['/tmp/apport_sandbox_4hl714lr/usr/bin/gdb', '--ex', 'set debug-file-directory /tmp/apport_sandbox_4hl714lr/usr/lib/debug', '--ex', 'set solib-absolute-prefix /tmp/apport_sandbox_4hl714lr', '--ex', 'add-auto-load-safe-path /tmp/apport_sandbox_4hl714lr', '--ex', 'set solib-search-path /tmp/apport_sandbox_4hl714lr/lib/x86_64-linux-gnu:/tmp/apport_sandbox_4hl714lr/usr/lib/x86_64-linux-gnu', '--ex', 'set data-directory /tmp/apport_sandbox_4hl714lr/usr/share/gdb', '--ex', 'file "/tmp/apport_sandbox_4hl714lr/bin/cat"', '--ex', 'core-file /tmp/apport_core_pxcsb4wf', '--batch', '--ex', 'set backtrace limit 2000', '--ex', 'p -99', '--ex', 'info registers', '--ex', 'p -99', '--ex', 'x/16i $pc', '--ex', 'p -99', '--ex', 'bt full', '--ex', 'p -99', '--ex', 'thread apply all bt full', '--ex', 'p -99', '--ex', 'print __abort_msg->msg', '--ex', 'p -99', '--ex', 'print __glib_assert_msg', '--ex', 'p -99', '--ex', 'print (char*) __nih_abort_msg', '--ex', 'p -99'] failed with exit code -11:
Yes it is really needed, apport-retrace with a gdb-sandbox fails without it.
$ PYTHONPATH= /home/bdmurray/ source- trees/apport/ trunk ~/source- trees/apport/ trunk/bin/ apport- retrace -v -S ~/source- trees/daisy/ watchtower- archive/ -C /srv/vms/ apport- retrace --verbose --gdb-sandbox --stdout test-crashes/ mantic/ amd64/_ usr_bin_ cat.2001. crash 192.168. 10.7/ubuntu mantic InRelease 192.168. 10.7/ubuntu mantic-updates InRelease 192.168. 10.7/ubuntu mantic-security InRelease ddebs.ubuntu. com mantic InRelease [41.3 kB] ddebs.ubuntu. com mantic-updates InRelease [41.4 kB] x86_64- linux-gnu/ ld-linux- x86-64. so.2 needs package libc6, queueing x86_64- linux-gnu/ libc.so. 6 needs package libc6, queueing apport_ sandbox_ 4hl714lr/ usr/bin/ gdb', '--ex', 'set debug-file- directory /tmp/apport_ sandbox_ 4hl714lr/ usr/lib/ debug', '--ex', 'set solib-absolute- prefix /tmp/apport_ sandbox_ 4hl714lr' , '--ex', 'add-auto- load-safe- path /tmp/apport_ sandbox_ 4hl714lr' , '--ex', 'set solib-search-path /tmp/apport_ sandbox_ 4hl714lr/ lib/x86_ 64-linux- gnu:/tmp/ apport_ sandbox_ 4hl714lr/ usr/lib/ x86_64- linux-gnu' , '--ex', 'set data-directory /tmp/apport_ sandbox_ 4hl714lr/ usr/share/ gdb', '--ex', 'file "/tmp/apport_ sandbox_ 4hl714lr/ bin/cat" ', '--ex', 'core-file /tmp/apport_ core_pxcsb4wf' , '--batch', '--ex', 'set backtrace limit 2000', '--ex', 'p -99', '--ex', 'info registers', '--ex', 'p -99', '--ex', 'x/16i $pc', '--ex', 'p -99', '--ex', 'bt full', '--ex', 'p -99', '--ex', 'thread apply all bt full', '--ex', 'p -99', '--ex', 'print __abort_msg->msg', '--ex', 'p -99', '--ex', 'print __glib_assert_msg', '--ex', 'p -99', '--ex', 'print (char*) __nih_abort_msg', '--ex', 'p -99'] failed with exit code -11:
Hit http://
Hit http://
Hit http://
Get:1 http://
Get:2 http://
Fetched 82.7 kB in 0s (0 B/s)
Fetched 0 B in 0s (0 B/s)
Extracting downloaded debs...
Fetched 0 B in 0s (0 B/s)
Extracting downloaded debs...
dynamically loaded /usr/lib/
dynamically loaded /usr/lib/
Installing extra package coreutils to get ExecutablePath
Fetched 0 B in 0s (0 B/s)
Extracting downloaded debs...
ERROR: Error: command ['/tmp/