The sound distributed version control system

#929 [CLONE] WARNING: ThreadSanitizer: thread leak (pid=2948848)

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

Thread leak when you do clone over https.

WARNING: ThreadSanitizer: thread leak (pid=2948848)
  Thread T23 'tokio-runtime-w' (tid=2948978, finished) created by thread T8 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::spawn_blocking::hcdb4a1c847ee0981 <null> (pijul+0x241265) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #5 pijul_remote::http::download_change::_$u7b$$u7b$closure$u7d$$u7d$::h2ab65adf0cb025a5 <null> (pijul+0x5299f5) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #6 tokio::runtime::task::core::Core$LT$T$C$S$GT$::poll::h7cc7e19d0d855803 <null> (pijul+0x56b1ef) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #7 std::panicking::try::do_call::h71884606e15a8dd7 (.llvm.3990697135250335722) <null> (pijul+0x6f67de) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #8 __rust_try.llvm.3990697135250335722 <null> (pijul+0x737951) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #9 std::panicking::try::hc567ac04c84dffde <null> (pijul+0x6f3369) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #10 tokio::runtime::task::harness::Harness$LT$T$C$S$GT$::poll::hf663d69dfcdacc90 <null> (pijul+0x4acf92) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #11 tokio::runtime::task::raw::poll::h4976359ddd8500a3 <null> (pijul+0x35d855) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #12 tokio::runtime::task::raw::RawTask::poll::h82217dabdb9e87fa <null> (pijul+0xbb082b) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #13 tokio::runtime::scheduler::multi_thread::worker::Context::run_task::ha436983304968355 <null> (pijul+0xbb6996) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #14 tokio::runtime::scheduler::multi_thread::worker::Context::run::ha687418cc71149ba <null> (pijul+0xbb5d95) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #15 tokio::runtime::context::runtime::enter_runtime::he70b473422f01703 <null> (pijul+0xbcc89c) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #16 tokio::runtime::scheduler::multi_thread::worker::run::hf7e765653b45c60a <null> (pijul+0xbb4ec2) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #17 _$LT$tokio..runtime..blocking..task..BlockingTask$LT$T$GT$$u20$as$u20$core..future..future..Future$GT$::poll::ha6777947f8242768 <null> (pijul+0xbd041a) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #18 tokio::runtime::task::core::Core$LT$T$C$S$GT$::poll::hba2d330db72f98c4 <null> (pijul+0xbde5de) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #19 std::panicking::try::do_call::hb15e1fe2abda57f5 (.llvm.3436787833427166878) <null> (pijul+0xbd176e) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #20 __rust_try.llvm.3436787833427166878 <null> (pijul+0xbd6781) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #21 std::panicking::try::h00fa931a383b42c9 <null> (pijul+0xbd0862) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #22 tokio::runtime::task::harness::Harness$LT$T$C$S$GT$::poll::h4f182a6738fdaeeb <null> (pijul+0xbce939) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #23 tokio::runtime::task::raw::poll::haa131c019cbc47a3 <null> (pijul+0xbb09e5) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #24 tokio::runtime::task::raw::RawTask::poll::h82217dabdb9e87fa <null> (pijul+0xbb082b) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #25 tokio::runtime::task::UnownedTask$LT$S$GT$::run::h7d24693d049eb583 <null> (pijul+0xbcff79) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #26 tokio::runtime::blocking::pool::Inner::run::h244ede0ce27adcd4 <null> (pijul+0xbc96c7) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #27 std::sys_common::backtrace::__rust_begin_short_backtrace::h692b0423f60cd029 <null> (pijul+0xbedebd) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #28 std::panicking::try::do_call::h0f898546bcda94bb (.llvm.3436787833427166878) <null> (pijul+0xbd11f0) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #29 __rust_try.llvm.3436787833427166878 <null> (pijul+0xbd6781) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #30 std::panicking::try::h477fb81099f83f05 <null> (pijul+0xbd0d1e) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #31 core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::he6c2d19ac55ea653 <null> (pijul+0xbef0f6) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)
    #32 _$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)
    #33 std::sys::pal::unix::thread::Thread::new::thread_start::hde9e5d20a5ac66f8 <null> (pijul+0x122a93c) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13)

SUMMARY: ThreadSanitizer: thread leak (/home/mpech/pijul/target/release/pijul+0x19bd8b) (BuildId: 706df2188067d64a694724e1ae5dc41402b5af13) in pthread_create
==================
ThreadSanitizer: reported 1 warnings
tankf33der on April 8, 2024

Rest test suite is ok