[Bug sanitizer/65112] New: [5 Regression] -fsanitized=thread Fortran program crashes at startup

Joost.VandeVondele at mat dot ethz.ch gcc-bugzilla@gcc.gnu.org
Wed Feb 18 20:17:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65112

            Bug ID: 65112
           Summary: [5 Regression] -fsanitized=thread Fortran program
                    crashes at startup
           Product: gcc
           Version: 5.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

Current trunk leads to segfault with:

> cat main.f90 
END

> gfortran -fsanitize=thread -fopenmp -gdwarf-3 -fPIE -pie -fno-omit-frame-pointer main.f90 ; ./a.out
Segmentation fault

the same goes fine with 4.9

gdb yields:

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6fa8ac4 in TraceAddEvent (addr=140737336975177,
typ=__tsan::EventTypeFuncEnter, fs=..., thr=0x7ffff61068c0) at
../../../../gcc/libsanitizer/tsan/tsan_rtl.h:723
723      *evp = ev;
(gdb) bt
#0  0x00007ffff6fa8ac4 in TraceAddEvent (addr=140737336975177,
typ=__tsan::EventTypeFuncEnter, fs=..., thr=0x7ffff61068c0) at
../../../../gcc/libsanitizer/tsan/tsan_rtl.h:723
#1  __tsan::FuncEntry (thr=0x7ffff61068c0, pc=140737336975177) at
../../../../gcc/libsanitizer/tsan/tsan_rtl.cc:913
#2  0x00007ffff6f5f763 in ScopedInterceptor::ScopedInterceptor
(this=0x7fffffffd5e0, thr=0x7ffff61068c0, fname=<optimized out>,
pc=140737336975177)
    at ../../../../gcc/libsanitizer/tsan/tsan_interceptors.cc:191
#3  0x00007ffff6f73722 in __interceptor___tls_get_addr (arg=0x7ffff6fff1e8) at
../../../../gcc/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:3871
#4  0x00007ffff6fa1f49 in ScopedIgnoreInterceptors (this=<synthetic pointer>)
at ../../../../gcc/libsanitizer/tsan/tsan_rtl.h:483
#5  __tsan::Initialize (thr=0x7ffff61068c0) at
../../../../gcc/libsanitizer/tsan/tsan_rtl.cc:302
#6  0x00007ffff6f5f758 in ScopedInterceptor::ScopedInterceptor
(this=0x7fffffffd6c0, thr=0x7ffff61068c0, fname=<optimized out>,
pc=140737322699158)
    at ../../../../gcc/libsanitizer/tsan/tsan_interceptors.cc:190
#7  0x00007ffff6f5fc5e in __interceptor___cxa_atexit (f=0x7ffff6204830
<std::(anonymous
namespace)::generic_error_category::~generic_error_category()>, 
    arg=0x7ffff62f1530 <std::(anonymous namespace)::generic_category_instance>,
dso=0x7ffff62f11e0) at
../../../../gcc/libsanitizer/tsan/tsan_interceptors.cc:321
#8  0x00007ffff6204996 in __static_initialization_and_destruction_0
(__initialize_p=1, __priority=65535) at
../../../../gcc/libstdc++-v3/src/c++11/compatibility-c++0x.cc:212
#9  _GLOBAL__sub_I_compatibility_c__0x.cc(void) () at
../../../../gcc/libstdc++-v3/src/c++11/compatibility-c++0x.cc:253
#10 0x00007ffff7dea64f in _dl_init_internal () from /lib64/ld-linux-x86-64.so.2
#11 0x00007ffff7ddcb3a in _dl_start_user () from /lib64/ld-linux-x86-64.so.2
#12 0x0000000000000001 in ?? ()
#13 0x00007fffffffdade in ?? ()
#14 0x0000000000000000 in ?? ()



More information about the Gcc-bugs mailing list