Created
July 16, 2018 20:41
-
-
Save pftbest/cd25cde9394c92c500ed3e3179365237 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
macbook:relay vadzim$ rustup default nightly-2018-06-24 | |
info: using existing install for 'nightly-2018-06-24-x86_64-apple-darwin' | |
info: default toolchain set to 'nightly-2018-06-24-x86_64-apple-darwin' | |
nightly-2018-06-24-x86_64-apple-darwin unchanged - rustc 1.28.0-nightly (60efbdead 2018-06-23) | |
macbook:relay vadzim$ RUSTFLAGS="-Z sanitizer=thread" cargo run --target x86_64-apple-darwin | |
Compiling relay v0.1.0 (file:///Users/vadzim/Downloads/relay) | |
Finished dev [unoptimized + debuginfo] target(s) in 0.71s | |
Running `target/x86_64-apple-darwin/debug/relay` | |
================== | |
WARNING: ThreadSanitizer: data race (pid=19407) | |
Write of size 4 at 0x7b0800000150 by thread T2: | |
#0 relay::main::_$u7b$$u7b$closure$u7d$$u7d$::h729c5b7894d183b3 main.rs:23 (relay:x86_64+0x100008bec) | |
#1 std::sys_common::backtrace::__rust_begin_short_backtrace::hd6ff3c4970953dce backtrace.rs:136 (relay:x86_64+0x100009188) | |
#2 std::thread::Builder::spawn::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h9ab20de5cc0447c7 mod.rs:409 (relay:x86_64+0x1000035e8) | |
#3 _$LT$std..panic..AssertUnwindSafe$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$$LP$$RP$$GT$$GT$::call_once::h96c4947a030a3dd9 panic.rs:313 (relay:x86_64+0x100007918) | |
#4 std::panicking::try::do_call::hdc4b69c5a09917f5 panicking.rs:310 (relay:x86_64+0x1000055b2) | |
#5 __rust_maybe_catch_panic lib.rs:105 (relay:x86_64+0x10002505e) | |
#6 std::panic::catch_unwind::h2064e1b087c779b7 panic.rs:397 (relay:x86_64+0x100007968) | |
#7 std::thread::Builder::spawn::_$u7b$$u7b$closure$u7d$$u7d$::h55f46ff3a765d3ae mod.rs:408 (relay:x86_64+0x1000030f1) | |
#8 _$LT$F$u20$as$u20$alloc..boxed..FnBox$LT$A$GT$$GT$::call_box::hc8d3bb5f5664f680 boxed.rs:640 (relay:x86_64+0x100003824) | |
#9 std::sys_common::thread::start_thread::h9c8a9e29d0f3477f thread.rs:24 (relay:x86_64+0x100018247) | |
Previous read of size 4 at 0x7b0800000150 by thread T1: | |
#0 relay::main::_$u7b$$u7b$closure$u7d$$u7d$::h15958bf4d3c3089d main.rs:12 (relay:x86_64+0x100008aa0) | |
#1 std::sys_common::backtrace::__rust_begin_short_backtrace::hcf058a73fcfbfa6a backtrace.rs:136 (relay:x86_64+0x100009138) | |
#2 std::thread::Builder::spawn::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::hd43235659212d0f2 mod.rs:409 (relay:x86_64+0x100003638) | |
#3 _$LT$std..panic..AssertUnwindSafe$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$$LP$$RP$$GT$$GT$::call_once::h656e0216c1bb8c39 panic.rs:313 (relay:x86_64+0x1000078c8) | |
#4 std::panicking::try::do_call::h5bb4cfe2b5f51019 panicking.rs:310 (relay:x86_64+0x100005522) | |
#5 __rust_maybe_catch_panic lib.rs:105 (relay:x86_64+0x10002505e) | |
#6 std::panic::catch_unwind::h97b386f81bad13b8 panic.rs:397 (relay:x86_64+0x1000079c8) | |
#7 std::thread::Builder::spawn::_$u7b$$u7b$closure$u7d$$u7d$::h5e6553ce326b2b49 mod.rs:408 (relay:x86_64+0x1000033f1) | |
#8 _$LT$F$u20$as$u20$alloc..boxed..FnBox$LT$A$GT$$GT$::call_box::heae1ec72d4fd819e boxed.rs:640 (relay:x86_64+0x1000038e4) | |
#9 std::sys_common::thread::start_thread::h9c8a9e29d0f3477f thread.rs:24 (relay:x86_64+0x100018247) | |
Location is heap block of size 24 at 0x7b0800000140 allocated by main thread: | |
#0 malloc <null>:4745264 (libclang_rt.tsan_osx_dynamic.dylib:x86_64+0x29a0a) | |
#1 alloc::alloc::alloc::h6379a59804285c4b alloc.rs:62 (relay:x86_64+0x100001dba) | |
#2 alloc::alloc::exchange_malloc::h4a4318c1ab7c34c4 alloc.rs:157 (relay:x86_64+0x100001ce3) | |
#3 _$LT$alloc..arc..Arc$LT$T$GT$$GT$::new::h393048df0fb29b82 arc.rs:285 (relay:x86_64+0x10000a54a) | |
#4 relay::main::h182e45069a4d9384 main.rs:7 (relay:x86_64+0x100000f8a) | |
#5 std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h8b80ca46f9ebd960 rt.rs:74 (relay:x86_64+0x100006835) | |
#6 std::panicking::try::do_call::h586091eb2188e424 panicking.rs:310 (relay:x86_64+0x100018a17) | |
#7 main <null>:4745264 (relay:x86_64+0x100001230) | |
Thread T2 (tid=1042864, running) created by main thread at: | |
#0 pthread_create <null>:4745312 (libclang_rt.tsan_osx_dynamic.dylib:x86_64+0x824d) | |
#1 std::sys::unix::thread::Thread::new::h8d60f6f4b5ab29f4 thread.rs:78 (relay:x86_64+0x10000bc3e) | |
#2 std::thread::spawn::hb2898696148794bd mod.rs:539 (relay:x86_64+0x100002090) | |
#3 relay::main::h182e45069a4d9384 main.rs:17 (relay:x86_64+0x100001076) | |
#4 std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h8b80ca46f9ebd960 rt.rs:74 (relay:x86_64+0x100006835) | |
#5 std::panicking::try::do_call::h586091eb2188e424 panicking.rs:310 (relay:x86_64+0x100018a17) | |
#6 main <null>:4745312 (relay:x86_64+0x100001230) | |
Thread T1 (tid=1042863, finished) created by main thread at: | |
#0 pthread_create <null>:4745312 (libclang_rt.tsan_osx_dynamic.dylib:x86_64+0x824d) | |
#1 std::sys::unix::thread::Thread::new::h8d60f6f4b5ab29f4 thread.rs:78 (relay:x86_64+0x10000bc3e) | |
#2 std::thread::spawn::hbef4f6cffaf6cd40 mod.rs:539 (relay:x86_64+0x1000021a0) | |
#3 relay::main::h182e45069a4d9384 main.rs:9 (relay:x86_64+0x100001039) | |
#4 std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h8b80ca46f9ebd960 rt.rs:74 (relay:x86_64+0x100006835) | |
#5 std::panicking::try::do_call::h586091eb2188e424 panicking.rs:310 (relay:x86_64+0x100018a17) | |
#6 main <null>:4745312 (relay:x86_64+0x100001230) | |
SUMMARY: ThreadSanitizer: data race main.rs:23 in relay::main::_$u7b$$u7b$closure$u7d$$u7d$::h729c5b7894d183b3 | |
================== | |
================== | |
WARNING: ThreadSanitizer: data race (pid=19407) | |
Write of size 8 at 0x7b0800000140 by thread T2: | |
#0 free <null>:4744384 (libclang_rt.tsan_osx_dynamic.dylib:x86_64+0x29a9d) | |
#1 alloc::alloc::dealloc::h518b3c1b0b640b8e alloc.rs:80 (relay:x86_64+0x100001e65) | |
#2 _$LT$alloc..alloc..Global$u20$as$u20$core..alloc..Alloc$GT$::dealloc::hbcdddba8de5b8e7a alloc.rs:128 (relay:x86_64+0x100001c45) | |
#3 _$LT$alloc..arc..Arc$LT$T$GT$$GT$::drop_slow::h10d083320785269b arc.rs:522 (relay:x86_64+0x10000ab20) | |
#4 _$LT$alloc..arc..Arc$LT$T$GT$$u20$as$u20$core..ops..drop..Drop$GT$::drop::h15d2dd76931f5293 arc.rs:970 (relay:x86_64+0x10000b1b1) | |
#5 core::ptr::drop_in_place::ha5778770552b8a4b ptr.rs:59 (relay:x86_64+0x100004708) | |
#6 core::ptr::drop_in_place::hc3fcaebfe7592ffa ptr.rs:59 (relay:x86_64+0x100004968) | |
#7 relay::main::_$u7b$$u7b$closure$u7d$$u7d$::h729c5b7894d183b3 main.rs:28 (relay:x86_64+0x100008bff) | |
#8 std::sys_common::backtrace::__rust_begin_short_backtrace::hd6ff3c4970953dce backtrace.rs:136 (relay:x86_64+0x100009188) | |
#9 std::thread::Builder::spawn::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h9ab20de5cc0447c7 mod.rs:409 (relay:x86_64+0x1000035e8) | |
#10 _$LT$std..panic..AssertUnwindSafe$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$$LP$$RP$$GT$$GT$::call_once::h96c4947a030a3dd9 panic.rs:313 (relay:x86_64+0x100007918) | |
#11 std::panicking::try::do_call::hdc4b69c5a09917f5 panicking.rs:310 (relay:x86_64+0x1000055b2) | |
#12 __rust_maybe_catch_panic lib.rs:105 (relay:x86_64+0x10002505e) | |
#13 std::panic::catch_unwind::h2064e1b087c779b7 panic.rs:397 (relay:x86_64+0x100007968) | |
#14 std::thread::Builder::spawn::_$u7b$$u7b$closure$u7d$$u7d$::h55f46ff3a765d3ae mod.rs:408 (relay:x86_64+0x1000030f1) | |
#15 _$LT$F$u20$as$u20$alloc..boxed..FnBox$LT$A$GT$$GT$::call_box::hc8d3bb5f5664f680 boxed.rs:640 (relay:x86_64+0x100003824) | |
#16 std::sys_common::thread::start_thread::h9c8a9e29d0f3477f thread.rs:24 (relay:x86_64+0x100018247) | |
Previous atomic write of size 8 at 0x7b0800000140 by thread T1: | |
#0 __tsan_atomic64_fetch_sub <null>:4744384 (libclang_rt.tsan_osx_dynamic.dylib:x86_64+0x23d91) | |
#1 core::sync::atomic::atomic_sub::h25c3b051c5a45122 atomic.rs:1745 (relay:x86_64+0x100005b1a) | |
#2 core::sync::atomic::AtomicUsize::fetch_sub::ha84bcf93d117bf9b atomic.rs:1322 (relay:x86_64+0x100008fe8) | |
#3 _$LT$alloc..arc..Arc$LT$T$GT$$u20$as$u20$core..ops..drop..Drop$GT$::drop::h15d2dd76931f5293 arc.rs:935 (relay:x86_64+0x10000b178) | |
#4 core::ptr::drop_in_place::ha5778770552b8a4b ptr.rs:59 (relay:x86_64+0x100004708) | |
#5 core::mem::drop::h3eae3c4da67e7929 mem.rs:790 (relay:x86_64+0x100008018) | |
#6 relay::main::_$u7b$$u7b$closure$u7d$$u7d$::h15958bf4d3c3089d main.rs:14 (relay:x86_64+0x100008a6f) | |
#7 std::sys_common::backtrace::__rust_begin_short_backtrace::hcf058a73fcfbfa6a backtrace.rs:136 (relay:x86_64+0x100009138) | |
#8 std::thread::Builder::spawn::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::hd43235659212d0f2 mod.rs:409 (relay:x86_64+0x100003638) | |
#9 _$LT$std..panic..AssertUnwindSafe$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$$LP$$RP$$GT$$GT$::call_once::h656e0216c1bb8c39 panic.rs:313 (relay:x86_64+0x1000078c8) | |
#10 std::panicking::try::do_call::h5bb4cfe2b5f51019 panicking.rs:310 (relay:x86_64+0x100005522) | |
#11 __rust_maybe_catch_panic lib.rs:105 (relay:x86_64+0x10002505e) | |
#12 std::panic::catch_unwind::h97b386f81bad13b8 panic.rs:397 (relay:x86_64+0x1000079c8) | |
#13 std::thread::Builder::spawn::_$u7b$$u7b$closure$u7d$$u7d$::h5e6553ce326b2b49 mod.rs:408 (relay:x86_64+0x1000033f1) | |
#14 _$LT$F$u20$as$u20$alloc..boxed..FnBox$LT$A$GT$$GT$::call_box::heae1ec72d4fd819e boxed.rs:640 (relay:x86_64+0x1000038e4) | |
#15 std::sys_common::thread::start_thread::h9c8a9e29d0f3477f thread.rs:24 (relay:x86_64+0x100018247) | |
Thread T2 (tid=1042864, running) created by main thread at: | |
#0 pthread_create <null>:4744464 (libclang_rt.tsan_osx_dynamic.dylib:x86_64+0x824d) | |
#1 std::sys::unix::thread::Thread::new::h8d60f6f4b5ab29f4 thread.rs:78 (relay:x86_64+0x10000bc3e) | |
#2 std::thread::spawn::hb2898696148794bd mod.rs:539 (relay:x86_64+0x100002090) | |
#3 relay::main::h182e45069a4d9384 main.rs:17 (relay:x86_64+0x100001076) | |
#4 std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h8b80ca46f9ebd960 rt.rs:74 (relay:x86_64+0x100006835) | |
#5 std::panicking::try::do_call::h586091eb2188e424 panicking.rs:310 (relay:x86_64+0x100018a17) | |
#6 main <null>:4744464 (relay:x86_64+0x100001230) | |
Thread T1 (tid=1042863, finished) created by main thread at: | |
#0 pthread_create <null>:4744464 (libclang_rt.tsan_osx_dynamic.dylib:x86_64+0x824d) | |
#1 std::sys::unix::thread::Thread::new::h8d60f6f4b5ab29f4 thread.rs:78 (relay:x86_64+0x10000bc3e) | |
#2 std::thread::spawn::hbef4f6cffaf6cd40 mod.rs:539 (relay:x86_64+0x1000021a0) | |
#3 relay::main::h182e45069a4d9384 main.rs:9 (relay:x86_64+0x100001039) | |
#4 std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h8b80ca46f9ebd960 rt.rs:74 (relay:x86_64+0x100006835) | |
#5 std::panicking::try::do_call::h586091eb2188e424 panicking.rs:310 (relay:x86_64+0x100018a17) | |
#6 main <null>:4744464 (relay:x86_64+0x100001230) | |
SUMMARY: ThreadSanitizer: data race alloc.rs:80 in alloc::alloc::dealloc::h518b3c1b0b640b8e | |
================== | |
ThreadSanitizer: reported 2 warnings | |
Abort trap: 6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment