public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug sanitizer/59063] New: [4.9 Regression] ASAN: segfault in __interceptor_clock_gettime
@ 2013-11-09 19:53 Joost.VandeVondele at mat dot ethz.ch
  2013-11-11  5:38 ` [Bug sanitizer/59063] " y.gribov at samsung dot com
                   ` (25 more replies)
  0 siblings, 26 replies; 27+ messages in thread
From: Joost.VandeVondele at mat dot ethz.ch @ 2013-11-09 19:53 UTC (permalink / raw)
  To: gcc-bugs

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 ()


^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2013-12-03 16:01 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-09 19:53 [Bug sanitizer/59063] New: [4.9 Regression] ASAN: segfault in __interceptor_clock_gettime Joost.VandeVondele at mat dot ethz.ch
2013-11-11  5:38 ` [Bug sanitizer/59063] " y.gribov at samsung dot com
2013-11-11  6:16 ` eugeni.stepanov at gmail dot com
2013-11-11  6:32 ` pinskia at gcc dot gnu.org
2013-11-11  7:09 ` y.gribov at samsung dot com
2013-11-11  7:12 ` y.gribov at samsung dot com
2013-11-11  7:19 ` pinskia at gcc dot gnu.org
2013-11-11  7:27 ` y.gribov at samsung dot com
2013-11-11  7:33 ` jakub at gcc dot gnu.org
2013-11-11  7:42 ` y.gribov at samsung dot com
2013-11-11  7:44 ` jakub at gcc dot gnu.org
2013-11-11  7:47 ` eugeni.stepanov at gmail dot com
2013-11-11 10:17 ` y.gribov at samsung dot com
2013-11-11 10:18 ` y.gribov at samsung dot com
2013-11-11 10:22 ` y.gribov at samsung dot com
2013-11-11 11:05 ` eugeni.stepanov at gmail dot com
2013-11-11 15:45 ` rguenth at gcc dot gnu.org
2013-11-14 12:14 ` y.gribov at samsung dot com
2013-11-14 12:38 ` eugeni.stepanov at gmail dot com
2013-11-15  8:14 ` y.gribov at samsung dot com
2013-11-15 13:02 ` Joost.VandeVondele at mat dot ethz.ch
2013-11-21 14:37 ` rguenth at gcc dot gnu.org
2013-11-22 11:02 ` kcc at gcc dot gnu.org
2013-11-29 12:30 ` ygribov at gcc dot gnu.org
2013-11-29 12:32 ` y.gribov at samsung dot com
2013-11-29 12:43 ` Joost.VandeVondele at mat dot ethz.ch
2013-12-03 16:01 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).