Skip to content

Instantly share code, notes, and snippets.

@dogbert17
Created August 14, 2020 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dogbert17/36d5c6e2d78cc04557d695d8ea243bdd to your computer and use it in GitHub Desktop.
Save dogbert17/36d5c6e2d78cc04557d695d8ea243bdd to your computer and use it in GitHub Desktop.
Data race ??
WARNING: ThreadSanitizer: data race (pid=144640)
Write of size 8 at 0x7bb4002f8078 by thread T16:
#0 set_obj_at_offset src/6model/reprs/P6opaque.c:21 (libmoar.so+0x2cf847)
#1 bind_attribute src/6model/reprs/P6opaque.c:389 (libmoar.so+0x2cf847)
#2 MVM_interp_run src/core/interp.c:2008 (libmoar.so+0x2276d6)
#3 start_thread src/core/threads.c:87 (libmoar.so+0x24def0)
#4 <null> <null> (libtsan.so.0+0x2d1af)
Previous write of size 8 at 0x7bb4002f8078 by thread T15:
#0 set_obj_at_offset src/6model/reprs/P6opaque.c:21 (libmoar.so+0x2cf847)
#1 bind_attribute src/6model/reprs/P6opaque.c:389 (libmoar.so+0x2cf847)
#2 MVM_interp_run src/core/interp.c:2008 (libmoar.so+0x2276d6)
#3 start_thread src/core/threads.c:87 (libmoar.so+0x24def0)
#4 <null> <null> (libtsan.so.0+0x2d1af)
Location is heap block of size 40960 at 0x7bb4002f8000 allocated by thread T1:
#0 malloc <null> (libtsan.so.0+0x30343)
#1 MVM_malloc src/core/alloc.h:2 (libmoar.so+0x28dc1f)
#2 setup_bin src/gc/gen2.c:27 (libmoar.so+0x28dc1f)
#3 MVM_gc_gen2_allocate src/gc/gen2.c:74 (libmoar.so+0x28dc1f)
#4 process_worklist src/gc/collect.c:278 (libmoar.so+0x28c7f3)
#5 MVM_gc_collect src/gc/collect.c:123 (libmoar.so+0x28cc76)
#6 run_gc src/gc/orchestrate.c:444 (libmoar.so+0x283137)
#7 MVM_gc_enter_from_allocator src/gc/orchestrate.c:599 (libmoar.so+0x284d80)
#8 MVM_gc_allocate_nursery src/gc/allocation.c:37 (libmoar.so+0x28522c)
#9 MVM_gc_allocate src/gc/allocation.h:18 (libmoar.so+0x2852da)
#10 MVM_gc_allocate_zeroed src/gc/allocation.c:56 (libmoar.so+0x2852da)
#11 MVM_gc_allocate_object src/gc/allocation.c:93 (libmoar.so+0x2856b5)
#12 MVM_args_slurpy_named src/core/args.c:749 (libmoar.so+0x1f435c)
#13 MVM_interp_run src/core/interp.c:1213 (libmoar.so+0x211533)
#14 start_thread src/core/threads.c:87 (libmoar.so+0x24def0)
#15 <null> <null> (libtsan.so.0+0x2d1af)
Thread T16 (tid=144657, running) created by thread T2 at:
#0 pthread_create <null> (libtsan.so.0+0x5ea99)
#1 uv_thread_create_ex <null> (libmoar.so+0x452601)
#2 MVM_interp_run src/core/interp.c:4102 (libmoar.so+0x208d2b)
#3 start_thread src/core/threads.c:87 (libmoar.so+0x24def0)
#4 <null> <null> (libtsan.so.0+0x2d1af)
Thread T15 (tid=144656, running) created by thread T2 at:
#0 pthread_create <null> (libtsan.so.0+0x5ea99)
#1 uv_thread_create_ex <null> (libmoar.so+0x452601)
#2 MVM_interp_run src/core/interp.c:4102 (libmoar.so+0x208d2b)
#3 start_thread src/core/threads.c:87 (libmoar.so+0x24def0)
#4 <null> <null> (libtsan.so.0+0x2d1af)
Thread T1 (tid=144642, running) created by main thread at:
#0 pthread_create <null> (libtsan.so.0+0x5ea99)
#1 uv_thread_create_ex <null> (libmoar.so+0x452601)
#2 MVM_interp_run src/core/interp.c:4102 (libmoar.so+0x208d2b)
#3 MVM_vm_run_file src/moar.c:461 (libmoar.so+0x3ee790)
#4 main src/main.c:305 (moar+0x1982)
SUMMARY: ThreadSanitizer: data race src/6model/reprs/P6opaque.c:21 in set_obj_at_offset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment