This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug sanitizer/59063] New: [4.9 Regression] ASAN: segfault in __interceptor_clock_gettime


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=<optimized out>,
tp=0x7fffffffd6e0)
    at
../../../../gcc/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:740
#2  0x00007ffff6b1efbc in gf_gettime_mono (tck=<synthetic pointer>,
fracsecs=<synthetic pointer>, secs=<synthetic pointer>)
    at ../../../gcc/libgfortran/intrinsics/system_clock.c:98
#3  _gfortran_system_clock_4 (count=0x0, count_rate=0x600f60 <count_rate.1893>,
count_max=0x600fa0 <count_max.1892>)
    at ../../../gcc/libgfortran/intrinsics/system_clock.c:147
#4  0x000000000040089d in MAIN__ ()
#5  0x00000000004008d3 in main ()


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]