This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug threads/13217] New: thread apply all detach throws a SEGFAULT
- From: "kevin.pouget at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 22 Sep 2011 09:50:25 +0000
- Subject: [Bug threads/13217] New: thread apply all detach throws a SEGFAULT
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=13217
Bug #: 13217
Summary: thread apply all detach throws a SEGFAULT
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: threads
AssignedTo: unassigned@sourceware.org
ReportedBy: kevin.pouget@gmail.com
Classification: Unclassified
thread apply all detach throws a SEGFAULT, because
thread.c:thread_apply_all_command
for (tp = thread_list; tp; tp = tp->next)
is not robust against thread_list modification during the loop.
The reason behind this strange-looking command is when you have multiple
(single-threaded) inferiors and you want to detach all of them, there is no
`inferior apply all detach`
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.