Package: gdb Version: 7.12-6 Severity: normal Dear Héctor,
When using the print command to evaluate C code, gdb output "Couldn't write extended state status: Bad address" and get in a confused state. The attached script should allow to reproduce the bug. Breakpoint 1, doadd (a=2, b=4) at main.c:2 2 int doadd(int a, int b) { return add(a,b);} (gdb) $1 = 2 (gdb) Couldn't write extended state status: Mauvaise adresse. (gdb) No symbol "a" in current context. (gdb) Couldn't write extended state status: Mauvaise adresse. on jessie I get: Breakpoint 1, doadd (a=2, b=4) at main.c:2 2 int doadd(int a, int b) { return add(a,b);} (gdb) $1 = 2 (gdb) $2 = 11 (gdb) $3 = 2 (gdb) $4 = 11 I can reproduce it on a recently installed stretch system and also in a sid chroot, but not with gdb 8 in experimental. However there is no problem on a jessie system and also in a sid chroot. So maybe it is related to the kernel. google do not report anything for 'Couldn't write extended state status:'. The gdb code is if (ptrace (PTRACE_SETREGSET, tid, (unsigned int) NT_X86_XSTATE, (long) &iov) < 0) perror_with_name (_("Couldn't write extended state status")); I would be very grateful if you could tell me if you can reproduce it. Thanks for maintaining gdb, Bill. -- System Information: Debian Release: 9.4 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-debug'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.9.0-6-amd64 (SMP w/32 CPU cores) 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 /bin/dash Init: systemd (via /run/systemd/system) Versions of packages gdb depends on: ii libbabeltrace-ctf1 1.5.1-1 ii libbabeltrace1 1.5.1-1 ii libc6 2.24-11+deb9u3 ii libexpat1 2.2.0-2+deb9u1 ii liblzma5 5.2.2-1.2+b1 ii libncurses5 6.0+20161126-1+deb9u2 ii libpython3.5 3.5.3-1 ii libreadline7 7.0-3 ii libtinfo5 6.0+20161126-1+deb9u2 ii zlib1g 1:1.2.8.dfsg-5 Versions of packages gdb recommends: ii libc6-dbg [libc-dbg] 2.24-11+deb9u3 Versions of packages gdb suggests: pn gdb-doc <none> ii gdbserver 7.12-6 -- no debconf information
dotest.sh
Description: Bourne shell script