From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14009 invoked by alias); 28 Nov 2011 12:43:01 -0000 Received: (qmail 13996 invoked by uid 22791); 28 Nov 2011 12:43:00 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 28 Nov 2011 12:42:47 +0000 From: "ro at CeBiTec dot Uni-Bielefeld.DE" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/51296] Several 30_threads tests FAIL on Tru64 UNIX Date: Mon, 28 Nov 2011 13:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at CeBiTec dot Uni-Bielefeld.DE X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-11/txt/msg02642.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51296 --- Comment #14 from ro at CeBiTec dot Uni-Bielefeld.DE 2011-11-28 12:42:17 UTC --- > --- Comment #13 from Jonathan Wakely 2011-11-26 15:18:40 UTC --- > Does this reduced test work with -std=gnu++11 -pthread ? Unfortunately not, I still get 22 : Invalid argument Only if I add an explicit call to pthread_mutex_init does the testcase work. I've no real idea why this happens. pthread_mutex_init(3) states Use the PTHREAD_MUTEX_INITIALIZER macro to statically initialize a mutex without calling this routine. Statically initialized mutexes need not be destroyed using pthread_mutex_destroy(3). Use this macro as follows: pthread_mutex_t mutex= PTHREAD_MUTEX_INITIALIZER Only normal mutexes can be statically initialized. While I do have Tru64 UNIX sources, libpthread is only partially included and the implementation of pthread_mutex_lock is missing. Rainer