Segfault in Debug formatter for SDPKey
Hello, I'm getting a segfault when using the debug print for an SDPMediaRef
. Here's the section of my backtrace relevant to this issue:
#0 0x0000007f81e3ded0 in strlen () from /lib/libc.so.6
#1 0x00000055627d0ec4 in std::ffi::c_str::CStr::from_ptr () at src/libstd/ffi/c_str.rs:972
#2 0x000000556248271c in gstreamer_sdp::sdp_key::SDPKey::type_ (self=0x7f7000b748) at /rust/cargo/registry/src/github.com-1ecc6299db9ec823/gstreamer-sdp-0.14.0/src/sdp_key.rs:19
#3 0x00000055624827e8 in <gstreamer_sdp::sdp_key::SDPKey as core::fmt::Debug>::fmt (self=0x7f7000b748, f=0x7f810ecb90)
at /rust/cargo/registry/src/github.com-1ecc6299db9ec823/gstreamer-sdp-0.14.0/src/sdp_key.rs:30
#4 0x00000055624821e0 in <&T as core::fmt::Debug>::fmt (self=0x7f810ecb20, f=0x7f810ecb90) at /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libcore/fmt/mod.rs:1929
#5 0x000000556248219c in <&T as core::fmt::Debug>::fmt (self=0x7f810ec888, f=0x7f810ecb90) at /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libcore/fmt/mod.rs:1929
#6 0x00000055627f1f80 in core::fmt::builders::DebugTuple::field::{{closure}} () at src/libcore/fmt/builders.rs:303
#7 core::result::Result<T,E>::and_then () at src/libcore/result.rs:691
#8 core::fmt::builders::DebugTuple::field () at src/libcore/fmt/builders.rs:290
#9 0x0000005562481328 in <core::option::Option<T> as core::fmt::Debug>::fmt (self=0x7f810ecb20, f=0x7f810ecb90) at /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libcore/option.rs:148
#10 0x00000055627f1d74 in core::fmt::builders::DebugStruct::field::{{closure}} () at src/libcore/fmt/builders.rs:160
#11 core::result::Result<T,E>::and_then () at src/libcore/result.rs:691
#12 core::fmt::builders::DebugStruct::field () at src/libcore/fmt/builders.rs:143
#13 0x000000556247ea9c in <gstreamer_sdp::sdp_media::SDPMediaRef as core::fmt::Debug>::fmt (self=0x7f7000b710, f=0x7f810ecb90)
at /rust/cargo/registry/src/github.com-1ecc6299db9ec823/gstreamer-sdp-0.14.0/src/sdp_media.rs:105
#14 0x000000556247e784 in <&T as core::fmt::Debug>::fmt (self=0x7f810ed6a8, f=0x7f810ecb90) at /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libcore/fmt/mod.rs:1929
#15 0x00000055627f2a54 in core::fmt::write () at src/libcore/fmt/mod.rs:1031
#16 0x0000005561f24774 in core::fmt::Write::write_fmt (self=0x7f810ed648, args=...) at /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libcore/fmt/mod.rs:195