Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Help] Could not understand why TSAN suppression pattern failed to match? (^ and race_top) #1835

Open
myocytebd opened this issue Dec 31, 2024 · 0 comments

Comments

@myocytebd
Copy link

(gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0)
The report below can matchrace:radeonsi_dri.so,
but cannot match race:^radeonsi_dri.so or race_top:radeonsi_dri.so.
What I did expect:

  • ^radeonsi_dri.so to match because radeonsi_dri.so is exactly the so file name.
  • race_top skip the top frame because free and realloc are hooked by tsan.
WARNING: ThreadSanitizer: data race (pid=480351)
  Write of size 8 at 0x7b0400003090 by main thread (mutexes: write M2955):
    #0 free ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:711 (libtsan.so.0+0x37ab8)
    #1 <null> <null> (radeonsi_dri.so+0x92a794)
    #2 runSerial(char const*) ../try_vlc3_player.cpp:1013 (try_vlc3_mem_output_sdl2_tsan+0xa805)
    #3 main ../try_vlc3_player.cpp:1056 (try_vlc3_mem_output_sdl2_tsan+0xae70)

  Previous write of size 8 at 0x7b0400003090 by thread T1:
    #0 realloc ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:685 (libtsan.so.0+0x34179)
    #1 <null> <null> (radeonsi_dri.so+0x92e5ab)

  Mutex M2955 (0x7f2ad0f89b80) created at:
    #0 pthread_mutex_lock ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:4240 (libtsan.so.0+0x53908)
    #1 <null> <null> (libGLX_mesa.so.0+0x34977)
    #2 runSerial(char const*) ../try_vlc3_player.cpp:1013 (try_vlc3_mem_output_sdl2_tsan+0xa805)
    #3 main ../try_vlc3_player.cpp:1056 (try_vlc3_mem_output_sdl2_tsan+0xae70)

  Thread T1 'try_vlc3_m:cs0' (tid=480353, running) created by main thread at:
    #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:969 (libtsan.so.0+0x605b8)
    #1 <null> <null> (radeonsi_dri.so+0x119673)
    #2 runSerial(char const*) ../try_vlc3_player.cpp:1013 (try_vlc3_mem_output_sdl2_tsan+0xa805)
    #3 main ../try_vlc3_player.cpp:1056 (try_vlc3_mem_output_sdl2_tsan+0xae70)

SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so+0x92a794)
@myocytebd myocytebd changed the title [Help] Failed to understand why TSAN suppression pattern failed to match? (^ and race_top) [Help] Could not understand why TSAN suppression pattern failed to match? (^ and race_top) Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant