From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13708 invoked by alias); 9 Nov 2013 19:53:01 -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 Received: (qmail 13637 invoked by uid 48); 9 Nov 2013 19:52:55 -0000 From: "Joost.VandeVondele at mat dot ethz.ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/59063] New: [4.9 Regression] ASAN: segfault in __interceptor_clock_gettime Date: Sat, 09 Nov 2013 19:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 4.9.0 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-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-11/txt/msg00789.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59063 Bug ID: 59063 Summary: [4.9 Regression] ASAN: segfault in __interceptor_clock_gettime Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: Joost.VandeVondele at mat dot ethz.ch CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org with -fsanitize=address the following code works on 4.8 branch bug segfaults with 4.9 > cat test.f90 INTEGER, SAVE :: count_max, count_rate CALL SYSTEM_CLOCK(count_rate=count_rate,count_max=count_max) END > gfortran -fsanitize=address test.f90 ; ./a.out ASAN:SIGSEGV ================================================================= ==48940==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x000000000000 sp 0x7fff97430008 bp 0x7fff97430040 T0) AddressSanitizer can not provide additional info. ==48940==ABORTING Under gdb the bt is: Program received signal SIGSEGV, Segmentation fault. 0x0000000000000000 in ?? () (gdb) bt #0 0x0000000000000000 in ?? () #1 0x00007ffff6b76278 in __interceptor_clock_gettime (clk_id=, tp=0x7fffffffd6e0) at ../../../../gcc/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:740 #2 0x00007ffff6b1efbc in gf_gettime_mono (tck=, fracsecs=, secs=) at ../../../gcc/libgfortran/intrinsics/system_clock.c:98 #3 _gfortran_system_clock_4 (count=0x0, count_rate=0x600f60 , count_max=0x600fa0 ) at ../../../gcc/libgfortran/intrinsics/system_clock.c:147 #4 0x000000000040089d in MAIN__ () #5 0x00000000004008d3 in main ()