From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10528 invoked by alias); 29 May 2012 16:17:04 -0000 Received: (qmail 10503 invoked by uid 22791); 29 May 2012 16:17:02 -0000 X-SWARE-Spam-Status: No, hits=-3.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 29 May 2012 16:16:51 +0000 From: "palves at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug threads/11692] GDB internal error when using pthread_attr_setaffinity_np Date: Tue, 29 May 2012 16:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: threads X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: palves at redhat dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: palves at redhat dot com X-Bugzilla-Target-Milestone: 7.1 X-Bugzilla-Changed-Fields: Attachment #4839 is obsolete Status AssignedTo Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2012-q2/txt/msg00192.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=11692 Pedro Alves 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 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.