Guest User

Untitled

a guest
Jul 16th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.53 KB | None | 0 0
  1. macbook:relay vadzim$ rustup default nightly-2018-06-24
  2. info: using existing install for 'nightly-2018-06-24-x86_64-apple-darwin'
  3. info: default toolchain set to 'nightly-2018-06-24-x86_64-apple-darwin'
  4.  
  5. nightly-2018-06-24-x86_64-apple-darwin unchanged - rustc 1.28.0-nightly (60efbdead 2018-06-23)
  6.  
  7. macbook:relay vadzim$ RUSTFLAGS="-Z sanitizer=thread" cargo run --target x86_64-apple-darwin
  8. Compiling relay v0.1.0 (file:///Users/vadzim/Downloads/relay)
  9. Finished dev [unoptimized + debuginfo] target(s) in 0.71s
  10. Running `target/x86_64-apple-darwin/debug/relay`
  11. ==================
  12. WARNING: ThreadSanitizer: data race (pid=19407)
  13. Write of size 4 at 0x7b0800000150 by thread T2:
  14. #0 relay::main::_$u7b$$u7b$closure$u7d$$u7d$::h729c5b7894d183b3 main.rs:23 (relay:x86_64+0x100008bec)
  15. #1 std::sys_common::backtrace::__rust_begin_short_backtrace::hd6ff3c4970953dce backtrace.rs:136 (relay:x86_64+0x100009188)
  16. #2 std::thread::Builder::spawn::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h9ab20de5cc0447c7 mod.rs:409 (relay:x86_64+0x1000035e8)
  17. #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)
  18. #4 std::panicking::try::do_call::hdc4b69c5a09917f5 panicking.rs:310 (relay:x86_64+0x1000055b2)
  19. #5 __rust_maybe_catch_panic lib.rs:105 (relay:x86_64+0x10002505e)
  20. #6 std::panic::catch_unwind::h2064e1b087c779b7 panic.rs:397 (relay:x86_64+0x100007968)
  21. #7 std::thread::Builder::spawn::_$u7b$$u7b$closure$u7d$$u7d$::h55f46ff3a765d3ae mod.rs:408 (relay:x86_64+0x1000030f1)
  22. #8 _$LT$F$u20$as$u20$alloc..boxed..FnBox$LT$A$GT$$GT$::call_box::hc8d3bb5f5664f680 boxed.rs:640 (relay:x86_64+0x100003824)
  23. #9 std::sys_common::thread::start_thread::h9c8a9e29d0f3477f thread.rs:24 (relay:x86_64+0x100018247)
  24.  
  25. Previous read of size 4 at 0x7b0800000150 by thread T1:
  26. #0 relay::main::_$u7b$$u7b$closure$u7d$$u7d$::h15958bf4d3c3089d main.rs:12 (relay:x86_64+0x100008aa0)
  27. #1 std::sys_common::backtrace::__rust_begin_short_backtrace::hcf058a73fcfbfa6a backtrace.rs:136 (relay:x86_64+0x100009138)
  28. #2 std::thread::Builder::spawn::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::hd43235659212d0f2 mod.rs:409 (relay:x86_64+0x100003638)
  29. #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)
  30. #4 std::panicking::try::do_call::h5bb4cfe2b5f51019 panicking.rs:310 (relay:x86_64+0x100005522)
  31. #5 __rust_maybe_catch_panic lib.rs:105 (relay:x86_64+0x10002505e)
  32. #6 std::panic::catch_unwind::h97b386f81bad13b8 panic.rs:397 (relay:x86_64+0x1000079c8)
  33. #7 std::thread::Builder::spawn::_$u7b$$u7b$closure$u7d$$u7d$::h5e6553ce326b2b49 mod.rs:408 (relay:x86_64+0x1000033f1)
  34. #8 _$LT$F$u20$as$u20$alloc..boxed..FnBox$LT$A$GT$$GT$::call_box::heae1ec72d4fd819e boxed.rs:640 (relay:x86_64+0x1000038e4)
  35. #9 std::sys_common::thread::start_thread::h9c8a9e29d0f3477f thread.rs:24 (relay:x86_64+0x100018247)
  36.  
  37. Location is heap block of size 24 at 0x7b0800000140 allocated by main thread:
  38. #0 malloc <null>:4745264 (libclang_rt.tsan_osx_dynamic.dylib:x86_64+0x29a0a)
  39. #1 alloc::alloc::alloc::h6379a59804285c4b alloc.rs:62 (relay:x86_64+0x100001dba)
  40. #2 alloc::alloc::exchange_malloc::h4a4318c1ab7c34c4 alloc.rs:157 (relay:x86_64+0x100001ce3)
  41. #3 _$LT$alloc..arc..Arc$LT$T$GT$$GT$::new::h393048df0fb29b82 arc.rs:285 (relay:x86_64+0x10000a54a)
  42. #4 relay::main::h182e45069a4d9384 main.rs:7 (relay:x86_64+0x100000f8a)
  43. #5 std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h8b80ca46f9ebd960 rt.rs:74 (relay:x86_64+0x100006835)
  44. #6 std::panicking::try::do_call::h586091eb2188e424 panicking.rs:310 (relay:x86_64+0x100018a17)
  45. #7 main <null>:4745264 (relay:x86_64+0x100001230)
  46.  
  47. Thread T2 (tid=1042864, running) created by main thread at:
  48. #0 pthread_create <null>:4745312 (libclang_rt.tsan_osx_dynamic.dylib:x86_64+0x824d)
  49. #1 std::sys::unix::thread::Thread::new::h8d60f6f4b5ab29f4 thread.rs:78 (relay:x86_64+0x10000bc3e)
  50. #2 std::thread::spawn::hb2898696148794bd mod.rs:539 (relay:x86_64+0x100002090)
  51. #3 relay::main::h182e45069a4d9384 main.rs:17 (relay:x86_64+0x100001076)
  52. #4 std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h8b80ca46f9ebd960 rt.rs:74 (relay:x86_64+0x100006835)
  53. #5 std::panicking::try::do_call::h586091eb2188e424 panicking.rs:310 (relay:x86_64+0x100018a17)
  54. #6 main <null>:4745312 (relay:x86_64+0x100001230)
  55.  
  56. Thread T1 (tid=1042863, finished) created by main thread at:
  57. #0 pthread_create <null>:4745312 (libclang_rt.tsan_osx_dynamic.dylib:x86_64+0x824d)
  58. #1 std::sys::unix::thread::Thread::new::h8d60f6f4b5ab29f4 thread.rs:78 (relay:x86_64+0x10000bc3e)
  59. #2 std::thread::spawn::hbef4f6cffaf6cd40 mod.rs:539 (relay:x86_64+0x1000021a0)
  60. #3 relay::main::h182e45069a4d9384 main.rs:9 (relay:x86_64+0x100001039)
  61. #4 std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h8b80ca46f9ebd960 rt.rs:74 (relay:x86_64+0x100006835)
  62. #5 std::panicking::try::do_call::h586091eb2188e424 panicking.rs:310 (relay:x86_64+0x100018a17)
  63. #6 main <null>:4745312 (relay:x86_64+0x100001230)
  64.  
  65. SUMMARY: ThreadSanitizer: data race main.rs:23 in relay::main::_$u7b$$u7b$closure$u7d$$u7d$::h729c5b7894d183b3
  66. ==================
  67. ==================
  68. WARNING: ThreadSanitizer: data race (pid=19407)
  69. Write of size 8 at 0x7b0800000140 by thread T2:
  70. #0 free <null>:4744384 (libclang_rt.tsan_osx_dynamic.dylib:x86_64+0x29a9d)
  71. #1 alloc::alloc::dealloc::h518b3c1b0b640b8e alloc.rs:80 (relay:x86_64+0x100001e65)
  72. #2 _$LT$alloc..alloc..Global$u20$as$u20$core..alloc..Alloc$GT$::dealloc::hbcdddba8de5b8e7a alloc.rs:128 (relay:x86_64+0x100001c45)
  73. #3 _$LT$alloc..arc..Arc$LT$T$GT$$GT$::drop_slow::h10d083320785269b arc.rs:522 (relay:x86_64+0x10000ab20)
  74. #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)
  75. #5 core::ptr::drop_in_place::ha5778770552b8a4b ptr.rs:59 (relay:x86_64+0x100004708)
  76. #6 core::ptr::drop_in_place::hc3fcaebfe7592ffa ptr.rs:59 (relay:x86_64+0x100004968)
  77. #7 relay::main::_$u7b$$u7b$closure$u7d$$u7d$::h729c5b7894d183b3 main.rs:28 (relay:x86_64+0x100008bff)
  78. #8 std::sys_common::backtrace::__rust_begin_short_backtrace::hd6ff3c4970953dce backtrace.rs:136 (relay:x86_64+0x100009188)
  79. #9 std::thread::Builder::spawn::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h9ab20de5cc0447c7 mod.rs:409 (relay:x86_64+0x1000035e8)
  80. #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)
  81. #11 std::panicking::try::do_call::hdc4b69c5a09917f5 panicking.rs:310 (relay:x86_64+0x1000055b2)
  82. #12 __rust_maybe_catch_panic lib.rs:105 (relay:x86_64+0x10002505e)
  83. #13 std::panic::catch_unwind::h2064e1b087c779b7 panic.rs:397 (relay:x86_64+0x100007968)
  84. #14 std::thread::Builder::spawn::_$u7b$$u7b$closure$u7d$$u7d$::h55f46ff3a765d3ae mod.rs:408 (relay:x86_64+0x1000030f1)
  85. #15 _$LT$F$u20$as$u20$alloc..boxed..FnBox$LT$A$GT$$GT$::call_box::hc8d3bb5f5664f680 boxed.rs:640 (relay:x86_64+0x100003824)
  86. #16 std::sys_common::thread::start_thread::h9c8a9e29d0f3477f thread.rs:24 (relay:x86_64+0x100018247)
  87.  
  88. Previous atomic write of size 8 at 0x7b0800000140 by thread T1:
  89. #0 __tsan_atomic64_fetch_sub <null>:4744384 (libclang_rt.tsan_osx_dynamic.dylib:x86_64+0x23d91)
  90. #1 core::sync::atomic::atomic_sub::h25c3b051c5a45122 atomic.rs:1745 (relay:x86_64+0x100005b1a)
  91. #2 core::sync::atomic::AtomicUsize::fetch_sub::ha84bcf93d117bf9b atomic.rs:1322 (relay:x86_64+0x100008fe8)
  92. #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)
  93. #4 core::ptr::drop_in_place::ha5778770552b8a4b ptr.rs:59 (relay:x86_64+0x100004708)
  94. #5 core::mem::drop::h3eae3c4da67e7929 mem.rs:790 (relay:x86_64+0x100008018)
  95. #6 relay::main::_$u7b$$u7b$closure$u7d$$u7d$::h15958bf4d3c3089d main.rs:14 (relay:x86_64+0x100008a6f)
  96. #7 std::sys_common::backtrace::__rust_begin_short_backtrace::hcf058a73fcfbfa6a backtrace.rs:136 (relay:x86_64+0x100009138)
  97. #8 std::thread::Builder::spawn::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::hd43235659212d0f2 mod.rs:409 (relay:x86_64+0x100003638)
  98. #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)
  99. #10 std::panicking::try::do_call::h5bb4cfe2b5f51019 panicking.rs:310 (relay:x86_64+0x100005522)
  100. #11 __rust_maybe_catch_panic lib.rs:105 (relay:x86_64+0x10002505e)
  101. #12 std::panic::catch_unwind::h97b386f81bad13b8 panic.rs:397 (relay:x86_64+0x1000079c8)
  102. #13 std::thread::Builder::spawn::_$u7b$$u7b$closure$u7d$$u7d$::h5e6553ce326b2b49 mod.rs:408 (relay:x86_64+0x1000033f1)
  103. #14 _$LT$F$u20$as$u20$alloc..boxed..FnBox$LT$A$GT$$GT$::call_box::heae1ec72d4fd819e boxed.rs:640 (relay:x86_64+0x1000038e4)
  104. #15 std::sys_common::thread::start_thread::h9c8a9e29d0f3477f thread.rs:24 (relay:x86_64+0x100018247)
  105.  
  106. Thread T2 (tid=1042864, running) created by main thread at:
  107. #0 pthread_create <null>:4744464 (libclang_rt.tsan_osx_dynamic.dylib:x86_64+0x824d)
  108. #1 std::sys::unix::thread::Thread::new::h8d60f6f4b5ab29f4 thread.rs:78 (relay:x86_64+0x10000bc3e)
  109. #2 std::thread::spawn::hb2898696148794bd mod.rs:539 (relay:x86_64+0x100002090)
  110. #3 relay::main::h182e45069a4d9384 main.rs:17 (relay:x86_64+0x100001076)
  111. #4 std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h8b80ca46f9ebd960 rt.rs:74 (relay:x86_64+0x100006835)
  112. #5 std::panicking::try::do_call::h586091eb2188e424 panicking.rs:310 (relay:x86_64+0x100018a17)
  113. #6 main <null>:4744464 (relay:x86_64+0x100001230)
  114.  
  115. Thread T1 (tid=1042863, finished) created by main thread at:
  116. #0 pthread_create <null>:4744464 (libclang_rt.tsan_osx_dynamic.dylib:x86_64+0x824d)
  117. #1 std::sys::unix::thread::Thread::new::h8d60f6f4b5ab29f4 thread.rs:78 (relay:x86_64+0x10000bc3e)
  118. #2 std::thread::spawn::hbef4f6cffaf6cd40 mod.rs:539 (relay:x86_64+0x1000021a0)
  119. #3 relay::main::h182e45069a4d9384 main.rs:9 (relay:x86_64+0x100001039)
  120. #4 std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h8b80ca46f9ebd960 rt.rs:74 (relay:x86_64+0x100006835)
  121. #5 std::panicking::try::do_call::h586091eb2188e424 panicking.rs:310 (relay:x86_64+0x100018a17)
  122. #6 main <null>:4744464 (relay:x86_64+0x100001230)
  123.  
  124. SUMMARY: ThreadSanitizer: data race alloc.rs:80 in alloc::alloc::dealloc::h518b3c1b0b640b8e
  125. ==================
  126. ThreadSanitizer: reported 2 warnings
  127. Abort trap: 6
Add Comment
Please, Sign In to add comment