From e968a1cca744ab8073844ea44c645fe852ae69ac Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Sat, 4 Dec 2021 19:51:30 -0700 Subject: [PATCH] add spantrace to use-after-exit of RpcContext --- appmgr/src/context/rpc.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/appmgr/src/context/rpc.rs b/appmgr/src/context/rpc.rs index 36778ba54..848d481fd 100644 --- a/appmgr/src/context/rpc.rs +++ b/appmgr/src/context/rpc.rs @@ -336,7 +336,10 @@ impl Deref for RpcContext { type Target = RpcContextSeed; fn deref(&self) -> &Self::Target { if self.0.is_closed.load(Ordering::SeqCst) { - panic!("RpcContext used after shutdown!"); + panic!( + "RpcContext used after shutdown! {:?}", + tracing_error::SpanTrace::capture() + ); } &*self.0 }