220 OSL_ENSURE( ( pUndoMgr == nullptr ) || ( pNewUndoMgr == nullptr ) || ( pUndoMgr == pNewUndoMgr ), 221 "SfxShell::SetUndoManager: exchanging one non-NULL manager with another non-NULL manager? Suspicious!" ); 222 // there's at least one client of our UndoManager - the DocumentUndoManager at the SfxBaseModel - which (gdb) p pUndoMgr $1 = (svl::IUndoManager *) 0x0 (gdb) p pNewUndoMgr $2 = (svl::IUndoManager *) 0x2c6a240 (gdb) p pUndoMgr $3 = (svl::IUndoManager *) 0x0 (gdb) bt #0 SfxShell::SetUndoManager (this=0x2c830c0, pNewUndoMgr=0x2c6a240) at /home/julien/lo/libreoffice/sfx2/source/control/shell.cxx:218 #1 0x00002aaad4ef5cbc in ScTabViewShell::Construct (this=0x2c830c0, nForceDesignMode=TRISTATE_INDET) at /home/julien/lo/libreoffice/sc/source/ui/view/tabvwsh4.cxx:1516 #2 0x00002aaad4ef6831 in ScTabViewShell::ScTabViewShell (this=0x2c830c0, pViewFrame=0x2c77af0, pOldSh=0x0) at /home/julien/lo/libreoffice/sc/source/ui/view/tabvwsh4.cxx:1693 #3 0x00002aaad4ee99f1 in ScTabViewShell::CreateInstance (pFrame=0x2c77af0, pOldView=0x0) at /home/julien/lo/libreoffice/sc/source/ui/view/tabvwsh.cxx:105 #4 0x00002aaaaf8675ed in SfxViewFactory::CreateInstance (this=0x2b0f510, pFrame=0x2c77af0, pOldSh=0x0) at /home/julien/lo/libreoffice/sfx2/source/view/viewfac.cxx:28 #5 0x00002aaaaf758b43 in SfxBaseModel::createViewController (this=0x2b219c0, i_rViewName="Default", i_rArguments=empty uno::Sequence, i_rFrame= uno::Reference to ((anonymous namespace)::Frame *) 0x2a63c00) at /home/julien/lo/libreoffice/sfx2/source/doc/sfxbasemodel.cxx:4254 #6 0x00002aaaaf84efe8 in (anonymous namespace)::SfxFrameLoader_Impl::impl_createDocumentView (i_rModel=uno::Reference to (ScModelObj *) 0x2b21a50, i_rFrame=uno::Reference to ((anonymous namespace)::Frame *) 0x2a63c00, i_rViewFactoryArgs=..., i_rViewName="Default") at /home/julien/lo/libreoffice/sfx2/source/view/frmload.cxx:599 #7 0x00002aaaaf84fc7e in (anonymous namespace)::SfxFrameLoader_Impl::load (this=0x2a39d50, rArgs=uno::Sequence of length 9 = {...}, _rTargetFrame=uno::Reference to ((anonymous namespace)::Frame *) 0x2a63c00) at /home/julien/lo/libreoffice/sfx2/source/view/frmload.cxx:727 #8 0x00002aaad15a19dc in framework::LoadEnv::impl_loadContent (this=0x2ca2cc0) at /home/julien/lo/libreoffice/framework/source/loadenv/loadenv.cxx:1117 #9 0x00002aaad159db71 in framework::LoadEnv::startLoading (this=0x2ca2cc0) at /home/julien/lo/libreoffice/framework/source/loadenv/loadenv.cxx:379 #10 0x00002aaad151a5de in framework::LoadDispatcher::impl_dispatch (this=0x2ca2c60, rURL=..., lArguments=uno::Sequence of length 4 = {...}, xListener=empty uno::Reference) at /home/julien/lo/libreoffice/framework/source/dispatch/loaddispatcher.cxx:115 #11 0x00002aaad151a29d in framework::LoadDispatcher::dispatchWithReturnValue (this=0x2ca2c60, rURL=..., lArguments=uno::Sequence of length 4 = {...}) at /home/julien/lo/libreoffice/framework/source/dispatch/loaddispatcher.cxx:62 #12 0x00002aaaad3fccb6 in comphelper::SynchronousDispatch::dispatch (xStartPoint=uno::Reference to (framework::Desktop *) 0x2915a28, sURL="private:factory/scalc", sTarget="_default", nFlags=0, lArguments=uno::Sequence of length 4 = {...}) at /home/julien/lo/libreoffice/comphelper/source/misc/synchronousdispatch.cxx:64 #13 0x00002aaaaafdcc40 in desktop::DispatchWatcher::executeDispatchRequests (this=0x2cd5f30, aDispatchRequestsList=std::__debug::vector of length 1, capacity 1 = {...}, bNoTerminate=false) at /home/julien/lo/libreoffice/desktop/source/app/dispatchwatcher.cxx:418 #14 0x00002aaaaaff0bec in desktop::RequestHandler::ExecuteCmdLineRequests (aRequest=..., noTerminate=false) at /home/julien/lo/libreoffice/desktop/source/app/officeipcthread.cxx:1333 #15 0x00002aaaaafaad9e in desktop::Desktop::OpenDefault () at /home/julien/lo/libreoffice/desktop/source/app/app.cxx:2233 #16 0x00002aaaaafaa183 in desktop::Desktop::OpenClients () at /home/julien/lo/libreoffice/desktop/source/app/app.cxx:2182 #17 0x00002aaaaafa90db in desktop::Desktop::OpenClients_Impl (this=0x7fffffff50f0) at /home/julien/lo/libreoffice/desktop/source/app/app.cxx:1934 #18 0x00002aaaaafa90ad in desktop::Desktop::LinkStubOpenClients_Impl (instance=0x7fffffff50f0, data=0x0) at /home/julien/lo/libreoffice/desktop/source/app/app.cxx:1931 #19 0x00002aaab37bb29b in Link::Call (this=0x2ccf0a8, data=0x0) at /home/julien/lo/libreoffice/include/tools/link.hxx:84 #20 0x00002aaab37b8134 in ImplHandleUserEvent (pSVEvent=0x2ccf0a0) at /home/julien/lo/libreoffice/vcl/source/window/winproc.cxx:1956 #21 0x00002aaab37b9af9 in ImplWindowFrameProc (_pWindow=0x293b1b0, nEvent=22, pEvent=0x2ccf0a0) at /home/julien/lo/libreoffice/vcl/source/window/winproc.cxx:2524 #22 0x00002aaab3d017d5 in SalFrame::CallCallback (this=0x293bb40, nEvent=22, pEvent=0x2ccf0a0) at /home/julien/lo/libreoffice/vcl/inc/salframe.hxx:273 #23 0x00002aaab3d11c31 in SalGenericDisplay::DispatchInternalEvent (this=0x2671d60) at /home/julien/lo/libreoffice/vcl/unx/generic/app/gendisp.cxx:86 #24 0x00002aaac8385074 in GtkData::userEventFn (data=0x6d8700) at /home/julien/lo/libreoffice/vcl/unx/gtk3/gtk3gtkdata.cxx:809 #25 0x00002aaac8385101 in call_userEventFn (data=0x6d8700) at /home/julien/lo/libreoffice/vcl/unx/gtk3/gtk3gtkdata.cxx:819 #26 0x00002aaaacc66fea in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #27 0x00002aaaacc67390 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #28 0x00002aaaacc6743c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #29 0x00002aaac8383f12 in GtkData::Yield (this=0x6d8700, bWait=false, bHandleAllCurrentEvents=false) at /home/julien/lo/libreoffice/vcl/unx/gtk3/gtk3gtkdata.cxx:467 #30 0x00002aaac83871a3 in GtkInstance::DoYield (this=0x6e44b0, bWait=false, bHandleAllCurrentEvents=false, nReleased=0) at /home/julien/lo/libreoffice/vcl/unx/gtk3/../gtk/gtkinst.cxx:407 ---Type to continue, or q to quit--- #31 0x00002aaab3bc374b in ImplYield (i_bWait=false, i_bAllEvents=false, nReleased=0) at /home/julien/lo/libreoffice/vcl/source/app/svapp.cxx:511 #32 0x00002aaab3bbf590 in Application::Yield () at /home/julien/lo/libreoffice/vcl/source/app/svapp.cxx:553 #33 0x00002aaab3bbf40a in Application::Execute () at /home/julien/lo/libreoffice/vcl/source/app/svapp.cxx:473 #34 0x00002aaaaafa65ad in desktop::Desktop::DoExecute () at /home/julien/lo/libreoffice/desktop/source/app/app.cxx:1322 #35 0x00002aaaaafa777f in desktop::Desktop::Main (this=0x7fffffff50f0) at /home/julien/lo/libreoffice/desktop/source/app/app.cxx:1647 #36 0x00002aaab3bcde02 in ImplSVMain () at /home/julien/lo/libreoffice/vcl/source/app/svmain.cxx:172 #37 0x00002aaab3bcdf44 in SVMain () at /home/julien/lo/libreoffice/vcl/source/app/svmain.cxx:210 #38 0x00002aaaaaff4892 in soffice_main () at /home/julien/lo/libreoffice/desktop/source/app/sofficemain.cxx:135 #39 0x000000000040090e in sal_main () at /home/julien/lo/libreoffice/desktop/source/app/main.c:48 #40 0x00000000004008f4 in main (argc=2, argv=0x7fffffff5428) at /home/julien/lo/libreoffice/desktop/source/app/main.c:47 (gdb)