twilio-rs icon indicating copy to clipboard operation
twilio-rs copied to clipboard

OpenSSL Issues

Open AshtonKem opened this issue 5 years ago • 4 comments

I am currently getting a panic in twilio-rs caused by some sort of issue on an Ubuntu based Heroku image. I've attached the relevant section of the stacktrace below.

2019-09-26T03:47:36.668946+00:00 app[daemon.1]:    0:     0x5596e26192ab - backtrace::backtrace::libunwind::trace::hfe5db90796807973
2019-09-26T03:47:36.669019+00:00 app[daemon.1]:                                at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.29/src/backtrace/libunwind.rs:88
2019-09-26T03:47:36.669079+00:00 app[daemon.1]:    1:     0x5596e26192ab - backtrace::backtrace::trace_unsynchronized::h34b865a835594335
2019-09-26T03:47:36.669140+00:00 app[daemon.1]:                                at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.29/src/backtrace/mod.rs:66
2019-09-26T03:47:36.669205+00:00 app[daemon.1]:    2:     0x5596e26192ab - std::sys_common::backtrace::_print::h527254ae44989167
2019-09-26T03:47:36.669251+00:00 app[daemon.1]:                                at src/libstd/sys_common/backtrace.rs:47
2019-09-26T03:47:36.669291+00:00 app[daemon.1]:    3:     0x5596e26192ab - std::sys_common::backtrace::print::he85dd5ddddf46503
2019-09-26T03:47:36.669361+00:00 app[daemon.1]:                                at src/libstd/sys_common/backtrace.rs:36
2019-09-26T03:47:36.669425+00:00 app[daemon.1]:    4:     0x5596e26192ab - std::panicking::default_hook::{{closure}}::h847a2eb38b396f14
2019-09-26T03:47:36.669500+00:00 app[daemon.1]:                                at src/libstd/panicking.rs:200
2019-09-26T03:47:36.669572+00:00 app[daemon.1]:    5:     0x5596e2618f87 - std::panicking::default_hook::h2ca0f9a30a0e206b
2019-09-26T03:47:36.669626+00:00 app[daemon.1]:                                at src/libstd/panicking.rs:214
2019-09-26T03:47:36.669678+00:00 app[daemon.1]:    6:     0x5596e2619a20 - std::panicking::rust_panic_with_hook::hffcefc09751839d1
2019-09-26T03:47:36.669739+00:00 app[daemon.1]:                                at src/libstd/panicking.rs:477
2019-09-26T03:47:36.669765+00:00 app[daemon.1]:    7:     0x5596e26195a2 - std::panicking::continue_panic_fmt::hc0f142c930c846fc
2019-09-26T03:47:36.669819+00:00 app[daemon.1]:                                at src/libstd/panicking.rs:384
2019-09-26T03:47:36.669857+00:00 app[daemon.1]:    8:     0x5596e2619486 - rust_begin_unwind
2019-09-26T03:47:36.669914+00:00 app[daemon.1]:                                at src/libstd/panicking.rs:311
2019-09-26T03:47:36.679076+00:00 app[daemon.1]:    9:     0x5596e263564d - core::panicking::panic_fmt::h2daf88b2616ca2b2
2019-09-26T03:47:36.679136+00:00 app[daemon.1]:                                at src/libcore/panicking.rs:85
2019-09-26T03:47:36.679189+00:00 app[daemon.1]:   10:     0x5596e263558c - core::panicking::panic::h2d0bc53a963fb996
2019-09-26T03:47:36.679246+00:00 app[daemon.1]:                                at src/libcore/panicking.rs:49
2019-09-26T03:47:36.679304+00:00 app[daemon.1]:   11:     0x5596e2326388 - openssl::ssl::connector::ctx::h309a4b9bc7336979
2019-09-26T03:47:36.679349+00:00 app[daemon.1]:   12:     0x5596e23263c4 - openssl::ssl::connector::SslConnectorBuilder::new::h8ac1c6edf1a54ed1
2019-09-26T03:47:36.679442+00:00 app[daemon.1]:   13:     0x5596e232458a - native_tls::TlsConnector::builder::h6311488e3bc08f80
2019-09-26T03:47:36.679505+00:00 app[daemon.1]:   14:     0x5596e2324493 - hyper_native_tls::NativeTlsClient::new::he662dc72f6a9219c

AshtonKem avatar Sep 26 '19 03:09 AshtonKem

I suspect that this issue might be caused by an outdated version of the openssl crate brought in through hyper-native-tls-0.2.4.

AshtonKem avatar Sep 26 '19 03:09 AshtonKem

I am new to Rust but i think the issue is laying in the published crates.io package (see Screenshot below). There is hyper-native-tls shown as hyper-native-tls ^0.2. Looking in the current (3db7efc) Cargo.toml file hyper-native-tls="0.3.0" is used.

I think the owner needs to republish to crates.io.

I added twilio = { git = "https://github.com/neil-lobracco/twilio-rs" } to my Cargo.toml to fix the issue.

image

Schmelzer avatar Apr 14 '20 19:04 Schmelzer

+1, it worked running from git

@neil-lobracco can you push a new version to solve this issue?

obbardc avatar Aug 09 '20 18:08 obbardc

I apologize for my neglect of this - I just pushed 0.1.3 which should pull in the "new" hyper-native-tls version (as well as fixing some warnings in current rust).

Thanks for pinging me on this @obbardc .

neil-lobracco avatar Aug 14 '20 01:08 neil-lobracco