OK case 1 when closing directly after launching odb and disable macros: no disposing call at all OK case 2 when closing directly, after browsing tables: #0 connectivity::firebird::Connection::disposing() (this=0x43fabc0) at connectivity/source/drivers/firebird/Connection.cxx:899 #1 0x00007f1a8277d523 in cppu::WeakComponentImplHelperBase::dispose() (this=0x43fabc0) at cppuhelper/source/implbase.cxx:104 #2 0x00007f1a68427338 in cppu::PartialWeakComponentImplHelper::dispose() (this=0x43fabc0) at include/cppuhelper/compbase.hxx:90 #3 0x00007f1a6841e46f in connectivity::firebird::Connection::close() (this=0x43fabc0) at connectivity/source/drivers/firebird/Connection.cxx:771 #4 0x00007f1a6c7df7de in dbaccess::OConnection::disposing() (this=0x5cd33b0) at dbaccess/source/core/dataaccess/connection.cxx:475 #5 0x00007f1a8275fdbc in cppu::OComponentHelper::dispose() (this=0x5cd33b0) at cppuhelper/source/component.cxx:161 #6 0x00007f1a6c709ee2 in comphelper::disposeComponent(com::sun::star::uno::Reference&) (_rxComp=uno::Reference to (dbaccess::OConnection *) 0x5cd3480) at include/comphelper/types.hxx:48 #7 0x00007f1a6c8563c4 in dbaccess::OSharedConnectionManager::disposing(com::sun::star::lang::EventObject const&) (this=0x43e45c0, Source=...) at dbaccess/source/core/dataaccess/datasource.cxx:337 #8 0x00007f1a8278358f in cppu::OInterfaceContainerHelper::disposeAndClear(com::sun::star::lang::EventObject const&) (this=0x5d2fa60, rEvt=...) at cppuhelper/source/interfacecontainer.cxx:271 #9 0x00007f1a827844ca in cppu::OMultiTypeInterfaceContainerHelper::disposeAndClear(com::sun::star::lang::EventObject const&) (this=0x5ceb410, rEvt=...) at cppuhelper/source/interfacecontainer.cxx:423 #10 0x00007f1a8277d50b in cppu::WeakComponentImplHelperBase::dispose() (this=0x5ceb3e0) at cppuhelper/source/implbase.cxx:103 #11 0x00007f1a6c8e8208 in cppu::PartialWeakComponentImplHelper::dispose() (this=0x5ceb3e0) at include/cppuhelper/compbase.hxx:90 #12 0x00007f1a7cf51e7e in utl::DisposableComponent::~DisposableComponent() (this=0x5d1c360) at unotools/source/misc/sharedunocomponent.cxx:57 #13 0x00007f1a7fc48a9b in std::_Sp_counted_ptr::_M_dispose() (this=0x5d2c040) at /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr_base.h:380 #14 0x00007f1a69a53404 in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release() (this=0x5d2c040) at /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr_base.h:158 #15 0x00007f1a69a5334a in std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() (this=0x7fffdd645890) at /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr_base.h:733 #16 0x00007f1a69a6240e in std::__shared_ptr::~__shared_ptr() (this=0x7fffdd645888) at /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr_base.h:1183 #17 0x00007f1a69a622f7 in std::__shared_ptr::reset() (this=0x3cfe410) at /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr_base.h:1301 #18 0x00007f1a69a4686f in utl::SharedUNOComponent::clear() (this=0x3cfe410) at include/unotools/sharedunocomponent.hxx:205 #19 0x00007f1a69a2f61d in dbaui::OApplicationController::disconnect() (this=0x3cfe060) at dbaccess/source/ui/app/AppController.cxx:293 #20 0x00007f1a69a2f9a9 in dbaui::OApplicationController::disposing() (this=0x3cfe060) at dbaccess/source/ui/app/AppController.cxx:321 #21 0x00007f1a8277d523 in cppu::WeakComponentImplHelperBase::dispose() (this=0x3cfe060) at cppuhelper/source/implbase.cxx:104 #22 0x00007f1a69b53108 in cppu::PartialWeakComponentImplHelper::dispose() (this=0x3cfe060) at include/cppuhelper/compbase.hxx:90 #23 0x00007f1a69b4b176 in dbaui::OGenericUnoController::dispose() (this=0x3cfe060) at dbaccess/source/ui/browser/genericcontroller.cxx:1221 #24 0x00007f1a81b59b49 in (anonymous namespace)::XFrameImpl::setComponent(com::sun::star::uno::Reference const&, com::sun::star::uno::Reference const&) (this=0x3e3a060, xComponentWindow=uno::Reference to (VCLXWindow *) 0x5d8b740, xController=uno::Reference to ((anonymous namespace)::BackingComp *) 0x5d80cb8) at framework/source/services/frame.cxx:1500 #25 0x00007f1a81948fae in framework::CloseDispatcher::implts_establishBackingMode() (this=0x5d78a60) at framework/source/dispatch/closedispatcher.cxx:525 #26 0x00007f1a8194839a in framework::CloseDispatcher::impl_asyncCallback(LinkParamNone*) (this=0x5d78a60) at framework/source/dispatch/closedispatcher.cxx:393 #27 0x00007f1a81946ba0 in framework::CloseDispatcher::LinkStubimpl_asyncCallback(void*, LinkParamNone*) (instance=0x5d78a60, data=0x0) at framework/source/dispatch/closedispatcher.cxx:244 #28 0x00007f1a7b53c2e8 in Link::Call(LinkParamNone*) const (this=0x435e888, data=0x0) at include/tools/link.hxx:111 #29 0x00007f1a7bbbc65b in vcl::EventPoster::DoEvent_Impl(void*) (this=0x435e880) at vcl/source/helper/evntpost.cxx:52 #30 0x00007f1a7bbbc610 in vcl::EventPoster::LinkStubDoEvent_Impl(void*, void*) (instance=0x435e880, data=0x0) at vcl/source/helper/evntpost.cxx:48 #31 0x00007f1a7b449ae8 in Link::Call(void*) const (this=0x5d6f898, data=0x0) at include/tools/link.hxx:111 #32 0x00007f1a7b445cee in ImplHandleUserEvent(ImplSVEvent*) (pSVEvent=0x5d6f890) at vcl/source/window/winproc.cxx:1989 #33 0x00007f1a7b442776 in ImplWindowFrameProc(vcl::Window*, SalEvent, void const*) (_pWindow=0x35eedb0, nEvent=SalEvent::UserEvent, pEvent=0x5d6f890) at vcl/source/window/winproc.cxx:2559 #34 0x00007f1a7bfc7f95 in SalFrame::CallCallback(SalEvent, void const*) const (this=0x35ef560, nEvent=SalEvent::UserEvent, pEvent=0x5d6f890) at vcl/inc/salframe.hxx:306 #35 0x00007f1a7bff5daf in SalGenericDisplay::ProcessEvent(SalUserEventList::SalUserEvent) (this=0x35533d0, aEvent=...) at vcl/unx/generic/app/gendisp.cxx:66 #36 0x00007f1a7bbce049 in SalUserEventList::DispatchUserEvents(bool) (this=0x35533d0, bHandleAllCurrentEvents=false) at vcl/source/app/salusereventlist.cxx:117 #37 0x00007f1a7bff5cf9 in SalGenericDisplay::DispatchInternalEvent(bool) (this=0x35533d0, bHandleAllCurrentEvent=false) at vcl/unx/generic/app/gendisp.cxx:51 #38 0x00007f1a7074732a in SalX11Display::Yield() (this=0x35533d0) at vcl/unx/generic/app/saldisp.cxx:1885 #39 0x00007f1a7073c033 in DisplayYield(int, void*) (fd=8, data=0x35533d0) at vcl/unx/generic/app/saldisp.cxx:381 #40 0x00007f1a7073716c in (anonymous namespace)::YieldEntry::HandleNextEvent() const (this=0x7f1a708e1320 ) at vcl/unx/generic/app/saldata.cxx:566 #41 0x00007f1a70736963 in SalXLib::Yield(bool, bool) (this=0x1deaab0, bWait=true, bHandleAllCurrentEvents=false) at vcl/unx/generic/app/saldata.cxx:662 #42 0x00007f1a7075da88 in X11SalInstance::DoYield(bool, bool) (this=0x1de9cd0, bWait=true, bHandleAllCurrentEvents=false) at vcl/unx/generic/app/salinst.cxx:185 --Type for more, q to quit, c to continue without paging-- #43 0x00007f1a7bcb0820 in ImplYield(bool, bool) (i_bWait=true, i_bAllEvents=false) at vcl/source/app/svapp.cxx:465 #44 0x00007f1a7bcb0490 in Application::Yield() () at vcl/source/app/svapp.cxx:532 #45 0x00007f1a7bcb0409 in Application::Execute() () at vcl/source/app/svapp.cxx:444 #46 0x00007f1a83d508bc in desktop::Desktop::Main() (this=0x7fffdd649408) at desktop/source/app/app.cxx:1586 #47 0x00007f1a7bcd30c0 in ImplSVMain() () at vcl/source/app/svmain.cxx:197 #48 0x00007f1a7bcd4c89 in SVMain() () at vcl/source/app/svmain.cxx:229 #49 0x00007f1a83dca24e in soffice_main() () at desktop/source/app/sofficemain.cxx:98 #50 0x000000000040088d in sal_main () at desktop/source/app/main.c:49 #51 0x0000000000400867 in main (argc=3, argv=0x7fffdd6495f8) at desktop/source/app/main.c:47 #0 connectivity::firebird::Connection::disposing(com::sun::star::lang::EventObject const&) (this=0x43fabc0) at connectivity/source/drivers/firebird/Connection.cxx:842 #1 0x00007f1a82b29b49 in comphelper::OInterfaceContainerHelper2::disposeAndClear(com::sun::star::lang::EventObject const&) (this=0x3e8e6d0, rEvt=...) at comphelper/source/container/interfacecontainer2.cxx:261 #2 0x00007f1a6c8b452e in dbaccess::DocumentEventNotifier_Impl::disposing() (this=0x3e8e680) at dbaccess/source/core/dataaccess/documenteventnotifier.cxx:164 #3 0x00007f1a6c8b4c9d in dbaccess::DocumentEventNotifier::disposing() (this=0x3d62b00) at dbaccess/source/core/dataaccess/documenteventnotifier.cxx:248 #4 0x00007f1a6c82f530 in dbaccess::ODatabaseDocument::disposing() (this=0x3d62980) at dbaccess/source/core/dataaccess/databasedocument.cxx:1790 #5 0x00007f1a8277d523 in cppu::WeakComponentImplHelperBase::dispose() (this=0x3d62998) at cppuhelper/source/implbase.cxx:104 #6 0x00007f1a6c82fa8e in dbaccess::ODatabaseDocument::dispose() (this=0x3d62980) at dbaccess/source/core/dataaccess/databasedocument.cxx:1861 #7 0x00007f1a6c82cc0e in dbaccess::ODatabaseDocument::close(unsigned char) (this=0x3d62980, bDeliverOwnership=1 '\001') at dbaccess/source/core/dataaccess/databasedocument.cxx:1512 #8 0x00007f1a6c826a6c in dbaccess::ODatabaseDocument::disconnectController(com::sun::star::uno::Reference const&) (this=0x3d62980, _xController= uno::Reference to (dbaui::OApplicationController *) 0x3cfe0e8) at dbaccess/source/core/dataaccess/databasedocument.cxx:860 #9 0x00007f1a69a3092d in dbaui::OApplicationController::disposing() (this=0x3cfe060) at dbaccess/source/ui/app/AppController.cxx:374 #10 0x00007f1a8277d523 in cppu::WeakComponentImplHelperBase::dispose() (this=0x3cfe060) at cppuhelper/source/implbase.cxx:104 #11 0x00007f1a69b53108 in cppu::PartialWeakComponentImplHelper::dispose() (this=0x3cfe060) at include/cppuhelper/compbase.hxx:90 #12 0x00007f1a69b4b176 in dbaui::OGenericUnoController::dispose() (this=0x3cfe060) at dbaccess/source/ui/browser/genericcontroller.cxx:1221 #13 0x00007f1a81b59b49 in (anonymous namespace)::XFrameImpl::setComponent(com::sun::star::uno::Reference const&, com::sun::star::uno::Reference const&) (this=0x3e3a060, xComponentWindow=uno::Reference to (VCLXWindow *) 0x5d8b740, xController=uno::Reference to ((anonymous namespace)::BackingComp *) 0x5d80cb8) at framework/source/services/frame.cxx:1500 #14 0x00007f1a81948fae in framework::CloseDispatcher::implts_establishBackingMode() (this=0x5d78a60) at framework/source/dispatch/closedispatcher.cxx:525 #15 0x00007f1a8194839a in framework::CloseDispatcher::impl_asyncCallback(LinkParamNone*) (this=0x5d78a60) at framework/source/dispatch/closedispatcher.cxx:393 #16 0x00007f1a81946ba0 in framework::CloseDispatcher::LinkStubimpl_asyncCallback(void*, LinkParamNone*) (instance=0x5d78a60, data=0x0) at framework/source/dispatch/closedispatcher.cxx:244 #17 0x00007f1a7b53c2e8 in Link::Call(LinkParamNone*) const (this=0x435e888, data=0x0) at include/tools/link.hxx:111 #18 0x00007f1a7bbbc65b in vcl::EventPoster::DoEvent_Impl(void*) (this=0x435e880) at vcl/source/helper/evntpost.cxx:52 #19 0x00007f1a7bbbc610 in vcl::EventPoster::LinkStubDoEvent_Impl(void*, void*) (instance=0x435e880, data=0x0) at vcl/source/helper/evntpost.cxx:48 #20 0x00007f1a7b449ae8 in Link::Call(void*) const (this=0x5d6f898, data=0x0) at include/tools/link.hxx:111 #21 0x00007f1a7b445cee in ImplHandleUserEvent(ImplSVEvent*) (pSVEvent=0x5d6f890) at vcl/source/window/winproc.cxx:1989 #22 0x00007f1a7b442776 in ImplWindowFrameProc(vcl::Window*, SalEvent, void const*) (_pWindow=0x35eedb0, nEvent=SalEvent::UserEvent, pEvent=0x5d6f890) at vcl/source/window/winproc.cxx:2559 #23 0x00007f1a7bfc7f95 in SalFrame::CallCallback(SalEvent, void const*) const (this=0x35ef560, nEvent=SalEvent::UserEvent, pEvent=0x5d6f890) at vcl/inc/salframe.hxx:306 #24 0x00007f1a7bff5daf in SalGenericDisplay::ProcessEvent(SalUserEventList::SalUserEvent) (this=0x35533d0, aEvent=...) at vcl/unx/generic/app/gendisp.cxx:66 #25 0x00007f1a7bbce049 in SalUserEventList::DispatchUserEvents(bool) (this=0x35533d0, bHandleAllCurrentEvents=false) at vcl/source/app/salusereventlist.cxx:117 #26 0x00007f1a7bff5cf9 in SalGenericDisplay::DispatchInternalEvent(bool) (this=0x35533d0, bHandleAllCurrentEvent=false) at vcl/unx/generic/app/gendisp.cxx:51 #27 0x00007f1a7074732a in SalX11Display::Yield() (this=0x35533d0) at vcl/unx/generic/app/saldisp.cxx:1885 #28 0x00007f1a7073c033 in DisplayYield(int, void*) (fd=8, data=0x35533d0) at vcl/unx/generic/app/saldisp.cxx:381 #29 0x00007f1a7073716c in (anonymous namespace)::YieldEntry::HandleNextEvent() const (this=0x7f1a708e1320 ) at vcl/unx/generic/app/saldata.cxx:566 #30 0x00007f1a70736963 in SalXLib::Yield(bool, bool) (this=0x1deaab0, bWait=true, bHandleAllCurrentEvents=false) at vcl/unx/generic/app/saldata.cxx:662 #31 0x00007f1a7075da88 in X11SalInstance::DoYield(bool, bool) (this=0x1de9cd0, bWait=true, bHandleAllCurrentEvents=false) at vcl/unx/generic/app/salinst.cxx:185 #32 0x00007f1a7bcb0820 in ImplYield(bool, bool) (i_bWait=true, i_bAllEvents=false) at vcl/source/app/svapp.cxx:465 #33 0x00007f1a7bcb0490 in Application::Yield() () at vcl/source/app/svapp.cxx:532 #34 0x00007f1a7bcb0409 in Application::Execute() () at vcl/source/app/svapp.cxx:444 #35 0x00007f1a83d508bc in desktop::Desktop::Main() (this=0x7fffdd649408) at desktop/source/app/app.cxx:1586 #36 0x00007f1a7bcd30c0 in ImplSVMain() () at vcl/source/app/svmain.cxx:197 #37 0x00007f1a7bcd4c89 in SVMain() () at vcl/source/app/svmain.cxx:229 #38 0x00007f1a83dca24e in soffice_main() () at desktop/source/app/sofficemain.cxx:98 #39 0x000000000040088d in sal_main () at desktop/source/app/main.c:49 #40 0x0000000000400867 in main (argc=3, argv=0x7fffdd6495f8) at desktop/source/app/main.c:47