Adding variable TERM to environ is enough to solve the problem. apport.memdbg("before calling gdb") + environ['TERM'] = os.environ.get('TERM', '') subprocess.call(gdb_cmd, env=environ)
Now 'lay asm ' and lay 'regs' provide valuable information. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apport in Ubuntu. https://bugs.launchpad.net/bugs/2012374 Title: Cannot enable the TUI: error opening terminal [TERM=<unset>] Status in apport package in Ubuntu: New Bug description: I try to analyze a crash report on riscv64. I am connected to the system via ssh. sudo DEBUGINFOD_VERBOSE=1 apport-retrace --gdb --sandbox system --cache ~/.cache/apport-retrace /var/crash/_usr_bin_qemu-x86_64-static.0.crash In the opened gdb I try to show the source: (gdb) lay src Cannot enable the TUI: error opening terminal [TERM=<unset>] My expectation is that gdb shows the source layout. gdb works fine outside apport-retrace. # echo $TERM xterm-256color To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apport/+bug/2012374/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp