[Bug libc/31807] New: td_ta_thr_iter() doesn't allow loop detection
jeremy.davies at gameloft dot com
sourceware-bugzilla@sourceware.org
Mon May 27 14:51:06 GMT 2024
https://sourceware.org/bugzilla/show_bug.cgi?id=31807
Bug ID: 31807
Summary: td_ta_thr_iter() doesn't allow loop detection
Product: glibc
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: jeremy.davies at gameloft dot com
CC: drepper.fsp at gmail dot com
Target Milestone: ---
As reported in https://sourceware.org/bugzilla/show_bug.cgi?id=31003, GDB uses
td_ta_thr_iter() to iterate threads found in a core file, but is encountering
circular linkage that means td_ta_thr_iter() never terminates.
td_ta_thr_iter() doesn't implement loop detection itself, and it appears that
it doesn't allow the callback function to return a value indicating that it has
detected a loop.
Perhaps a callback return code can be added that allows the callback to
indicate this condition, and which causes td_ta_thr_iter() to halt iteration
and indicate same to its caller.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list