The sound distributed version control system

#930 [CLONE] WARNING: ThreadSanitizer: data race (pid=2925194)

Opened by tankf33der on April 7, 2024
tankf33der on April 7, 2024

Race when you do clone over ssh:

==================
WARNING: ThreadSanitizer: data race (pid=2925194)
  Atomic read of size 8 at 0x724000000390 by thread T4:
    #0 tokio::runtime::io::scheduled_io::ScheduledIo::set_readiness::h9db28163fa3eec8c <null> (pijul+0xbd4584) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #1 tokio::runtime::io::driver::Driver::turn::h6aa1fb08458900a7 (.llvm.9864951328485850046) <null> (pijul+0xbd8972) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #2 tokio::runtime::io::driver::Driver::park::hffff53aa4a3cbfbb <null> (pijul+0xbd8473) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #3 tokio::runtime::process::Driver::park::h94a2b2e1a7f0b4c8 <null> (pijul+0xbc424a) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #4 tokio::runtime::time::Driver::park_internal::h25d68c9e99966c16 (.llvm.3436787833427166878) <null> (pijul+0xbd5310) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #5 tokio::runtime::time::Driver::park_internal::h25d68c9e99966c16 (.llvm.3436787833427166878) <null> (pijul+0xbd5310) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #6 tokio::runtime::scheduler::multi_thread::park::Parker::park::h7fdecccb19be8b6d <null> (pijul+0xbd3c8d) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #7 tokio::runtime::scheduler::multi_thread::worker::Context::park_timeout::hb77997bfb3c72dae <null> (pijul+0xbb6eaa) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #8 tokio::runtime::scheduler::multi_thread::worker::Context::run::ha687418cc71149ba <null> (pijul+0xbb618e) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #9 tokio::runtime::context::runtime::enter_runtime::he70b473422f01703 <null> (pijul+0xbcc89c) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #10 tokio::runtime::scheduler::multi_thread::worker::run::hf7e765653b45c60a <null> (pijul+0xbb4ec2) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #11 _$LT$tokio..runtime..blocking..task..BlockingTask$LT$T$GT$$u20$as$u20$core..future..future..Future$GT$::poll::ha6777947f8242768 <null> (pijul+0xbd041a) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #12 tokio::runtime::task::core::Core$LT$T$C$S$GT$::poll::hba2d330db72f98c4 <null> (pijul+0xbde5de) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #13 std::panicking::try::do_call::hb15e1fe2abda57f5 (.llvm.3436787833427166878) <null> (pijul+0xbd176e) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #14 __rust_try.llvm.3436787833427166878 <null> (pijul+0xbd6781) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #15 std::panicking::try::h00fa931a383b42c9 <null> (pijul+0xbd0862) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #16 tokio::runtime::task::harness::Harness$LT$T$C$S$GT$::poll::h4f182a6738fdaeeb <null> (pijul+0xbce939) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #17 tokio::runtime::task::raw::poll::haa131c019cbc47a3 <null> (pijul+0xbb09e5) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #18 tokio::runtime::task::raw::RawTask::poll::h82217dabdb9e87fa <null> (pijul+0xbb082b) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #19 tokio::runtime::task::UnownedTask$LT$S$GT$::run::h7d24693d049eb583 <null> (pijul+0xbcff79) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #20 tokio::runtime::blocking::pool::Inner::run::h244ede0ce27adcd4 <null> (pijul+0xbc96c7) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #21 std::sys_common::backtrace::__rust_begin_short_backtrace::h692b0423f60cd029 <null> (pijul+0xbedebd) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #22 std::panicking::try::do_call::h0f898546bcda94bb (.llvm.3436787833427166878) <null> (pijul+0xbd11f0) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #23 __rust_try.llvm.3436787833427166878 <null> (pijul+0xbd6781) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #24 std::panicking::try::h477fb81099f83f05 <null> (pijul+0xbd0d1e) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #25 core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::he6c2d19ac55ea653 <null> (pijul+0xbef0f6) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #26 _$LT$alloc..boxed..Box$LT$F$C$A$GT$$u20$as$u20$core..ops..function..FnOnce$LT$Args$GT$$GT$::call_once::ha2ed9a58a7ce948a <null> (pijul+0x12001cd) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #27 std::sys::pal::unix::thread::Thread::new::thread_start::hde9e5d20a5ac66f8 <null> (pijul+0x122a93c) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)

  Previous write of size 8 at 0x724000000390 by main thread:
    #0 __tsan_memcpy <null> (pijul+0x19816b) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #1 tokio::runtime::io::registration_set::RegistrationSet::allocate::h9305f8963a5404c7 <null> (pijul+0xbc74b9) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #2 tokio::runtime::io::driver::Handle::add_source::h9380fa26a59def17 <null> (pijul+0xbd95b1) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #3 tokio::runtime::io::registration::Registration::new_with_interest_and_handle::heb270b1fd4d2230a <null> (pijul+0xbba016) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #4 tokio::io::poll_evented::PollEvented$LT$E$GT$::new_with_interest::hc03fedcf5113be3d (.llvm.3190465727620939424) <null> (pijul+0xbe0b5a) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #5 tokio::net::tcp::stream::TcpStream::new::h6da1632a90c2408e <null> (pijul+0xbe0cdb) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #6 pijul_remote::ssh::Remote::connect::_$u7b$$u7b$closure$u7d$$u7d$::h2ccb4653da6d8f29 <null> (pijul+0x5f1f07) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #7 pijul_remote::unknown_remote::_$u7b$$u7b$closure$u7d$$u7d$::h870f18d473962c84 <null> (pijul+0x5ea375) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #8 pijul::commands::clone::Clone::run::_$u7b$$u7b$closure$u7d$$u7d$::h5e031f2a1bcb0b7a <null> (pijul+0x623507) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #9 pijul::run::_$u7b$$u7b$closure$u7d$$u7d$::hffe3e09465c88e75 <null> (pijul+0x64473f) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #10 tokio::runtime::park::CachedParkThread::block_on::h5c84bedc97b57e50 <null> (pijul+0x61e35c) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #11 tokio::runtime::runtime::Runtime::block_on::hb81bb6a17cf86164 <null> (pijul+0x4b3152) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #12 pijul::main::h9c576da2d8cff712 <null> (pijul+0x737869) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #13 std::sys_common::backtrace::__rust_begin_short_backtrace::hbee58ebbe18269b3 <null> (pijul+0x6ef15f) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #14 std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h60373dcf7feee509 (.llvm.13168505740435964754) <null> (pijul+0x58d3cd) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #15 std::panicking::try::do_call::h73312f3772a045e5 <null> (pijul+0x12297d9) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #16 __rust_try.llvm.4354386664983136204 <null> (pijul+0x122b421) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #17 __rust_try.llvm.4354386664983136204 <null> (pijul+0x122b421) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #18 std::panicking::try::do_call::h3edd1f4b35d35306 (.llvm.4354386664983136204) <null> (pijul+0x12295db) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #19 __rust_try.llvm.4354386664983136204 <null> (pijul+0x122b421) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #20 std::panicking::try::h6410f354d80af0fb <null> (pijul+0x1229468) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #21 std::rt::lang_start_internal::he98c6b6a1de59e33 <null> (pijul+0x11e7c06) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #22 main <null> (pijul+0x7379e2) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #23 __libc_start_main csu/../csu/libc-start.c:308:16 (libc.so.6+0x23d09) (BuildId: 090256e8388c10b0a5a367e269cc0ed39d15d20b)

  Location is heap block of size 256 at 0x724000000300 allocated by main thread:
    #0 posix_memalign <null> (pijul+0x19bb55) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #1 __rdl_alloc <null> (pijul+0x1219e30) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #2 tokio::runtime::io::registration_set::RegistrationSet::allocate::h9305f8963a5404c7 <null> (pijul+0xbc74a1) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #3 tokio::runtime::io::driver::Handle::add_source::h9380fa26a59def17 <null> (pijul+0xbd95b1) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #4 tokio::runtime::io::registration::Registration::new_with_interest_and_handle::heb270b1fd4d2230a <null> (pijul+0xbba016) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #5 tokio::io::poll_evented::PollEvented$LT$E$GT$::new_with_interest::hc03fedcf5113be3d (.llvm.3190465727620939424) <null> (pijul+0xbe0b5a) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #6 tokio::net::tcp::stream::TcpStream::new::h6da1632a90c2408e <null> (pijul+0xbe0cdb) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #7 pijul_remote::ssh::Remote::connect::_$u7b$$u7b$closure$u7d$$u7d$::h2ccb4653da6d8f29 <null> (pijul+0x5f1f07) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #8 pijul_remote::unknown_remote::_$u7b$$u7b$closure$u7d$$u7d$::h870f18d473962c84 <null> (pijul+0x5ea375) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #9 pijul::commands::clone::Clone::run::_$u7b$$u7b$closure$u7d$$u7d$::h5e031f2a1bcb0b7a <null> (pijul+0x623507) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #10 pijul::run::_$u7b$$u7b$closure$u7d$$u7d$::hffe3e09465c88e75 <null> (pijul+0x64473f) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #11 tokio::runtime::park::CachedParkThread::block_on::h5c84bedc97b57e50 <null> (pijul+0x61e35c) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #12 tokio::runtime::runtime::Runtime::block_on::hb81bb6a17cf86164 <null> (pijul+0x4b3152) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #13 pijul::main::h9c576da2d8cff712 <null> (pijul+0x737869) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #14 std::sys_common::backtrace::__rust_begin_short_backtrace::hbee58ebbe18269b3 <null> (pijul+0x6ef15f) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #15 std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h60373dcf7feee509 (.llvm.13168505740435964754) <null> (pijul+0x58d3cd) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #16 std::panicking::try::do_call::h73312f3772a045e5 <null> (pijul+0x12297d9) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #17 __rust_try.llvm.4354386664983136204 <null> (pijul+0x122b421) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #18 __rust_try.llvm.4354386664983136204 <null> (pijul+0x122b421) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #19 std::panicking::try::do_call::h3edd1f4b35d35306 (.llvm.4354386664983136204) <null> (pijul+0x12295db) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #20 __rust_try.llvm.4354386664983136204 <null> (pijul+0x122b421) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #21 std::panicking::try::h6410f354d80af0fb <null> (pijul+0x1229468) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #22 std::rt::lang_start_internal::he98c6b6a1de59e33 <null> (pijul+0x11e7c06) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #23 main <null> (pijul+0x7379e2) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #24 __libc_start_main csu/../csu/libc-start.c:308:16 (libc.so.6+0x23d09) (BuildId: 090256e8388c10b0a5a367e269cc0ed39d15d20b)

  Thread T4 'tokio-runtime-w' (tid=2925200, running) created by main thread at:
    #0 pthread_create <null> (pijul+0x19bd8b) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #1 std::sys::pal::unix::thread::Thread::new::h479b5093ca191a09 <null> (pijul+0x122a748) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #2 std::thread::Builder::spawn_unchecked::hf166657e71f90724 <null> (pijul+0xbeea73) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #3 tokio::runtime::blocking::pool::Spawner::spawn_task::h8b4177b4affa1ee8 <null> (pijul+0xbc8fb2) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #4 tokio::runtime::blocking::pool::Spawner::spawn_blocking::h84ad632a357abad9 <null> (pijul+0xbc8a5f) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #5 tokio::runtime::blocking::pool::spawn_blocking::h0356e307f1a29dd8 <null> (pijul+0xbc7cfb) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #6 tokio::runtime::scheduler::multi_thread::worker::Launch::launch::h71a36c3435292d54 <null> (pijul+0xbb4d24) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #7 tokio::runtime::scheduler::multi_thread::worker::Launch::launch::h71a36c3435292d54 <null> (pijul+0xbb4d24) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #8 tokio::runtime::builder::Builder::build::he177a77646bcf919 <null> (pijul+0xbd60f8) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #9 pijul::main::h9c576da2d8cff712 <null> (pijul+0x737816) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #10 std::sys_common::backtrace::__rust_begin_short_backtrace::hbee58ebbe18269b3 <null> (pijul+0x6ef15f) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #11 std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h60373dcf7feee509 (.llvm.13168505740435964754) <null> (pijul+0x58d3cd) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #12 std::panicking::try::do_call::h73312f3772a045e5 <null> (pijul+0x12297d9) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #13 __rust_try.llvm.4354386664983136204 <null> (pijul+0x122b421) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #14 __rust_try.llvm.4354386664983136204 <null> (pijul+0x122b421) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #15 std::panicking::try::do_call::h3edd1f4b35d35306 (.llvm.4354386664983136204) <null> (pijul+0x12295db) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #16 __rust_try.llvm.4354386664983136204 <null> (pijul+0x122b421) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #17 std::panicking::try::h6410f354d80af0fb <null> (pijul+0x1229468) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #18 std::rt::lang_start_internal::he98c6b6a1de59e33 <null> (pijul+0x11e7c06) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #19 main <null> (pijul+0x7379e2) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #20 __libc_start_main csu/../csu/libc-start.c:308:16 (libc.so.6+0x23d09) (BuildId: 090256e8388c10b0a5a367e269cc0ed39d15d20b)

SUMMARY: ThreadSanitizer: data race (/home/mpech/pijul/target/release/pijul+0xbd4584) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13) in tokio::runtime::io::scheduled_io::ScheduledIo::set_readiness::h9db28163fa3eec8c
==================
==================
WARNING: ThreadSanitizer: data race (pid=2925194)
  Atomic write of size 4 at 0x724000000398 by thread T4:
    #0 std::sync::mutex::Mutex$LT$T$GT$::lock::hf385d239e1ec30b1 <null> (pijul+0xbc55a1) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #1 tokio::runtime::io::scheduled_io::ScheduledIo::wake::h9a0e8e75bafea297 <null> (pijul+0xbd46f4) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #2 tokio::runtime::io::driver::Driver::turn::h6aa1fb08458900a7 (.llvm.9864951328485850046) <null> (pijul+0xbd8987) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #3 tokio::runtime::io::driver::Driver::park::hffff53aa4a3cbfbb <null> (pijul+0xbd8473) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #4 tokio::runtime::process::Driver::park::h94a2b2e1a7f0b4c8 <null> (pijul+0xbc424a) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #5 tokio::runtime::time::Driver::park_internal::h25d68c9e99966c16 (.llvm.3436787833427166878) <null> (pijul+0xbd5310) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #6 tokio::runtime::time::Driver::park_internal::h25d68c9e99966c16 (.llvm.3436787833427166878) <null> (pijul+0xbd5310) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #7 tokio::runtime::scheduler::multi_thread::park::Parker::park::h7fdecccb19be8b6d <null> (pijul+0xbd3c8d) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #8 tokio::runtime::scheduler::multi_thread::worker::Context::park_timeout::hb77997bfb3c72dae <null> (pijul+0xbb6eaa) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #9 tokio::runtime::scheduler::multi_thread::worker::Context::run::ha687418cc71149ba <null> (pijul+0xbb618e) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #10 tokio::runtime::context::runtime::enter_runtime::he70b473422f01703 <null> (pijul+0xbcc89c) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #11 tokio::runtime::scheduler::multi_thread::worker::run::hf7e765653b45c60a <null> (pijul+0xbb4ec2) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #12 _$LT$tokio..runtime..blocking..task..BlockingTask$LT$T$GT$$u20$as$u20$core..future..future..Future$GT$::poll::ha6777947f8242768 <null> (pijul+0xbd041a) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #13 tokio::runtime::task::core::Core$LT$T$C$S$GT$::poll::hba2d330db72f98c4 <null> (pijul+0xbde5de) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #14 std::panicking::try::do_call::hb15e1fe2abda57f5 (.llvm.3436787833427166878) <null> (pijul+0xbd176e) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #15 __rust_try.llvm.3436787833427166878 <null> (pijul+0xbd6781) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #16 std::panicking::try::h00fa931a383b42c9 <null> (pijul+0xbd0862) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #17 tokio::runtime::task::harness::Harness$LT$T$C$S$GT$::poll::h4f182a6738fdaeeb <null> (pijul+0xbce939) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #18 tokio::runtime::task::raw::poll::haa131c019cbc47a3 <null> (pijul+0xbb09e5) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #19 tokio::runtime::task::raw::RawTask::poll::h82217dabdb9e87fa <null> (pijul+0xbb082b) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #20 tokio::runtime::task::UnownedTask$LT$S$GT$::run::h7d24693d049eb583 <null> (pijul+0xbcff79) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #21 tokio::runtime::blocking::pool::Inner::run::h244ede0ce27adcd4 <null> (pijul+0xbc96c7) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #22 std::sys_common::backtrace::__rust_begin_short_backtrace::h692b0423f60cd029 <null> (pijul+0xbedebd) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #23 std::panicking::try::do_call::h0f898546bcda94bb (.llvm.3436787833427166878) <null> (pijul+0xbd11f0) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #24 __rust_try.llvm.3436787833427166878 <null> (pijul+0xbd6781) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #25 std::panicking::try::h477fb81099f83f05 <null> (pijul+0xbd0d1e) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #26 core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::he6c2d19ac55ea653 <null> (pijul+0xbef0f6) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #27 _$LT$alloc..boxed..Box$LT$F$C$A$GT$$u20$as$u20$core..ops..function..FnOnce$LT$Args$GT$$GT$::call_once::ha2ed9a58a7ce948a <null> (pijul+0x12001cd) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #28 std::sys::pal::unix::thread::Thread::new::thread_start::hde9e5d20a5ac66f8 <null> (pijul+0x122a93c) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)

  Previous write of size 8 at 0x724000000398 by main thread:
    #0 __tsan_memcpy <null> (pijul+0x19816b) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #1 tokio::runtime::io::registration_set::RegistrationSet::allocate::h9305f8963a5404c7 <null> (pijul+0xbc74b9) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #2 tokio::runtime::io::driver::Handle::add_source::h9380fa26a59def17 <null> (pijul+0xbd95b1) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #3 tokio::runtime::io::registration::Registration::new_with_interest_and_handle::heb270b1fd4d2230a <null> (pijul+0xbba016) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #4 tokio::io::poll_evented::PollEvented$LT$E$GT$::new_with_interest::hc03fedcf5113be3d (.llvm.3190465727620939424) <null> (pijul+0xbe0b5a) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #5 tokio::net::tcp::stream::TcpStream::new::h6da1632a90c2408e <null> (pijul+0xbe0cdb) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #6 pijul_remote::ssh::Remote::connect::_$u7b$$u7b$closure$u7d$$u7d$::h2ccb4653da6d8f29 <null> (pijul+0x5f1f07) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #7 pijul_remote::unknown_remote::_$u7b$$u7b$closure$u7d$$u7d$::h870f18d473962c84 <null> (pijul+0x5ea375) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #8 pijul::commands::clone::Clone::run::_$u7b$$u7b$closure$u7d$$u7d$::h5e031f2a1bcb0b7a <null> (pijul+0x623507) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #9 pijul::run::_$u7b$$u7b$closure$u7d$$u7d$::hffe3e09465c88e75 <null> (pijul+0x64473f) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #10 tokio::runtime::park::CachedParkThread::block_on::h5c84bedc97b57e50 <null> (pijul+0x61e35c) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #11 tokio::runtime::runtime::Runtime::block_on::hb81bb6a17cf86164 <null> (pijul+0x4b3152) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #12 pijul::main::h9c576da2d8cff712 <null> (pijul+0x737869) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #13 std::sys_common::backtrace::__rust_begin_short_backtrace::hbee58ebbe18269b3 <null> (pijul+0x6ef15f) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #14 std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h60373dcf7feee509 (.llvm.13168505740435964754) <null> (pijul+0x58d3cd) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #15 std::panicking::try::do_call::h73312f3772a045e5 <null> (pijul+0x12297d9) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #16 __rust_try.llvm.4354386664983136204 <null> (pijul+0x122b421) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #17 __rust_try.llvm.4354386664983136204 <null> (pijul+0x122b421) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #18 std::panicking::try::do_call::h3edd1f4b35d35306 (.llvm.4354386664983136204) <null> (pijul+0x12295db) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #19 __rust_try.llvm.4354386664983136204 <null> (pijul+0x122b421) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #20 std::panicking::try::h6410f354d80af0fb <null> (pijul+0x1229468) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #21 std::rt::lang_start_internal::he98c6b6a1de59e33 <null> (pijul+0x11e7c06) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #22 main <null> (pijul+0x7379e2) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #23 __libc_start_main csu/../csu/libc-start.c:308:16 (libc.so.6+0x23d09) (BuildId: 090256e8388c10b0a5a367e269cc0ed39d15d20b)

  Location is heap block of size 256 at 0x724000000300 allocated by main thread:
    #0 posix_memalign <null> (pijul+0x19bb55) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #1 __rdl_alloc <null> (pijul+0x1219e30) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #2 tokio::runtime::io::registration_set::RegistrationSet::allocate::h9305f8963a5404c7 <null> (pijul+0xbc74a1) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #3 tokio::runtime::io::driver::Handle::add_source::h9380fa26a59def17 <null> (pijul+0xbd95b1) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #4 tokio::runtime::io::registration::Registration::new_with_interest_and_handle::heb270b1fd4d2230a <null> (pijul+0xbba016) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #5 tokio::io::poll_evented::PollEvented$LT$E$GT$::new_with_interest::hc03fedcf5113be3d (.llvm.3190465727620939424) <null> (pijul+0xbe0b5a) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #6 tokio::net::tcp::stream::TcpStream::new::h6da1632a90c2408e <null> (pijul+0xbe0cdb) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #7 pijul_remote::ssh::Remote::connect::_$u7b$$u7b$closure$u7d$$u7d$::h2ccb4653da6d8f29 <null> (pijul+0x5f1f07) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #8 pijul_remote::unknown_remote::_$u7b$$u7b$closure$u7d$$u7d$::h870f18d473962c84 <null> (pijul+0x5ea375) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #9 pijul::commands::clone::Clone::run::_$u7b$$u7b$closure$u7d$$u7d$::h5e031f2a1bcb0b7a <null> (pijul+0x623507) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #10 pijul::run::_$u7b$$u7b$closure$u7d$$u7d$::hffe3e09465c88e75 <null> (pijul+0x64473f) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #11 tokio::runtime::park::CachedParkThread::block_on::h5c84bedc97b57e50 <null> (pijul+0x61e35c) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #12 tokio::runtime::runtime::Runtime::block_on::hb81bb6a17cf86164 <null> (pijul+0x4b3152) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #13 pijul::main::h9c576da2d8cff712 <null> (pijul+0x737869) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #14 std::sys_common::backtrace::__rust_begin_short_backtrace::hbee58ebbe18269b3 <null> (pijul+0x6ef15f) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #15 std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h60373dcf7feee509 (.llvm.13168505740435964754) <null> (pijul+0x58d3cd) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #16 std::panicking::try::do_call::h73312f3772a045e5 <null> (pijul+0x12297d9) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #17 __rust_try.llvm.4354386664983136204 <null> (pijul+0x122b421) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #18 __rust_try.llvm.4354386664983136204 <null> (pijul+0x122b421) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #19 std::panicking::try::do_call::h3edd1f4b35d35306 (.llvm.4354386664983136204) <null> (pijul+0x12295db) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #20 __rust_try.llvm.4354386664983136204 <null> (pijul+0x122b421) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #21 std::panicking::try::h6410f354d80af0fb <null> (pijul+0x1229468) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #22 std::rt::lang_start_internal::he98c6b6a1de59e33 <null> (pijul+0x11e7c06) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #23 main <null> (pijul+0x7379e2) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #24 __libc_start_main csu/../csu/libc-start.c:308:16 (libc.so.6+0x23d09) (BuildId: 090256e8388c10b0a5a367e269cc0ed39d15d20b)

  Thread T4 'tokio-runtime-w' (tid=2925200, running) created by main thread at:
    #0 pthread_create <null> (pijul+0x19bd8b) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #1 std::sys::pal::unix::thread::Thread::new::h479b5093ca191a09 <null> (pijul+0x122a748) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #2 std::thread::Builder::spawn_unchecked::hf166657e71f90724 <null> (pijul+0xbeea73) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #3 tokio::runtime::blocking::pool::Spawner::spawn_task::h8b4177b4affa1ee8 <null> (pijul+0xbc8fb2) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #4 tokio::runtime::blocking::pool::Spawner::spawn_blocking::h84ad632a357abad9 <null> (pijul+0xbc8a5f) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #5 tokio::runtime::blocking::pool::spawn_blocking::h0356e307f1a29dd8 <null> (pijul+0xbc7cfb) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #6 tokio::runtime::scheduler::multi_thread::worker::Launch::launch::h71a36c3435292d54 <null> (pijul+0xbb4d24) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #7 tokio::runtime::scheduler::multi_thread::worker::Launch::launch::h71a36c3435292d54 <null> (pijul+0xbb4d24) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #8 tokio::runtime::builder::Builder::build::he177a77646bcf919 <null> (pijul+0xbd60f8) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #9 pijul::main::h9c576da2d8cff712 <null> (pijul+0x737816) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #10 std::sys_common::backtrace::__rust_begin_short_backtrace::hbee58ebbe18269b3 <null> (pijul+0x6ef15f) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #11 std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h60373dcf7feee509 (.llvm.13168505740435964754) <null> (pijul+0x58d3cd) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #12 std::panicking::try::do_call::h73312f3772a045e5 <null> (pijul+0x12297d9) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #13 __rust_try.llvm.4354386664983136204 <null> (pijul+0x122b421) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #14 __rust_try.llvm.4354386664983136204 <null> (pijul+0x122b421) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #15 std::panicking::try::do_call::h3edd1f4b35d35306 (.llvm.4354386664983136204) <null> (pijul+0x12295db) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #16 __rust_try.llvm.4354386664983136204 <null> (pijul+0x122b421) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #17 std::panicking::try::h6410f354d80af0fb <null> (pijul+0x1229468) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #18 std::rt::lang_start_internal::he98c6b6a1de59e33 <null> (pijul+0x11e7c06) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #19 main <null> (pijul+0x7379e2) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #20 __libc_start_main csu/../csu/libc-start.c:308:16 (libc.so.6+0x23d09) (BuildId: 090256e8388c10b0a5a367e269cc0ed39d15d20b)

SUMMARY: ThreadSanitizer: data race (/home/mpech/pijul/target/release/pijul+0xbc55a1) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13) in std::sync::mutex::Mutex$LT$T$GT$::lock::hf385d239e1ec30b1
==================
tankf33der on April 8, 2024

Rest test suite is ok