Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when restoring after adding a few oscquery devices #1317

Closed
jcelerier opened this issue Nov 20, 2021 · 0 comments
Closed

Crash when restoring after adding a few oscquery devices #1317

jcelerier opened this issue Nov 20, 2021 · 0 comments
Assignees
Labels
Projects
Milestone

Comments

@jcelerier
Copy link
Member


=================================================================
==546720==ERROR: AddressSanitizer: heap-use-after-free on address 0x62200009d7d0 at pc 0x55d1669d950b bp 0x7f5049b13a70 sp 0x7f5049b13a68
WRITE of size 1 at 0x62200009d7d0 thread T46
==546720==WARNING: Symbolizer buffer too small
    #0 0x55d1669d950a in std::__atomic_base<bool>::store(bool, std::memory_order) /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../include/c++/11.1.0/bits/atomic_base.h:457:2
    #1 0x55d1669d950a in std::__atomic_base<bool>::operator=(bool) /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../include/c++/11.1.0/bits/atomic_base.h:349:2
    #2 0x55d1669d950a in std::atomic<bool>::operator=(bool) /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../include/c++/11.1.0/atomic:80:22
    #3 0x55d1669d950a in ossia::net::websocket_client::websocket_client()::'lambda0'(std::weak_ptr<void>)::operator()(std::weak_ptr<void>) const /home/jcelerier/ossia/score/3rdparty/libossia/src/ossia/network/sockets/websocket_client.hpp:42:16
    #4 0x55d1669d928c in void std::__invoke_impl<void, ossia::net::websocket_client::websocket_client()::'lambda0'(std::weak_ptr<void>)&, std::weak_ptr<void> >(std::__invoke_other, ossia::net::websocket_client::websocket_client()::'lambda0'(std::weak_ptr<void>)&, std::weak_ptr<void>&&) /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../include/c++/11.1.0/bits/invoke.h:61:14
    #5 0x55d1669f5f35 in websocketpp::connection<websocketpp::config::asio_client>::handle_terminate(websocketpp::connection<websocketpp::config::asio_client>::terminate_status, std::error_code const&) /home/jcelerier/ossia/score/3rdparty/libossia/3rdparty/websocketpp/websocketpp/impl/connection_impl.hpp:1906:13
    #6 0x55d1669fe837 in void std::_Bind<void (websocketpp::connection<websocketpp::config::asio_client>::* (std::shared_ptr<websocketpp::connection<websocketpp::config::asio_client> >, websocketpp::connection<websocketpp::config::asio_client>::terminate_status, std::_Placeholder<1>))(websocketpp::connection<websocketpp::config::asio_client>::terminate_status, std::error_code const&)>::__call<void, std::error_code const&, 0ul, 1ul, 2ul>(std::tuple<std::error_code const&>&&, std::_Index_tuple<0ul, 1ul, 2ul>) /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../include/c++/11.1.0/functional:420:11
    #7 0x55d1669fe6e2 in void std::_Bind<void (websocketpp::connection<websocketpp::config::asio_client>::* (std::shared_ptr<websocketpp::connection<websocketpp::config::asio_client> >, websocketpp::connection<websocketpp::config::asio_client>::terminate_status, std::_Placeholder<1>))(websocketpp::connection<websocketpp::config::asio_client>::terminate_status, std::error_code const&)>::operator()<std::error_code const&, void>(std::error_code const&) /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../include/c++/11.1.0/functional:503:17
    #8 0x55d1669fa852 in websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::handle_async_shutdown(std::shared_ptr<boost::asio::basic_waitable_timer<std::chrono::_V2::steady_clock, boost::asio::wait_traits<std::chrono::_V2::steady_clock>, boost::asio::any_io_executor> >, std::function<void (std::error_code const&)>, boost::system::error_code const&) /home/jcelerier/ossia/score/3rdparty/libossia/3rdparty/websocketpp/websocketpp/transport/asio/connection.hpp:1148:9
    #9 0x55d1669eebb0 in void std::__invoke_impl<void, void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::*&)(std::shared_ptr<boost::asio::basic_waitable_timer<std::chrono::_V2::steady_clock, boost::asio::wait_traits<std::chrono::_V2::steady_clock>, boost::asio::any_io_executor> >, std::function<void (std::error_code const&)>, boost::system::error_code const&), std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >&, std::shared_ptr<boost::asio::basic_waitable_timer<std::chrono::_V2::steady_clock, boost::asio::wait_traits<std::chrono::_V2::steady_clock>, boost::asio::any_io_executor> >&, std::function<void (std::error_code const&)>&, boost::system::error_code const&>(std::__invoke_memfun_deref, void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::*&)(std::shared_ptr<boost::asio::basic_waitable_timer<std::chrono::_V2::steady_clock, boost::asio::wait_traits<std::chrono::_V2::steady_clock>, boost::asio::any_io_executor> >, std::function<void (std::error_code const&)>, boost::system::error_code const&), std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >&, std::shared_ptr<boost::asio::basic_waitable_timer<std::chrono::_V2::steady_clock, boost::asio::wait_traits<std::chrono::_V2::steady_clock>, boost::asio::any_io_executor> >&, std::function<void (std::error_code const&)>&, boost::system::error_code const&) /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../include/c++/11.1.0/bits/invoke.h:74:14
    #10 0x55d1669ee96f in void std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::shared_ptr<boost::asio::basic_waitable_timer<std::chrono::_V2::steady_clock, boost::asio::wait_traits<std::chrono::_V2::steady_clock>, boost::asio::any_io_executor> >, std::function<void (std::error_code const&)>, std::_Placeholder<1>))(std::shared_ptr<boost::asio::basic_waitable_timer<std::chrono::_V2::steady_clock, boost::asio::wait_traits<std::chrono::_V2::steady_clock>, boost::asio::any_io_executor> >, std::function<void (std::error_code const&)>, boost::system::error_code const&)>::__call<void, boost::system::error_code const&, 0ul, 1ul, 2ul, 3ul>(std::tuple<boost::system::error_code const&>&&, std::_Index_tuple<0ul, 1ul, 2ul, 3ul>) /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../include/c++/11.1.0/functional:420:11
    #11 0x55d1669ee802 in void std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::shared_ptr<boost::asio::basic_waitable_timer<std::chrono::_V2::steady_clock, boost::asio::wait_traits<std::chrono::_V2::steady_clock>, boost::asio::any_io_executor> >, std::function<void (std::error_code const&)>, std::_Placeholder<1>))(std::shared_ptr<boost::asio::basic_waitable_timer<std::chrono::_V2::steady_clock, boost::asio::wait_traits<std::chrono::_V2::steady_clock>, boost::asio::any_io_executor> >, std::function<void (std::error_code const&)>, boost::system::error_code const&)>::operator()<boost::system::error_code const&, void>(boost::system::error_code const&) /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../include/c++/11.1.0/functional:503:17
    #12 0x55d1669fa224 in websocketpp::transport::asio::basic_socket::connection::async_shutdown(std::function<void (boost::system::error_code const&)>) /home/jcelerier/ossia/score/3rdparty/libossia/3rdparty/websocketpp/websocketpp/transport/asio/security/none.hpp:257:9
    #13 0x55d1669f5949 in websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::async_shutdown(std::function<void (std::error_code const&)>) /home/jcelerier/ossia/score/3rdparty/libossia/3rdparty/websocketpp/websocketpp/transport/asio/connection.hpp:1071:26
    #14 0x55d1669f4862 in websocketpp::connection<websocketpp::config::asio_client>::terminate(std::error_code const&) /home/jcelerier/ossia/score/3rdparty/libossia/3rdparty/websocketpp/websocketpp/impl/connection_impl.hpp:1874:25
    #15 0x55d166a1c153 in websocketpp::connection<websocketpp::config::asio_client>::handle_read_frame(std::error_code const&, unsigned long) /home/jcelerier/ossia/score/3rdparty/libossia/3rdparty/websocketpp/websocketpp/impl/connection_impl.hpp:1104:17
    #16 0x55d166a2b8c1 in void std::_Bind<void (websocketpp::connection<websocketpp::config::asio_client>::* (websocketpp::connection<websocketpp::config::asio_client>*, std::_Placeholder<1>, std::_Placeholder<2>))(std::error_code const&, unsigned long)>::__call<void, std::error_code const&, unsigned long&&, 0ul, 1ul, 2ul>(std::tuple<std::error_code const&, unsigned long&&>&&, std::_Index_tuple<0ul, 1ul, 2ul>) /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../include/c++/11.1.0/functional:420:11
    #17 0x55d166a2b753 in void std::_Bind<void (websocketpp::connection<websocketpp::config::asio_client>::* (websocketpp::connection<websocketpp::config::asio_client>*, std::_Placeholder<1>, std::_Placeholder<2>))(std::error_code const&, unsigned long)>::operator()<std::error_code const&, unsigned long, void>(std::error_code const&, unsigned long&&) /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../include/c++/11.1.0/functional:503:17
    #18 0x55d166a2b312 in std::function<void (std::error_code const&, unsigned long)>::operator()(std::error_code const&, unsigned long) const /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../include/c++/11.1.0/bits/std_function.h:560:9
    #19 0x55d166a24a11 in websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::handle_async_read(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long) /home/jcelerier/ossia/score/3rdparty/libossia/3rdparty/websocketpp/websocketpp/transport/asio/connection.hpp:911:13
    #20 0x55d166a2a88e in void std::__invoke_impl<void, void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::*&)(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long), std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >&, std::function<void (std::error_code const&, unsigned long)>&, boost::system::error_code&, unsigned long&>(std::__invoke_memfun_deref, void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::*&)(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long), std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >&, std::function<void (std::error_code const&, unsigned long)>&, boost::system::error_code&, unsigned long&) /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../include/c++/11.1.0/bits/invoke.h:74:14
    #21 0x55d166a2a694 in void std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)>::__call<void, boost::system::error_code&, unsigned long&, 0ul, 1ul, 2ul, 3ul>(std::tuple<boost::system::error_code&, unsigned long&>&&, std::_Index_tuple<0ul, 1ul, 2ul, 3ul>) /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../include/c++/11.1.0/functional:420:11
    #22 0x55d166a2a523 in void std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)>::operator()<boost::system::error_code&, unsigned long&, void>(boost::system::error_code&, unsigned long&) /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../include/c++/11.1.0/functional:503:17
    #23 0x55d166a2a3b8 in void websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> >::operator()<boost::system::error_code, unsigned long>(boost::system::error_code, unsigned long) /home/jcelerier/ossia/score/3rdparty/libossia/3rdparty/websocketpp/websocketpp/transport/asio/base.hpp:106:9
    #24 0x55d166a2a3b8 in boost::asio::detail::binder2<websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> >, boost::system::error_code, unsigned long>::operator()() /usr/include/boost/asio/detail/bind_handler.hpp:182:5
    #25 0x55d166a29cff in void boost_asio_handler_invoke_helpers::invoke<boost::asio::detail::binder2<websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> >, boost::system::error_code, unsigned long>, boost::asio::detail::binder2<websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> >, boost::system::error_code, unsigned long> >(boost::asio::detail::binder2<websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> >, boost::system::error_code, unsigned long>&, boost::asio::detail::binder2<websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> >, boost::system::error_code, unsigned long>&) /usr/include/boost/asio/detail/handler_invoke_helpers.hpp:54:3
    #26 0x55d166a29cff in void boost::asio::detail::strand_service::dispatch<boost::asio::detail::binder2<websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> >, boost::system::error_code, unsigned long> >(boost::asio::detail::strand_service::strand_impl*&, boost::asio::detail::binder2<websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> >, boost::system::error_code, unsigned long>&) /usr/include/boost/asio/detail/impl/strand_service.hpp:44:5
    #27 0x55d166a25cac in void boost::asio::async_result<boost::asio::detail::binder2<websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> >, boost::system::error_code, unsigned long>, void ()>::initiate<boost::asio::io_context::strand::initiate_dispatch, boost::asio::detail::binder2<websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> >, boost::system::error_code, unsigned long>, boost::asio::io_context::strand*>(boost::asio::io_context::strand::initiate_dispatch&&, boost::asio::detail::binder2<websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> >, boost::system::error_code, unsigned long>&&, boost::asio::io_context::strand*&&) /usr/include/boost/asio/async_result.hpp:152:5
    #28 0x55d166a25cac in boost::asio::constraint<detail::async_result_has_initiate_memfn<boost::asio::detail::binder2<websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> >, boost::system::error_code, unsigned long>, void ()>::value, decltype(async_result<std::decay<boost::asio::detail::binder2<websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> >, boost::system::error_code, unsigned long> >::type, void ()>::initiate(declval<boost::asio::io_context::strand::initiate_dispatch&&>(), declval<boost::asio::detail::binder2<websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> >, boost::system::error_code, unsigned long>&&>(), declval<boost::asio::io_context::strand*&&>()))>::type boost::asio::async_initiate<boost::asio::detail::binder2<websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> >, boost::system::error_code, unsigned long>, void (), boost::asio::io_context::strand::initiate_dispatch, boost::asio::io_context::strand*>(boost::asio::io_context::strand::initiate_dispatch&&, boost::asio::detail::binder2<websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> >, boost::system::error_code, unsigned long>&, boost::asio::io_context::strand*&&) /usr/include/boost/asio/async_result.hpp:364:10
    #29 0x55d166a25cac in auto boost::asio::io_context::strand::dispatch<boost::asio::detail::binder2<websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> >, boost::system::error_code, unsigned long> >(boost::asio::detail::binder2<websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> >, boost::system::error_code, unsigned long>&&) /usr/include/boost/asio/io_context_strand.hpp:190:12
    #30 0x55d166a25cac in void boost::asio::detail::wrapped_handler<boost::asio::io_context::strand, websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> >, boost::asio::detail::is_continuation_if_running>::operator()<boost::system::error_code, unsigned long>(boost::system::error_code const&, unsigned long const&) /usr/include/boost/asio/detail/wrapped_handler.hpp:99:17
    #31 0x55d166a25608 in boost::asio::detail::read_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::any_io_executor>, boost::asio::mutable_buffers_1, boost::asio::mutable_buffer const*, boost::asio::detail::transfer_at_least_t, boost::asio::detail::wrapped_handler<boost::asio::io_context::strand, websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> >, boost::asio::detail::is_continuation_if_running> >::operator()(boost::system::error_code const&, unsigned long, int) /usr/include/boost/asio/impl/read.hpp:385:9
    #32 0x55d166a284c7 in void boost::asio::detail::handler_work<boost::asio::detail::rewrapped_handler<boost::asio::detail::binder2<boost::asio::detail::read_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::any_io_executor>, boost::asio::mutable_buffers_1, boost::asio::mutable_buffer const*, boost::asio::detail::transfer_at_least_t, boost::asio::detail::wrapped_handler<boost::asio::io_context::strand, websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> >, boost::asio::detail::is_continuation_if_running> >, boost::system::error_code, unsigned long>, websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> > >, boost::asio::io_context::basic_executor_type<std::allocator<void>, 0u>, void>::complete<boost::asio::detail::rewrapped_handler<boost::asio::detail::binder2<boost::asio::detail::read_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::any_io_executor>, boost::asio::mutable_buffers_1, boost::asio::mutable_buffer const*, boost::asio::detail::transfer_at_least_t, boost::asio::detail::wrapped_handler<boost::asio::io_context::strand, websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> >, boost::asio::detail::is_continuation_if_running> >, boost::system::error_code, unsigned long>, websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> > > >(boost::asio::detail::rewrapped_handler<boost::asio::detail::binder2<boost::asio::detail::read_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::any_io_executor>, boost::asio::mutable_buffers_1, boost::asio::mutable_buffer const*, boost::asio::detail::transfer_at_least_t, boost::asio::detail::wrapped_handler<boost::asio::io_context::strand, websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> >, boost::asio::detail::is_continuation_if_running> >, boost::system::error_code, unsigned long>, websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> > >&, boost::asio::detail::rewrapped_handler<boost::asio::detail::binder2<boost::asio::detail::read_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::any_io_executor>, boost::asio::mutable_buffers_1, boost::asio::mutable_buffer const*, boost::asio::detail::transfer_at_least_t, boost::asio::detail::wrapped_handler<boost::asio::io_context::strand, websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> >, boost::asio::detail::is_continuation_if_running> >, boost::system::error_code, unsigned long>, websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> > >&) /usr/include/boost/asio/detail/handler_work.hpp:501:7
    #33 0x55d166a284c7 in boost::asio::detail::completion_handler<boost::asio::detail::rewrapped_handler<boost::asio::detail::binder2<boost::asio::detail::read_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::any_io_executor>, boost::asio::mutable_buffers_1, boost::asio::mutable_buffer const*, boost::asio::detail::transfer_at_least_t, boost::asio::detail::wrapped_handler<boost::asio::io_context::strand, websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> >, boost::asio::detail::is_continuation_if_running> >, boost::system::error_code, unsigned long>, websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> > >, boost::asio::io_context::basic_executor_type<std::allocator<void>, 0u> >::do_complete(void*, boost::asio::detail::scheduler_operation*, boost::system::error_code const&, unsigned long) /usr/include/boost/asio/detail/completion_handler.hpp:74:9
    #34 0x55d1669ed242 in boost::asio::detail::scheduler_operation::complete(void*, boost::system::error_code const&, unsigned long) /usr/include/boost/asio/detail/scheduler_operation.hpp:40:5
    #35 0x55d1669ed242 in boost::asio::detail::strand_service::do_dispatch(boost::asio::detail::strand_service::strand_impl*&, boost::asio::detail::scheduler_operation*) /usr/include/boost/asio/detail/impl/strand_service.ipp:131:9
    #36 0x55d166a27f72 in void boost::asio::detail::strand_service::dispatch<boost::asio::detail::rewrapped_handler<boost::asio::detail::binder2<boost::asio::detail::read_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::any_io_executor>, boost::asio::mutable_buffers_1, boost::asio::mutable_buffer const*, boost::asio::detail::transfer_at_least_t, boost::asio::detail::wrapped_handler<boost::asio::io_context::strand, websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> >, boost::asio::detail::is_continuation_if_running> >, boost::system::error_code, unsigned long>, websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> > > >(boost::asio::detail::strand_service::strand_impl*&, boost::asio::detail::rewrapped_handler<boost::asio::detail::binder2<boost::asio::detail::read_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::any_io_executor>, boost::asio::mutable_buffers_1, boost::asio::mutable_buffer const*, boost::asio::detail::transfer_at_least_t, boost::asio::detail::wrapped_handler<boost::asio::io_context::strand, websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> >, boost::asio::detail::is_continuation_if_running> >, boost::system::error_code, unsigned long>, websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> > >&) /usr/include/boost/asio/detail/impl/strand_service.hpp:59:3
    #37 0x55d166a2779f  (/tmp/build-asan-debugsyms-qt5-rhi-ubsan/ossia-score+0x99ee79f)
    #38 0x55d166a26c43 in tem::error_code, unsigned long>, boost::asio::io_context::strand, websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> >, boost::asio::detail::is_continuation_if_running>(boost::asio::detail::binder2<boost::asio::detail::read_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::any_io_executor>, boost::asio::mutable_buffers_1, boost::asio::mutable_buffer const*, boost::asio::detail::transfer_at_least_t, boost::asio::detail::wrapped_handler<boost::asio::io_context::strand, websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> >, boost::asio::detail::is_continuation_if_running> >, boost::system::error_code, unsigned long>&, boost::asio::detail::wrapped_handler<boost::asio::io_context::strand, websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> >, boost::asio::detail::is_continuation_if_running>*) /usr/include/boost/asio/detail/wrapped_handler.hpp:243:29
    #39 0x55d162fc70fb in boost::asio::detail::reactive_socket_recv_op<boost::asio::mutable_buffers_1, boost::asio::detail::read_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::any_io_executor>, boost::asio::mutable_buffers_1, boost::asio::mutable_buffer const*, boost::asio::detail::transfer_at_least_t, boost::asio::detail::wrapped_handler<boost::asio::io_context::strand, websocketpp::transport::asio::custom_alloc_handler<std::_Bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::* (std::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::function<void (std::error_code const&, unsigned long)>, std::_Placeholder<1>, std::_Placeholder<2>))(std::function<void (std::error_code const&, unsigned long)>, boost::system::error_code const&, unsigned long)> >, boost::asio::detail::is_continuation_if_running> >, boost::asio::any_io_executor>::do_complete(void*, boost::asio::detail::scheduler_operation*, boost::system::error_code const&, unsigned long) /usr/include/boost/asio/detail/reactive_socket_recv_op.hpp:145:9
    #40 0x55d162fc620a in boost::asio::detail::scheduler_operation::complete(void*, boost::system::error_code const&, unsigned long) /usr/include/boost/asio/detail/scheduler_operation.hpp:40:5
    #41 0x55d162fc620a in boost::asio::detail::scheduler::do_run_one(boost::asio::detail::conditionally_enabled_mutex::scoped_lock&, boost::asio::detail::scheduler_thread_info&, boost::system::error_code const&) /usr/include/boost/asio/detail/impl/scheduler.ipp:486:12
    #42 0x55d162fcbefa in boost::asio::detail::scheduler::run(boost::system::error_code&) /usr/include/boost/asio/detail/impl/scheduler.ipp:204:10
    #43 0x55d162fcb8be in boost::asio::io_context::run() /usr/include/boost/asio/impl/io_context.ipp:63:24
    #44 0x55d162fb5319 in ossia::net::network_context::run() /home/jcelerier/ossia/score/3rdparty/libossia/src/ossia/network/context.hpp:21:15
    #45 0x7f506681d3c3 in Explorer::DeviceDocumentPlugin::init()::$_4::operator()() const /home/jcelerier/ossia/score/src/plugins/score-plugin-deviceexplorer/Explorer/DocumentPlugin/DeviceDocumentPlugin.cpp:92:22
    #46 0x7f506681d3c3 in void std::__invoke_impl<void, Explorer::DeviceDocumentPlugin::init()::$_4>(std::__invoke_other, Explorer::DeviceDocumentPlugin::init()::$_4&&) /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../include/c++/11.1.0/bits/invoke.h:61:14
    #47 0x7f506af9a258 in execute_native_thread_routine /build/gcc/src/gcc/libstdc++-v3/src/c++11/thread.cc:82:18
    #48 0x7f50666615e2 in start_thread pthread_create.c

0x62200009d7d0 is located 5840 bytes inside of 5848-byte region [0x62200009c100,0x62200009d7d8)
freed by thread T0 here:
    #0 0x55d1629f9ea9 in clone (/tmp/build-asan-debugsyms-qt5-rhi-ubsan/ossia-score+0x59c0ea9)
    #1 0x55d167003459 in operator delete(void*) (/tmp/build-asan-debugsyms-qt5-rhi-ubsan/ossia-score+0x9fca459)
    #2 0x55d166fe9ba4 in std::default_delete<ossia::net::websocket_client>::operator()(ossia::net::websocket_client*) const /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../include/c++/11.1.0/bits/unique_ptr.h:85:2
    #3 0x55d166fe9ba4 in std::unique_ptr<ossia::net::websocket_client, std::default_delete<ossia::net::websocket_client> >::~unique_ptr() /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../include/c++/11.1.0/bits/unique_ptr.h:361:4
    #4 0x55d166fe9cbd in ossia::oscquery_asio::oscquery_mirror_asio_protocol::~oscquery_mirror_asio_protocol() /home/jcelerier/ossia/score/3rdparty/libossia/src/ossia/protocols/oscquery/oscquery_mirror_asio.cpp:214:1
    #5 0x55d165d632ee in ossia::oscquery_asio::oscquery_mirror_asio_protocol::~oscquery_mirror_asio_protocol() /home/jcelerier/ossia/score/3rdparty/libossia/src/ossia/protocols/oscquery/oscquery_mirror_asio.cpp:212:1
    #6 0x55d165d6347d in std::unique_ptr<ossia::net::protocol_base, std::default_delete<ossia::net::protocol_base> >::reset(ossia::net::protocol_base*) /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../include/c++/11.1.0/bits/unique_ptr.h:456:7
    #7 0x55d165d6347d in ossia::net::generic_device::~generic_device() /home/jcelerier/ossia/score/3rdparty/libossia/src/ossia/network/generic/generic_device.cpp:40:14
    #8 0x55d164045fbd in ossia::net::generic_device::~generic_device() /home/jcelerier/ossia/score/3rdparty/libossia/src/ossia/network/generic/generic_device.cpp:30:1
    #9 0x55d1658ef43e in std::default_delete<ossia::net::device_base>::operator()(ossia::net::device_base*) const /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../include/c++/11.1.0/bits/unique_ptr.h:85:2
    #10 0x55d1658ef43e in std::unique_ptr<ossia::net::device_base, std::default_delete<ossia::net::device_base> >::~unique_ptr() /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../include/c++/11.1.0/bits/unique_ptr.h:361:4
    #11 0x55d164045c32 in Device::OwningDeviceInterface::~OwningDeviceInterface() /home/jcelerier/ossia/score/src/plugins/score-lib-device/Device/Protocol/DeviceInterface.cpp:945:51
    #12 0x55d162fdc650 in Protocols::OSCQueryDevice::~OSCQueryDevice() /home/jcelerier/ossia/score/src/plugins/score-plugin-protocols/Protocols/OSCQuery/OSCQueryDevice.hpp:14:7
    #13 0x55d162fdc650 in Protocols::OSCQueryDevice::~OSCQueryDevice() /home/jcelerier/ossia/score/src/plugins/score-plugin-protocols/Protocols/OSCQuery/OSCQueryDevice.hpp:14:7
    #14 0x55d1630bd092 in Device::DeviceList::removeDevice(QString const&) /home/jcelerier/ossia/score/src/plugins/score-plugin-deviceexplorer/Explorer/DeviceList.cpp:107:5
    #15 0x55d162b70dbd in score::AggregateCommand::redo(score::DocumentContext const&) const /home/jcelerier/ossia/score/src/lib/score/command/AggregateCommand.cpp:33:10
    #16 0x55d162b6f69c in score::DocumentBuilder::restoreDocument(score::GUIApplicationContext const&, score::RestorableDocument const&, score::DocumentDelegateFactory&)::$_1::operator()(score::Command*) const /home/jcelerier/ossia/score/src/lib/core/document/DocumentBuilder.cpp:210:18
    #17 0x55d162b6f69c in void score::loadCommandStack<score::DocumentBuilder::restoreDocument(score::GUIApplicationContext const&, score::RestorableDocument const&, score::DocumentDelegateFactory&)::$_1>(score::ApplicationComponents const&, DataStreamWriter&, score::CommandStack&, score::DocumentBuilder::restoreDocument(score::GUIApplicationContext const&, score::RestorableDocument const&, score::DocumentDelegateFactory&)::$_1)::'lambda'()::operator()() const /home/jcelerier/ossia/score/src/lib/core/command/CommandStackSerialization.hpp:34:11
    #18 0x55d162b6f69c in void score::CommandStack::updateStack<void score::loadCommandStack<score::DocumentBuilder::restoreDocument(score::GUIApplicationContext const&, score::RestorableDocument const&, score::DocumentDelegateFactory&)::$_1>(score::ApplicationComponents const&, DataStreamWriter&, score::CommandStack&, score::DocumentBuilder::restoreDocument(score::GUIApplicationContext const&, score::RestorableDocument const&, score::DocumentDelegateFactory&)::$_1)::'lambda'()>(score::DocumentBuilder::restoreDocument(score::GUIApplicationContext const&, score::RestorableDocument const&, score::DocumentDelegateFactory&)::$_1&&) /home/jcelerier/ossia/score/src/lib/core/command/CommandStack.hpp:187:5
    #19 0x55d162b6f69c in void score::loadCommandStack<score::DocumentBuilder::restoreDocument(score::GUIApplicationContext const&, score::RestorableDocument const&, score::DocumentDelegateFactory&)::$_1>(score::ApplicationComponents const&, DataStreamWriter&, score::CommandStack&, score::DocumentBuilder::restoreDocument(score::GUIApplicationContext const&, score::RestorableDocument const&, score::DocumentDelegateFactory&)::$_1) /home/jcelerier/ossia/score/src/lib/core/command/CommandStackSerialization.hpp:26:9
    #20 0x55d162c7e5ce in score::DocumentBuilder::restoreDocument(score::GUIApplicationContext const&, score::RestorableDocument const&, score::DocumentDelegateFactory&) /home/jcelerier/ossia/score/src/lib/core/document/DocumentBuilder.cpp:203:5
    #21 0x55d162c78edb in void score::DocumentManager::restoreDocument<score::RestorableDocument const&, score::DocumentDelegateFactory&>(score::GUIApplicationContext const&, score::RestorableDocument const&, score::DocumentDelegateFactory&) /home/jcelerier/ossia/score/src/lib/core/presenter/DocumentManager.hpp:91:24
    #22 0x55d162a11db9 in score::DocumentManager::restoreDocuments(score::GUIApplicationContext const&) /home/jcelerier/ossia/score/src/lib/core/presenter/DocumentManager.cpp:744:5
    #23 0x7f5066c507aa in Application::initDocuments()::$_9::operator()() const /home/jcelerier/ossia/score/src/app/Application.cpp:421:44
    #24 0x7f5066c507aa in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, Application::initDocuments()::$_9>::call(Application::initDocuments()::$_9&, void**) /home/jcelerier/libs/qt5-rhi-release/qtbase/include/QtCore/../../../../qt5/qtbase/src/corelib/kernel/qobjectdefs_impl.h:146:13
    #25 0x55d162a13c61  (/tmp/build-asan-debugsyms-qt5-rhi-ubsan/ossia-score+0x59dac61)
    #26 0x55d162a1956b in w_internal::SignalImplementation<void (score::StartScreen::*)(), 3>::operator()(int) /home/jcelerier/ossia/score/3rdparty/libossia/3rdparty/verdigris/src/wobjectdefs.h:519:9
    #27 0x55d162a1956b in score::StartScreen::loadCrashedSession() /home/jcelerier/ossia/score/src/app/StartScreen.hpp:212:29
    #28 0x7f5066c507aa in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (score::StartScreen::*)()>::call(void (score::StartScreen::*)(), score::StartScreen*, void**) /home/jcelerier/libs/qt5-rhi-release/qtbase/include/QtCore/../../../../qt5/qtbase/src/corelib/kernel/qobjectdefs_impl.h:152:13
    #29 0x55d162a169d9  (/tmp/build-asan-debugsyms-qt5-rhi-ubsan/ossia-score+0x59dd9d9)
    #30 0x55d1629ffee5 in w_internal::SignalImplementation<void (score::InteractiveLabel::*)(QString const&), 0>::operator()(QString const&, int) /home/jcelerier/ossia/score/3rdparty/libossia/3rdparty/verdigris/src/wobjectdefs.h:519:9
    #31 0x7f506a4d00bd in score::InteractiveLabel::labelPressed(QString const&) /home/jcelerier/ossia/score/src/app/StartScreen.hpp:86:42
    #32 0x7f506a4d00bd in score::InteractiveLabel::mousePressEvent(QMouseEvent*) /home/jcelerier/ossia/score/src/app/StartScreen.hpp:199:5

previously allocated by thread T0 here:
    #0 0x55d1629f9469 in QWidget::event(QEvent*) (/tmp/build-asan-debugsyms-qt5-rhi-ubsan/ossia-score+0x59c0469)
    #1 0x55d166fefb0f in operator new(unsigned long) (/tmp/build-asan-debugsyms-qt5-rhi-ubsan/ossia-score+0x9fb6b0f)
    #2 0x55d166fef0bc in std::_MakeUniq<ossia::net::websocket_client>::__single_object std::make_unique<ossia::net::websocket_client, boost::asio::io_context&, ossia::oscquery_asio::oscquery_mirror_asio_protocol::start_websockets()::$_3>(boost::asio::io_context&, ossia::oscquery_asio::oscquery_mirror_asio_protocol::start_websockets()::$_3&&) /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../include/c++/11.1.0/bits/unique_ptr.h:962:30
    #3 0x55d166fed2c2 in ossia::oscquery_asio::oscquery_mirror_asio_protocol::start_websockets() /home/jcelerier/ossia/score/3rdparty/libossia/src/ossia/protocols/oscquery/oscquery_mirror_asio.cpp:416:23
    #4 0x55d166fec89d in ossia::oscquery_asio::oscquery_mirror_asio_protocol::init() /home/jcelerier/ossia/score/3rdparty/libossia/src/ossia/protocols/oscquery/oscquery_mirror_asio.cpp:464:3
    #5 0x55d165d62dbf in ossia::oscquery_asio::oscquery_mirror_asio_protocol::set_device(ossia::net::device_base&) /home/jcelerier/ossia/score/3rdparty/libossia/src/ossia/protocols/oscquery/oscquery_mirror_asio.cpp:367:3
    #6 0x55d163ff4090 in ossia::net::generic_device::generic_device(std::unique_ptr<ossia::net::protocol_base, std::default_delete<ossia::net::protocol_base> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) /home/jcelerier/ossia/score/3rdparty/libossia/src/ossia/network/generic/generic_device.cpp:26:15
    #7 0x55d16404054b in std::_MakeUniq<ossia::net::generic_device>::__single_object std::make_unique<ossia::net::generic_device, std::unique_ptr<ossia::net::protocol_base, std::default_delete<ossia::net::protocol_base> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(std::unique_ptr<ossia::net::protocol_base, std::default_delete<ossia::net::protocol_base> >&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&) /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../include/c++/11.1.0/bits/unique_ptr.h:962:34
    #8 0x55d16404771b in Protocols::OSCQueryDevice::slot_createDevice() /home/jcelerier/ossia/score/src/plugins/score-plugin-protocols/Protocols/OSCQuery/OSCQueryDevice.cpp:222:13
    #9 0x7f5066c4654e in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (Protocols::OSCQueryDevice::*)()>::call(void (Protocols::OSCQueryDevice::*)(), Protocols::OSCQueryDevice*, void**) /home/jcelerier/libs/qt5-rhi-release/qtbase/include/QtCore/../../../../qt5/qtbase/src/corelib/kernel/qobjectdefs_impl.h:152:13
    #10 0x7f506a48cd61 in QObject::event(QEvent*) (/usr/lib/libQt5Widgets.so.5+0x15ad61)

Thread T46 created by T0 here:
    #0 0x55d162926784 in QApplicationPrivate::notify_helper(QObject*, QEvent*) (/tmp/build-asan-debugsyms-qt5-rhi-ubsan/ossia-score+0x58ed784)
    #1 0x7f506681d6aa in pthread_create (/usr/lib/libstdc++.so.6+0xd36aa)
    #2 0x55d162f839c4 in __gthread_create /build/gcc/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/gthr-default.h:663:35
    #3 0x55d162f839c4 in std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) /build/gcc/src/gcc/libstdc++-v3/src/c++11/thread.cc:147:37
    #4 0x55d162f834ce in Explorer::DeviceDocumentPlugin::DeviceDocumentPlugin<DataStreamWriter>(score::DocumentContext const&, DataStreamWriter&, QObject*) /home/jcelerier/ossia/score/src/plugins/score-plugin-deviceexplorer/Explorer/DocumentPlugin/DeviceDocumentPlugin.hpp:46:5
    #5 0x55d162f83353 in auto score::DocumentPluginFactory_T<Explorer::DeviceDocumentPlugin>::load(VisitorVariant const&, score::DocumentContext&, QObject*)::'lambda'(auto&&)::operator()<DataStreamWriter&>(auto&&) const /home/jcelerier/ossia/score/src/lib/score/plugins/documentdelegate/plugin/DocumentPluginCreator.hpp:58:18
    #6 0x55d162f83353 in auto score::deserialize_dyn<score::DocumentPluginFactory_T<Explorer::DeviceDocumentPlugin>::load(VisitorVariant const&, score::DocumentContext&, QObject*)::'lambda'(auto&&)>(VisitorVariant const&, auto&&) /home/jcelerier/ossia/score/src/lib/score/serialization/VisitorCommon.hpp:100:14
    #7 0x55d162bdcc44 in score::DocumentPluginFactory_T<Explorer::DeviceDocumentPlugin>::load(VisitorVariant const&, score::DocumentContext&, QObject*) /home/jcelerier/ossia/score/src/lib/score/plugins/documentdelegate/plugin/DocumentPluginCreator.hpp:57:12
    #8 0x55d162bd9fea in score::DocumentPluginFactoryList::object_type* deserialize_interface<score::DocumentPluginFactoryList, score::DocumentContext&, score::DocumentModel*>(score::DocumentPluginFactoryList const&, DataStreamWriter&, score::DocumentContext&, score::DocumentModel*&&) /home/jcelerier/ossia/score/src/lib/score/plugins/SerializableHelpers.hpp:42:36
    #9 0x55d162bd9762 in score::DocumentModel::loadDocumentAsByteArray(score::DocumentContext&, QByteArray const&, score::DocumentDelegateFactory&) /home/jcelerier/ossia/score/src/lib/core/document/DocumentSerialization.cpp:370:11
    #10 0x55d162bd8b73 in score::Document::restoreModel(QByteArray const&, score::DocumentDelegateFactory&) /home/jcelerier/ossia/score/src/lib/core/document/DocumentSerialization.cpp:236:12
    #11 0x55d162b6f03e in score::Document::Document(score::RestorableDocument const&, score::DocumentDelegateFactory&, QWidget*, QObject*) /home/jcelerier/ossia/score/src/lib/core/document/DocumentSerialization.cpp:212:3
    #12 0x55d162c7e5ce in score::DocumentBuilder::restoreDocument(score::GUIApplicationContext const&, score::RestorableDocument const&, score::DocumentDelegateFactory&) /home/jcelerier/ossia/score/src/lib/core/document/DocumentBuilder.cpp:187:15
    #13 0x55d162c78edb in void score::DocumentManager::restoreDocument<score::RestorableDocument const&, score::DocumentDelegateFactory&>(score::GUIApplicationContext const&, score::RestorableDocument const&, score::DocumentDelegateFactory&) /home/jcelerier/ossia/score/src/lib/core/presenter/DocumentManager.hpp:91:24
    #14 0x55d162a11db9 in score::DocumentManager::restoreDocuments(score::GUIApplicationContext const&) /home/jcelerier/ossia/score/src/lib/core/presenter/DocumentManager.cpp:744:5
    #15 0x7f5066c507aa in Application::initDocuments()::$_9::operator()() const /home/jcelerier/ossia/score/src/app/Application.cpp:421:44
    #16 0x7f5066c507aa in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, Application::initDocuments()::$_9>::call(Application::initDocuments()::$_9&, void**) /home/jcelerier/libs/qt5-rhi-release/qtbase/include/QtCore/../../../../qt5/qtbase/src/corelib/kernel/qobjectdefs_impl.h:146:13
    #17 0x55d162a13c61  (/tmp/build-asan-debugsyms-qt5-rhi-ubsan/ossia-score+0x59dac61)
    #18 0x55d162a1956b in w_internal::SignalImplementation<void (score::StartScreen::*)(), 3>::operator()(int) /home/jcelerier/ossia/score/3rdparty/libossia/3rdparty/verdigris/src/wobjectdefs.h:519:9
    #19 0x55d162a1956b in score::StartScreen::loadCrashedSession() /home/jcelerier/ossia/score/src/app/StartScreen.hpp:212:29
    #20 0x7f5066c507aa in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (score::StartScreen::*)()>::call(void (score::StartScreen::*)(), score::StartScreen*, void**) /home/jcelerier/libs/qt5-rhi-release/qtbase/include/QtCore/../../../../qt5/qtbase/src/corelib/kernel/qobjectdefs_impl.h:152:13
    #21 0x55d162a169d9  (/tmp/build-asan-debugsyms-qt5-rhi-ubsan/ossia-score+0x59dd9d9)
    #22 0x55d1629ffee5 in w_internal::SignalImplementation<void (score::InteractiveLabel::*)(QString const&), 0>::operator()(QString const&, int) /home/jcelerier/ossia/score/3rdparty/libossia/3rdparty/verdigris/src/wobjectdefs.h:519:9
    #23 0x7f506a4d00bd in score::InteractiveLabel::labelPressed(QString const&) /home/jcelerier/ossia/score/src/app/StartScreen.hpp:86:42
    #24 0x7f506a4d00bd in score::InteractiveLabel::mousePressEvent(QMouseEvent*) /home/jcelerier/ossia/score/src/app/StartScreen.hpp:199:5

SUMMARY: AddressSanitizer: heap-use-after-free (/tmp/build-asan-debugsyms-qt5-rhi-ubsan/ossia-score+0x99a050a) in QWidget::event(QEvent*)
Shadow bytes around the buggy address:
  0x0c448000baa0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c448000bab0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c448000bac0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c448000bad0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c448000bae0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
=>0x0c448000baf0: fd fd fd fd fd fd fd fd fd fd[fd]fa fa fa fa fa
  0x0c448000bb00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c448000bb10: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c448000bb20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c448000bb30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c448000bb40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
==546720==ABORTING
[1]    546720 exit 1     ./ossia-score
@jcelerier jcelerier added this to the release/3.0 milestone Nov 20, 2021
@jcelerier jcelerier self-assigned this Nov 20, 2021
@jcelerier jcelerier added this to To do in Protocols via automation Nov 20, 2021
Protocols automation moved this from To do to Done Nov 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

No branches or pull requests

1 participant