public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug sanitizer/65112] New: [5 Regression] -fsanitized=thread Fortran program crashes at startup
@ 2015-02-18 20:17 Joost.VandeVondele at mat dot ethz.ch
  2015-02-19 10:21 ` [Bug sanitizer/65112] " rguenth at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Joost.VandeVondele at mat dot ethz.ch @ 2015-02-18 20:17 UTC (permalink / raw)
  To: gcc-bugs

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


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

* [Bug sanitizer/65112] [5 Regression] -fsanitized=thread Fortran program crashes at startup
  2015-02-18 20:17 [Bug sanitizer/65112] New: [5 Regression] -fsanitized=thread Fortran program crashes at startup Joost.VandeVondele at mat dot ethz.ch
@ 2015-02-19 10:21 ` rguenth at gcc dot gnu.org
  2015-02-20 14:06 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-02-19 10:21 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |5.0


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

* [Bug sanitizer/65112] [5 Regression] -fsanitized=thread Fortran program crashes at startup
  2015-02-18 20:17 [Bug sanitizer/65112] New: [5 Regression] -fsanitized=thread Fortran program crashes at startup Joost.VandeVondele at mat dot ethz.ch
  2015-02-19 10:21 ` [Bug sanitizer/65112] " rguenth at gcc dot gnu.org
@ 2015-02-20 14:06 ` jakub at gcc dot gnu.org
  2015-02-25 21:34 ` mpolacek at gcc dot gnu.org
  2015-02-26 17:23 ` mpolacek at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-02-20 14:06 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Can't reproduce, works just fine here.


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

* [Bug sanitizer/65112] [5 Regression] -fsanitized=thread Fortran program crashes at startup
  2015-02-18 20:17 [Bug sanitizer/65112] New: [5 Regression] -fsanitized=thread Fortran program crashes at startup Joost.VandeVondele at mat dot ethz.ch
  2015-02-19 10:21 ` [Bug sanitizer/65112] " rguenth at gcc dot gnu.org
  2015-02-20 14:06 ` jakub at gcc dot gnu.org
@ 2015-02-25 21:34 ` mpolacek at gcc dot gnu.org
  2015-02-26 17:23 ` mpolacek at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-02-25 21:34 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpolacek at gcc dot gnu.org

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Can't reproduce either:

./gfortran -B ./ -B ../x86_64-unknown-linux-gnu/libgfortran/ -B
../x86_64-unknown-linux-gnu/libgomp/ -fsanitize=thread -fopenmp -gdwarf-3 -fPIE
-pie -fno-omit-frame-pointer main.f90 -L
../x86_64-unknown-linux-gnu/libquadmath/.libs/ -L
../x86_64-unknown-linux-gnu/libsanitizer/tsan/.libs/ -L
../x86_64-unknown-linux-gnu/libgomp/.libs/ -L
../x86_64-unknown-linux-gnu/libgfortran/.libs/ ; ./a.out


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

* [Bug sanitizer/65112] [5 Regression] -fsanitized=thread Fortran program crashes at startup
  2015-02-18 20:17 [Bug sanitizer/65112] New: [5 Regression] -fsanitized=thread Fortran program crashes at startup Joost.VandeVondele at mat dot ethz.ch
                   ` (2 preceding siblings ...)
  2015-02-25 21:34 ` mpolacek at gcc dot gnu.org
@ 2015-02-26 17:23 ` mpolacek at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-02-26 17:23 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Closing; please reopen if you can still reproduce.


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

end of thread, other threads:[~2015-02-26 16:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-18 20:17 [Bug sanitizer/65112] New: [5 Regression] -fsanitized=thread Fortran program crashes at startup Joost.VandeVondele at mat dot ethz.ch
2015-02-19 10:21 ` [Bug sanitizer/65112] " rguenth at gcc dot gnu.org
2015-02-20 14:06 ` jakub at gcc dot gnu.org
2015-02-25 21:34 ` mpolacek at gcc dot gnu.org
2015-02-26 17:23 ` mpolacek 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).