Package: gdb Version: 8.3-1 Severity: important Dear Maintainer,
When gdb is asked to start any dynamically-linked program, they segfault, seemingly early on launch: $ echo 'int main(void) { return 0; }' | gcc -o /tmp/prog -x c - && gdb -q /tmp/prog Reading symbols from /tmp/prog... (No debugging symbols found in /tmp/prog) (gdb) run Starting program: /tmp/prog Program received signal SIGSEGV, Segmentation fault. 0x0000000000000000 in ?? () (gdb) bt #0 0x0000000000000000 in ?? () #1 0x000055555555506a in _start () Pre-built programs like /bin/true also segfault, but the problem doesn’t seem to affect statically-linked programs: $ echo 'int main(void) { return 0; }' | gcc -static -o /tmp/prog -x c - && gdb -q /tmp/prog Reading symbols from /tmp/prog... (No debugging symbols found in /tmp/prog) (gdb) run Starting program: /tmp/prog [Inferior 1 (process 1279) exited normally] -- System Information: Debian Release: bullseye/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 4.19.0-5-amd64 (SMP w/1 CPU core) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages gdb depends on: ii libbabeltrace1 1.5.7-1 ii libc6 2.28-10 ii libexpat1 2.2.7-1 ii libipt2 2.0-2 ii liblzma5 5.2.4-1 ii libncursesw6 6.1+20181013-2 ii libpython3.7 3.7.4-2 ii libreadline8 8.0-2 ii libtinfo6 6.1+20181013-2 ii zlib1g 1:1.2.11.dfsg-1 Versions of packages gdb recommends: ii libc6-dbg [libc-dbg] 2.28-10 Versions of packages gdb suggests: pn gdb-doc <none> pn gdbserver <none>