Open sandreim opened 2 months ago
CC @paritytech/networking
It seems a few debug_asserts that are thrown: https://github.com/paritytech/litep2p/blob/master/src/protocol/transport_service.rs#L237C13-L237C25
I think the deployed image from here did not have them stripped out: https://github.com/paritytech/devops/issues/3519#issuecomment-2329696367
For the reference, this is where it panics: https://github.com/paritytech/litep2p/blob/v0.6.2/src/protocol/transport_service.rs#L212-L222
let Some(context) = self.connections.get_mut(&peer) else {
tracing::warn!(
target: LOG_TARGET,
?peer,
?connection_id,
"connection closed to a non-existent peer",
);
debug_assert!(false);
return None;
};
afab63e5a7b
is build from branch origin/AndreiEres/pvf-execution-priority
Investigating the panics, it seems indeed we are triggering debug_aserts
.
Indeed, we need to double-check our images are build with --release
.
These defensive failures are put in place to help us debug issues sooner, in this case, race-conditions and code expectations.
Thread 'tokio-runtime-worker' panicked at 'assertion failed: false', /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/litep2p-0.6.2/src/protocol/transport_service.rs:220
Thread 'tokio-runtime-worker' panicked at 'assertion failed: false', /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/litep2p-0.6.2/src/transport/manager/mod.rs:748
Thread 'tokio-runtime-worker' panicked at 'assertion failed: false', /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/litep2p-0.6.2/src/transport/manager/mod.rs:858
Code path:
We can also use "release with debug info" builds to simplify crash reports analysis. I.e., no debug assertions, but still debugging symbols. ~It doesn't look polkadot-sdk Cargo.toml
has such build profile:~
https://github.com/paritytech/polkadot-sdk/blob/49a68132882e58872411c5c0278b13a008b3682b/Cargo.toml#L1371-L1389
EDIT: we don't strip the debug symbols in the release
profile (no strip = true
), so the debug symbols are included, of course.
Full Logs: https://grafana.teleport.parity.io/goto/nlUPrk6SR?orgId=1