From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10337 invoked by alias); 17 Jan 2011 22:49:19 -0000 Received: (qmail 10326 invoked by uid 22791); 17 Jan 2011 22:49:19 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,SARE_SUB_PCT_LETTER,TW_BJ,TW_EG 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, 17 Jan 2011 22:49:13 +0000 From: "nicola at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/46822] printf( "%f" ) segv when called from pthread_once X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: nicola at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Status Last reconfirmed CC Ever Confirmed 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 Date: Mon, 17 Jan 2011 23:48:00 -0000 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-01/txt/msg01730.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46822 Nicola Pero changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2011.01.17 22:49:07 CC| |nicola at gcc dot gnu.org Ever Confirmed|0 |1 --- Comment #2 from Nicola Pero 2011-01-17 22:49:07 UTC --- Isdmter thanks for your report and the testcase. The attached testcase works for me using GCC 4.6.0 (pre-release) -- gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/opt/gcc/trunk7/libexec/gcc/i686-pc-linux-gnu/4.6.0/lto-wrapper Target: i686-pc-linux-gnu Configured with: ../trunk7/configure --prefix=/opt/gcc/trunk7 --enable-languages=c,objc,c++,obj-c++ --enable-objc-gc --with-gmp=/opt/gcc/auxiliary/ --with-mpfr=/opt/gcc/auxiliary/ --with-mpc=/opt/gcc/auxiliary/ --enable-checking=release : (reconfigured) ../trunk7/configure --prefix=/opt/gcc/trunk7 --enable-objc-gc --with-gmp=/opt/gcc/auxiliary/ --with-mpfr=/opt/gcc/auxiliary/ --with-mpc=/opt/gcc/auxiliary/ --enable-checking=release --enable-languages=c,c++,lto,objc,obj-c++ --no-create --no-recursion Thread model: posix gcc version 4.6.0 20110116 (experimental) (GCC) [nicola@lampone ~]$ gcc -Wall -save-temps -o main -pthread -lpthread main.c [nicola@lampone ~]$ ./main 0 0.000000 0 0.000000 [nicola@lampone ~]$ I also tried on a x86_64-unknown-linux-gnu AMD machine, similar to yours, and it works fine there too. Maybe you could manage to try with GCC 4.6.0 (prerelease) and confirm that you're still seeing the bug there ? Thanks