Opened 6 years ago

Closed 6 years ago

#1021 closed Bug Report (fixed)

Ingen (as plugin) crashes on lv2 cleanup

Reported by: falkTX Owned by: David Robillard
Priority: major Component: Ingen
Keywords: lv2, cleanup, ingen Cc:

Description

Reproducible with jalv.gtk. Here's a trace from carla:


#0  0x0000000002ac0880 in ?? ()
#1  0x00007fffcce0393a in Ingen::Server::Engine::store() const () from /usr/lib/libingen_server.so
#2  0x00007fffcce03590 in Ingen::Server::Engine::~Engine() () from /usr/lib/libingen_server.so
#3  0x00007fffcce0389e in Ingen::Server::Engine::~Engine() () from /usr/lib/libingen_server.so
#4  0x00007fffcd1681ba in std::_Sp_counted_ptr<Ingen::Server::Engine*, (__gnu_cxx::_Lock_policy)2>::_M_dispose() ()
   from /usr/lib/lv2/StereoInOut.ingen/libingen_lv2.so
#5  0x00007fffcd15a42a in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release() () from /usr/lib/lv2/StereoInOut.ingen/libingen_lv2.so
#6  0x00007fffcd1589af in std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() () from /usr/lib/lv2/StereoInOut.ingen/libingen_lv2.so
#7  0x00007fffcd1585b2 in std::__shared_ptr<Ingen::Server::Engine, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr() ()
   from /usr/lib/lv2/StereoInOut.ingen/libingen_lv2.so
#8  0x00007fffcd1585e6 in std::shared_ptr<Ingen::Server::Engine>::~shared_ptr() () from /usr/lib/lv2/StereoInOut.ingen/libingen_lv2.so
#9  0x00007fffcd158858 in IngenPlugin::~IngenPlugin() () from /usr/lib/lv2/StereoInOut.ingen/libingen_lv2.so
#10 0x00007fffcd152b79 in ?? () from /usr/lib/lv2/StereoInOut.ingen/libingen_lv2.so
#11 0x00007fffdc4d820e in CarlaBackend::CarlaPluginLV2::~CarlaPluginLV2 (this=0x2ae18e0, __in_chrg=<optimized out>) at CarlaPluginLV2.cpp:626
#12 0x00007fffdc4d8742 in CarlaBackend::CarlaPluginLV2::~CarlaPluginLV2 (this=0x2ae18e0, __in_chrg=<optimized out>) at CarlaPluginLV2.cpp:704
#13 0x00007fffdc460509 in CarlaBackend::CarlaEngine::removeAllPlugins (this=0x174fa00) at CarlaEngine.cpp:704
#14 0x00007fffdc4389ea in carla_remove_all_plugins () at CarlaStandalone.cpp:805

Change History (2)

comment:1 Changed 6 years ago by falkTX

Updated trace from ingen debug build:

#0  0x00000000031d9350 in ?? ()
#1  0x00007fffd06de93a in Ingen::Server::Engine::store (this=0x33dff10) at ../src/server/Engine.cpp:158
#2  0x00007fffd06de590 in Ingen::Server::Engine::~Engine (this=0x33dff10, __in_chrg=<optimized out>) at ../src/server/Engine.cpp:116
#3  0x00007fffd06de89e in Ingen::Server::Engine::~Engine (this=0x33dff10, __in_chrg=<optimized out>) at ../src/server/Engine.cpp:145
#4  0x00007fffd0a0c1ba in std::_Sp_counted_ptr<Ingen::Server::Engine*, (__gnu_cxx::_Lock_policy)2>::_M_dispose (this=0x38444a0) at /usr/include/c++/4.8/bits/shared_ptr_base.h:290
#5  0x00007fffd09fe42a in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (this=0x38444a0) at /usr/include/c++/4.8/bits/shared_ptr_base.h:144
#6  0x00007fffd09fc9af in std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count (this=0x31d6d20, __in_chrg=<optimized out>) at /usr/include/c++/4.8/bits/shared_ptr_base.h:553
#7  0x00007fffd09fc5b2 in std::__shared_ptr<Ingen::Server::Engine, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr (this=0x31d6d18, __in_chrg=<optimized out>)
    at /usr/include/c++/4.8/bits/shared_ptr_base.h:810
#8  0x00007fffd09fc5e6 in std::shared_ptr<Ingen::Server::Engine>::~shared_ptr (this=0x31d6d18, __in_chrg=<optimized out>) at /usr/include/c++/4.8/bits/shared_ptr.h:93
#9  0x00007fffd09fc858 in IngenPlugin::~IngenPlugin (this=0x31d6d10, __in_chrg=<optimized out>) at ../src/server/ingen_lv2.cpp:438
#10 0x00007fffd09f6b79 in ingen_cleanup (instance=0x31d6d10) at ../src/server/ingen_lv2.cpp:682

It's crashing on:

return _world->store();

comment:2 Changed 6 years ago by David Robillard

Resolution: fixed
Status: newclosed

Fixed in r5629.

Note: See TracTickets for help on using tickets.