Package: thunderbird Version: 1:60.9.0-1~deb9u1 Severity: minor Tags: patch
Hello. I tried to run Thunderbird under GDB to characterize a crash, but the command line built by the start script is wrong. The attached file is a change that fixes the way the gdb command line is built. Regards.
--- /usr/bin/thunderbird 2019-09-12 19:25:59.000000000 +0200 +++ ./thunderbird 2019-10-08 10:20:31.583725040 +0200 @@ -36,7 +36,7 @@ MOZ_LIBDIR=/usr/lib/${MOZ_APP_NAME} ID_PROFILE_FOLDER=${HOME}/.icedove TB_PROFILE_FOLDER=${HOME}/.thunderbird -TB_GDB_DEFAULT_OPTS=${TB_GDB_DEFAULT_OPTS:-"-ex handle SIG38 nostop -ex handle SIGPIPE nostop"} +TB_GDB_DEFAULT_OPTS=${TB_GDB_DEFAULT_OPTS:-"handle SIG38 nostop\nhandle SIGPIPE nostop"} export HELP=0 export FAIL=0 @@ -245,8 +245,10 @@ if [ -f /usr/bin/gdb ]; then if dpkg-query -W -f='${Version}' thunderbird-dbg &>/dev/null ; then output_info "Starting Thunderbird with GDB ..." - output_info "LANG= /usr/bin/gdb ${TB_GDB_DEFAULT_OPTS} -ex run ${MOZ_LIBDIR}/${MOZ_APP_NAME} ${TB_ARGS[@]}" - LANG='' exec "/usr/bin/gdb ${TB_GDB_DEFAULT_OPTS} -ex run ${MOZ_LIBDIR}/${MOZ_APP_NAME} ${TB_ARGS[@]}" + cmdfile=$(mktemp -t thunderbird-gdb-XXXX) + { echo -e ${TB_GDB_DEFAULT_OPTS}; echo file ${MOZ_LIBDIR}/${MOZ_APP_NAME}; echo run ${TB_ARGS[@]}; } >> $cmdfile + LANG='' /usr/bin/gdb -x $cmdfile + rm -- "$cmdfile" else output_info "No package 'thunderbird-dbg' installed! Please install first and restart." exit 1