From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27428 invoked by alias); 10 Dec 2012 12:53:42 -0000 Received: (qmail 27335 invoked by uid 48); 10 Dec 2012 12:53:23 -0000 From: "Joost.VandeVondele at mat dot ethz.ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/55561] TSAN crashes for Fortran Date: Mon, 10 Dec 2012 12:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Joost.VandeVondele at mat dot ethz.ch X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned 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: 2012-12/txt/msg00972.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55561 --- Comment #9 from Joost VandeVondele 2012-12-10 12:53:22 UTC --- (In reply to comment #8) > gfortran -g -fsanitize=thread -fPIC -pie PR55561.f90 Thanks! yields the proper warning as expected.. > gfortran -g -fopenmp -fsanitize=thread -fPIC -pie PR55561.f90 ; ./a.out ================== WARNING: ThreadSanitizer: data race (pid=26592) Read of size 4 at 0x7fff74e67d6c by main thread: #0 MAIN__._omp_fn.0 PR55561.f90:0 (exe+0x000000000fff) #1 MAIN__ PR55561.f90:0 (exe+0x000000000e79) #2 main ??:0 (exe+0x000000000f75) Previous write of size 4 at 0x7fff74e67d6c by thread 1: #0 MAIN__._omp_fn.0 PR55561.f90:0 (exe+0x000000001020) #1 gomp_thread_start /data/vjoost/gnu/gcc_trunk/obj/x86_64-unknown-linux-gnu/libgomp/../../../gcc/libgomp/team.c:116 (libgomp.so.1+0x000000008449) Thread 1 (tid=26593, running) created at: #0 pthread_create ??:0 (libtsan.so.0+0x00000001be6c) #1 gomp_team_start /data/vjoost/gnu/gcc_trunk/obj/x86_64-unknown-linux-gnu/libgomp/../../../gcc/libgomp/team.c:440 (libgomp.so.1+0x0000000089f5) #2 main ??:0 (exe+0x000000000f75) ==================