MacOS release build panics on startup (OpenSSL)
- MacOS x86
- OpenSSL 3.3.1 4 Jun 2024 (Library: OpenSSL 3.3.1 4 Jun 2024)
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BREAKPOINT (code=EXC_I386_BPT, subcode=0x0)
* frame #0: 0x00007ff801422d07 dyld`_dyld_debugger_notification + 1
frame #1: 0x00007ff801431e72 dyld`dyld4::RuntimeState::notifyDebuggerLoad(std::__1::span<dyld4::Loader const*, 18446744073709551615ul> const&) + 484
frame #2: 0x00007ff80145d9b1 dyld`dyld4::APIs::dlopen_from(char const*, int, void*)::$_0::operator()() const + 713
frame #3: 0x00007ff8014587e1 dyld`dyld4::APIs::dlopen_from(char const*, int, void*) + 815
frame #4: 0x0000000107cfcc69 libcrypto.3.dylib`dlfcn_load + 58
frame #5: 0x0000000107cfd566 libcrypto.3.dylib`DSO_load + 196
frame #6: 0x0000000107dba45b libcrypto.3.dylib`provider_activate + 1146
frame #7: 0x0000000107db9f40 libcrypto.3.dylib`ossl_provider_activate + 68
frame #8: 0x0000000107db7edd libcrypto.3.dylib`OSSL_PROVIDER_try_load_ex + 121
frame #9: 0x0000000104201846 picodata`ssl_init_impl at ssl_init.c:35:20
frame #10: 0x000000010420494a picodata`ssl_init at ssl_impl.c:30:2 [artificial]
frame #11: 0x0000000104239017 picodata`::tarantool_main(argc=1, argv=0x00007fec81804510, cb=(picodata`picodata::cli::tarantool::main_cb::trampoline::he09650a69fcf5ead), cb_data=0x00007fec81905120)(void *), void *) at main.cc:800:2
frame #12: 0x0000000103fff7d9 picodata`picodata::cli::tarantool::main_cb::hdda27b9acf4dc76d + 297
frame #13: 0x0000000103e1470d picodata`picodata::cli::run::main::hab1dddea01bde0f6 + 3213
frame #14: 0x0000000103a67145 picodata`picodata::main::h1caf0a4d01c5ba4e + 1349
frame #15: 0x0000000103a65e46 picodata`std::sys_common::backtrace::__rust_begin_short_backtrace::he569e632db8b4f97 + 6
frame #16: 0x0000000103a65e5c picodata`std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h39c8a944e3ec9663 + 12
frame #17: 0x0000000104c9f780 picodata`std::rt::lang_start_internal::hba631f1493ca29ca [inlined] core::ops::function::impls::_$LT$impl$u20$core..ops..function..FnOnce$LT$A$GT$$u20$for$u20$$RF$F$GT$::call_once::h28f55c80744bada5 at function.rs:284:13 [opt]
frame #18: 0x0000000104c9f773 picodata`std::rt::lang_start_internal::hba631f1493ca29ca [inlined] std::panicking::try::do_call::h2a7711271ca00d3c at panicking.rs:552:40 [opt]
frame #19: 0x0000000104c9f773 picodata`std::rt::lang_start_internal::hba631f1493ca29ca [inlined] std::panicking::try::h8cfa57ed24255592 at panicking.rs:516:19 [opt]
frame #20: 0x0000000104c9f773 picodata`std::rt::lang_start_internal::hba631f1493ca29ca [inlined] std::panic::catch_unwind::h4ba1cfc637be3672 at panic.rs:142:14 [opt]
frame #21: 0x0000000104c9f773 picodata`std::rt::lang_start_internal::hba631f1493ca29ca [inlined] std::rt::lang_start_internal::_$u7b$$u7b$closure$u7d$$u7d$::he9dd7d8444a0863e at rt.rs:148:48 [opt]
frame #22: 0x0000000104c9f773 picodata`std::rt::lang_start_internal::hba631f1493ca29ca [inlined] std::panicking::try::do_call::h4f92b6155a985b32 at panicking.rs:552:40 [opt]
frame #23: 0x0000000104c9f773 picodata`std::rt::lang_start_internal::hba631f1493ca29ca [inlined] std::panicking::try::h1810f6567656aa0f at panicking.rs:516:19 [opt]
frame #24: 0x0000000104c9f773 picodata`std::rt::lang_start_internal::hba631f1493ca29ca [inlined] std::panic::catch_unwind::h979a0e4ea0734504 at panic.rs:142:14 [opt]
frame #25: 0x0000000104c9f773 picodata`std::rt::lang_start_internal::hba631f1493ca29ca at rt.rs:148:20 [opt]
frame #26: 0x0000000103a6749c picodata`main + 44
frame #27: 0x00007ff801427310 dyld`start + 2432
(lldb) f 9
frame #9: 0x0000000104201846 picodata`ssl_init_impl at ssl_init.c:35:20
32 #endif
33 #if OPENSSL_VERSION_NUMBER >= 0x30000000L
34 /* Needed to enable legacy algorithms, such as MD4. */
-> 35 legacy_provider = OSSL_PROVIDER_load(NULL, "legacy");
36 if (legacy_provider == NULL)
37 say_error("cannot load the Legacy OpenSSL provider");
38 default_provider = OSSL_PROVIDER_load(NULL, "default");
Edited by Denis Smirnov