Segfault in libcrypto when closing Jami
Closing Jami shortly after launching it produced a segfault in the X509_STORE_get0_objects
function:
client [1712582180451][INF][7fffe2566f40]: file:///home/fsimon/jami-client-qt/src/app/mainapplication.cpp:177 Using Qt runtime version: 6.6.1
default [1712582180456][DBG][7fffe2566f40]: file:///home/fsimon/jami-client-qt/src/app/systemtray.cpp:109 "notify server name: gnome-shell, vendor: GNOME, version: 42.9, spec: 1.2"
default [1712582180497][DBG][7fffe2566f40]: file:///home/fsimon/jami-client-qt/src/app/appsettingsmanager.cpp:104 "Using locale: en_CA"
09:16:20.637 os_core_unix.c !pjlib 2.13.1 for POSIX initialized
[AVHWDeviceContext @ 0x7fff78025280] Cannot load libcuda.so.1
[AVHWDeviceContext @ 0x7fff78025280] Could not dynamically load CUDA
[AVHWDeviceContext @ 0x7fff78025540] Cannot load libcuda.so.1
[AVHWDeviceContext @ 0x7fff78025540] Could not dynamically load CUDA
[AVHWDeviceContext @ 0x7fff78025d00] Cannot load libcuda.so.1
[AVHWDeviceContext @ 0x7fff78025d00] Could not dynamically load CUDA
[hevc_vaapi @ 0x7fff78026480] Driver does not support some wanted packed headers (wanted 0xd, found 0x1).
Daemon is running
default [1712582180975][DBG][7fffe2566f40]: file:///home/fsimon/jami-client-qt/src/app/screensaver.cpp:53 Screen saver dbus interface: "org.freedesktop.ScreenSaver"
qml [1712582180994][INF][7fffe2566f40]: qrc:/MainApplicationWindow.qml:146 Initializing main view
client [1712582181216][DBG][7fffe2566f40]: file:///home/fsimon/jami-client-qt/src/app/mainapplication.cpp:452 Main window loaded using "OpenGLRhi"
default [1712582181386][DBG][7fffe2566f40]: file:///home/fsimon/jami-client-qt/src/app/connectivitymonitor.cpp:194 NetworkManager client initialized, version: 1.36.6 , daemon running: yes , networking enabled: yes
default [1712582181386][DBG][7fffe2566f40]: file:///home/fsimon/jami-client-qt/src/app/connectivitymonitor.cpp:174 primary network connection: ae0ddb60-a758-3d7d-b01a-194ac092fce5 default: yes
Thread 27 "jami" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff8a7fc640 (LWP 487838)]
0x00007fffe5028cf4 in X509_STORE_get0_objects () from /lib/x86_64-linux-gnu/libcrypto.so.3
(gdb) bt
#0 0x00007fffe5028cf4 in X509_STORE_get0_objects () at /lib/x86_64-linux-gnu/libcrypto.so.3
#1 0x00007fffe50163e1 in () at /lib/x86_64-linux-gnu/libcrypto.so.3
#2 0x00007fffe503111e in X509_STORE_CTX_get_by_subject () at /lib/x86_64-linux-gnu/libcrypto.so.3
#3 0x00007fffe50315a2 in X509_STORE_CTX_get1_issuer () at /lib/x86_64-linux-gnu/libcrypto.so.3
#4 0x00007fffe5037ba8 in () at /lib/x86_64-linux-gnu/libcrypto.so.3
#5 0x00007fffe5038466 in () at /lib/x86_64-linux-gnu/libcrypto.so.3
#6 0x00007fffe5039552 in X509_verify_cert () at /lib/x86_64-linux-gnu/libcrypto.so.3
#7 0x00007fffe539abe8 in () at /lib/x86_64-linux-gnu/libssl.so.3
#8 0x00007fffe53d272f in () at /lib/x86_64-linux-gnu/libssl.so.3
#9 0x00007fffe53cfb8c in () at /lib/x86_64-linux-gnu/libssl.so.3
#10 0x00007fffe53d1608 in () at /lib/x86_64-linux-gnu/libssl.so.3
#11 0x00007fffe816b304 in asio::ssl::detail::engine::perform(int (asio::ssl::detail::engine::*)(void*, unsigned long), void*, unsigned long, std::error_code&, unsigned long*) ()
at /home/fsimon/jami-client-qt/daemon/src/.libs/libjami.so.0
#12 0x00007fffe8158cec in asio::ssl::detail::io_op<asio::basic_stream_socket<asio::ip::tcp, asio::any_io_executor>, asio::ssl::detail::handshake_op, dht::http::Connection::async_handshake(std::function<void (std::error_code const&)>)::{lambda(std::error_code const&)#1}>::operator()(std::error_code, unsigned long, int) () at /home/fsimon/jami-client-qt/daemon/src/.libs/libjami.so.0
#13 0x00007fffe815a9a2 in asio::detail::reactive_socket_recv_op<asio::mutable_buffers_1, asio::ssl::detail::io_op<asio::basic_stream_socket<asio::ip::tcp, asio::any_io_executor>, asio::ssl::detail::handshake_op, dht::http::Connection::async_handshake(std::function<void (std::error_code const&)>)::{lambda(std::error_code const&)#1}>, asio::any_io_executor>::do_complete(void*, asio::detail::scheduler_operation*, std::error_code const&, unsigned long) () at /home/fsimon/jami-client-qt/daemon/src/.libs/libjami.so.0
#14 0x00007fffe79acbc0 in asio::detail::scheduler_operation::complete(void*, std::error_code const&, unsigned long)
(this=0x555557559500, owner=0x555556b1b0f0, ec=std::error_code = {std::_V2::error_category: 0}, bytes_transferred=5)
at /home/fsimon/jami-client-qt/daemon/contrib/x86_64-linux-gnu/include/asio/detail/scheduler_operation.hpp:39
#15 0x00007fffe79af6df in asio::detail::scheduler::do_run_one(asio::detail::conditionally_enabled_mutex::scoped_lock&, asio::detail::scheduler_thread_info&, std::error_code const&)
(this=0x555556b1b0f0, lock=..., this_thread=..., ec=std::error_code = {std::_V2::error_category: 0})
at /home/fsimon/jami-client-qt/daemon/contrib/x86_64-linux-gnu/include/asio/detail/impl/scheduler.ipp:492
#16 0x00007fffe79af28f in asio::detail::scheduler::run(std::error_code&) (this=0x555556b1b0f0, ec=std::error_code = {std::_V2::error_category: 0})
at /home/fsimon/jami-client-qt/daemon/contrib/x86_64-linux-gnu/include/asio/detail/impl/scheduler.ipp:209
#17 0x00007fffe79afafe in asio::io_context::run() (this=0x5555572750d0) at /home/fsimon/jami-client-qt/daemon/contrib/x86_64-linux-gnu/include/asio/impl/io_context.ipp:63
#18 0x00007fffe798cd77 in operator()() const (__closure=0x5555572ae8b8) at manager.cpp:464
#19 0x00007fffe79a7fa0 in std::__invoke_impl<void, jami::Manager::ManagerPimpl::ManagerPimpl(jami::Manager&)::<lambda()> >(std::__invoke_other, struct {...} &&) (__f=...)
at /usr/include/c++/11/bits/invoke.h:61
#20 0x00007fffe79a7f63 in std::__invoke<jami::Manager::ManagerPimpl::ManagerPimpl(jami::Manager&)::<lambda()> >(struct {...} &&) (__fn=...) at /usr/include/c++/11/bits/invoke.h:96
#21 0x00007fffe79a7f10 in std::thread::_Invoker<std::tuple<jami::Manager::ManagerPimpl::ManagerPimpl(jami::Manager&)::<lambda()> > >::_M_invoke<0>(std::_Index_tuple<0>) (this=0x5555572ae8b8)
at /usr/include/c++/11/bits/std_thread.h:259
#22 0x00007fffe79a7ee4 in std::thread::_Invoker<std::tuple<jami::Manager::ManagerPimpl::ManagerPimpl(jami::Manager&)::<lambda()> > >::operator()(void) (this=0x5555572ae8b8)
at /usr/include/c++/11/bits/std_thread.h:266
#23 0x00007fffe79a7ec8 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<jami::Manager::ManagerPimpl::ManagerPimpl(jami::Manager&)::<lambda()> > > >::_M_run(void) (this=0x5555572ae8b0)
at /usr/include/c++/11/bits/std_thread.h:211
#24 0x00007fffe70dc253 in () at /lib/x86_64-linux-gnu/libstdc++.so.6
#25 0x00007fffe6c94ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#26 0x00007fffe6d26850 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81