diff --git a/Cargo.lock b/Cargo.lock index f2fcc8b187..7ff6cbd6ec 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2913,7 +2913,7 @@ dependencies = [ "libc", "spin 0.9.8", "untrusted 0.9.0", - "windows-sys", + "windows-sys 0.48.0", ] [[package]] diff --git a/examples/examples/z_get.rs b/examples/examples/z_get.rs index 57c36c2e62..092e206d0a 100644 --- a/examples/examples/z_get.rs +++ b/examples/examples/z_get.rs @@ -28,26 +28,26 @@ async fn main() { println!("Opening session..."); let session = zenoh::open(config).res().await.unwrap(); - println!("Sending Query '{selector}'..."); - let replies = match value { - Some(value) => session.get(&selector).with_value(value), - None => session.get(&selector), - } - .target(target) - .timeout(timeout) - .res() - .await - .unwrap(); - while let Ok(reply) = replies.recv_async().await { - match reply.sample { - Ok(sample) => println!( - ">> Received ('{}': '{}')", - sample.key_expr.as_str(), - sample.value, - ), - Err(err) => println!(">> Received (ERROR: '{}')", String::try_from(&err).unwrap()), - } - } + // println!("Sending Query '{selector}'..."); + // let replies = match value { + // Some(value) => session.get(&selector).with_value(value), + // None => session.get(&selector), + // } + // .target(target) + // .timeout(timeout) + // .res() + // .await + // .unwrap(); + // while let Ok(reply) = replies.recv_async().await { + // match reply.sample { + // Ok(sample) => println!( + // ">> Received ('{}': '{}')", + // sample.key_expr.as_str(), + // sample.value, + // ), + // Err(err) => println!(">> Received (ERROR: '{}')", String::try_from(&err).unwrap()), + // } + // } } #[derive(clap::ValueEnum, Clone, Copy, Debug)] diff --git a/io/zenoh-link-commons/src/unicast.rs b/io/zenoh-link-commons/src/unicast.rs index d44686ff50..d028c24605 100644 --- a/io/zenoh-link-commons/src/unicast.rs +++ b/io/zenoh-link-commons/src/unicast.rs @@ -31,6 +31,7 @@ pub trait LinkManagerUnicastTrait: Send + Sync { fn get_locators(&self) -> Vec; } pub type NewLinkChannelSender = flume::Sender; +pub type WeakNewLinkChannelSender = flume::WeakSender; pub trait ConstructibleLinkManagerUnicast: Sized { fn new(new_link_sender: NewLinkChannelSender, config: T) -> ZResult; } diff --git a/io/zenoh-transport/src/manager.rs b/io/zenoh-transport/src/manager.rs index 3c225274aa..5d8a55e8b4 100644 --- a/io/zenoh-transport/src/manager.rs +++ b/io/zenoh-transport/src/manager.rs @@ -26,7 +26,7 @@ use std::sync::Arc; use std::time::Duration; use zenoh_config::{Config, LinkRxConf, QueueConf, QueueSizeConf}; use zenoh_crypto::{BlockCipher, PseudoRng}; -use zenoh_link::NewLinkChannelSender; +use zenoh_link::{NewLinkChannelSender, WeakNewLinkChannelSender}; use zenoh_protocol::{ core::{EndPoint, Field, Locator, Priority, Resolution, WhatAmI, ZenohId}, transport::BatchSize, @@ -105,6 +105,12 @@ pub struct TransportManagerConfig { pub protocols: Vec, } +impl Drop for TransportManagerConfig { + fn drop(&mut self) { + panic!("TransportManagerConfig DROPPED!"); + } +} + pub struct TransportManagerState { pub unicast: TransportManagerStateUnicast, pub multicast: TransportManagerStateMulticast, @@ -362,7 +368,51 @@ pub struct TransportManager { pub(crate) stats: Arc, } +struct WeakChannelTransportManager { + pub config: Arc, + pub(crate) state: Arc, + pub(crate) prng: Arc>, + pub(crate) cipher: Arc, + pub(crate) locator_inspector: zenoh_link::LocatorInspector, + pub(crate) new_unicast_link_sender: WeakNewLinkChannelSender, + pub(crate) tx_executor: TransportExecutor, + #[cfg(feature = "stats")] + pub(crate) stats: Arc, +} + +impl WeakChannelTransportManager { + fn upgrage(&self) -> Option { + self.new_unicast_link_sender + .upgrade() + .map(|new_unicast_link_sender| TransportManager { + config: self.config.clone(), + state: self.state.clone(), + prng: self.prng.clone(), + cipher: self.cipher.clone(), + locator_inspector: self.locator_inspector.clone(), + new_unicast_link_sender, + tx_executor: self.tx_executor.clone(), + #[cfg(feature = "stats")] + stats: self.stats.clone(), + }) + } +} + impl TransportManager { + fn downgrade(self) -> WeakChannelTransportManager { + WeakChannelTransportManager { + config: self.config, + state: self.state, + prng: self.prng, + cipher: self.cipher, + locator_inspector: self.locator_inspector, + new_unicast_link_sender: self.new_unicast_link_sender.downgrade(), + tx_executor: self.tx_executor, + #[cfg(feature = "stats")] + stats: self.stats, + } + } + pub fn new(params: TransportManagerParams, mut prng: PseudoRng) -> TransportManager { // Initialize the Cipher let mut key = [0_u8; BlockCipher::BLOCK_SIZE]; @@ -387,10 +437,14 @@ impl TransportManager { // @TODO: this should be moved into the unicast module async_std::task::spawn({ - let this = this.clone(); + let this = this.clone().downgrade(); async move { while let Ok(link) = new_unicast_link_receiver.recv_async().await { - this.handle_new_link_unicast(link).await; + if let Some(tm) = this.upgrage() { + tm.handle_new_link_unicast(link).await; + } else { + break; + } } } }); diff --git a/r.txt b/r.txt new file mode 100644 index 0000000000..91e3099a54 --- /dev/null +++ b/r.txt @@ -0,0 +1,2753 @@ +Opening session... +Runtime::clone() - Arc count: 2, id: 0, parent: 255 + 0: ::clone + at ./zenoh/src/net/runtime/mod.rs:85:23 + 1: zenoh::net::runtime::Runtime::init::{{closure}} + at ./zenoh/src/net/runtime/mod.rs:235:50 + 2: zenoh::session::Session::new::{{closure}} + at ./zenoh/src/session.rs:843:41 + 3: as core::future::future::Future>::poll::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:199:17 + 4: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 5: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 6: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 7: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 8: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:197:13 + 9: futures_lite::future::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:89:27 + 10: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 11: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 12: futures_lite::future::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:79:5 + 13: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:173:25 + 14: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 15: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 16: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 17: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 18: async_std::task::builder::Builder::blocking::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:168:17 + 19: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 20: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 21: async_std::task::builder::Builder::blocking + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:161:9 + 22: async_std::task::block_on::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/block_on.rs:33:5 + 23: as zenoh_core::SyncResolve>::res_sync + at ./commons/zenoh-core/src/lib.rs:166:9 + 24: as zenoh_core::SyncResolve>::res_sync + at ./zenoh/src/lib.rs:305:9 + 25: as zenoh_core::AsyncResolve>::res_async + at ./zenoh/src/lib.rs:317:28 + 26: zenoh_core::AsyncResolve::res + at ./commons/zenoh-core/src/lib.rs:46:9 + 27: z_get::main::main::{{closure}} + at ./examples/examples/z_get.rs:29:19 + 28: z_get::main::{{closure}} + at ./examples/examples/z_get.rs:21:1 + 29: as core::future::future::Future>::poll::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:199:17 + 30: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 31: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 32: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 33: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 34: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:197:13 + 35: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:526:33 + 36: async_executor::Executor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:243:32 + 37: async_executor::LocalExecutor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:447:34 + 38: async_io::driver::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-io-1.13.0/src/driver.rs:146:33 + 39: async_global_executor::reactor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:3:18 + 40: async_global_executor::reactor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:12:5 + 41: async_global_executor::executor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:36 + 42: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 43: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 44: async_global_executor::executor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:5 + 45: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:171:25 + 46: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 47: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 48: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 49: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 50: async_std::task::builder::Builder::blocking::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:168:17 + 51: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 52: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 53: async_std::task::builder::Builder::blocking + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:161:9 + 54: async_std::task::block_on::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/block_on.rs:33:5 + 55: z_get::main + at ./examples/examples/z_get.rs:21:1 + 56: core::ops::function::FnOnce::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:250:5 + 57: std::sys_common::backtrace::__rust_begin_short_backtrace + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:135:18 + 58: std::rt::lang_start::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:166:18 + 59: core::ops::function::impls:: for &F>::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:284:13 + 60: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 61: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 62: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 63: std::rt::lang_start_internal::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:48 + 64: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 65: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 66: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 67: std::rt::lang_start_internal + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:20 + 68: std::rt::lang_start + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:165:17 + 69: main + 70: __libc_start_call_main + at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16 + 71: __libc_start_main_impl + at ./csu/../csu/libc-start.c:392:3 + 72: _start + +Runtime::clone() - Arc count: 2, id: 0, parent: 255 + 0: ::drop + at ./zenoh/src/net/runtime/mod.rs:134:23 + 1: core::ptr::drop_in_place + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ptr/mod.rs:497:1 + 2: >::from + at ./zenoh/src/net/runtime/mod.rs:129:5 + 3: >::into + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/convert/mod.rs:716:9 + 4: zenoh::net::runtime::Runtime::init::{{closure}} + at ./zenoh/src/net/runtime/mod.rs:235:50 + 5: zenoh::session::Session::new::{{closure}} + at ./zenoh/src/session.rs:843:41 + 6: as core::future::future::Future>::poll::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:199:17 + 7: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 8: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 9: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 10: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 11: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:197:13 + 12: futures_lite::future::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:89:27 + 13: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 14: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 15: futures_lite::future::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:79:5 + 16: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:173:25 + 17: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 18: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 19: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 20: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 21: async_std::task::builder::Builder::blocking::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:168:17 + 22: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 23: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 24: async_std::task::builder::Builder::blocking + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:161:9 + 25: async_std::task::block_on::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/block_on.rs:33:5 + 26: as zenoh_core::SyncResolve>::res_sync + at ./commons/zenoh-core/src/lib.rs:166:9 + 27: as zenoh_core::SyncResolve>::res_sync + at ./zenoh/src/lib.rs:305:9 + 28: as zenoh_core::AsyncResolve>::res_async + at ./zenoh/src/lib.rs:317:28 + 29: zenoh_core::AsyncResolve::res + at ./commons/zenoh-core/src/lib.rs:46:9 + 30: z_get::main::main::{{closure}} + at ./examples/examples/z_get.rs:29:19 + 31: z_get::main::{{closure}} + at ./examples/examples/z_get.rs:21:1 + 32: as core::future::future::Future>::poll::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:199:17 + 33: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 34: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 35: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 36: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 37: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:197:13 + 38: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:526:33 + 39: async_executor::Executor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:243:32 + 40: async_executor::LocalExecutor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:447:34 + 41: async_io::driver::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-io-1.13.0/src/driver.rs:146:33 + 42: async_global_executor::reactor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:3:18 + 43: async_global_executor::reactor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:12:5 + 44: async_global_executor::executor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:36 + 45: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 46: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 47: async_global_executor::executor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:5 + 48: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:171:25 + 49: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 50: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 51: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 52: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 53: async_std::task::builder::Builder::blocking::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:168:17 + 54: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 55: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 56: async_std::task::builder::Builder::blocking + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:161:9 + 57: async_std::task::block_on::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/block_on.rs:33:5 + 58: z_get::main + at ./examples/examples/z_get.rs:21:1 + 59: core::ops::function::FnOnce::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:250:5 + 60: std::sys_common::backtrace::__rust_begin_short_backtrace + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:135:18 + 61: std::rt::lang_start::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:166:18 + 62: core::ops::function::impls:: for &F>::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:284:13 + 63: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 64: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 65: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 66: std::rt::lang_start_internal::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:48 + 67: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 68: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 69: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 70: std::rt::lang_start_internal + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:20 + 71: std::rt::lang_start + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:165:17 + 72: main + 73: __libc_start_call_main + at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16 + 74: __libc_start_main_impl + at ./csu/../csu/libc-start.c:392:3 + 75: _start + +Runtime::clone() - Arc count: 2, id: 1, parent: 255 + 0: ::clone + at ./zenoh/src/net/runtime/mod.rs:85:23 + 1: zenoh::net::runtime::Runtime::init::{{closure}} + at ./zenoh/src/net/runtime/mod.rs:237:13 + 2: zenoh::session::Session::new::{{closure}} + at ./zenoh/src/session.rs:843:41 + 3: as core::future::future::Future>::poll::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:199:17 + 4: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 5: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 6: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 7: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 8: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:197:13 + 9: futures_lite::future::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:89:27 + 10: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 11: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 12: futures_lite::future::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:79:5 + 13: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:173:25 + 14: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 15: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 16: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 17: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 18: async_std::task::builder::Builder::blocking::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:168:17 + 19: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 20: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 21: async_std::task::builder::Builder::blocking + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:161:9 + 22: async_std::task::block_on::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/block_on.rs:33:5 + 23: as zenoh_core::SyncResolve>::res_sync + at ./commons/zenoh-core/src/lib.rs:166:9 + 24: as zenoh_core::SyncResolve>::res_sync + at ./zenoh/src/lib.rs:305:9 + 25: as zenoh_core::AsyncResolve>::res_async + at ./zenoh/src/lib.rs:317:28 + 26: zenoh_core::AsyncResolve::res + at ./commons/zenoh-core/src/lib.rs:46:9 + 27: z_get::main::main::{{closure}} + at ./examples/examples/z_get.rs:29:19 + 28: z_get::main::{{closure}} + at ./examples/examples/z_get.rs:21:1 + 29: as core::future::future::Future>::poll::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:199:17 + 30: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 31: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 32: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 33: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 34: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:197:13 + 35: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:526:33 + 36: async_executor::Executor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:243:32 + 37: async_executor::LocalExecutor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:447:34 + 38: async_io::driver::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-io-1.13.0/src/driver.rs:146:33 + 39: async_global_executor::reactor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:3:18 + 40: async_global_executor::reactor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:12:5 + 41: async_global_executor::executor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:36 + 42: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 43: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 44: async_global_executor::executor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:5 + 45: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:171:25 + 46: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 47: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 48: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 49: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 50: async_std::task::builder::Builder::blocking::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:168:17 + 51: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 52: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 53: async_std::task::builder::Builder::blocking + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:161:9 + 54: async_std::task::block_on::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/block_on.rs:33:5 + 55: z_get::main + at ./examples/examples/z_get.rs:21:1 + 56: core::ops::function::FnOnce::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:250:5 + 57: std::sys_common::backtrace::__rust_begin_short_backtrace + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:135:18 + 58: std::rt::lang_start::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:166:18 + 59: core::ops::function::impls:: for &F>::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:284:13 + 60: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 61: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 62: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 63: std::rt::lang_start_internal::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:48 + 64: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 65: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 66: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 67: std::rt::lang_start_internal + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:20 + 68: std::rt::lang_start + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:165:17 + 69: main + 70: __libc_start_call_main + at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16 + 71: __libc_start_main_impl + at ./csu/../csu/libc-start.c:392:3 + 72: _start + +Runtime::clone() - Arc count: 3, id: 2, parent: 1 + 0: ::clone + at ./zenoh/src/net/runtime/mod.rs:85:23 + 1: zenoh::net::routing::router::Router::init_link_state + at ./zenoh/src/net/routing/router.rs:532:17 + 2: zenoh::net::runtime::Runtime::init::{{closure}} + at ./zenoh/src/net/runtime/mod.rs:236:9 + 3: zenoh::session::Session::new::{{closure}} + at ./zenoh/src/session.rs:843:41 + 4: as core::future::future::Future>::poll::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:199:17 + 5: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 6: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 7: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 8: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 9: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:197:13 + 10: futures_lite::future::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:89:27 + 11: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 12: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 13: futures_lite::future::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:79:5 + 14: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:173:25 + 15: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 16: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 17: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 18: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 19: async_std::task::builder::Builder::blocking::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:168:17 + 20: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 21: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 22: async_std::task::builder::Builder::blocking + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:161:9 + 23: async_std::task::block_on::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/block_on.rs:33:5 + 24: as zenoh_core::SyncResolve>::res_sync + at ./commons/zenoh-core/src/lib.rs:166:9 + 25: as zenoh_core::SyncResolve>::res_sync + at ./zenoh/src/lib.rs:305:9 + 26: as zenoh_core::AsyncResolve>::res_async + at ./zenoh/src/lib.rs:317:28 + 27: zenoh_core::AsyncResolve::res + at ./commons/zenoh-core/src/lib.rs:46:9 + 28: z_get::main::main::{{closure}} + at ./examples/examples/z_get.rs:29:19 + 29: z_get::main::{{closure}} + at ./examples/examples/z_get.rs:21:1 + 30: as core::future::future::Future>::poll::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:199:17 + 31: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 32: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 33: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 34: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 35: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:197:13 + 36: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:526:33 + 37: async_executor::Executor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:243:32 + 38: async_executor::LocalExecutor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:447:34 + 39: async_io::driver::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-io-1.13.0/src/driver.rs:146:33 + 40: async_global_executor::reactor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:3:18 + 41: async_global_executor::reactor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:12:5 + 42: async_global_executor::executor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:36 + 43: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 44: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 45: async_global_executor::executor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:5 + 46: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:171:25 + 47: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 48: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 49: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 50: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 51: async_std::task::builder::Builder::blocking::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:168:17 + 52: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 53: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 54: async_std::task::builder::Builder::blocking + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:161:9 + 55: async_std::task::block_on::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/block_on.rs:33:5 + 56: z_get::main + at ./examples/examples/z_get.rs:21:1 + 57: core::ops::function::FnOnce::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:250:5 + 58: std::sys_common::backtrace::__rust_begin_short_backtrace + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:135:18 + 59: std::rt::lang_start::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:166:18 + 60: core::ops::function::impls:: for &F>::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:284:13 + 61: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 62: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 63: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 64: std::rt::lang_start_internal::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:48 + 65: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 66: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 67: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 68: std::rt::lang_start_internal + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:20 + 69: std::rt::lang_start + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:165:17 + 70: main + 71: __libc_start_call_main + at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16 + 72: __libc_start_main_impl + at ./csu/../csu/libc-start.c:392:3 + 73: _start + +Runtime::clone() - Arc count: 3, id: 2, parent: 1 + 0: ::drop + at ./zenoh/src/net/runtime/mod.rs:134:23 + 1: core::ptr::drop_in_place + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ptr/mod.rs:497:1 + 2: >::from + at ./zenoh/src/net/runtime/mod.rs:129:5 + 3: >::into + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/convert/mod.rs:716:9 + 4: zenoh::net::routing::network::Network::new + at ./zenoh/src/net/routing/network.rs:159:22 + 5: zenoh::net::routing::router::Router::init_link_state + at ./zenoh/src/net/routing/router.rs:529:39 + 6: zenoh::net::runtime::Runtime::init::{{closure}} + at ./zenoh/src/net/runtime/mod.rs:236:9 + 7: zenoh::session::Session::new::{{closure}} + at ./zenoh/src/session.rs:843:41 + 8: as core::future::future::Future>::poll::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:199:17 + 9: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 10: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 11: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 12: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 13: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:197:13 + 14: futures_lite::future::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:89:27 + 15: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 16: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 17: futures_lite::future::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:79:5 + 18: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:173:25 + 19: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 20: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 21: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 22: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 23: async_std::task::builder::Builder::blocking::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:168:17 + 24: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 25: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 26: async_std::task::builder::Builder::blocking + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:161:9 + 27: async_std::task::block_on::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/block_on.rs:33:5 + 28: as zenoh_core::SyncResolve>::res_sync + at ./commons/zenoh-core/src/lib.rs:166:9 + 29: as zenoh_core::SyncResolve>::res_sync + at ./zenoh/src/lib.rs:305:9 + 30: as zenoh_core::AsyncResolve>::res_async + at ./zenoh/src/lib.rs:317:28 + 31: zenoh_core::AsyncResolve::res + at ./commons/zenoh-core/src/lib.rs:46:9 + 32: z_get::main::main::{{closure}} + at ./examples/examples/z_get.rs:29:19 + 33: z_get::main::{{closure}} + at ./examples/examples/z_get.rs:21:1 + 34: as core::future::future::Future>::poll::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:199:17 + 35: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 36: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 37: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 38: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 39: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:197:13 + 40: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:526:33 + 41: async_executor::Executor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:243:32 + 42: async_executor::LocalExecutor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:447:34 + 43: async_io::driver::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-io-1.13.0/src/driver.rs:146:33 + 44: async_global_executor::reactor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:3:18 + 45: async_global_executor::reactor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:12:5 + 46: async_global_executor::executor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:36 + 47: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 48: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 49: async_global_executor::executor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:5 + 50: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:171:25 + 51: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 52: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 53: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 54: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 55: async_std::task::builder::Builder::blocking::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:168:17 + 56: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 57: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 58: async_std::task::builder::Builder::blocking + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:161:9 + 59: async_std::task::block_on::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/block_on.rs:33:5 + 60: z_get::main + at ./examples/examples/z_get.rs:21:1 + 61: core::ops::function::FnOnce::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:250:5 + 62: std::sys_common::backtrace::__rust_begin_short_backtrace + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:135:18 + 63: std::rt::lang_start::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:166:18 + 64: core::ops::function::impls:: for &F>::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:284:13 + 65: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 66: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 67: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 68: std::rt::lang_start_internal::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:48 + 69: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 70: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 71: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 72: std::rt::lang_start_internal + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:20 + 73: std::rt::lang_start + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:165:17 + 74: main + 75: __libc_start_call_main + at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16 + 76: __libc_start_main_impl + at ./csu/../csu/libc-start.c:392:3 + 77: _start + +Runtime::clone() - Arc count: 2, id: 1, parent: 255 + 0: ::drop + at ./zenoh/src/net/runtime/mod.rs:134:23 + 1: core::ptr::drop_in_place + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ptr/mod.rs:497:1 + 2: >::from + at ./zenoh/src/net/runtime/mod.rs:129:5 + 3: >::into + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/convert/mod.rs:716:9 + 4: zenoh::net::routing::network::Network::new + at ./zenoh/src/net/routing/network.rs:159:22 + 5: zenoh::net::routing::router::Router::init_link_state + at ./zenoh/src/net/routing/router.rs:541:37 + 6: zenoh::net::runtime::Runtime::init::{{closure}} + at ./zenoh/src/net/runtime/mod.rs:236:9 + 7: zenoh::session::Session::new::{{closure}} + at ./zenoh/src/session.rs:843:41 + 8: as core::future::future::Future>::poll::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:199:17 + 9: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 10: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 11: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 12: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 13: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:197:13 + 14: futures_lite::future::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:89:27 + 15: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 16: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 17: futures_lite::future::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:79:5 + 18: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:173:25 + 19: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 20: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 21: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 22: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 23: async_std::task::builder::Builder::blocking::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:168:17 + 24: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 25: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 26: async_std::task::builder::Builder::blocking + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:161:9 + 27: async_std::task::block_on::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/block_on.rs:33:5 + 28: as zenoh_core::SyncResolve>::res_sync + at ./commons/zenoh-core/src/lib.rs:166:9 + 29: as zenoh_core::SyncResolve>::res_sync + at ./zenoh/src/lib.rs:305:9 + 30: as zenoh_core::AsyncResolve>::res_async + at ./zenoh/src/lib.rs:317:28 + 31: zenoh_core::AsyncResolve::res + at ./commons/zenoh-core/src/lib.rs:46:9 + 32: z_get::main::main::{{closure}} + at ./examples/examples/z_get.rs:29:19 + 33: z_get::main::{{closure}} + at ./examples/examples/z_get.rs:21:1 + 34: as core::future::future::Future>::poll::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:199:17 + 35: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 36: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 37: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 38: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 39: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:197:13 + 40: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:526:33 + 41: async_executor::Executor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:243:32 + 42: async_executor::LocalExecutor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:447:34 + 43: async_io::driver::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-io-1.13.0/src/driver.rs:146:33 + 44: async_global_executor::reactor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:3:18 + 45: async_global_executor::reactor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:12:5 + 46: async_global_executor::executor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:36 + 47: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 48: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 49: async_global_executor::executor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:5 + 50: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:171:25 + 51: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 52: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 53: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 54: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 55: async_std::task::builder::Builder::blocking::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:168:17 + 56: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 57: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 58: async_std::task::builder::Builder::blocking + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:161:9 + 59: async_std::task::block_on::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/block_on.rs:33:5 + 60: z_get::main + at ./examples/examples/z_get.rs:21:1 + 61: core::ops::function::FnOnce::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:250:5 + 62: std::sys_common::backtrace::__rust_begin_short_backtrace + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:135:18 + 63: std::rt::lang_start::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:166:18 + 64: core::ops::function::impls:: for &F>::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:284:13 + 65: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 66: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 67: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 68: std::rt::lang_start_internal::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:48 + 69: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 70: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 71: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 72: std::rt::lang_start_internal + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:20 + 73: std::rt::lang_start + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:165:17 + 74: main + 75: __libc_start_call_main + at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16 + 76: __libc_start_main_impl + at ./csu/../csu/libc-start.c:392:3 + 77: _start + +Runtime::clone() - Arc count: 2, id: 3, parent: 255 + 0: ::clone + at ./zenoh/src/net/runtime/mod.rs:85:23 + 1: zenoh::net::runtime::Runtime::init::{{closure}} + at ./zenoh/src/net/runtime/mod.rs:248:28 + 2: zenoh::session::Session::new::{{closure}} + at ./zenoh/src/session.rs:843:41 + 3: as core::future::future::Future>::poll::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:199:17 + 4: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 5: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 6: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 7: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 8: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:197:13 + 9: futures_lite::future::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:89:27 + 10: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 11: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 12: futures_lite::future::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:79:5 + 13: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:173:25 + 14: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 15: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 16: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 17: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 18: async_std::task::builder::Builder::blocking::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:168:17 + 19: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 20: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 21: async_std::task::builder::Builder::blocking + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:161:9 + 22: async_std::task::block_on::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/block_on.rs:33:5 + 23: as zenoh_core::SyncResolve>::res_sync + at ./commons/zenoh-core/src/lib.rs:166:9 + 24: as zenoh_core::SyncResolve>::res_sync + at ./zenoh/src/lib.rs:305:9 + 25: as zenoh_core::AsyncResolve>::res_async + at ./zenoh/src/lib.rs:317:28 + 26: zenoh_core::AsyncResolve::res + at ./commons/zenoh-core/src/lib.rs:46:9 + 27: z_get::main::main::{{closure}} + at ./examples/examples/z_get.rs:29:19 + 28: z_get::main::{{closure}} + at ./examples/examples/z_get.rs:21:1 + 29: as core::future::future::Future>::poll::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:199:17 + 30: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 31: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 32: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 33: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 34: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:197:13 + 35: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:526:33 + 36: async_executor::Executor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:243:32 + 37: async_executor::LocalExecutor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:447:34 + 38: async_io::driver::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-io-1.13.0/src/driver.rs:146:33 + 39: async_global_executor::reactor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:3:18 + 40: async_global_executor::reactor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:12:5 + 41: async_global_executor::executor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:36 + 42: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 43: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 44: async_global_executor::executor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:5 + 45: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:171:25 + 46: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 47: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 48: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 49: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 50: async_std::task::builder::Builder::blocking::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:168:17 + 51: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 52: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 53: async_std::task::builder::Builder::blocking + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:161:9 + 54: async_std::task::block_on::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/block_on.rs:33:5 + 55: z_get::main + at ./examples/examples/z_get.rs:21:1 + 56: core::ops::function::FnOnce::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:250:5 + 57: std::sys_common::backtrace::__rust_begin_short_backtrace + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:135:18 + 58: std::rt::lang_start::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:166:18 + 59: core::ops::function::impls:: for &F>::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:284:13 + 60: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 61: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 62: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 63: std::rt::lang_start_internal::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:48 + 64: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 65: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 66: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 67: std::rt::lang_start_internal + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:20 + 68: std::rt::lang_start + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:165:17 + 69: main + 70: __libc_start_call_main + at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16 + 71: __libc_start_main_impl + at ./csu/../csu/libc-start.c:392:3 + 72: _start + +Runtime::clone() - Arc count: 3, id: 4, parent: 255 + 0: ::clone + at ./zenoh/src/net/runtime/mod.rs:85:23 + 1: zenoh::session::Session::new::{{closure}} + at ./zenoh/src/session.rs:846:25 + 2: as core::future::future::Future>::poll::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:199:17 + 3: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 4: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 5: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 6: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 7: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:197:13 + 8: futures_lite::future::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:89:27 + 9: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 10: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 11: futures_lite::future::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:79:5 + 12: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:173:25 + 13: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 14: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 15: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 16: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 17: async_std::task::builder::Builder::blocking::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:168:17 + 18: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 19: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 20: async_std::task::builder::Builder::blocking + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:161:9 + 21: async_std::task::block_on::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/block_on.rs:33:5 + 22: as zenoh_core::SyncResolve>::res_sync + at ./commons/zenoh-core/src/lib.rs:166:9 + 23: as zenoh_core::SyncResolve>::res_sync + at ./zenoh/src/lib.rs:305:9 + 24: as zenoh_core::AsyncResolve>::res_async + at ./zenoh/src/lib.rs:317:28 + 25: zenoh_core::AsyncResolve::res + at ./commons/zenoh-core/src/lib.rs:46:9 + 26: z_get::main::main::{{closure}} + at ./examples/examples/z_get.rs:29:19 + 27: z_get::main::{{closure}} + at ./examples/examples/z_get.rs:21:1 + 28: as core::future::future::Future>::poll::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:199:17 + 29: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 30: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 31: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 32: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 33: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:197:13 + 34: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:526:33 + 35: async_executor::Executor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:243:32 + 36: async_executor::LocalExecutor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:447:34 + 37: async_io::driver::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-io-1.13.0/src/driver.rs:146:33 + 38: async_global_executor::reactor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:3:18 + 39: async_global_executor::reactor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:12:5 + 40: async_global_executor::executor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:36 + 41: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 42: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 43: async_global_executor::executor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:5 + 44: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:171:25 + 45: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 46: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 47: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 48: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 49: async_std::task::builder::Builder::blocking::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:168:17 + 50: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 51: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 52: async_std::task::builder::Builder::blocking + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:161:9 + 53: async_std::task::block_on::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/block_on.rs:33:5 + 54: z_get::main + at ./examples/examples/z_get.rs:21:1 + 55: core::ops::function::FnOnce::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:250:5 + 56: std::sys_common::backtrace::__rust_begin_short_backtrace + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:135:18 + 57: std::rt::lang_start::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:166:18 + 58: core::ops::function::impls:: for &F>::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:284:13 + 59: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 60: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 61: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 62: std::rt::lang_start_internal::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:48 + 63: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 64: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 65: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 66: std::rt::lang_start_internal + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:20 + 67: std::rt::lang_start + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:165:17 + 68: main + 69: __libc_start_call_main + at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16 + 70: __libc_start_main_impl + at ./csu/../csu/libc-start.c:392:3 + 71: _start + +Runtime::clone() - Arc count: 4, id: 5, parent: 4 + 0: ::clone + at ./zenoh/src/net/runtime/mod.rs:85:23 + 1: zenoh::session::Session::init::{{closure}} + at ./zenoh/src/session.rs:346:26 + 2: as zenoh_core::SyncResolve>::res_sync + at ./commons/zenoh-core/src/lib.rs:119:9 + 3: as zenoh_core::AsyncResolve>::res_async + at ./commons/zenoh-core/src/lib.rs:109:28 + 4: zenoh::session::Session::new::{{closure}} + at ./zenoh/src/session.rs:845:35 + 5: as core::future::future::Future>::poll::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:199:17 + 6: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 7: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 8: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 9: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 10: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:197:13 + 11: futures_lite::future::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:89:27 + 12: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 13: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 14: futures_lite::future::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:79:5 + 15: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:173:25 + 16: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 17: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 18: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 19: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 20: async_std::task::builder::Builder::blocking::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:168:17 + 21: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 22: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 23: async_std::task::builder::Builder::blocking + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:161:9 + 24: async_std::task::block_on::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/block_on.rs:33:5 + 25: as zenoh_core::SyncResolve>::res_sync + at ./commons/zenoh-core/src/lib.rs:166:9 + 26: as zenoh_core::SyncResolve>::res_sync + at ./zenoh/src/lib.rs:305:9 + 27: as zenoh_core::AsyncResolve>::res_async + at ./zenoh/src/lib.rs:317:28 + 28: zenoh_core::AsyncResolve::res + at ./commons/zenoh-core/src/lib.rs:46:9 + 29: z_get::main::main::{{closure}} + at ./examples/examples/z_get.rs:29:19 + 30: z_get::main::{{closure}} + at ./examples/examples/z_get.rs:21:1 + 31: as core::future::future::Future>::poll::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:199:17 + 32: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 33: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 34: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 35: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 36: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:197:13 + 37: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:526:33 + 38: async_executor::Executor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:243:32 + 39: async_executor::LocalExecutor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:447:34 + 40: async_io::driver::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-io-1.13.0/src/driver.rs:146:33 + 41: async_global_executor::reactor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:3:18 + 42: async_global_executor::reactor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:12:5 + 43: async_global_executor::executor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:36 + 44: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 45: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 46: async_global_executor::executor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:5 + 47: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:171:25 + 48: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 49: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 50: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 51: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 52: async_std::task::builder::Builder::blocking::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:168:17 + 53: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 54: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 55: async_std::task::builder::Builder::blocking + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:161:9 + 56: async_std::task::block_on::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/block_on.rs:33:5 + 57: z_get::main + at ./examples/examples/z_get.rs:21:1 + 58: core::ops::function::FnOnce::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:250:5 + 59: std::sys_common::backtrace::__rust_begin_short_backtrace + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:135:18 + 60: std::rt::lang_start::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:166:18 + 61: core::ops::function::impls:: for &F>::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:284:13 + 62: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 63: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 64: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 65: std::rt::lang_start_internal::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:48 + 66: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 67: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 68: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 69: std::rt::lang_start_internal + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:20 + 70: std::rt::lang_start + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:165:17 + 71: main + 72: __libc_start_call_main + at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16 + 73: __libc_start_main_impl + at ./csu/../csu/libc-start.c:392:3 + 74: _start + +Runtime::clone() - Arc count: 5, id: 6, parent: 5 + 0: ::clone + at ./zenoh/src/net/runtime/mod.rs:85:23 + 1: zenoh::session::Session::clone + at ./zenoh/src/session.rs:830:22 + 2: zenoh::session::Session::init::{{closure}} + at ./zenoh/src/session.rs:354:62 + 3: as zenoh_core::SyncResolve>::res_sync + at ./commons/zenoh-core/src/lib.rs:119:9 + 4: as zenoh_core::AsyncResolve>::res_async + at ./commons/zenoh-core/src/lib.rs:109:28 + 5: zenoh::session::Session::new::{{closure}} + at ./zenoh/src/session.rs:845:35 + 6: as core::future::future::Future>::poll::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:199:17 + 7: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 8: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 9: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 10: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 11: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:197:13 + 12: futures_lite::future::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:89:27 + 13: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 14: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 15: futures_lite::future::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:79:5 + 16: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:173:25 + 17: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 18: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 19: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 20: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 21: async_std::task::builder::Builder::blocking::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:168:17 + 22: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 23: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 24: async_std::task::builder::Builder::blocking + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:161:9 + 25: async_std::task::block_on::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/block_on.rs:33:5 + 26: as zenoh_core::SyncResolve>::res_sync + at ./commons/zenoh-core/src/lib.rs:166:9 + 27: as zenoh_core::SyncResolve>::res_sync + at ./zenoh/src/lib.rs:305:9 + 28: as zenoh_core::AsyncResolve>::res_async + at ./zenoh/src/lib.rs:317:28 + 29: zenoh_core::AsyncResolve::res + at ./commons/zenoh-core/src/lib.rs:46:9 + 30: z_get::main::main::{{closure}} + at ./examples/examples/z_get.rs:29:19 + 31: z_get::main::{{closure}} + at ./examples/examples/z_get.rs:21:1 + 32: as core::future::future::Future>::poll::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:199:17 + 33: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 34: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 35: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 36: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 37: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:197:13 + 38: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:526:33 + 39: async_executor::Executor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:243:32 + 40: async_executor::LocalExecutor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:447:34 + 41: async_io::driver::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-io-1.13.0/src/driver.rs:146:33 + 42: async_global_executor::reactor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:3:18 + 43: async_global_executor::reactor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:12:5 + 44: async_global_executor::executor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:36 + 45: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 46: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 47: async_global_executor::executor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:5 + 48: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:171:25 + 49: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 50: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 51: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 52: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 53: async_std::task::builder::Builder::blocking::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:168:17 + 54: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 55: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 56: async_std::task::builder::Builder::blocking + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:161:9 + 57: async_std::task::block_on::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/block_on.rs:33:5 + 58: z_get::main + at ./examples/examples/z_get.rs:21:1 + 59: core::ops::function::FnOnce::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:250:5 + 60: std::sys_common::backtrace::__rust_begin_short_backtrace + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:135:18 + 61: std::rt::lang_start::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:166:18 + 62: core::ops::function::impls:: for &F>::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:284:13 + 63: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 64: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 65: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 66: std::rt::lang_start_internal::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:48 + 67: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 68: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 69: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 70: std::rt::lang_start_internal + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:20 + 71: std::rt::lang_start + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:165:17 + 72: main + 73: __libc_start_call_main + at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16 + 74: __libc_start_main_impl + at ./csu/../csu/libc-start.c:392:3 + 75: _start + +Runtime::clone() - Arc count: 6, id: 7, parent: 5 + 0: ::clone + at ./zenoh/src/net/runtime/mod.rs:85:23 + 1: zenoh::session::Session::clone + at ./zenoh/src/session.rs:830:22 + 2: zenoh::session::Session::init::{{closure}} + at ./zenoh/src/session.rs:356:66 + 3: as zenoh_core::SyncResolve>::res_sync + at ./commons/zenoh-core/src/lib.rs:119:9 + 4: as zenoh_core::AsyncResolve>::res_async + at ./commons/zenoh-core/src/lib.rs:109:28 + 5: zenoh::session::Session::new::{{closure}} + at ./zenoh/src/session.rs:845:35 + 6: as core::future::future::Future>::poll::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:199:17 + 7: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 8: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 9: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 10: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 11: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:197:13 + 12: futures_lite::future::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:89:27 + 13: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 14: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 15: futures_lite::future::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:79:5 + 16: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:173:25 + 17: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 18: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 19: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 20: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 21: async_std::task::builder::Builder::blocking::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:168:17 + 22: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 23: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 24: async_std::task::builder::Builder::blocking + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:161:9 + 25: async_std::task::block_on::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/block_on.rs:33:5 + 26: as zenoh_core::SyncResolve>::res_sync + at ./commons/zenoh-core/src/lib.rs:166:9 + 27: as zenoh_core::SyncResolve>::res_sync + at ./zenoh/src/lib.rs:305:9 + 28: as zenoh_core::AsyncResolve>::res_async + at ./zenoh/src/lib.rs:317:28 + 29: zenoh_core::AsyncResolve::res + at ./commons/zenoh-core/src/lib.rs:46:9 + 30: z_get::main::main::{{closure}} + at ./examples/examples/z_get.rs:29:19 + 31: z_get::main::{{closure}} + at ./examples/examples/z_get.rs:21:1 + 32: as core::future::future::Future>::poll::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:199:17 + 33: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 34: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 35: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 36: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 37: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:197:13 + 38: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:526:33 + 39: async_executor::Executor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:243:32 + 40: async_executor::LocalExecutor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:447:34 + 41: async_io::driver::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-io-1.13.0/src/driver.rs:146:33 + 42: async_global_executor::reactor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:3:18 + 43: async_global_executor::reactor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:12:5 + 44: async_global_executor::executor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:36 + 45: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 46: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 47: async_global_executor::executor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:5 + 48: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:171:25 + 49: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 50: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 51: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 52: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 53: async_std::task::builder::Builder::blocking::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:168:17 + 54: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 55: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 56: async_std::task::builder::Builder::blocking + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:161:9 + 57: async_std::task::block_on::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/block_on.rs:33:5 + 58: z_get::main + at ./examples/examples/z_get.rs:21:1 + 59: core::ops::function::FnOnce::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:250:5 + 60: std::sys_common::backtrace::__rust_begin_short_backtrace + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:135:18 + 61: std::rt::lang_start::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:166:18 + 62: core::ops::function::impls:: for &F>::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:284:13 + 63: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 64: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 65: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 66: std::rt::lang_start_internal::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:48 + 67: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 68: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 69: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 70: std::rt::lang_start_internal + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:20 + 71: std::rt::lang_start + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:165:17 + 72: main + 73: __libc_start_call_main + at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16 + 74: __libc_start_main_impl + at ./csu/../csu/libc-start.c:392:3 + 75: _start + +Runtime::clone() - Arc count: 7, id: 8, parent: 5 + 0: ::clone + at ./zenoh/src/net/runtime/mod.rs:85:23 + 1: zenoh::session::Session::clone + at ./zenoh/src/session.rs:830:22 + 2: zenoh::admin::init + at ./zenoh/src/admin.rs:60:31 + 3: zenoh::session::Session::init::{{closure}} + at ./zenoh/src/session.rs:359:13 + 4: as zenoh_core::SyncResolve>::res_sync + at ./commons/zenoh-core/src/lib.rs:119:9 + 5: as zenoh_core::AsyncResolve>::res_async + at ./commons/zenoh-core/src/lib.rs:109:28 + 6: zenoh::session::Session::new::{{closure}} + at ./zenoh/src/session.rs:845:35 + 7: as core::future::future::Future>::poll::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:199:17 + 8: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 9: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 10: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 11: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 12: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:197:13 + 13: futures_lite::future::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:89:27 + 14: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 15: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 16: futures_lite::future::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:79:5 + 17: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:173:25 + 18: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 19: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 20: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 21: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 22: async_std::task::builder::Builder::blocking::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:168:17 + 23: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 24: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 25: async_std::task::builder::Builder::blocking + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:161:9 + 26: async_std::task::block_on::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/block_on.rs:33:5 + 27: as zenoh_core::SyncResolve>::res_sync + at ./commons/zenoh-core/src/lib.rs:166:9 + 28: as zenoh_core::SyncResolve>::res_sync + at ./zenoh/src/lib.rs:305:9 + 29: as zenoh_core::AsyncResolve>::res_async + at ./zenoh/src/lib.rs:317:28 + 30: zenoh_core::AsyncResolve::res + at ./commons/zenoh-core/src/lib.rs:46:9 + 31: z_get::main::main::{{closure}} + at ./examples/examples/z_get.rs:29:19 + 32: z_get::main::{{closure}} + at ./examples/examples/z_get.rs:21:1 + 33: as core::future::future::Future>::poll::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:199:17 + 34: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 35: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 36: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 37: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 38: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:197:13 + 39: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:526:33 + 40: async_executor::Executor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:243:32 + 41: async_executor::LocalExecutor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:447:34 + 42: async_io::driver::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-io-1.13.0/src/driver.rs:146:33 + 43: async_global_executor::reactor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:3:18 + 44: async_global_executor::reactor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:12:5 + 45: async_global_executor::executor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:36 + 46: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 47: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 48: async_global_executor::executor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:5 + 49: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:171:25 + 50: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 51: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 52: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 53: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 54: async_std::task::builder::Builder::blocking::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:168:17 + 55: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 56: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 57: async_std::task::builder::Builder::blocking + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:161:9 + 58: async_std::task::block_on::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/block_on.rs:33:5 + 59: z_get::main + at ./examples/examples/z_get.rs:21:1 + 60: core::ops::function::FnOnce::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:250:5 + 61: std::sys_common::backtrace::__rust_begin_short_backtrace + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:135:18 + 62: std::rt::lang_start::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:166:18 + 63: core::ops::function::impls:: for &F>::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:284:13 + 64: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 65: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 66: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 67: std::rt::lang_start_internal::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:48 + 68: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 69: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 70: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 71: std::rt::lang_start_internal + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:20 + 72: std::rt::lang_start + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:165:17 + 73: main + 74: __libc_start_call_main + at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16 + 75: __libc_start_main_impl + at ./csu/../csu/libc-start.c:392:3 + 76: _start + +Runtime::clone() - Arc count: 7, id: 4, parent: 255 + 0: ::drop + at ./zenoh/src/net/runtime/mod.rs:134:23 + 1: core::ptr::drop_in_place + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ptr/mod.rs:497:1 + 2: zenoh::session::Session::init::{{closure}} + at ./zenoh/src/session.rs:362:9 + 3: as zenoh_core::SyncResolve>::res_sync + at ./commons/zenoh-core/src/lib.rs:119:9 + 4: as zenoh_core::AsyncResolve>::res_async + at ./commons/zenoh-core/src/lib.rs:109:28 + 5: zenoh::session::Session::new::{{closure}} + at ./zenoh/src/session.rs:845:35 + 6: as core::future::future::Future>::poll::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:199:17 + 7: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 8: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 9: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 10: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 11: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:197:13 + 12: futures_lite::future::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:89:27 + 13: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 14: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 15: futures_lite::future::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:79:5 + 16: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:173:25 + 17: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 18: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 19: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 20: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 21: async_std::task::builder::Builder::blocking::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:168:17 + 22: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 23: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 24: async_std::task::builder::Builder::blocking + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:161:9 + 25: async_std::task::block_on::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/block_on.rs:33:5 + 26: as zenoh_core::SyncResolve>::res_sync + at ./commons/zenoh-core/src/lib.rs:166:9 + 27: as zenoh_core::SyncResolve>::res_sync + at ./zenoh/src/lib.rs:305:9 + 28: as zenoh_core::AsyncResolve>::res_async + at ./zenoh/src/lib.rs:317:28 + 29: zenoh_core::AsyncResolve::res + at ./commons/zenoh-core/src/lib.rs:46:9 + 30: z_get::main::main::{{closure}} + at ./examples/examples/z_get.rs:29:19 + 31: z_get::main::{{closure}} + at ./examples/examples/z_get.rs:21:1 + 32: as core::future::future::Future>::poll::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:199:17 + 33: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 34: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 35: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 36: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 37: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:197:13 + 38: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:526:33 + 39: async_executor::Executor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:243:32 + 40: async_executor::LocalExecutor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:447:34 + 41: async_io::driver::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-io-1.13.0/src/driver.rs:146:33 + 42: async_global_executor::reactor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:3:18 + 43: async_global_executor::reactor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:12:5 + 44: async_global_executor::executor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:36 + 45: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 46: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 47: async_global_executor::executor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:5 + 48: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:171:25 + 49: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 50: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 51: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 52: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 53: async_std::task::builder::Builder::blocking::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:168:17 + 54: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 55: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 56: async_std::task::builder::Builder::blocking + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:161:9 + 57: async_std::task::block_on::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/block_on.rs:33:5 + 58: z_get::main + at ./examples/examples/z_get.rs:21:1 + 59: core::ops::function::FnOnce::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:250:5 + 60: std::sys_common::backtrace::__rust_begin_short_backtrace + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:135:18 + 61: std::rt::lang_start::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:166:18 + 62: core::ops::function::impls:: for &F>::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:284:13 + 63: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 64: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 65: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 66: std::rt::lang_start_internal::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:48 + 67: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 68: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 69: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 70: std::rt::lang_start_internal + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:20 + 71: std::rt::lang_start + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:165:17 + 72: main + 73: __libc_start_call_main + at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16 + 74: __libc_start_main_impl + at ./csu/../csu/libc-start.c:392:3 + 75: _start + +Runtime::clone() - Arc count: 7, id: 9, parent: 255 + 0: ::clone + at ./zenoh/src/net/runtime/mod.rs:85:23 + 1: zenoh::net::runtime::orchestrator::::start_scout::{{closure}} + at ./zenoh/src/net/runtime/orchestrator.rs:215:28 + 2: zenoh::net::runtime::orchestrator::::start_peer::{{closure}} + at ./zenoh/src/net/runtime/orchestrator.rs:150:65 + 3: zenoh::net::runtime::orchestrator::::start::{{closure}} + at ./zenoh/src/net/runtime/orchestrator.rs:52:48 + 4: zenoh::session::Session::new::{{closure}} + at ./zenoh/src/session.rs:852:43 + 5: as core::future::future::Future>::poll::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:199:17 + 6: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 7: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 8: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 9: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 10: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:197:13 + 11: futures_lite::future::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:89:27 + 12: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 13: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 14: futures_lite::future::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:79:5 + 15: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:173:25 + 16: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 17: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 18: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 19: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 20: async_std::task::builder::Builder::blocking::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:168:17 + 21: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 22: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 23: async_std::task::builder::Builder::blocking + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:161:9 + 24: async_std::task::block_on::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/block_on.rs:33:5 + 25: as zenoh_core::SyncResolve>::res_sync + at ./commons/zenoh-core/src/lib.rs:166:9 + 26: as zenoh_core::SyncResolve>::res_sync + at ./zenoh/src/lib.rs:305:9 + 27: as zenoh_core::AsyncResolve>::res_async + at ./zenoh/src/lib.rs:317:28 + 28: zenoh_core::AsyncResolve::res + at ./commons/zenoh-core/src/lib.rs:46:9 + 29: z_get::main::main::{{closure}} + at ./examples/examples/z_get.rs:29:19 + 30: z_get::main::{{closure}} + at ./examples/examples/z_get.rs:21:1 + 31: as core::future::future::Future>::poll::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:199:17 + 32: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 33: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 34: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 35: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 36: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:197:13 + 37: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:526:33 + 38: async_executor::Executor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:243:32 + 39: async_executor::LocalExecutor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:447:34 + 40: async_io::driver::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-io-1.13.0/src/driver.rs:146:33 + 41: async_global_executor::reactor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:3:18 + 42: async_global_executor::reactor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:12:5 + 43: async_global_executor::executor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:36 + 44: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 45: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 46: async_global_executor::executor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:5 + 47: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:171:25 + 48: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 49: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 50: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 51: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 52: async_std::task::builder::Builder::blocking::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:168:17 + 53: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 54: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 55: async_std::task::builder::Builder::blocking + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:161:9 + 56: async_std::task::block_on::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/block_on.rs:33:5 + 57: z_get::main + at ./examples/examples/z_get.rs:21:1 + 58: core::ops::function::FnOnce::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:250:5 + 59: std::sys_common::backtrace::__rust_begin_short_backtrace + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:135:18 + 60: std::rt::lang_start::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:166:18 + 61: core::ops::function::impls:: for &F>::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:284:13 + 62: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 63: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 64: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 65: std::rt::lang_start_internal::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:48 + 66: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 67: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 68: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 69: std::rt::lang_start_internal + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:20 + 70: std::rt::lang_start + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:165:17 + 71: main + 72: __libc_start_call_main + at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16 + 73: __libc_start_main_impl + at ./csu/../csu/libc-start.c:392:3 + 74: _start + +Runtime::clone() - Arc count: 7, id: 255, parent: 255 + 0: ::drop + at ./zenoh/src/net/runtime/mod.rs:134:23 + 1: core::ptr::drop_in_place + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ptr/mod.rs:497:1 + 2: zenoh::session::Session::new::{{closure}} + at ./zenoh/src/session.rs:860:17 + 3: as core::future::future::Future>::poll::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:199:17 + 4: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 5: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 6: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 7: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 8: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:197:13 + 9: futures_lite::future::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:89:27 + 10: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 11: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 12: futures_lite::future::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:79:5 + 13: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:173:25 + 14: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 15: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 16: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 17: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 18: async_std::task::builder::Builder::blocking::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:168:17 + 19: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 20: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 21: async_std::task::builder::Builder::blocking + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:161:9 + 22: async_std::task::block_on::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/block_on.rs:33:5 + 23: as zenoh_core::SyncResolve>::res_sync + at ./commons/zenoh-core/src/lib.rs:166:9 + 24: as zenoh_core::SyncResolve>::res_sync + at ./zenoh/src/lib.rs:305:9 + 25: as zenoh_core::AsyncResolve>::res_async + at ./zenoh/src/lib.rs:317:28 + 26: zenoh_core::AsyncResolve::res + at ./commons/zenoh-core/src/lib.rs:46:9 + 27: z_get::main::main::{{closure}} + at ./examples/examples/z_get.rs:29:19 + 28: z_get::main::{{closure}} + at ./examples/examples/z_get.rs:21:1 + 29: as core::future::future::Future>::poll::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:199:17 + 30: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 31: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 32: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 33: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 34: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:197:13 + 35: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:526:33 + 36: async_executor::Executor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:243:32 + 37: async_executor::LocalExecutor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:447:34 + 38: async_io::driver::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-io-1.13.0/src/driver.rs:146:33 + 39: async_global_executor::reactor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:3:18 + 40: async_global_executor::reactor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:12:5 + 41: async_global_executor::executor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:36 + 42: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 43: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 44: async_global_executor::executor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:5 + 45: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:171:25 + 46: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 47: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 48: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 49: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 50: async_std::task::builder::Builder::blocking::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:168:17 + 51: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 52: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 53: async_std::task::builder::Builder::blocking + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:161:9 + 54: async_std::task::block_on::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/block_on.rs:33:5 + 55: z_get::main + at ./examples/examples/z_get.rs:21:1 + 56: core::ops::function::FnOnce::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:250:5 + 57: std::sys_common::backtrace::__rust_begin_short_backtrace + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:135:18 + 58: std::rt::lang_start::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:166:18 + 59: core::ops::function::impls:: for &F>::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:284:13 + 60: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 61: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 62: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 63: std::rt::lang_start_internal::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:48 + 64: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 65: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 66: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 67: std::rt::lang_start_internal + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:20 + 68: std::rt::lang_start + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:165:17 + 69: main + 70: __libc_start_call_main + at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16 + 71: __libc_start_main_impl + at ./csu/../csu/libc-start.c:392:3 + 72: _start + +Runtime::clone() - Arc count: 7, id: 10, parent: 5 + 0: ::clone + at ./zenoh/src/net/runtime/mod.rs:85:23 + 1: zenoh::session::Session::clone + at ./zenoh/src/session.rs:830:22 + 2: ::drop + at ./zenoh/src/session.rs:2462:21 + 3: core::ptr::drop_in_place + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ptr/mod.rs:497:1 + 4: z_get::main::main::{{closure}} + at ./examples/examples/z_get.rs:51:1 + 5: z_get::main::{{closure}} + at ./examples/examples/z_get.rs:21:1 + 6: as core::future::future::Future>::poll::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:199:17 + 7: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 8: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 9: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 10: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 11: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:197:13 + 12: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:526:33 + 13: async_executor::Executor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:243:32 + 14: async_executor::LocalExecutor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:447:34 + 15: async_io::driver::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-io-1.13.0/src/driver.rs:146:33 + 16: async_global_executor::reactor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:3:18 + 17: async_global_executor::reactor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:12:5 + 18: async_global_executor::executor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:36 + 19: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 20: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 21: async_global_executor::executor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:5 + 22: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:171:25 + 23: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 24: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 25: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 26: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 27: async_std::task::builder::Builder::blocking::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:168:17 + 28: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 29: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 30: async_std::task::builder::Builder::blocking + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:161:9 + 31: async_std::task::block_on::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/block_on.rs:33:5 + 32: z_get::main + at ./examples/examples/z_get.rs:21:1 + 33: core::ops::function::FnOnce::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:250:5 + 34: std::sys_common::backtrace::__rust_begin_short_backtrace + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:135:18 + 35: std::rt::lang_start::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:166:18 + 36: core::ops::function::impls:: for &F>::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:284:13 + 37: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 38: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 39: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 40: std::rt::lang_start_internal::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:48 + 41: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 42: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 43: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 44: std::rt::lang_start_internal + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:20 + 45: std::rt::lang_start + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:165:17 + 46: main + 47: __libc_start_call_main + at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16 + 48: __libc_start_main_impl + at ./csu/../csu/libc-start.c:392:3 + 49: _start + +Runtime::clone() - Arc count: 7, id: 3, parent: 255 + 0: ::drop + at ./zenoh/src/net/runtime/mod.rs:134:23 + 1: core::ptr::drop_in_place + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ptr/mod.rs:497:1 + 2: core::ptr::drop_in_place + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ptr/mod.rs:258:13 + 3: core::ptr::drop_in_place> + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ptr/mod.rs:497:1 + 4: core::ptr::drop_in_place>> + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ptr/mod.rs:497:1 + 5: async_executor::Executor::spawn::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:145:20 + 6: async_task::raw::RawTask::run + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-task-4.4.0/src/raw.rs:563:17 + 7: async_task::runnable::Runnable::run + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-task-4.4.0/src/runnable.rs:782:18 + 8: async_executor::Executor::run::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:236:21 + 9: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:529:33 + 10: async_executor::Executor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:243:32 + 11: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:529:33 + 12: async_io::driver::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-io-1.13.0/src/driver.rs:146:33 + 13: async_global_executor::reactor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:3:18 + 14: async_global_executor::reactor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:12:5 + 15: async_global_executor::threading::thread_main_loop::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/threading.rs:95:17 + 16: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 17: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 18: async_global_executor::threading::thread_main_loop::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/threading.rs:89:13 + 19: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 20: __rust_try + 21: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 22: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 23: async_global_executor::threading::thread_main_loop + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/threading.rs:88:12 + 24: core::ops::function::FnOnce::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:250:5 + 25: std::sys_common::backtrace::__rust_begin_short_backtrace + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:135:18 + 26: std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/mod.rs:529:17 + 27: as core::ops::function::FnOnce<()>>::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/panic/unwind_safe.rs:271:9 + 28: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 29: __rust_try + 30: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 31: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 32: std::thread::Builder::spawn_unchecked_::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/mod.rs:528:30 + 33: core::ops::function::FnOnce::call_once{{vtable.shim}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:250:5 + 34: as core::ops::function::FnOnce>::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/alloc/src/boxed.rs:1993:9 + 35: as core::ops::function::FnOnce>::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/alloc/src/boxed.rs:1993:9 + 36: std::sys::unix::thread::Thread::new::thread_start + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys/unix/thread.rs:108:17 + 37: start_thread + at ./nptl/pthread_create.c:442:8 + 38: clone3 + at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81 + +Runtime::clone() - Arc count: 7, id: 9, parent: 255 + 0: ::drop + at ./zenoh/src/net/runtime/mod.rs:134:23 + 1: core::ptr::drop_in_place + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ptr/mod.rs:497:1 + 2: core::ptr::drop_in_place::start_scout::{{closure}}::{{closure}}> + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ptr/mod.rs:224:25 + 3: core::ptr::drop_in_place::start_scout::{{closure}}::{{closure}}>> + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ptr/mod.rs:497:1 + 4: core::ptr::drop_in_place::start_scout::{{closure}}::{{closure}}>>> + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ptr/mod.rs:497:1 + 5: async_executor::Executor::spawn::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:145:20 + 6: as core::future::future::Future>::poll + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/future/future.rs:125:9 + 7: async_task::raw::RawTask::run + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-task-4.4.0/src/raw.rs:563:17 + 8: async_task::runnable::Runnable::run + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-task-4.4.0/src/runnable.rs:782:18 + 9: async_executor::Executor::run::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:236:21 + 10: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:529:33 + 11: async_executor::Executor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:243:32 + 12: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:529:33 + 13: async_io::driver::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-io-1.13.0/src/driver.rs:146:33 + 14: async_global_executor::reactor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:3:18 + 15: async_global_executor::reactor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:12:5 + 16: async_global_executor::threading::thread_main_loop::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/threading.rs:95:17 + 17: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 18: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 19: async_global_executor::threading::thread_main_loop::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/threading.rs:89:13 + 20: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 21: __rust_try + 22: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 23: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 24: async_global_executor::threading::thread_main_loop + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/threading.rs:88:12 + 25: core::ops::function::FnOnce::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:250:5 + 26: std::sys_common::backtrace::__rust_begin_short_backtrace + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:135:18 + 27: std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/mod.rs:529:17 + 28: as core::ops::function::FnOnce<()>>::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/panic/unwind_safe.rs:271:9 + 29: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 30: __rust_try + 31: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 32: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 33: std::thread::Builder::spawn_unchecked_::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/mod.rs:528:30 + 34: core::ops::function::FnOnce::call_once{{vtable.shim}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:250:5 + 35: as core::ops::function::FnOnce>::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/alloc/src/boxed.rs:1993:9 + 36: as core::ops::function::FnOnce>::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/alloc/src/boxed.rs:1993:9 + 37: std::sys::unix::thread::Thread::new::thread_start + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys/unix/thread.rs:108:17 + 38: start_thread + at ./nptl/pthread_create.c:442:8 + 39: clone3 + at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81 + +Runtime::clone() - Arc count: 7, id: 10, parent: 5 + 0: ::drop + at ./zenoh/src/net/runtime/mod.rs:134:23 + 1: core::ptr::drop_in_place + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ptr/mod.rs:497:1 + 2: core::ptr::drop_in_place + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ptr/mod.rs:497:1 + 3: zenoh::session::Session::close::{{closure}} + at ./zenoh/src/session.rs:461:9 + 4: as core::future::future::Future>::poll::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:199:17 + 5: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 6: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 7: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 8: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 9: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:197:13 + 10: futures_lite::future::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:89:27 + 11: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 12: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 13: futures_lite::future::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:79:5 + 14: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:173:25 + 15: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 16: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 17: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 18: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 19: async_std::task::builder::Builder::blocking::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:168:17 + 20: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 21: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 22: async_std::task::builder::Builder::blocking + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:161:9 + 23: async_std::task::block_on::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/block_on.rs:33:5 + 24: as zenoh_core::SyncResolve>::res_sync + at ./commons/zenoh-core/src/lib.rs:166:9 + 25: ::drop + at ./zenoh/src/session.rs:2462:21 + 26: core::ptr::drop_in_place + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ptr/mod.rs:497:1 + 27: z_get::main::main::{{closure}} + at ./examples/examples/z_get.rs:51:1 + 28: z_get::main::{{closure}} + at ./examples/examples/z_get.rs:21:1 + 29: as core::future::future::Future>::poll::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:199:17 + 30: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 31: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 32: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 33: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 34: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:197:13 + 35: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:526:33 + 36: async_executor::Executor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:243:32 + 37: async_executor::LocalExecutor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:447:34 + 38: async_io::driver::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-io-1.13.0/src/driver.rs:146:33 + 39: async_global_executor::reactor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:3:18 + 40: async_global_executor::reactor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:12:5 + 41: async_global_executor::executor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:36 + 42: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 43: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 44: async_global_executor::executor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:5 + 45: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:171:25 + 46: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 47: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 48: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 49: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 50: async_std::task::builder::Builder::blocking::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:168:17 + 51: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 52: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 53: async_std::task::builder::Builder::blocking + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:161:9 + 54: async_std::task::block_on::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/block_on.rs:33:5 + 55: z_get::main + at ./examples/examples/z_get.rs:21:1 + 56: core::ops::function::FnOnce::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:250:5 + 57: std::sys_common::backtrace::__rust_begin_short_backtrace + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:135:18 + 58: std::rt::lang_start::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:166:18 + 59: core::ops::function::impls:: for &F>::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:284:13 + 60: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 61: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 62: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 63: std::rt::lang_start_internal::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:48 + 64: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 65: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 66: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 67: std::rt::lang_start_internal + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:20 + 68: std::rt::lang_start + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:165:17 + 69: main + 70: __libc_start_call_main + at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16 + 71: __libc_start_main_impl + at ./csu/../csu/libc-start.c:392:3 + 72: _start + +Runtime::clone() - Arc count: 4, id: 5, parent: 4 + 0: ::drop + at ./zenoh/src/net/runtime/mod.rs:134:23 + 1: core::ptr::drop_in_place + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ptr/mod.rs:497:1 + 2: core::ptr::drop_in_place + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ptr/mod.rs:497:1 + 3: z_get::main::main::{{closure}} + at ./examples/examples/z_get.rs:51:1 + 4: z_get::main::{{closure}} + at ./examples/examples/z_get.rs:21:1 + 5: as core::future::future::Future>::poll::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:199:17 + 6: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 7: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 8: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 9: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 10: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:197:13 + 11: as core::future::future::Future>::poll + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:526:33 + 12: async_executor::Executor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:243:32 + 13: async_executor::LocalExecutor::run::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:447:34 + 14: async_io::driver::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-io-1.13.0/src/driver.rs:146:33 + 15: async_global_executor::reactor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:3:18 + 16: async_global_executor::reactor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/reactor.rs:12:5 + 17: async_global_executor::executor::block_on::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:36 + 18: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 19: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 20: async_global_executor::executor::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-global-executor-2.3.1/src/executor.rs:26:5 + 21: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:171:25 + 22: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:60:13 + 23: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 24: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 25: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/task_locals_wrapper.rs:55:9 + 26: async_std::task::builder::Builder::blocking::{{closure}} + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:168:17 + 27: std::thread::local::LocalKey::try_with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:270:16 + 28: std::thread::local::LocalKey::with + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/thread/local.rs:246:9 + 29: async_std::task::builder::Builder::blocking + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/builder.rs:161:9 + 30: async_std::task::block_on::block_on + at /home/milyin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-std-1.12.0/src/task/block_on.rs:33:5 + 31: z_get::main + at ./examples/examples/z_get.rs:21:1 + 32: core::ops::function::FnOnce::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:250:5 + 33: std::sys_common::backtrace::__rust_begin_short_backtrace + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:135:18 + 34: std::rt::lang_start::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:166:18 + 35: core::ops::function::impls:: for &F>::call_once + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:284:13 + 36: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 37: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 38: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 39: std::rt::lang_start_internal::{{closure}} + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:48 + 40: std::panicking::try::do_call + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 + 41: std::panicking::try + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 + 42: std::panic::catch_unwind + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 + 43: std::rt::lang_start_internal + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:20 + 44: std::rt::lang_start + at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:165:17 + 45: main + 46: __libc_start_call_main + at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16 + 47: __libc_start_main_impl + at ./csu/../csu/libc-start.c:392:3 + 48: _start + diff --git a/zenoh/src/admin.rs b/zenoh/src/admin.rs index a8aad9c809..0cc5c60a8c 100644 --- a/zenoh/src/admin.rs +++ b/zenoh/src/admin.rs @@ -57,7 +57,7 @@ pub(crate) fn init(session: &Session) { true, Locality::SessionLocal, Arc::new({ - let session = session.clone(); + let session = session.clone(); // LEAK 8 move |q| super::admin::on_admin_query(&session, q) }), ); diff --git a/zenoh/src/net/routing/network.rs b/zenoh/src/net/routing/network.rs index 0fb9f36120..74f5d715e7 100644 --- a/zenoh/src/net/routing/network.rs +++ b/zenoh/src/net/routing/network.rs @@ -14,6 +14,7 @@ use crate::net::codec::Zenoh080Routing; use crate::net::protocol::linkstate::{LinkState, LinkStateList}; use crate::net::runtime::Runtime; +use crate::runtime::WeakRuntime; use async_std::task; use petgraph::graph::NodeIndex; use petgraph::visit::{IntoNodeReferences, VisitMap, Visitable}; @@ -115,7 +116,7 @@ pub(crate) struct Network { pub(crate) trees: Vec, pub(crate) distances: Vec, pub(crate) graph: petgraph::stable_graph::StableUnGraph, - pub(crate) runtime: Runtime, + pub(crate) runtime: WeakRuntime, } impl Network { @@ -155,7 +156,7 @@ impl Network { }], distances: vec![0.0], graph, - runtime, + runtime: runtime.into(), } } @@ -251,15 +252,17 @@ impl Network { None }, whatami: self.graph[idx].whatami, - locators: if details.locators { - if idx == self.idx { - Some(self.runtime.get_locators()) + locators: self.runtime.upgrade().and_then(|runtime| { + if details.locators { + if idx == self.idx { + Some(runtime.get_locators()) + } else { + self.graph[idx].locators.clone() + } } else { - self.graph[idx].locators.clone() + None } - } else { - None - }, + }), links, } } @@ -493,20 +496,24 @@ impl Network { if !self.autoconnect.is_empty() { // Connect discovered peers - if task::block_on(self.runtime.manager().get_transport_unicast(&zid)) - .is_none() - && self.autoconnect.matches(whatami) - { - if let Some(locators) = locators { - let runtime = self.runtime.clone(); - self.runtime.spawn(async move { - // random backoff - async_std::task::sleep(std::time::Duration::from_millis( - rand::random::() % 100, - )) - .await; - runtime.connect_peer(&zid, &locators).await; - }); + if let Some(runtime) = self.runtime.upgrade() { + if task::block_on(runtime.manager().get_transport_unicast(&zid)) + .is_none() + && self.autoconnect.matches(whatami) + { + if let Some(locators) = locators { + let r = runtime.clone(); + runtime.spawn(async move { + // random backoff + async_std::task::sleep( + std::time::Duration::from_millis( + rand::random::() % 100, + ), + ) + .await; + r.connect_peer(&zid, &locators).await; + }); + } } } } @@ -608,26 +615,28 @@ impl Network { .collect::, NodeIndex, bool)>>(); if !self.autoconnect.is_empty() { - // Connect discovered peers - for (_, idx, _) in &link_states { - let node = &self.graph[*idx]; - if let Some(whatami) = node.whatami { - if task::block_on(self.runtime.manager().get_transport_unicast(&node.zid)) - .is_none() - && self.autoconnect.matches(whatami) - { - if let Some(locators) = &node.locators { - let runtime = self.runtime.clone(); - let zid = node.zid; - let locators = locators.clone(); - self.runtime.spawn(async move { - // random backoff - async_std::task::sleep(std::time::Duration::from_millis( - rand::random::() % 100, - )) - .await; - runtime.connect_peer(&zid, &locators).await; - }); + if let Some(runtime) = self.runtime.upgrade() { + // Connect discovered peers + for (_, idx, _) in &link_states { + let node = &self.graph[*idx]; + if let Some(whatami) = node.whatami { + if task::block_on(runtime.manager().get_transport_unicast(&node.zid)) + .is_none() + && self.autoconnect.matches(whatami) + { + if let Some(locators) = &node.locators { + let r = runtime.clone(); + let zid = node.zid; + let locators = locators.clone(); + runtime.spawn(async move { + // random backoff + async_std::task::sleep(std::time::Duration::from_millis( + rand::random::() % 100, + )) + .await; + r.connect_peer(&zid, &locators).await; + }); + } } } } diff --git a/zenoh/src/net/runtime/mod.rs b/zenoh/src/net/runtime/mod.rs index 5599d1ed1e..ce99625f0a 100644 --- a/zenoh/src/net/runtime/mod.rs +++ b/zenoh/src/net/runtime/mod.rs @@ -31,7 +31,7 @@ use async_std::task::JoinHandle; use futures::stream::StreamExt; use futures::Future; use std::any::Any; -use std::sync::Arc; +use std::sync::{Arc, Weak}; use std::time::Duration; use stop_token::future::FutureExt; use stop_token::{StopSource, TimedOutError}; @@ -60,9 +60,38 @@ pub struct RuntimeState { pub(crate) stop_source: std::sync::RwLock>, } -#[derive(Clone)] +static CURRENT_ID: std::sync::atomic::AtomicU8 = std::sync::atomic::AtomicU8::new(0); + pub struct Runtime { state: Arc, + pub id: u8, + pub parent: u8, +} + +impl Clone for Runtime { + fn clone(&self) -> Self { + let r = Runtime { + state: self.state.clone(), + parent: self.id, + id: CURRENT_ID.fetch_add(1, std::sync::atomic::Ordering::SeqCst), + }; + log::warn!( + "Runtime::clone() - Arc count: {}, id: {}, parent: {}", + Arc::strong_count(&r.state), + r.id, + r.parent + ); + // print stack trace + let capture = std::backtrace::Backtrace::capture(); + println!( + "Runtime::clone() - Arc count: {}, id: {}, parent: {}", + Arc::strong_count(&r.state), + r.id, + r.parent + ); + println!("{}", capture); + r + } } impl std::ops::Deref for Runtime { @@ -73,6 +102,59 @@ impl std::ops::Deref for Runtime { } } +#[derive(Clone)] +pub(crate) struct WeakRuntime { + state: Weak, + id: u8, + parent: u8, +} + +impl WeakRuntime { + pub fn upgrade(&self) -> Option { + self.state.upgrade().map(|state| Runtime { + state, + id: self.id, + parent: self.parent, + }) + } +} + +impl From for WeakRuntime { + fn from(value: Runtime) -> Self { + WeakRuntime { + state: Arc::downgrade(&value.state), + id: value.id, + parent: value.parent, + } + } +} + +impl Drop for Runtime { + fn drop(&mut self) { + let capture = std::backtrace::Backtrace::capture(); + println!( + "Runtime::clone() - Arc count: {}, id: {}, parent: {}", + Arc::strong_count(&self.state), + self.id, + self.parent + ); + println!("{}", capture); + // trace state's Arc counter + log::error!( + "Runtime::drop() - Arc count: {}, id: {}, parent: {}", + Arc::strong_count(&self.state), + self.id, + self.parent + ); + } +} + +impl Drop for RuntimeState { + fn drop(&mut self) { + log::error!("RuntimeState::drop()"); + } +} + impl Runtime { pub async fn new(config: Config) -> ZResult { let mut runtime = Runtime::init(config).await?; @@ -147,8 +229,10 @@ impl Runtime { hlc, stop_source: std::sync::RwLock::new(Some(StopSource::new())), }), + id: 255, + parent: 255, }; - *handler.runtime.write().unwrap() = Some(runtime.clone()); + *handler.runtime.write().unwrap() = Some(runtime.clone().into()); get_mut_unchecked(&mut runtime.router.clone()).init_link_state( runtime.clone(), router_link_state, @@ -215,7 +299,7 @@ impl Runtime { } struct RuntimeTransportEventHandler { - runtime: std::sync::RwLock>, + runtime: std::sync::RwLock>, } impl TransportEventHandler for RuntimeTransportEventHandler { @@ -224,46 +308,52 @@ impl TransportEventHandler for RuntimeTransportEventHandler { peer: TransportPeer, transport: TransportUnicast, ) -> ZResult> { - match zread!(self.runtime).as_ref() { - Some(runtime) => { - let slave_handlers: Vec> = - zread!(runtime.transport_handlers) - .iter() - .filter_map(|handler| { - handler.new_unicast(peer.clone(), transport.clone()).ok() - }) - .collect(); - Ok(Arc::new(RuntimeSession { - runtime: runtime.clone(), - endpoint: std::sync::RwLock::new(None), - main_handler: runtime.router.new_transport_unicast(transport).unwrap(), - slave_handlers, - })) + let runtime = if let Some(runtime) = zread!(self.runtime).as_ref() { + if let Some(runtime) = runtime.upgrade() { + runtime + } else { + bail!("Runtime is gone!") } - None => bail!("Runtime not yet ready!"), - } + } else { + bail!("Runtime not yet ready!") + }; + let slave_handlers: Vec> = + zread!(runtime.transport_handlers) + .iter() + .filter_map(|handler| handler.new_unicast(peer.clone(), transport.clone()).ok()) + .collect(); + Ok(Arc::new(RuntimeSession { + runtime: runtime.clone(), + endpoint: std::sync::RwLock::new(None), + main_handler: runtime.router.new_transport_unicast(transport).unwrap(), + slave_handlers, + })) } fn new_multicast( &self, transport: TransportMulticast, ) -> ZResult> { - match zread!(self.runtime).as_ref() { - Some(runtime) => { - let slave_handlers: Vec> = - zread!(runtime.transport_handlers) - .iter() - .filter_map(|handler| handler.new_multicast(transport.clone()).ok()) - .collect(); - runtime.router.new_transport_multicast(transport.clone())?; - Ok(Arc::new(RuntimeMuticastGroup { - runtime: runtime.clone(), - transport, - slave_handlers, - })) + let runtime = if let Some(runtime) = zread!(self.runtime).as_ref() { + if let Some(runtime) = runtime.upgrade() { + runtime + } else { + bail!("Runtime is gone!") } - None => bail!("Runtime not yet ready!"), - } + } else { + bail!("Runtime not yet ready!") + }; + let slave_handlers: Vec> = + zread!(runtime.transport_handlers) + .iter() + .filter_map(|handler| handler.new_multicast(transport.clone()).ok()) + .collect(); + runtime.router.new_transport_multicast(transport.clone())?; + Ok(Arc::new(RuntimeMuticastGroup { + runtime: runtime.clone(), + transport, + slave_handlers, + })) } } diff --git a/zenoh/src/session.rs b/zenoh/src/session.rs index 23369e5790..13c27ff01a 100644 --- a/zenoh/src/session.rs +++ b/zenoh/src/session.rs @@ -349,8 +349,10 @@ impl Session { alive: true, }; + log::error!("Session::init()"); + // LEAK 6 runtime.new_handler(Arc::new(admin::Handler::new(session.clone()))); - + // LEAK 7 let primitives = Some(router.new_primitives(Arc::new(session.clone()))); zwrite!(state).primitives = primitives;