Skip to content

Instantly share code, notes, and snippets.

@herrhotzenplotz
Created March 26, 2022 12:15
Show Gist options
  • Save herrhotzenplotz/9970dff8242f4369d4084046a6e0c865 to your computer and use it in GitHub Desktop.
Save herrhotzenplotz/9970dff8242f4369d4084046a6e0c865 to your computer and use it in GitHub Desktop.
ghcli paste
WARNING: ThreadSanitizer: data race (pid=97164)
Write of size 8 at 0x7b1000000068 by main thread:
#0 memcpy /usr/src/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc:808:5 (debug+0x25f9c9)
#1 sn_q_nq /usr/home/nico/src/libsn/src/q.c:146:5 (debug+0x2b67eb)
#2 main /usr/home/nico/src/libsn/examples/debug.c:115:13 (debug+0x2b31d6)
Previous read of size 8 at 0x7b1000000068 by thread T1:
#0 kernel /usr/home/nico/src/libsn/examples/debug.c:57:11 (debug+0x2b35a9)
#1 sn_q_worker_task /usr/home/nico/src/libsn/src/q.c:76:9 (debug+0x2b642b)
Location is heap block of size 64 at 0x7b1000000040 allocated by main thread:
#0 calloc /usr/src/contrib/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:669:5 (debug+0x256605)
#1 sn_q_init /usr/home/nico/src/libsn/src/q.c:87:27 (debug+0x2b6113)
#2 main /usr/home/nico/src/libsn/examples/debug.c:102:22 (debug+0x2b310e)
Thread T1 (tid=101868, running) created by main thread at:
#0 pthread_create /usr/src/contrib/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:966:3 (debug+0x2579e3)
#1 sn_q_init /usr/home/nico/src/libsn/src/q.c:101:13 (debug+0x2b633c)
#2 main /usr/home/nico/src/libsn/examples/debug.c:102:22 (debug+0x2b310e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment