actix / actix-net

A collection of lower-level libraries for composable network services.
https://actix.rs
Apache License 2.0
708 stars 349 forks source link

actix-rt data race #194

Closed fggarcia closed 4 years ago

fggarcia commented 4 years ago

Hi. I have an app that after some times, some workers hang. (in example below, only one worker on performance test).

I try to understand what it is happening. Not all instances have the same problem at the same time.

I run the app with flag RUSTFLAGS="-Zsanitizer=thread" and a thread data race has occurred. This the Sanitizer output.

Probably thre is an issue in my code.

==================
WARNING: ThreadSanitizer: data race (pid=215378)
  Write of size 8 at 0x7b1400005500 by thread T1:
    #0 free /rustc/llvm/src/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:708:3 (airline-rs+0xfed48)
    #1 alloc::alloc::dealloc::h915d50a0e4e0911e /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/alloc.rs:92:14 (airline-rs+0xcdaae8)
    #2 _$LT$alloc..alloc..Global$u20$as$u20$core..alloc..AllocRef$GT$::dealloc::h9deebfb6a9e9eade /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/alloc.rs:225:22 (airline-rs+0xce1a17)
    #3 _$LT$alloc..sync..Weak$LT$T$GT$$u20$as$u20$core..ops..drop..Drop$GT$::drop::h787e6523e997fc78 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/sync.rs:1910:22 (airline-rs+0xd629e5)
    #4 core::ptr::drop_in_place::h127f2e26be1fba1c /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:175:1 (airline-rs+0xd3e13b)
    #5 core::mem::drop::h018bb29f73fd6cb7 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/mem/mod.rs:901:24 (airline-rs+0xcc60df)
    #6 alloc::sync::Arc$LT$T$GT$::drop_slow::h9e859fd869bfabd6 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/sync.rs:937:9 (airline-rs+0xd57f9b)
    #7 _$LT$alloc..sync..Arc$LT$T$GT$$u20$as$u20$core..ops..drop..Drop$GT$::drop::h43fb9fabaa005631 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/sync.rs:1454:13 (airline-rs+0xd6191e)
    #8 core::ptr::drop_in_place::hb9cd476ff49e5b40 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:175:1 (airline-rs+0xd4889b)
    #9 core::ptr::drop_in_place::h262533afccc477f0 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:175:1 (airline-rs+0xd3f7c9)
    #10 futures_channel::mpsc::UnboundedReceiver$LT$T$GT$::next_message::hf6d6aca8506b07e0 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-channel-0.3.5/src/mpsc/mod.rs:1164:21 (airline-rs+0xcd35ac)
    #11 _$LT$futures_channel..mpsc..UnboundedReceiver$LT$T$GT$$u20$as$u20$futures_core..stream..Stream$GT$::poll_next::h915f44c76f096180 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-channel-0.3.5/src/mpsc/mod.rs:1195:15 (airline-rs+0xce3394)
    #12 _$LT$actix_server..worker..Worker$u20$as$u20$core..future..future..Future$GT$::poll::h42609717cc05d032 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.4/src/worker.rs:323:13 (airline-rs+0xcf1c94)
    #13 actix_server::worker::Worker::start::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h0cf05407036d7c65 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.4/src/worker.rs:217:21 (airline-rs+0xcef989)
    #14 _$LT$core..future..from_generator..GenFuture$LT$T$GT$$u20$as$u20$core..future..future..Future$GT$::poll::h79353b790c139505 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/mod.rs:79:19 (airline-rs+0xcbee92)
    #15 tokio::runtime::task::core::Core$LT$T$C$S$GT$::poll::_$u7b$$u7b$closure$u7d$$u7d$::h5789aa767ba585d7 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/task/core.rs:173:17 (airline-rs+0xd0219c)
    #16 tokio::loom::std::unsafe_cell::UnsafeCell$LT$T$GT$::with_mut::hdce9440a0fd49eb9 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/loom/std/unsafe_cell.rs:14:9 (airline-rs+0xd603ad)
    #17 tokio::runtime::task::core::Core$LT$T$C$S$GT$::poll::h4a3b01aab0344dbb /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/task/core.rs:158:13 (airline-rs+0xd01089)
    #18 tokio::runtime::task::harness::Harness$LT$T$C$S$GT$::poll::_$u7b$$u7b$closure$u7d$$u7d$::h19c393660e9ac2f7 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/task/harness.rs:107:27 (airline-rs+0xd72c03)
    #19 core::ops::function::FnOnce::call_once::ha4723e99ac5d119e /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:227:5 (airline-rs+0xd3ccbe)
    #20 _$LT$std..panic..AssertUnwindSafe$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$$LP$$RP$$GT$$GT$::call_once::h463eb1fb957338d3 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:308:9 (airline-rs+0xd7960a)
    #21 std::panicking::try::do_call::h15d29db676f81814 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:381:40 (airline-rs+0xd87ccf)
    #22 __rust_try <null> (airline-rs+0xd8e37b)
    #23 std::panicking::try::h2ef2b929de56c524 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:345:19 (airline-rs+0xd85ec4)
    #24 std::panic::catch_unwind::h2b5b439b43f4349a /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:382:14 (airline-rs+0xd7d0ca)
    #25 tokio::runtime::task::harness::Harness$LT$T$C$S$GT$::poll::h51323fdeb87c62ae /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/task/harness.rs:89:19 (airline-rs+0xd6fca8)
    #26 tokio::runtime::task::raw::poll::ha091826f13f8c128 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/task/raw.rs:104:5 (airline-rs+0xce9e1a)
    #27 tokio::runtime::task::raw::RawTask::poll::h261eb9046b520b0b /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/task/raw.rs:66:18 (airline-rs+0x192b5a7)
    #28 tokio::runtime::task::Notified$LT$S$GT$::run::hd0a63f8e822a1d4e /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/task/mod.rs:169:9 (airline-rs+0x193f533)
    #29 tokio::task::local::LocalSet::tick::_$u7b$$u7b$closure$u7d$$u7d$::h0c64e5676cdc207c /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/task/local.rs:408:54 (airline-rs+0x192e88b)
    #30 tokio::coop::with_budget::_$u7b$$u7b$closure$u7d$$u7d$::h232660474d31b44f /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/coop.rs:127:9 (airline-rs+0x1928de7)
    #31 std::thread::local::LocalKey$LT$T$GT$::try_with::h259be596af85f3ae /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:271:16 (airline-rs+0x1932371)
    #32 std::thread::local::LocalKey$LT$T$GT$::with::h8e70d5e711341eef /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:247:9 (airline-rs+0x19313b8)
    #33 tokio::coop::with_budget::h5a6085d9b4b168c5 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/coop.rs:120:5 (airline-rs+0x192e791)
    #34 tokio::coop::budget::h21bc7f563f282e8a /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/coop.rs:96:5 (airline-rs+0x192e791)
    #35 tokio::task::local::LocalSet::tick::he4a8dcf7263a03b6 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/task/local.rs:408:31 (airline-rs+0x192e791)
    #36 _$LT$tokio..task..local..RunUntil$LT$T$GT$$u20$as$u20$core..future..future..Future$GT$::poll::_$u7b$$u7b$closure$u7d$$u7d$::hdb2e85056d3ac1b7 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/task/local.rs:532:16 (airline-rs+0x1074d82)
    #37 tokio::macros::scoped_tls::ScopedKey$LT$T$GT$::set::h0dbedc0a8d23e6e8 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/macros/scoped_tls.rs:63:9 (airline-rs+0x1050402)
    #38 tokio::task::local::LocalSet::with::he48ca65e83bd350f /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/task/local.rs:442:9 (airline-rs+0x107250f)
    #39 _$LT$tokio..task..local..RunUntil$LT$T$GT$$u20$as$u20$core..future..future..Future$GT$::poll::h627bc171bcd07382 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/task/local.rs:518:9 (airline-rs+0x107449d)
    #40 tokio::task::local::LocalSet::run_until::_$u7b$$u7b$closure$u7d$$u7d$::h0e977afb30bbb3af /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/task/local.rs:392:9 (airline-rs+0x1072ced)
    #41 _$LT$core..future..from_generator..GenFuture$LT$T$GT$$u20$as$u20$core..future..future..Future$GT$::poll::h2cc16559a9bdb195 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/mod.rs:79:19 (airline-rs+0x106426c)
    #42 tokio::runtime::basic_scheduler::BasicScheduler$LT$P$GT$::block_on::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h442a6719821c1fbf /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/basic_scheduler.rs:131:58 (airline-rs+0x10a0a62)
    #43 tokio::coop::with_budget::_$u7b$$u7b$closure$u7d$$u7d$::ha3660b961667c582 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/coop.rs:127:9 (airline-rs+0x1095506)
    #44 std::thread::local::LocalKey$LT$T$GT$::try_with::h4c39097f2e97fdbe /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:271:16 (airline-rs+0x109a355)
    #45 std::thread::local::LocalKey$LT$T$GT$::with::h3a18c6a8851064c8 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:247:9 (airline-rs+0x1098048)
    #46 tokio::coop::with_budget::h78cf323ddae686bf /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/coop.rs:120:5 (airline-rs+0x10a010e)
    #47 tokio::coop::budget::h60382c7a95c1dcc9 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/coop.rs:96:5 (airline-rs+0x10a010e)
    #48 tokio::runtime::basic_scheduler::BasicScheduler$LT$P$GT$::block_on::_$u7b$$u7b$closure$u7d$$u7d$::hf2cd9ca6066c5db9 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/basic_scheduler.rs:131:35 (airline-rs+0x10a010e)
    #49 tokio::runtime::basic_scheduler::enter::_$u7b$$u7b$closure$u7d$$u7d$::he59a880a8524cdb5 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/basic_scheduler.rs:213:29 (airline-rs+0x10a18cc)
    #50 tokio::macros::scoped_tls::ScopedKey$LT$T$GT$::set::h1b0b2188f8bc7104 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/macros/scoped_tls.rs:63:9 (airline-rs+0x10505f2)
    #51 tokio::runtime::basic_scheduler::enter::hc2a11e63a6e1e41d /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/basic_scheduler.rs:213:5 (airline-rs+0x10a15ee)
    #52 tokio::runtime::basic_scheduler::BasicScheduler$LT$P$GT$::block_on::h187bdab909a4d8b0 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/basic_scheduler.rs:123:9 (airline-rs+0x109f2b8)
    #53 tokio::runtime::Runtime::block_on::_$u7b$$u7b$closure$u7d$$u7d$::h2820b6a6be981cf5 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/mod.rs:444:34 (airline-rs+0x1073521)
    #54 tokio::runtime::context::enter::h55bf50debb6357dd /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/context.rs:72:5 (airline-rs+0x1096933)
    #55 tokio::runtime::handle::Handle::enter::h9b8d1732d020a3ec /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/handle.rs:76:9 (airline-rs+0x10967e9)
    #56 tokio::runtime::Runtime::block_on::hb358befb28d3a7cf /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/mod.rs:441:9 (airline-rs+0x107318a)
    #57 tokio::task::local::LocalSet::block_on::h357ba3cbd3d2bdfd /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/task/local.rs:353:9 (airline-rs+0x10725c0)
    #58 actix_rt::runtime::Runtime::block_on::h21d84d0f38a65ad6 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-1.1.1/src/runtime.rs:89:9 (airline-rs+0x10756a0)
    #59 actix_rt::arbiter::Arbiter::new::_$u7b$$u7b$closure$u7d$$u7d$::haf58776acf61a4f6 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-1.1.1/src/arbiter.rs:137:31 (airline-rs+0x10697ba)
    #60 std::sys_common::backtrace::__rust_begin_short_backtrace::hc8d1c4b695ae4bfc /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys_common/backtrace.rs:137:18 (airline-rs+0x10890c6)
    #61 std::thread::Builder::spawn_unchecked::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h139869a882c468b4 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/mod.rs:461:17 (airline-rs+0x1053cba)
    #62 _$LT$std..panic..AssertUnwindSafe$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$$LP$$RP$$GT$$GT$::call_once::hcc8e4ff17e6df24e /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:308:9 (airline-rs+0x106c91a)
    #63 std::panicking::try::do_call::h709cedefed39fb70 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:381:40 (airline-rs+0x10a5de9)
    #64 __rust_try <null> (airline-rs+0x10a98ab)
    #65 std::panicking::try::h0bdf66e4b92c70e2 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:345:19 (airline-rs+0x10a47b7)
    #66 std::panic::catch_unwind::haae01fa22bb6b150 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:382:14 (airline-rs+0x106e08a)
    #67 std::thread::Builder::spawn_unchecked::_$u7b$$u7b$closure$u7d$$u7d$::h1067cbf3670aec58 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/mod.rs:460:30 (airline-rs+0x1053a56)
    #68 core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hf4cd251c5aef05f4 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:227:5 (airline-rs+0x108d5fb)
    #69 _$LT$alloc..boxed..Box$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$A$GT$$GT$::call_once::h462e787c72080422 /rustc/6af1bdda54abc9e919fc1137411dfc4311e05649/library/alloc/src/boxed.rs:1042:9 (airline-rs+0x1e2bef9)
    #70 _$LT$alloc..boxed..Box$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$A$GT$$GT$::call_once::hd438caf7b24ea9a1 /rustc/6af1bdda54abc9e919fc1137411dfc4311e05649/library/alloc/src/boxed.rs:1042:9 (airline-rs+0x1e2bef9)
    #71 std::sys::unix::thread::Thread::new::thread_start::h653bd369f002a164 /rustc/6af1bdda54abc9e919fc1137411dfc4311e05649/library/std/src/sys/unix/thread.rs:87:17 (airline-rs+0x1e2bef9)

  Previous atomic write of size 8 at 0x7b1400005500 by main thread:
    #0 __tsan_atomic64_fetch_sub /rustc/llvm/src/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cpp:647:3 (airline-rs+0x143391)
    #1 core::sync::atomic::atomic_sub::hfc48c5fe4a3ccbcd /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/sync/atomic.rs:2282:24 (airline-rs+0x1a2f4e5)
    #2 core::sync::atomic::AtomicUsize::fetch_sub::h714426de533c6d2c /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/sync/atomic.rs:1633:30 (airline-rs+0xd52a29)
    #3 _$LT$alloc..sync..Arc$LT$T$GT$$u20$as$u20$core..ops..drop..Drop$GT$::drop::h43fb9fabaa005631 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/sync.rs:1419:12 (airline-rs+0xd618dd)
    #4 core::ptr::drop_in_place::hb9cd476ff49e5b40 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:175:1 (airline-rs+0xd4889b)
    #5 core::ptr::drop_in_place::h0dd341d987190869 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:175:1 (airline-rs+0xd3dc32)
    #6 core::ptr::drop_in_place::h614fcc25ca3e48c0 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:175:1 (airline-rs+0xd42d49)
    #7 core::ptr::drop_in_place::hd91bf1904adf3e49 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:175:1 (airline-rs+0xd4adfb)
    #8 core::ptr::drop_in_place::h1d37c5f792ccca18 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:175:1 (airline-rs+0xd3eaa9)
    #9 core::ptr::drop_in_place::h574b6e274054f4f3 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:175:1 (airline-rs+0xd422cf)
    #10 core::ptr::drop_in_place::h781bc6c9027af93a /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:175:1 (airline-rs+0xd4451a)
    #11 _$LT$alloc..vec..Vec$LT$T$GT$$u20$as$u20$core..ops..drop..Drop$GT$::drop::hb474a5afc0ec687c /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/vec.rs:2635:13 (airline-rs+0xc9c48b)
    #12 core::ptr::drop_in_place::hf4af1548650ff51a /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:175:1 (airline-rs+0xd4c89b)
    #13 core::ptr::drop_in_place::hc0b6b6fdf2b4335c /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:175:1 (airline-rs+0xd48d3f)
    #14 core::ptr::drop_in_place::h82c2ca110c19002b /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:175:1 (airline-rs+0xd44e27)
    #15 tokio::runtime::task::core::Core$LT$T$C$S$GT$::drop_future_or_output::_$u7b$$u7b$closure$u7d$$u7d$::h2803166d99e3164f /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/task/core.rs:192:22 (airline-rs+0xd0093d)
    #16 tokio::loom::std::unsafe_cell::UnsafeCell$LT$T$GT$::with_mut::h8ac88e2867d75039 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/loom/std/unsafe_cell.rs:14:9 (airline-rs+0xd5ef99)
    #17 tokio::runtime::task::core::Core$LT$T$C$S$GT$::drop_future_or_output::he2cfdcc4d42a1d9c /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/task/core.rs:190:9 (airline-rs+0xd006af)
    #18 tokio::runtime::task::harness::Harness$LT$T$C$S$GT$::cancel_task::_$u7b$$u7b$closure$u7d$$u7d$::h4b246b5fbaa5abf4 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/task/harness.rs:293:13 (airline-rs+0xd6561f)
    #19 core::ops::function::FnOnce::call_once::hbe8ef8c57b99e4bf /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:227:5 (airline-rs+0xd3cdcf)
    #20 _$LT$std..panic..AssertUnwindSafe$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$$LP$$RP$$GT$$GT$::call_once::h1525d728c2cce063 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:308:9 (airline-rs+0xd794fb)
    #21 std::panicking::try::do_call::h52704dbc806139a6 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:381:40 (airline-rs+0xd8820e)
    #22 __rust_try <null> (airline-rs+0xd8e37b)
    #23 std::panicking::try::hdad61456aaeaabde /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:345:19 (airline-rs+0xd8757c)
    #24 std::panic::catch_unwind::h54ef2d8af00f4387 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:382:14 (airline-rs+0xd7d24b)
    #25 tokio::runtime::task::harness::Harness$LT$T$C$S$GT$::cancel_task::h9f2128ba4c175d00 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/task/harness.rs:292:19 (airline-rs+0xd648c5)
    #26 tokio::runtime::task::harness::Harness$LT$T$C$S$GT$::shutdown::h79b0fa594af7faaf /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/task/harness.rs:285:9 (airline-rs+0xd786e0)
    #27 tokio::runtime::task::raw::shutdown::h6885ddb39fab4929 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/task/raw.rs:130:5 (airline-rs+0xceb70a)
    #28 tokio::runtime::task::raw::RawTask::shutdown::h411eeeeb3cb05306 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/task/raw.rs:90:18 (airline-rs+0x192b8ff)
    #29 tokio::runtime::task::Task$LT$S$GT$::shutdown::h8c2339c20eda1f17 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/task/mod.rs:162:9 (airline-rs+0x193f2d8)
    #30 _$LT$tokio..task..local..LocalSet$u20$as$u20$core..ops..drop..Drop$GT$::drop::_$u7b$$u7b$closure$u7d$$u7d$::h1fe801d2969eb8b1 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/task/local.rs:494:17 (airline-rs+0x192f247)
    #31 tokio::macros::scoped_tls::ScopedKey$LT$T$GT$::set::hd77cf20dff90ce35 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/macros/scoped_tls.rs:63:9 (airline-rs+0x192707c)
    #32 tokio::task::local::LocalSet::with::hda5dce5a767a9dde /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/task/local.rs:442:9 (airline-rs+0x192ef4f)
    #33 _$LT$tokio..task..local..LocalSet$u20$as$u20$core..ops..drop..Drop$GT$::drop::hb767c7c5b295e2cb /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/task/local.rs:484:9 (airline-rs+0x192efd8)
    #34 core::ptr::drop_in_place::h3225570882d959e5 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:175:1 (airline-rs+0x108ecfb)
    #35 core::ptr::drop_in_place::hb413e8e651944325 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:175:1 (airline-rs+0x109200b)
    #36 core::ptr::drop_in_place::hb520dda940c651e5 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:175:1 (airline-rs+0x251c8b)
    #37 airline_rs::main::h555cd33b435b0f6f /home/fede/IdeaProjects/rust-arline/src/main.rs:43:17 (airline-rs+0x35759e)
    #38 core::ops::function::FnOnce::call_once::hc5f387d56a24fc2d /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:227:5 (airline-rs+0x22a703)
    #39 std::sys_common::backtrace::__rust_begin_short_backtrace::h88c9e29ab23ee69f /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys_common/backtrace.rs:137:18 (airline-rs+0x26afa9)
    #40 std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::hbdd4d3ce48784d8b /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/rt.rs:66:18 (airline-rs+0x5806d9)
    #41 core::ops::function::impls::_$LT$impl$u20$core..ops..function..FnOnce$LT$A$GT$$u20$for$u20$$RF$F$GT$::call_once::h009d20b8a620bf60 /rustc/6af1bdda54abc9e919fc1137411dfc4311e05649/library/core/src/ops/function.rs:259:13 (airline-rs+0x1e28500)
    #42 std::panicking::try::do_call::h09431c39e2107c90 /rustc/6af1bdda54abc9e919fc1137411dfc4311e05649/library/std/src/panicking.rs:381:40 (airline-rs+0x1e28500)
    #43 std::panicking::try::he27cf60b958af343 /rustc/6af1bdda54abc9e919fc1137411dfc4311e05649/library/std/src/panicking.rs:345:19 (airline-rs+0x1e28500)
    #44 std::panic::catch_unwind::h7b646b0041dc5591 /rustc/6af1bdda54abc9e919fc1137411dfc4311e05649/library/std/src/panic.rs:382:14 (airline-rs+0x1e28500)
    #45 std::rt::lang_start_internal::hdad6c98af1e4747e /rustc/6af1bdda54abc9e919fc1137411dfc4311e05649/library/std/src/rt.rs:51:25 (airline-rs+0x1e28500)
    #46 main <null> (airline-rs+0x357637)

  Thread T1 'actix-rt:worker' (tid=222338, running) created by main thread at:
    #0 pthread_create /rustc/llvm/src/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:966:3 (airline-rs+0xffcab)
    #1 std::sys::unix::thread::Thread::new::h3c425fbab019e079 /rustc/6af1bdda54abc9e919fc1137411dfc4311e05649/library/std/src/sys/unix/thread.rs:66:19 (airline-rs+0x1e2bc2c)
    #2 std::thread::Builder::spawn::hb4b197f84fa0d07b /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/mod.rs:376:18 (airline-rs+0x1053d7a)
    #3 actix_rt::arbiter::Arbiter::new::h9382bbfa3ddfaeee /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-1.1.1/src/arbiter.rs:112:22 (airline-rs+0x1068de8)
    #4 actix_server::worker::Worker::start::h5d8b00b9c730c1d6 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.4/src/worker.rs:173:9 (airline-rs+0xcede2a)
    #5 actix_server::builder::ServerBuilder::start_worker::hd20efe88d7f0ef1b /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.4/src/builder.rs:304:9 (airline-rs+0xd0851e)
    #6 actix_server::builder::ServerBuilder::run::_$u7b$$u7b$closure$u7d$$u7d$::he25167b900c288e8 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.4/src/builder.rs:268:34 (airline-rs+0xd0810b)
    #7 core::iter::adapters::map_fold::_$u7b$$u7b$closure$u7d$$u7d$::h12c0f12363bbf76b /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/iter/adapters/mod.rs:895:28 (airline-rs+0xcb9baf)
    #8 core::iter::traits::iterator::Iterator::fold::hb53bb1df910a2602 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/iter/traits/iterator.rs:1988:21 (airline-rs+0xd83d15)
    #9 _$LT$core..iter..adapters..Map$LT$I$C$F$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$::fold::h1587bbc7526393b0 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/iter/adapters/mod.rs:935:9 (airline-rs+0xcbf3cf)
    #10 core::iter::traits::iterator::Iterator::for_each::hf8eb26167562f359 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/iter/traits/iterator.rs:645:9 (airline-rs+0xcb8612)
    #11 _$LT$alloc..vec..Vec$LT$T$GT$$u20$as$u20$alloc..vec..SpecExtend$LT$T$C$I$GT$$GT$::spec_extend::h7509658e82aa045a /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/vec.rs:2377:17 (airline-rs+0xc9e617)
    #12 _$LT$alloc..vec..Vec$LT$T$GT$$u20$as$u20$alloc..vec..SpecFromIterNested$LT$T$C$I$GT$$GT$::from_iter::h017628d7c9ef9afa /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/vec.rs:2149:9 (airline-rs+0xca51a3)
    #13 _$LT$alloc..vec..Vec$LT$T$GT$$u20$as$u20$alloc..vec..SpecFromIter$LT$T$C$I$GT$$GT$::from_iter::h4239e9cf9605ac5f /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/vec.rs:2159:9 (airline-rs+0xca0026)
    #14 _$LT$alloc..vec..Vec$LT$T$GT$$u20$as$u20$core..iter..traits..collect..FromIterator$LT$T$GT$$GT$::from_iter::h3e7ebb1fedcfb7cd /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/vec.rs:1998:9 (airline-rs+0xca5c8d)
    #15 core::iter::traits::iterator::Iterator::collect::hf74eafefe1a5b859 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/iter/traits/iterator.rs:1637:9 (airline-rs+0xcb8096)
    #16 actix_server::builder::ServerBuilder::run::h18123b5e811bbffe /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.4/src/builder.rs:266:27 (airline-rs+0xd079da)
    #17 actix_server::builder::ServerBuilder::start::h18618c82c7affa88 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.4/src/builder.rs:255:9 (airline-rs+0xd0763a)
    #18 actix_web::server::HttpServer$LT$F$C$I$C$S$C$B$GT$::run::h8285c53524eb2eac /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-3.0.2/src/server.rs:556:9 (airline-rs+0x4f0811)
    #19 airline_rs::main::_$u7b$$u7b$closure$u7d$$u7d$::h631a547f2722c339 /home/fede/IdeaProjects/rust-arline/src/main.rs:78:5 (airline-rs+0x37a425)
    #20 _$LT$core..future..from_generator..GenFuture$LT$T$GT$$u20$as$u20$core..future..future..Future$GT$::poll::hf83b74ce1aa16534 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/mod.rs:79:19 (airline-rs+0x471168)
    #21 _$LT$tokio..task..local..RunUntil$LT$T$GT$$u20$as$u20$core..future..future..Future$GT$::poll::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h3dffc581ee2b2730 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/task/local.rs:528:65 (airline-rs+0x51339a)
    #22 tokio::coop::with_budget::_$u7b$$u7b$closure$u7d$$u7d$::hf5c67737dbf2cc73 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/coop.rs:127:9 (airline-rs+0x528c64)
    #23 std::thread::local::LocalKey$LT$T$GT$::try_with::hfd17927c54d1d19b /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:271:16 (airline-rs+0x4631a3)
    #24 std::thread::local::LocalKey$LT$T$GT$::with::hb8d7667a6924cc87 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:247:9 (airline-rs+0x45fba6)
    #25 tokio::coop::with_budget::hd4723784df0ad4cf /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/coop.rs:120:5 (airline-rs+0x513154)
    #26 tokio::coop::budget::hb533e00f392b5a9e /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/coop.rs:96:5 (airline-rs+0x513154)
    #27 _$LT$tokio..task..local..RunUntil$LT$T$GT$$u20$as$u20$core..future..future..Future$GT$::poll::_$u7b$$u7b$closure$u7d$$u7d$::h159d8cec9478f005 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/task/local.rs:528:42 (airline-rs+0x513154)
    #28 tokio::macros::scoped_tls::ScopedKey$LT$T$GT$::set::hf5707a02094ec983 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/macros/scoped_tls.rs:63:9 (airline-rs+0x4c61dc)
    #29 tokio::task::local::LocalSet::with::ha6c745995dc0440f /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/task/local.rs:442:9 (airline-rs+0x5127ad)
    #30 _$LT$tokio..task..local..RunUntil$LT$T$GT$$u20$as$u20$core..future..future..Future$GT$::poll::hfd860b4a2685e23d /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/task/local.rs:518:9 (airline-rs+0x512e97)
    #31 tokio::task::local::LocalSet::run_until::_$u7b$$u7b$closure$u7d$$u7d$::hb9c4384c5b1c752b /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/task/local.rs:392:9 (airline-rs+0x512be7)
    #32 _$LT$core..future..from_generator..GenFuture$LT$T$GT$$u20$as$u20$core..future..future..Future$GT$::poll::h53f18bae8a604ca6 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/mod.rs:79:19 (airline-rs+0x46a238)
    #33 tokio::runtime::basic_scheduler::BasicScheduler$LT$P$GT$::block_on::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h5ea7fdde5cc2abe7 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/basic_scheduler.rs:131:58 (airline-rs+0x593a7c)
    #34 tokio::coop::with_budget::_$u7b$$u7b$closure$u7d$$u7d$::hdd033e114f1c4933 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/coop.rs:127:9 (airline-rs+0x528904)
    #35 std::thread::local::LocalKey$LT$T$GT$::try_with::he7f178f6db31397f /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:271:16 (airline-rs+0x462723)
    #36 std::thread::local::LocalKey$LT$T$GT$::with::h3821214bf7497fe2 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:247:9 (airline-rs+0x45eff6)
    #37 tokio::coop::with_budget::h0d917a74990a4bea /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/coop.rs:120:5 (airline-rs+0x593241)
    #38 tokio::coop::budget::h5a98a82aefa698f5 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/coop.rs:96:5 (airline-rs+0x593241)
    #39 tokio::runtime::basic_scheduler::BasicScheduler$LT$P$GT$::block_on::_$u7b$$u7b$closure$u7d$$u7d$::hbd9686fab542931d /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/basic_scheduler.rs:131:35 (airline-rs+0x593241)
    #40 tokio::runtime::basic_scheduler::enter::_$u7b$$u7b$closure$u7d$$u7d$::h522bd2b32ecab58e /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/basic_scheduler.rs:213:29 (airline-rs+0x5941ec)
    #41 tokio::macros::scoped_tls::ScopedKey$LT$T$GT$::set::hdcb59b6cceed5d90 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/macros/scoped_tls.rs:63:9 (airline-rs+0x4c5fec)
    #42 tokio::runtime::basic_scheduler::enter::h7b1ab12d2fe4eaa5 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/basic_scheduler.rs:213:5 (airline-rs+0x593ff5)
    #43 tokio::runtime::basic_scheduler::BasicScheduler$LT$P$GT$::block_on::hb2c64b4f960fbd16 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/basic_scheduler.rs:123:9 (airline-rs+0x592ecf)
    #44 tokio::runtime::Runtime::block_on::_$u7b$$u7b$closure$u7d$$u7d$::h9ca96e1566f5858f /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/mod.rs:444:34 (airline-rs+0x281c25)
    #45 tokio::runtime::context::enter::hd7785a3a01114489 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/context.rs:72:5 (airline-rs+0x3b3a8d)
    #46 tokio::runtime::handle::Handle::enter::h660a8eebf6b21ef6 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/handle.rs:76:9 (airline-rs+0x2a6127)
    #47 tokio::runtime::Runtime::block_on::h8d8e91e9f475d966 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/mod.rs:441:9 (airline-rs+0x281988)
    #48 tokio::task::local::LocalSet::block_on::hc1abab96a185a66e /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/task/local.rs:353:9 (airline-rs+0x51288c)
    #49 actix_rt::runtime::Runtime::block_on::h31808a4024c772cf <null> (airline-rs+0x324e3d)
    #50 actix_rt::builder::SystemRunner::block_on::hd24a9b8cc198f646 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-1.1.1/src/builder.rs:187:19 (airline-rs+0x26bcad)
    #51 airline_rs::main::h555cd33b435b0f6f /home/fede/IdeaProjects/rust-arline/src/main.rs:43:1 (airline-rs+0x357584)
    #52 core::ops::function::FnOnce::call_once::hc5f387d56a24fc2d /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:227:5 (airline-rs+0x22a703)
    #53 std::sys_common::backtrace::__rust_begin_short_backtrace::h88c9e29ab23ee69f /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys_common/backtrace.rs:137:18 (airline-rs+0x26afa9)
    #54 std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::hbdd4d3ce48784d8b /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/rt.rs:66:18 (airline-rs+0x5806d9)
    #55 core::ops::function::impls::_$LT$impl$u20$core..ops..function..FnOnce$LT$A$GT$$u20$for$u20$$RF$F$GT$::call_once::h009d20b8a620bf60 /rustc/6af1bdda54abc9e919fc1137411dfc4311e05649/library/core/src/ops/function.rs:259:13 (airline-rs+0x1e28500)
    #56 std::panicking::try::do_call::h09431c39e2107c90 /rustc/6af1bdda54abc9e919fc1137411dfc4311e05649/library/std/src/panicking.rs:381:40 (airline-rs+0x1e28500)
    #57 std::panicking::try::he27cf60b958af343 /rustc/6af1bdda54abc9e919fc1137411dfc4311e05649/library/std/src/panicking.rs:345:19 (airline-rs+0x1e28500)
    #58 std::panic::catch_unwind::h7b646b0041dc5591 /rustc/6af1bdda54abc9e919fc1137411dfc4311e05649/library/std/src/panic.rs:382:14 (airline-rs+0x1e28500)
    #59 std::rt::lang_start_internal::hdad6c98af1e4747e /rustc/6af1bdda54abc9e919fc1137411dfc4311e05649/library/std/src/rt.rs:51:25 (airline-rs+0x1e28500)
    #60 main <null> (airline-rs+0x357637)

SUMMARY: ThreadSanitizer: data race /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/alloc.rs:92:14 in alloc::alloc::dealloc::h915d50a0e4e0911e
==================
ThreadSanitizer: reported 1 warnings
robjtede commented 4 years ago

If you're able, it would be hugely helpful to have a minimal reproduction case.

fggarcia commented 4 years ago

@robjtede i do this example project. I write it in a few minutes. Sorry for ugly code. README how to run. https://www.github.com/fggarcia/actix-example

fggarcia commented 4 years ago

thread sanitizer for this example project

WARNING: ThreadSanitizer: data race (pid=240921)
  Write of size 8 at 0x7b14000002d0 by thread T1:
    #0 free /rustc/llvm/src/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:708:3 (actix-example+0x99d48)
    #1 alloc::alloc::dealloc::h69cae1c969dff8b7 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/alloc.rs:92:14 (actix-example+0x698e38)
    #2 _$LT$alloc..alloc..Global$u20$as$u20$core..alloc..AllocRef$GT$::dealloc::he647163e296231fb /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/alloc.rs:225:22 (actix-example+0x69fd67)
    #3 _$LT$alloc..sync..Weak$LT$T$GT$$u20$as$u20$core..ops..drop..Drop$GT$::drop::h70afb5cc8a558b18 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/sync.rs:1910:22 (actix-example+0x7208b5)
    #4 core::ptr::drop_in_place::h1992226425b3c9f6 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:175:1 (actix-example+0x6fcd3b)
    #5 core::mem::drop::h3f36ac209fde3a82 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/mem/mod.rs:901:24 (actix-example+0x68486f)
    #6 alloc::sync::Arc$LT$T$GT$::drop_slow::h93df97ee137ea748 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/sync.rs:937:9 (actix-example+0x7164ab)
    #7 _$LT$alloc..sync..Arc$LT$T$GT$$u20$as$u20$core..ops..drop..Drop$GT$::drop::h85b425d9896098cb /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/sync.rs:1454:13 (actix-example+0x71fd1e)
    #8 core::ptr::drop_in_place::hd9a2abcced33bc11 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:175:1 (actix-example+0x70941b)
    #9 core::ptr::drop_in_place::h56d18e7f72b2a44d /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:175:1 (actix-example+0x7008c9)
    #10 futures_channel::mpsc::UnboundedReceiver$LT$T$GT$::next_message::ha461d0c01ca1bf19 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-channel-0.3.5/src/mpsc/mod.rs:1164:21 (actix-example+0x69150c)
    #11 _$LT$futures_channel..mpsc..UnboundedReceiver$LT$T$GT$$u20$as$u20$futures_core..stream..Stream$GT$::poll_next::ha1083ae0596213be /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-channel-0.3.5/src/mpsc/mod.rs:1195:15 (actix-example+0x6a1b04)
    #12 _$LT$actix_server..worker..Worker$u20$as$u20$core..future..future..Future$GT$::poll::h1862ba8d20a78920 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.4/src/worker.rs:323:13 (actix-example+0x6aff54)
    #13 actix_server::worker::Worker::start::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::hb83e815da9712ba1 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.4/src/worker.rs:217:21 (actix-example+0x6adc49)
    #14 _$LT$core..future..from_generator..GenFuture$LT$T$GT$$u20$as$u20$core..future..future..Future$GT$::poll::hb36ed2c02d6a8928 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/mod.rs:79:19 (actix-example+0x67d3c2)
    #15 tokio::runtime::task::core::Core$LT$T$C$S$GT$::poll::_$u7b$$u7b$closure$u7d$$u7d$::h109fb67483e8907b /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/task/core.rs:173:17 (actix-example+0x6bfd9c)
    #16 tokio::loom::std::unsafe_cell::UnsafeCell$LT$T$GT$::with_mut::h1e9709613fefee8e /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/loom/std/unsafe_cell.rs:14:9 (actix-example+0x71b6bd)
    #17 tokio::runtime::task::core::Core$LT$T$C$S$GT$::poll::hf0bfaddcd66220dc /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/task/core.rs:158:13 (actix-example+0x6bfac9)
    #18 tokio::runtime::task::harness::Harness$LT$T$C$S$GT$::poll::_$u7b$$u7b$closure$u7d$$u7d$::h1c63b9d874513754 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/task/harness.rs:107:27 (actix-example+0x730f53)
    #19 core::ops::function::FnOnce::call_once::hb31fd957beee9cac /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:227:5 (actix-example+0x6fb01e)
    #20 _$LT$std..panic..AssertUnwindSafe$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$$LP$$RP$$GT$$GT$::call_once::h377a3ca6e17b100a /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:308:9 (actix-example+0x73789a)
    #21 std::panicking::try::do_call::hb47cd91ff91dd80d /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:381:40 (actix-example+0x746b0f)
    #22 __rust_try <null> (actix-example+0x74c6cb)
    #23 std::panicking::try::hc9b0be25fa040632 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:345:19 (actix-example+0x745654)
    #24 std::panic::catch_unwind::h04489bc0fe8c0e81 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:382:14 (actix-example+0x73b28a)
    #25 tokio::runtime::task::harness::Harness$LT$T$C$S$GT$::poll::h5e38d72431cb8ac8 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/task/harness.rs:89:19 (actix-example+0x72ee18)
    #26 tokio::runtime::task::raw::poll::hea693da461fc9a4c /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/task/raw.rs:104:5 (actix-example+0x6a82da)
    #27 tokio::runtime::task::raw::RawTask::poll::h4f7822353a2a5f12 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/task/raw.rs:66:18 (actix-example+0x1204487)
    #28 tokio::runtime::task::Notified$LT$S$GT$::run::h08b26b8cd4ac515a /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/task/mod.rs:169:9 (actix-example+0x1212063)
    #29 tokio::task::local::LocalSet::tick::_$u7b$$u7b$closure$u7d$$u7d$::h19a84f01f1b9bcbc /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/task/local.rs:408:54 (actix-example+0x119292b)
    #30 tokio::coop::with_budget::_$u7b$$u7b$closure$u7d$$u7d$::h349d2a4d854f6fbf /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/coop.rs:127:9 (actix-example+0x11a0447)
    #31 std::thread::local::LocalKey$LT$T$GT$::try_with::h3c9c65cf69601fae /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:271:16 (actix-example+0x1231d11)
    #32 std::thread::local::LocalKey$LT$T$GT$::with::hb111c14e2ef22253 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:247:9 (actix-example+0x12305f8)
    #33 tokio::coop::with_budget::hcba36361e5ee6dae /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/coop.rs:120:5 (actix-example+0x1192831)
    #34 tokio::coop::budget::h9f95fe1d9d2e21c2 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/coop.rs:96:5 (actix-example+0x1192831)
    #35 tokio::task::local::LocalSet::tick::h25112a5436770ec1 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/task/local.rs:408:31 (actix-example+0x1192831)
    #36 _$LT$tokio..task..local..RunUntil$LT$T$GT$$u20$as$u20$core..future..future..Future$GT$::poll::_$u7b$$u7b$closure$u7d$$u7d$::h24b115baf16a3174 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/task/local.rs:532:16 (actix-example+0x992f62)
    #37 tokio::macros::scoped_tls::ScopedKey$LT$T$GT$::set::he16a8e2c9ef8ffd8 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/macros/scoped_tls.rs:63:9 (actix-example+0x96f372)
    #38 tokio::task::local::LocalSet::with::hdb1f74a0f4d9b0a8 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/task/local.rs:442:9 (actix-example+0x99052f)
    #39 _$LT$tokio..task..local..RunUntil$LT$T$GT$$u20$as$u20$core..future..future..Future$GT$::poll::h19d851d17a6085d3 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/task/local.rs:518:9 (actix-example+0x992aad)
    #40 tokio::task::local::LocalSet::run_until::_$u7b$$u7b$closure$u7d$$u7d$::hb4bb575deb5cbc40 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/task/local.rs:392:9 (actix-example+0x990d0d)
    #41 _$LT$core..future..from_generator..GenFuture$LT$T$GT$$u20$as$u20$core..future..future..Future$GT$::poll::h7b6f233361ec3984 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/mod.rs:79:19 (actix-example+0x982e4c)
    #42 tokio::runtime::basic_scheduler::BasicScheduler$LT$P$GT$::block_on::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::hcab1838565cdc83a /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/basic_scheduler.rs:131:58 (actix-example+0x9bf522)
    #43 tokio::coop::with_budget::_$u7b$$u7b$closure$u7d$$u7d$::hecfc84386485089d /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/coop.rs:127:9 (actix-example+0x9b4e16)
    #44 std::thread::local::LocalKey$LT$T$GT$::try_with::haeedc23c9ba9916b /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:271:16 (actix-example+0x9bac25)
    #45 std::thread::local::LocalKey$LT$T$GT$::with::hdff183565f5e66e9 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:247:9 (actix-example+0x9b7858)
    #46 tokio::coop::with_budget::hb1289aacf0fdbc70 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/coop.rs:120:5 (actix-example+0x9bea9e)
    #47 tokio::coop::budget::h3159eac2c1189257 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/coop.rs:96:5 (actix-example+0x9bea9e)
    #48 tokio::runtime::basic_scheduler::BasicScheduler$LT$P$GT$::block_on::_$u7b$$u7b$closure$u7d$$u7d$::h8c8cf13d09207ad5 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/basic_scheduler.rs:131:35 (actix-example+0x9bea9e)
    #49 tokio::runtime::basic_scheduler::enter::_$u7b$$u7b$closure$u7d$$u7d$::h592d5774b8b6c308 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/basic_scheduler.rs:213:29 (actix-example+0x9c025c)
    #50 tokio::macros::scoped_tls::ScopedKey$LT$T$GT$::set::h5b592c65128c38db /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/macros/scoped_tls.rs:63:9 (actix-example+0x96efb2)
    #51 tokio::runtime::basic_scheduler::enter::h09ea135beb3f9bad /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/basic_scheduler.rs:213:5 (actix-example+0x9bfb5e)
    #52 tokio::runtime::basic_scheduler::BasicScheduler$LT$P$GT$::block_on::h1b08d9bf174f919d /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/basic_scheduler.rs:123:9 (actix-example+0x9bdc48)
    #53 tokio::runtime::Runtime::block_on::_$u7b$$u7b$closure$u7d$$u7d$::ha18013a046612fdb /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/mod.rs:444:34 (actix-example+0x9915b1)
    #54 tokio::runtime::context::enter::h49bf1a9d06052fec /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/context.rs:72:5 (actix-example+0x991853)
    #55 tokio::runtime::handle::Handle::enter::h069484fdd3da80d9 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/handle.rs:76:9 (actix-example+0x9b5799)
    #56 tokio::runtime::Runtime::block_on::h3a42c23cae5ae0d2 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/mod.rs:441:9 (actix-example+0x990f9a)
    #57 tokio::task::local::LocalSet::block_on::h25bffda46d46c7bd /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/task/local.rs:353:9 (actix-example+0x9905e0)
    #58 actix_rt::runtime::Runtime::block_on::hac1dc57f167e7173 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-1.1.1/src/runtime.rs:89:9 (actix-example+0x993cb0)
    #59 actix_rt::arbiter::Arbiter::new::_$u7b$$u7b$closure$u7d$$u7d$::h35723da5b6c0bed2 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-1.1.1/src/arbiter.rs:137:31 (actix-example+0x98829a)
    #60 std::sys_common::backtrace::__rust_begin_short_backtrace::he70c5b889c9fd28d /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys_common/backtrace.rs:137:18 (actix-example+0x9a7bb6)
    #61 std::thread::Builder::spawn_unchecked::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h3e7450a2a5b207d8 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/mod.rs:461:17 (actix-example+0x97269a)
    #62 _$LT$std..panic..AssertUnwindSafe$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$$LP$$RP$$GT$$GT$::call_once::hce7c66005d5a3961 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:308:9 (actix-example+0x9a79da)
    #63 std::panicking::try::do_call::h23ec0dddce90fddb /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:381:40 (actix-example+0x9c4639)
    #64 __rust_try <null> (actix-example+0x9c823b)
    #65 std::panicking::try::h20d77b644e16dfb2 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:345:19 (actix-example+0x9c34d7)
    #66 std::panic::catch_unwind::h8a39ae2305d5dd83 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:382:14 (actix-example+0x9a7e0a)
    #67 std::thread::Builder::spawn_unchecked::_$u7b$$u7b$closure$u7d$$u7d$::h99627e846098ec13 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/mod.rs:460:30 (actix-example+0x972436)
    #68 core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h97885c1d6431dbf6 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:227:5 (actix-example+0x9ac67b)
    #69 _$LT$alloc..boxed..Box$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$A$GT$$GT$::call_once::h462e787c72080422 /rustc/6af1bdda54abc9e919fc1137411dfc4311e05649/library/alloc/src/boxed.rs:1042:9 (actix-example+0x13cf7f9)
    #70 _$LT$alloc..boxed..Box$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$A$GT$$GT$::call_once::hd438caf7b24ea9a1 /rustc/6af1bdda54abc9e919fc1137411dfc4311e05649/library/alloc/src/boxed.rs:1042:9 (actix-example+0x13cf7f9)
    #71 std::sys::unix::thread::Thread::new::thread_start::h653bd369f002a164 /rustc/6af1bdda54abc9e919fc1137411dfc4311e05649/library/std/src/sys/unix/thread.rs:87:17 (actix-example+0x13cf7f9)

  Previous atomic write of size 8 at 0x7b14000002d0 by main thread:
    #0 __tsan_atomic64_fetch_sub /rustc/llvm/src/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cpp:647:3 (actix-example+0xde391)
    #1 core::sync::atomic::atomic_sub::hfc48c5fe4a3ccbcd /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/sync/atomic.rs:2282:24 (actix-example+0x1302f75)
    #2 core::sync::atomic::AtomicUsize::fetch_sub::h1b9916612cbfda2d /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/sync/atomic.rs:1633:30 (actix-example+0x710d79)
    #3 _$LT$alloc..sync..Arc$LT$T$GT$$u20$as$u20$core..ops..drop..Drop$GT$::drop::h85b425d9896098cb /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/sync.rs:1419:12 (actix-example+0x71fcdd)
    #4 core::ptr::drop_in_place::hd9a2abcced33bc11 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:175:1 (actix-example+0x70941b)
    #5 core::ptr::drop_in_place::hc528c4235fbc5421 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:175:1 (actix-example+0x7077b2)
    #6 core::ptr::drop_in_place::h266cec611682b9e6 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:175:1 (actix-example+0x6fd9b9)
    #7 core::ptr::drop_in_place::hcb5b3d85ad190fad /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:175:1 (actix-example+0x707e0b)
    #8 core::ptr::drop_in_place::hf8766700a3faa88a /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:175:1 (actix-example+0x70aec9)
    #9 core::ptr::drop_in_place::h1f80eaa070e4d525 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:175:1 (actix-example+0x6fd1ff)
    #10 core::ptr::drop_in_place::hbed43214e847830f /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:175:1 (actix-example+0x706eda)
    #11 _$LT$alloc..vec..Vec$LT$T$GT$$u20$as$u20$core..ops..drop..Drop$GT$::drop::ha9f099bf3862ec8b /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/vec.rs:2635:13 (actix-example+0x65a91b)
    #12 core::ptr::drop_in_place::h3405047174d259f8 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:175:1 (actix-example+0x6fe83b)
    #13 core::ptr::drop_in_place::h44e488df05aa2a58 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:175:1 (actix-example+0x6ffd2f)
    #14 core::ptr::drop_in_place::ha825c4ed05637a49 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:175:1 (actix-example+0x705867)
    #15 tokio::runtime::task::core::Core$LT$T$C$S$GT$::drop_future_or_output::_$u7b$$u7b$closure$u7d$$u7d$::h292c09c5f942b468 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/task/core.rs:192:22 (actix-example+0x6bea9d)
    #16 tokio::loom::std::unsafe_cell::UnsafeCell$LT$T$GT$::with_mut::h9705f731ccda033f /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/loom/std/unsafe_cell.rs:14:9 (actix-example+0x71daf9)
    #17 tokio::runtime::task::core::Core$LT$T$C$S$GT$::drop_future_or_output::h8bb24447ee199524 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/task/core.rs:190:9 (actix-example+0x6be8af)
    #18 tokio::runtime::task::harness::Harness$LT$T$C$S$GT$::cancel_task::_$u7b$$u7b$closure$u7d$$u7d$::h2f301d66542db5b0 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/task/harness.rs:293:13 (actix-example+0x7237ef)
    #19 core::ops::function::FnOnce::call_once::heccca5564d6aca6d /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:227:5 (actix-example+0x6fb3bf)
    #20 _$LT$std..panic..AssertUnwindSafe$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$$LP$$RP$$GT$$GT$::call_once::h1fddaff041357ca8 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:308:9 (actix-example+0x73772b)
    #21 std::panicking::try::do_call::h518088f3edb62332 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:381:40 (actix-example+0x74610e)
    #22 __rust_try <null> (actix-example+0x74c6cb)
    #23 std::panicking::try::hff219df880d95c52 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:345:19 (actix-example+0x745c5c)
    #24 std::panic::catch_unwind::h4cdfd4c07c12237f /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:382:14 (actix-example+0x73b3cb)
    #25 tokio::runtime::task::harness::Harness$LT$T$C$S$GT$::cancel_task::h6a2208cd5e3642a8 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/task/harness.rs:292:19 (actix-example+0x722615)
    #26 tokio::runtime::task::harness::Harness$LT$T$C$S$GT$::shutdown::h499f6eeee1e86b36 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/task/harness.rs:285:9 (actix-example+0x7368d0)
    #27 tokio::runtime::task::raw::shutdown::h260155a3a9955ff2 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/task/raw.rs:130:5 (actix-example+0x6a98ca)
    #28 tokio::runtime::task::raw::RawTask::shutdown::h240f9122227e339d /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/task/raw.rs:90:18 (actix-example+0x12047df)
    #29 tokio::runtime::task::Task$LT$S$GT$::shutdown::h7c5ea5cc05a344ba /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/task/mod.rs:162:9 (actix-example+0x1211f68)
    #30 _$LT$tokio..task..local..LocalSet$u20$as$u20$core..ops..drop..Drop$GT$::drop::_$u7b$$u7b$closure$u7d$$u7d$::h4341da9fbe3590ba /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/task/local.rs:494:17 (actix-example+0x11932e7)
    #31 tokio::macros::scoped_tls::ScopedKey$LT$T$GT$::set::h585e9326d31b3531 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/macros/scoped_tls.rs:63:9 (actix-example+0x119ecbc)
    #32 tokio::task::local::LocalSet::with::hb616ba85a40aa8d6 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/task/local.rs:442:9 (actix-example+0x1192fef)
    #33 _$LT$tokio..task..local..LocalSet$u20$as$u20$core..ops..drop..Drop$GT$::drop::h159305115a3a2ef2 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/task/local.rs:484:9 (actix-example+0x1193078)
    #34 core::ptr::drop_in_place::hb5cea8441e56dd54 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:175:1 (actix-example+0x9b105b)
    #35 core::ptr::drop_in_place::hb4bd5bdbf7e39bc7 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:175:1 (actix-example+0x9b0f9b)
    #36 core::ptr::drop_in_place::h0e5d2f8f45d80b8d /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:175:1 (actix-example+0x25767b)
    #37 actix_example::main::h244ba57a5a1a7a29 /home/fede/IdeaProjects/actix-example/src/main.rs:36:17 (actix-example+0x1e42ee)
    #38 core::ops::function::FnOnce::call_once::hf6b2bfb9d1ac6ec4 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:227:5 (actix-example+0x255933)
    #39 std::sys_common::backtrace::__rust_begin_short_backtrace::h970e95cc59f2f480 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys_common/backtrace.rs:137:18 (actix-example+0x1e3dd9)
    #40 std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h5377ab51faec4a74 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/rt.rs:66:18 (actix-example+0x2ad749)
    #41 core::ops::function::impls::_$LT$impl$u20$core..ops..function..FnOnce$LT$A$GT$$u20$for$u20$$RF$F$GT$::call_once::h009d20b8a620bf60 /rustc/6af1bdda54abc9e919fc1137411dfc4311e05649/library/core/src/ops/function.rs:259:13 (actix-example+0x13cbe00)
    #42 std::panicking::try::do_call::h09431c39e2107c90 /rustc/6af1bdda54abc9e919fc1137411dfc4311e05649/library/std/src/panicking.rs:381:40 (actix-example+0x13cbe00)
    #43 std::panicking::try::he27cf60b958af343 /rustc/6af1bdda54abc9e919fc1137411dfc4311e05649/library/std/src/panicking.rs:345:19 (actix-example+0x13cbe00)
    #44 std::panic::catch_unwind::h7b646b0041dc5591 /rustc/6af1bdda54abc9e919fc1137411dfc4311e05649/library/std/src/panic.rs:382:14 (actix-example+0x13cbe00)
    #45 std::rt::lang_start_internal::hdad6c98af1e4747e /rustc/6af1bdda54abc9e919fc1137411dfc4311e05649/library/std/src/rt.rs:51:25 (actix-example+0x13cbe00)
    #46 main <null> (actix-example+0x1e4387)

  Thread T1 'actix-rt:worker' (tid=246478, running) created by main thread at:
    #0 pthread_create /rustc/llvm/src/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:966:3 (actix-example+0x9acab)
    #1 std::sys::unix::thread::Thread::new::h3c425fbab019e079 /rustc/6af1bdda54abc9e919fc1137411dfc4311e05649/library/std/src/sys/unix/thread.rs:66:19 (actix-example+0x13cf52c)
    #2 std::thread::Builder::spawn::hfa2465037bc6ff33 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/mod.rs:376:18 (actix-example+0x97275a)
    #3 actix_rt::arbiter::Arbiter::new::h813c8d3996f55a9a /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-1.1.1/src/arbiter.rs:112:22 (actix-example+0x9878c8)
    #4 actix_server::worker::Worker::start::hac32f54933f94542 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.4/src/worker.rs:173:9 (actix-example+0x6ac0ea)
    #5 actix_server::builder::ServerBuilder::start_worker::h2e8ca60ec1c2722c /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.4/src/builder.rs:304:9 (actix-example+0x6c67de)
    #6 actix_server::builder::ServerBuilder::run::_$u7b$$u7b$closure$u7d$$u7d$::ha559a247cbd0a591 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.4/src/builder.rs:268:34 (actix-example+0x6c63cb)
    #7 core::iter::adapters::map_fold::_$u7b$$u7b$closure$u7d$$u7d$::h86807781d01dbf7f /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/iter/adapters/mod.rs:895:28 (actix-example+0x67853f)
    #8 core::iter::traits::iterator::Iterator::fold::h5164f648220111e7 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/iter/traits/iterator.rs:1988:21 (actix-example+0x742065)
    #9 _$LT$core..iter..adapters..Map$LT$I$C$F$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$::fold::hfbdd17e4c678b747 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/iter/adapters/mod.rs:935:9 (actix-example+0x67dfbf)
    #10 core::iter::traits::iterator::Iterator::for_each::h8ad066a4fe7a9029 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/iter/traits/iterator.rs:645:9 (actix-example+0x6766f2)
    #11 _$LT$alloc..vec..Vec$LT$T$GT$$u20$as$u20$alloc..vec..SpecExtend$LT$T$C$I$GT$$GT$::spec_extend::hd3d9fe938b07e5fb /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/vec.rs:2377:17 (actix-example+0x65cfb7)
    #12 _$LT$alloc..vec..Vec$LT$T$GT$$u20$as$u20$alloc..vec..SpecFromIterNested$LT$T$C$I$GT$$GT$::from_iter::h406e8847fe36baf1 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/vec.rs:2149:9 (actix-example+0x663623)
    #13 _$LT$alloc..vec..Vec$LT$T$GT$$u20$as$u20$alloc..vec..SpecFromIter$LT$T$C$I$GT$$GT$::from_iter::he2fbec51dbe151f6 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/vec.rs:2159:9 (actix-example+0x65f2c6)
    #14 _$LT$alloc..vec..Vec$LT$T$GT$$u20$as$u20$core..iter..traits..collect..FromIterator$LT$T$GT$$GT$::from_iter::h90ad434d98c55636 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/vec.rs:1998:9 (actix-example+0x66427d)
    #15 core::iter::traits::iterator::Iterator::collect::h9e3fe36df624410c /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/iter/traits/iterator.rs:1637:9 (actix-example+0x676246)
    #16 actix_server::builder::ServerBuilder::run::h229290ef723821b9 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.4/src/builder.rs:266:27 (actix-example+0x6c5c9a)
    #17 actix_server::builder::ServerBuilder::start::h9b4664ce13be6162 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.4/src/builder.rs:255:9 (actix-example+0x6c58fa)
    #18 actix_web::server::HttpServer$LT$F$C$I$C$S$C$B$GT$::run::h161450ca74a1084f /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-3.0.2/src/server.rs:556:9 (actix-example+0x1c1291)
    #19 actix_example::main::_$u7b$$u7b$closure$u7d$$u7d$::hcde0a939aa3e44df /home/fede/IdeaProjects/actix-example/src/main.rs:66:5 (actix-example+0x1d1ca6)
    #20 _$LT$core..future..from_generator..GenFuture$LT$T$GT$$u20$as$u20$core..future..future..Future$GT$::poll::h6fe0ee3648155ec7 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/mod.rs:79:19 (actix-example+0x2fa0a8)
    #21 _$LT$tokio..task..local..RunUntil$LT$T$GT$$u20$as$u20$core..future..future..Future$GT$::poll::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::hee07648fc5c8a0f0 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/task/local.rs:528:65 (actix-example+0x137aca)
    #22 tokio::coop::with_budget::_$u7b$$u7b$closure$u7d$$u7d$::h2987fcb7c058d253 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/coop.rs:127:9 (actix-example+0x15bbb4)
    #23 std::thread::local::LocalKey$LT$T$GT$::try_with::h452c0ff41e6a3d7e /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:271:16 (actix-example+0x174bd3)
    #24 std::thread::local::LocalKey$LT$T$GT$::with::h1f124c113e6f1183 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:247:9 (actix-example+0x172986)
    #25 tokio::coop::with_budget::h13fe2281a2b1fe3e /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/coop.rs:120:5 (actix-example+0x137884)
    #26 tokio::coop::budget::h9246948f532cf2cd /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/coop.rs:96:5 (actix-example+0x137884)
    #27 _$LT$tokio..task..local..RunUntil$LT$T$GT$$u20$as$u20$core..future..future..Future$GT$::poll::_$u7b$$u7b$closure$u7d$$u7d$::hdd1714242c3b6bca /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/task/local.rs:528:42 (actix-example+0x137884)
    #28 tokio::macros::scoped_tls::ScopedKey$LT$T$GT$::set::hf0ce7055f05644da /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/macros/scoped_tls.rs:63:9 (actix-example+0x23d2bc)
    #29 tokio::task::local::LocalSet::with::h6da20df80e802a54 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/task/local.rs:442:9 (actix-example+0x136edd)
    #30 _$LT$tokio..task..local..RunUntil$LT$T$GT$$u20$as$u20$core..future..future..Future$GT$::poll::hea054030e8e34529 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/task/local.rs:518:9 (actix-example+0x1375c7)
    #31 tokio::task::local::LocalSet::run_until::_$u7b$$u7b$closure$u7d$$u7d$::hbea4b0bd9079ee5c /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/task/local.rs:392:9 (actix-example+0x13731d)
    #32 _$LT$core..future..from_generator..GenFuture$LT$T$GT$$u20$as$u20$core..future..future..Future$GT$::poll::hd1755221e7af20b9 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/mod.rs:79:19 (actix-example+0x2fcc48)
    #33 tokio::runtime::basic_scheduler::BasicScheduler$LT$P$GT$::block_on::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h1e81ed746bac1bed /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/basic_scheduler.rs:131:58 (actix-example+0x36cffc)
    #34 tokio::coop::with_budget::_$u7b$$u7b$closure$u7d$$u7d$::h616d931032a1514e /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/coop.rs:127:9 (actix-example+0x15bd84)
    #35 std::thread::local::LocalKey$LT$T$GT$::try_with::hf6bb0876f12cf001 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:271:16 (actix-example+0x176bd3)
    #36 std::thread::local::LocalKey$LT$T$GT$::with::hd87df1e196f0949c /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:247:9 (actix-example+0x1737b6)
    #37 tokio::coop::with_budget::h859262687bbe7664 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/coop.rs:120:5 (actix-example+0x36c7c1)
    #38 tokio::coop::budget::h7554ead224117bb9 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/coop.rs:96:5 (actix-example+0x36c7c1)
    #39 tokio::runtime::basic_scheduler::BasicScheduler$LT$P$GT$::block_on::_$u7b$$u7b$closure$u7d$$u7d$::h9be3ad14cbec0dca /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/basic_scheduler.rs:131:35 (actix-example+0x36c7c1)
    #40 tokio::runtime::basic_scheduler::enter::_$u7b$$u7b$closure$u7d$$u7d$::h59b954527a929e53 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/basic_scheduler.rs:213:29 (actix-example+0x36d76c)
    #41 tokio::macros::scoped_tls::ScopedKey$LT$T$GT$::set::h160af5b3492ef4d3 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/macros/scoped_tls.rs:63:9 (actix-example+0x23d0cc)
    #42 tokio::runtime::basic_scheduler::enter::hcb1f6554e5294c5b /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/basic_scheduler.rs:213:5 (actix-example+0x36d575)
    #43 tokio::runtime::basic_scheduler::BasicScheduler$LT$P$GT$::block_on::hbbcee9f80d79c2e8 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/basic_scheduler.rs:123:9 (actix-example+0x36c44f)
    #44 tokio::runtime::Runtime::block_on::_$u7b$$u7b$closure$u7d$$u7d$::hf3cec2882643dd39 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/mod.rs:444:34 (actix-example+0x35bb25)
    #45 tokio::runtime::context::enter::hce29e2101fe55ea0 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/context.rs:72:5 (actix-example+0x1b145d)
    #46 tokio::runtime::handle::Handle::enter::h032e0cda58408c79 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/handle.rs:76:9 (actix-example+0x171fb7)
    #47 tokio::runtime::Runtime::block_on::h6c336eff70280e78 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/mod.rs:441:9 (actix-example+0x35b888)
    #48 tokio::task::local::LocalSet::block_on::h4ff6781ef742ece3 /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/task/local.rs:353:9 (actix-example+0x136fbc)
    #49 actix_rt::runtime::Runtime::block_on::h3f7e781cd48f76dc /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-1.1.1/src/runtime.rs:89:9 (actix-example+0x1f01ed)
    #50 actix_rt::builder::SystemRunner::block_on::hf3f631b83c19b0ca /home/fede/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-1.1.1/src/builder.rs:187:19 (actix-example+0x2ab89d)
    #51 actix_example::main::h244ba57a5a1a7a29 /home/fede/IdeaProjects/actix-example/src/main.rs:36:1 (actix-example+0x1e42d4)
    #52 core::ops::function::FnOnce::call_once::hf6b2bfb9d1ac6ec4 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:227:5 (actix-example+0x255933)
    #53 std::sys_common::backtrace::__rust_begin_short_backtrace::h970e95cc59f2f480 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys_common/backtrace.rs:137:18 (actix-example+0x1e3dd9)
    #54 std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h5377ab51faec4a74 /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/rt.rs:66:18 (actix-example+0x2ad749)
    #55 core::ops::function::impls::_$LT$impl$u20$core..ops..function..FnOnce$LT$A$GT$$u20$for$u20$$RF$F$GT$::call_once::h009d20b8a620bf60 /rustc/6af1bdda54abc9e919fc1137411dfc4311e05649/library/core/src/ops/function.rs:259:13 (actix-example+0x13cbe00)
    #56 std::panicking::try::do_call::h09431c39e2107c90 /rustc/6af1bdda54abc9e919fc1137411dfc4311e05649/library/std/src/panicking.rs:381:40 (actix-example+0x13cbe00)
    #57 std::panicking::try::he27cf60b958af343 /rustc/6af1bdda54abc9e919fc1137411dfc4311e05649/library/std/src/panicking.rs:345:19 (actix-example+0x13cbe00)
    #58 std::panic::catch_unwind::h7b646b0041dc5591 /rustc/6af1bdda54abc9e919fc1137411dfc4311e05649/library/std/src/panic.rs:382:14 (actix-example+0x13cbe00)
    #59 std::rt::lang_start_internal::hdad6c98af1e4747e /rustc/6af1bdda54abc9e919fc1137411dfc4311e05649/library/std/src/rt.rs:51:25 (actix-example+0x13cbe00)
    #60 main <null> (actix-example+0x1e4387)

SUMMARY: ThreadSanitizer: data race /home/fede/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/alloc.rs:92:14 in alloc::alloc::dealloc::h69cae1c969dff8b7
==================
ThreadSanitizer: reported 17 warnings
fggarcia commented 4 years ago

doing a research.... I find that the problem is bb8 used into cdrs. I will close the issue. Thank you so much @robjtede. Sorry for open a issue in actix

robjtede commented 4 years ago

No problem @fggarcia feel free to drop some helpful details here if you like to help any wanderers from the future :)