Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#69657 - gdb fails with "Cannot find user-level thread for LWP 192701: generic error"

Attached to Project: Arch Linux
Opened by Sven Brauch (scummos) - Tuesday, 16 February 2021, 15:01 GMT
Task Type Bug Report
Category Packages: Extra
Status Unconfirmed
Assigned To No-one
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 3
Private No

Details

Since a recent update, attaching gdb 10.1 to a process sometimes fails with the following error message:

Error while reading shared library symbols for /usr/lib/libpthread.so.0:
Cannot find user-level thread for LWP 192701: generic error

On my machine, I can so far only reproduce this problem when attaching using "gdb -p <pid>", but other users have the same issue even when launching an application directly from gdb.

I don't know exactly what is going on, but I have collected the following details so far:

- The error is 100% reproducible for attaching to some programs. Examples include "gimp" and "telegram-desktop".

- The error is 100% *not* reproducible for attaching to others. Examples include "kate" and "okular".

- It was not a gdb update which caused the issue to appear; attached is the list of packages I last upgraded on my machine. The issue did not occur before, but occurred afterwards.

- The issue also occurs for some applications compiled on the system itself, not just for packages from pacman.

The issue is quite severe, since it effectively makes debugging some applications impossible.

Here's some more detailed version info:

> pacman -Qi gdb glibc gcc-libs gcc gimp telegram-desktop kate okular |grep -B1 Version
Name : gdb
Version : 10.1-4
--
Name : glibc
Version : 2.33-4
--
Name : gcc-libs
Version : 10.2.0-6
--
Name : gcc
Version : 10.2.0-6
--
Name : gimp
Version : 2.10.22-1
--
Name : telegram-desktop
Version : 2.5.8-1
--
Name : kate
Version : 20.12.2-1
--
Name : okular
Version : 20.12.2-1
This task depends upon

Comment by Sven Brauch (scummos) - Tuesday, 16 February 2021, 15:09 GMT
Here is a thread about the same issue on Manjaro Linux: https://forum.manjaro.org/t/critical-bug-gdb-broken-with-last-stable-update/53155/2

I verified the same problem occurs with both distributions.
Comment by Azat (azat) - Thursday, 04 March 2021, 07:17 GMT

Loading...