[Bug testsuite/80551] c-c++-common/tsan/race_on_mutex.c fails on powerpc

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Feb 19 18:45:00 GMT 2018


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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING

--- Comment #8 from Martin Liška <marxin at gcc dot gnu.org> ---
I've just used gcc110 and gcc112 machine (ppc64 and ppc64le) and both print
following stack-trace in the tsan error:

    #0 memset
../../../../libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:709
(libtsan.so.0+0x55abc)
    #1 __GI___pthread_mutex_init <null> (libpthread.so.0+0xf2ac)
    #2 Thread1 c-c++-common/tsan/race_on_mutex.c:12
(race_on_mutex.exe+0x10000f00)

I also verified that non-sanitized version in gdb also has missing source file
for the __GI___pthread_mutex_init function. Thus '<null>' is here proper value.

Can you seurer test the problematic ppc64 machine where you see:
#1 <null> <null>

What do you see in gdb if you put a breakpoint to memset function?
Thanks


More information about the Gcc-bugs mailing list