This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug threads/11692] GDB internal error when usingpthread_attr_setaffinity_np
- From: "palves at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 29 May 2012 16:16:03 +0000
- Subject: [Bug threads/11692] GDB internal error when usingpthread_attr_setaffinity_np
- Auto-submitted: auto-generated
- References: <bug-11692-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=11692
Pedro Alves <palves at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #4839|0 |1
is obsolete| |
Status|NEW |ASSIGNED
AssignedTo|unassigned at sourceware |palves at redhat dot com
|dot org |
--- Comment #11 from Pedro Alves <palves at redhat dot com> 2012-05-29 16:16:03 UTC ---
Created attachment 6426
--> http://sourceware.org/bugzilla/attachment.cgi?id=6426
reproducer 2
@Sergio, your machine probably has more than 4 cores. The problem happens when
pthread_create fails due to attempting to set the thread affinity to a
non-existing cpu. Try with this tweaked reproducer.
$ gcc affinity2.c -o affinity2 -pthread
$ ./affinity2
binding to cpu 0
binding to cpu 1
binding to cpu 2
binding to cpu 3
binding to cpu 4
pthread_create: 22: Invalid argument
--
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.