This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug threads/11692] GDB internal error when usingpthread_attr_setaffinity_np


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]