./sv-sanitizers.py -j 8 --property /mnt/goblint-svcomp/goblint-bench/bench/concrat/properties/no-data-race.prp --data-model ILP32 /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i


--------------------------------------------------------------------------------


/mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i:141:15: warning: conflicting types for built-in function ‘strftime’; expected ‘long unsigned int(char *, long unsigned int,  const char *, const void *)’ [-Wbuiltin-declaration-mismatch]
  141 | extern size_t strftime (char *__restrict __s, size_t __maxsize,
      |               ^~~~~~~~
/mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i:1: note: ‘strftime’ is declared in header ‘<time.h>’
    1 | typedef unsigned char __u_char;
............==================
WARNING: ThreadSanitizer: data race (pid=19)
  Write of size 4 at 0x55bcf3356080 by thread T1:
    #0 thread /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i:685 (a.out+0x1c32)

  Previous read of size 4 at 0x55bcf3356080 by main thread:
    #0 main /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i:697 (a.out+0x1d19)

  Location is global 'threads_alive' of size 4 at 0x55bcf3356080 (a.out+0x000000004080)

  Thread T1 (tid=31, running) created by main thread at:
    #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:969 (libtsan.so.0+0x605b8)
    #1 main /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i:694 (a.out+0x1ce5)

SUMMARY: ThreadSanitizer: data race /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i:685 in thread
==================
==================
WARNING: ThreadSanitizer: data race (pid=19)
  Read of size 4 at 0x55bcf3356084 by main thread:
    #0 main /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i:698 (a.out+0x1d32)

  Previous write of size 4 at 0x55bcf3356084 by thread T1 (mutexes: write M0):
    #0 thread /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i:683 (a.out+0x1bf6)

  Location is global 'data' of size 4 at 0x55bcf3356084 (a.out+0x000000004084)

  Mutex M0 (0x55bcf33560a0) created at:
    #0 pthread_mutex_lock ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:4240 (libtsan.so.0+0x53908)
    #1 thread /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i:682 (a.out+0x1bdb)

  Thread T1 (tid=31, finished) created by main thread at:
    #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:969 (libtsan.so.0+0x605b8)
    #1 main /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i:694 (a.out+0x1ce5)

SUMMARY: ThreadSanitizer: data race /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i:698 in main
==================
ThreadSanitizer: reported 2 warnings

SV-COMP result: false
