Skip to content

panicked in webrtc-srtp #661

Open
Open
@fluolite

Description

@fluolite

[2025-03-24T09:27:16Z DEBUG webrtc_dtls::flight::flight0] [handshake:server] use cipher suite: TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
[2025-03-24T09:27:16Z DEBUG webrtc_dtls::conn] server: CipherSuite not initialized, queuing packet
[2025-03-24T09:27:16Z DEBUG webrtc_dtls::conn] server: received packet of next epoch, queuing packet

thread 'main' panicked at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/generic-array-0.14.7/src/lib.rs:572:9:
assertion `left == right` failed
  left: 32
 right: 16
stack backtrace:
   0: rust_begin_unwind
             at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/std/src/panicking.rs:692:5
   1: core::panicking::panic_fmt
             at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/core/src/panicking.rs:75:14
   2: core::panicking::assert_failed_inner
   3: core::panicking::assert_failed
             at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/core/src/panicking.rs:364:5
   4: <&generic_array::GenericArray<T,N> as core::convert::From<&[T]>>::from
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/generic-array-0.14.7/src/lib.rs:572:9
   5: <T as core::convert::Into<U>>::into
             at /home/yangwy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/convert/mod.rs:761:9
   6: generic_array::GenericArray<T,N>::from_slice
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/generic-array-0.14.7/src/lib.rs:550:9
   7: webrtc_srtp::key_derivation::aes_cm_key_derivation
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/webrtc-srtp-0.14.0/src/key_derivation.rs:43:15
   8: webrtc_srtp::cipher::cipher_aead_aes_gcm::CipherAeadAesGcm::new
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/webrtc-srtp-0.14.0/src/cipher/cipher_aead_aes_gcm.rs:154:32
   9: webrtc_srtp::context::Context::new
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/webrtc-srtp-0.14.0/src/context/mod.rs:127:26
  10: webrtc_srtp::session::Session::new::{{closure}}
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/webrtc-srtp-0.14.0/src/session/mod.rs:44:29
  11: webrtc::dtls_transport::RTCDtlsTransport::start_srtp::{{closure}}
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/webrtc-0.12.0/src/dtls_transport/mod.rs:217:26
  12: webrtc::dtls_transport::RTCDtlsTransport::start::{{closure}}
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/webrtc-0.12.0/src/dtls_transport/mod.rs:475:27
  13: webrtc::peer_connection::peer_connection_internal::PeerConnectionInternal::start_transports::{{closure}}
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/webrtc-0.12.0/src/peer_connection/peer_connection_internal.rs:708:14
  14: webrtc::peer_connection::RTCPeerConnection::set_remote_description::{{closure}}::{{closure}}::{{closure}}
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/webrtc-0.12.0/src/peer_connection/mod.rs:1610:34
  15: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/yangwy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  16: webrtc::peer_connection::operation::Operations::start::{{closure}}
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/webrtc-0.12.0/src/peer_connection/operation/mod.rs:124:34
  17: webrtc::peer_connection::operation::Operations::new::{{closure}}
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/webrtc-0.12.0/src/peer_connection/operation/mod.rs:57:60
  18: tokio::runtime::task::core::Core<T,S>::poll::{{closure}}
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tokio-1.44.1/src/runtime/task/core.rs:331:17
  19: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tokio-1.44.1/src/loom/std/unsafe_cell.rs:16:9
  20: tokio::runtime::task::core::Core<T,S>::poll
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tokio-1.44.1/src/runtime/task/core.rs:320:13
  21: tokio::runtime::task::harness::poll_future::{{closure}}
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tokio-1.44.1/src/runtime/task/harness.rs:532:19
  22: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /home/yangwy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panic/unwind_safe.rs:272:9
  23: std::panicking::try::do_call
             at /home/yangwy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:584:40
  24: __rust_try
  25: std::panicking::try
             at /home/yangwy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:547:19
  26: std::panic::catch_unwind
             at /home/yangwy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:358:14
  27: tokio::runtime::task::harness::poll_future
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tokio-1.44.1/src/runtime/task/harness.rs:520:18
  28: tokio::runtime::task::harness::Harness<T,S>::poll_inner
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tokio-1.44.1/src/runtime/task/harness.rs:209:27
  29: tokio::runtime::task::harness::Harness<T,S>::poll
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tokio-1.44.1/src/runtime/task/harness.rs:154:15
  30: tokio::runtime::task::raw::poll
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tokio-1.44.1/src/runtime/task/raw.rs:271:5
  31: tokio::runtime::task::raw::RawTask::poll
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tokio-1.44.1/src/runtime/task/raw.rs:201:18
  32: tokio::runtime::task::LocalNotified<S>::run
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tokio-1.44.1/src/runtime/task/mod.rs:463:9
  33: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tokio-1.44.1/src/runtime/scheduler/current_thread/mod.rs:780:25
  34: tokio::task::coop::with_budget
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tokio-1.44.1/src/task/coop/mod.rs:167:5
  35: tokio::task::coop::budget
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tokio-1.44.1/src/task/coop/mod.rs:133:5
  36: tokio::runtime::scheduler::current_thread::Context::run_task::{{closure}}
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tokio-1.44.1/src/runtime/scheduler/current_thread/mod.rs:368:43
  37: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tokio-1.44.1/src/runtime/scheduler/current_thread/mod.rs:432:19
  38: tokio::runtime::scheduler::current_thread::Context::run_task
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tokio-1.44.1/src/runtime/scheduler/current_thread/mod.rs:368:23
  39: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tokio-1.44.1/src/runtime/scheduler/current_thread/mod.rs:776:35
  40: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tokio-1.44.1/src/runtime/scheduler/current_thread/mod.rs:820:68
  41: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tokio-1.44.1/src/runtime/context/scoped.rs:40:9
  42: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tokio-1.44.1/src/runtime/context.rs:180:26
  43: std::thread::local::LocalKey<T>::try_with
             at /home/yangwy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:308:12
  44: std::thread::local::LocalKey<T>::with
             at /home/yangwy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:272:9
  45: tokio::runtime::context::set_scheduler
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tokio-1.44.1/src/runtime/context.rs:180:9
  46: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tokio-1.44.1/src/runtime/scheduler/current_thread/mod.rs:820:27
  47: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tokio-1.44.1/src/runtime/scheduler/current_thread/mod.rs:720:19
  48: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tokio-1.44.1/src/runtime/scheduler/current_thread/mod.rs:200:28
  49: tokio::runtime::context::runtime::enter_runtime
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tokio-1.44.1/src/runtime/context/runtime.rs:65:16
  50: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tokio-1.44.1/src/runtime/scheduler/current_thread/mod.rs:188:9
  51: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tokio-1.44.1/src/runtime/runtime.rs:368:47
  52: tokio::runtime::runtime::Runtime::block_on
             at /home/yangwy/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tokio-1.44.1/src/runtime/runtime.rs:342:13
  53: tokio::task::local::LocalSet::block_on

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions