Debian Bug report logs -
#914344
gdb: record feature leads to Assertion `lwp_is_stopped (lwp)' failed
Reply or subscribe to this bug.
Display info messages
Message #5 received at [email protected] (full text , mbox , reply ):
Package: gdb
Version: 8.1-4+b1
Severity: normal
Tags: upstream
Dear Maintainer,
while trying to debug #914300 I wanted to use the record feature of gdb.
Unfortunately that stopped on me with an assertion failed.
See at the bottom of this mail for an example run.
I was able to find the issue starting between these debian packages.
- gdb-minimal_7.10-1.1 works
- gdb-minimal_7.11.1-1 fails
This upstream bug [1] seems to handle that exact issue.
There I have forwarded my findings and a git bisect result,
of which commit [2] has introduced this.
Kind regards,
Bernhard
[1] https://sourceware.org/bugzilla/show_bug.cgi?id=20456
[2] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=patch;h=398e081380a204e3b9fb4eb4da069ccf471f930e
-- System Information:
Debian Release: buster/sid
APT prefers testing-debug
APT policy: (500, 'testing-debug'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 4.18.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages gdb depends on:
ii libbabeltrace1 1.5.6-1
ii libc6 2.27-8
ii libexpat1 2.2.6-1
ii libipt2 2.0-2
ii liblzma5 5.2.2-1.3
ii libncursesw6 6.1+20181013-1
ii libpython3.6 3.6.7-1
ii libreadline7 7.0-5
ii libtinfo6 6.1+20181013-1
ii zlib1g 1:1.2.11.dfsg-1
Versions of packages gdb recommends:
ii libc6-dbg [libc-dbg] 2.27-8
Versions of packages gdb suggests:
pn gdb-doc <none>
pn gdbserver <none>
-- no debconf information
benutzer@debian:~$ gdb -q --args kalgebra
Reading symbols from kalgebra...Reading symbols from /usr/lib/debug/.build-id/db/c25dd2c87a837265a5fccb742e0b65684c3166.debug...done.
done.
(gdb) b ConsoleHtml::clear
Breakpoint 1 at 0x1edc0: file ./src/consolehtml.cpp, line 225.
(gdb) run
Starting program: /usr/bin/kalgebra
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffdce9d700 (LWP 22111)]
[New Thread 0x7fffd3078700 (LWP 22112)]
[New Thread 0x7fffd2877700 (LWP 22113)]
[New Thread 0x7fffd2076700 (LWP 22114)]
[New Thread 0x7fffd1875700 (LWP 22115)]
[New Thread 0x7fffd1074700 (LWP 22116)]
[New Thread 0x7fffd0873700 (LWP 22117)]
[New Thread 0x7fffbbfff700 (LWP 22118)]
[New Thread 0x7fffb37fe700 (LWP 22119)]
[New Thread 0x7fffbb7fe700 (LWP 22120)]
[New Thread 0x7fffba793700 (LWP 22122)]
[New Thread 0x7fffb9f92700 (LWP 22124)]
[New Thread 0x7fffb9791700 (LWP 22125)]
[New Thread 0x7fffb8f90700 (LWP 22126)]
[New Thread 0x7fffb3fff700 (LWP 22127)]
[New Thread 0x7fffb2ffd700 (LWP 22128)]
[New Thread 0x7fffb27fc700 (LWP 22129)]
[New Thread 0x7fffb1ffb700 (LWP 22130)]
[New Thread 0x7fffb17fa700 (LWP 22131)]
[New Thread 0x7fffb0ff9700 (LWP 22132)]
[New Thread 0x7fff83fff700 (LWP 22133)]
[New Thread 0x7fff837fe700 (LWP 22134)]
[New Thread 0x7fff82ffd700 (LWP 22135)]
[New Thread 0x7fff827fc700 (LWP 22136)]
[New Thread 0x7fff81ffb700 (LWP 22137)]
[New Thread 0x7fff817fa700 (LWP 22138)]
[New Thread 0x7fff80ff9700 (LWP 22139)]
[New Thread 0x7fff5ffff700 (LWP 22140)]
[New Thread 0x7fff5f7fe700 (LWP 22141)]
[New Thread 0x7fff5effd700 (LWP 22142)]
[New Thread 0x7fff5e7fc700 (LWP 22143)]
[New Thread 0x7fff5dffb700 (LWP 22144)]
[New Thread 0x7fff5d7fa700 (LWP 22152)]
[New Thread 0x7fff43fff700 (LWP 22161)]
[Thread 0x7fff43fff700 (LWP 22161) exited]
Thread 1 "kalgebra" hit Breakpoint 1, ConsoleHtml::clear (this=0x555555ab9ff0) at ./src/consolehtml.cpp:225
225 ./src/consolehtml.cpp: No such file or directory.
(gdb) record
(gdb) cont
Continuing.
/build/gdb-KOFU8D/gdb-8.1/gdb/nat/x86-linux-dregs.c:146: internal-error: void x86_linux_update_debug_registers(lwp_info*): Assertion `lwp_is_stopped (lwp)' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n)
Send a report that this bug log contains spam .
Debian bug tracking system administrator <[email protected] >.
Last modified:
Sun Sep 22 07:32:42 2024;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/ .
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.