(gdb) p pNewUndoMgr $1 = (svl::IUndoManager *) 0x4bc6260 (gdb) p pUndoMgr $2 = (svl::IUndoManager *) 0x5409cb0 (gdb) bt #0 SfxShell::SetUndoManager (this=0x478a380, pNewUndoMgr=0x4bc6260) at /home/julien/lo/libreoffice/sfx2/source/control/shell.cxx:218 #1 0x00002aaaf644edfb in basctl::Shell::SetCurWindow (this=0x478a380, pNewWin=0x577e2f0, bUpdateTabBar=true, bRememberAsCurrent=true) at /home/julien/lo/libreoffice/basctl/source/basicide/basides1.cxx:1035 #2 0x00002aaaf643d4ee in basctl::implImportDialog (pWin=0x53f9c20, rCurPath="", rDocument=..., aLibName="Standard") at /home/julien/lo/libreoffice/basctl/source/basicide/baside3.cxx:1196 #3 0x00002aaaf643dda9 in basctl::DialogWindow::ImportDialog (this=0x53f9c20) at /home/julien/lo/libreoffice/basctl/source/basicide/baside3.cxx:1213 #4 0x00002aaaf643a7b1 in basctl::DialogWindow::ExecuteCommand (this=0x53f9c20, rReq=...) at /home/julien/lo/libreoffice/basctl/source/basicide/baside3.cxx:634 #5 0x00002aaaf64584a2 in basctl::Shell::ExecuteDialog (this=0x478a380, rReq=...) at /home/julien/lo/libreoffice/basctl/source/basicide/basides3.cxx:141 #6 0x00002aaaf6458ea3 in SfxStubbasctl_ShellExecuteDialog (pShell=0x478a380, rReq=...) at /home/julien/lo/libreoffice/workdir/SdiTarget/basctl/sdi/basslots.hxx:156 #7 0x00002aaaaf4a7c2c in SfxShell::CallExec (this=0x478a380, pFunc=0x2aaaf6458e80 , rReq=...) at /home/julien/lo/libreoffice/include/sfx2/shell.hxx:204 #8 0x00002aaaaf49debc in SfxDispatcher::Call_Impl (this=0x47796c0, rShell=..., rSlot=..., rReq=..., bRecord=true) at /home/julien/lo/libreoffice/sfx2/source/control/dispatch.cxx:362 #9 0x00002aaaaf4a1b30 in SfxDispatcher::PostMsgHandler (this=0x47796c0, pReq=0x45e3530) at /home/julien/lo/libreoffice/sfx2/source/control/dispatch.cxx:1185 #10 0x00002aaaaf4a19c3 in SfxDispatcher::LinkStubPostMsgHandler (instance=0x47796c0, data=0x45e3530) at /home/julien/lo/libreoffice/sfx2/source/control/dispatch.cxx:1165 #11 0x00002aaaaf78f3cf in Link::Call (this=0x51bca10, data=0x45e3530) at /home/julien/lo/libreoffice/include/tools/link.hxx:84 #12 0x00002aaaaf78f363 in SfxHintPoster::DoEvent_Impl (this=0x51bca00, pPostedHint=0x45e3530) at /home/julien/lo/libreoffice/sfx2/source/notify/hintpost.cxx:44 #13 0x00002aaaaf78f339 in SfxHintPoster::LinkStubDoEvent_Impl (instance=0x51bca00, data=0x45e3530) at /home/julien/lo/libreoffice/sfx2/source/notify/hintpost.cxx:42 #14 0x00002aaab37bb29b in Link::Call (this=0x44313e8, data=0x45e3530) at /home/julien/lo/libreoffice/include/tools/link.hxx:84 #15 0x00002aaab37b8134 in ImplHandleUserEvent (pSVEvent=0x44313e0) at /home/julien/lo/libreoffice/vcl/source/window/winproc.cxx:1956 #16 0x00002aaab37b9af9 in ImplWindowFrameProc (_pWindow=0x295b520, nEvent=22, pEvent=0x44313e0) at /home/julien/lo/libreoffice/vcl/source/window/winproc.cxx:2524 #17 0x00002aaab3d017d5 in SalFrame::CallCallback (this=0x295beb0, nEvent=22, pEvent=0x44313e0) at /home/julien/lo/libreoffice/vcl/inc/salframe.hxx:273 #18 0x00002aaab3d11c31 in SalGenericDisplay::DispatchInternalEvent (this=0x2671fa0) at /home/julien/lo/libreoffice/vcl/unx/generic/app/gendisp.cxx:86 #19 0x00002aaac8385074 in GtkData::userEventFn (data=0x6d8700) at /home/julien/lo/libreoffice/vcl/unx/gtk3/gtk3gtkdata.cxx:809 #20 0x00002aaac8385101 in call_userEventFn (data=0x6d8700) at /home/julien/lo/libreoffice/vcl/unx/gtk3/gtk3gtkdata.cxx:819 #21 0x00002aaaacc66fea in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #22 0x00002aaaacc67390 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #23 0x00002aaaacc6743c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #24 0x00002aaac8383f12 in GtkData::Yield (this=0x6d8700, bWait=false, bHandleAllCurrentEvents=false) at /home/julien/lo/libreoffice/vcl/unx/gtk3/gtk3gtkdata.cxx:467 #25 0x00002aaac83871a3 in GtkInstance::DoYield (this=0x6e44b0, bWait=false, bHandleAllCurrentEvents=false, nReleased=0) at /home/julien/lo/libreoffice/vcl/unx/gtk3/../gtk/gtkinst.cxx:407 #26 0x00002aaab3bc374b in ImplYield (i_bWait=false, i_bAllEvents=false, nReleased=0) at /home/julien/lo/libreoffice/vcl/source/app/svapp.cxx:511 #27 0x00002aaab3bbf590 in Application::Yield () at /home/julien/lo/libreoffice/vcl/source/app/svapp.cxx:553 #28 0x00002aaab3bbf40a in Application::Execute () at /home/julien/lo/libreoffice/vcl/source/app/svapp.cxx:473 #29 0x00002aaaaafa65ad in desktop::Desktop::DoExecute () at /home/julien/lo/libreoffice/desktop/source/app/app.cxx:1322 #30 0x00002aaaaafa777f in desktop::Desktop::Main (this=0x7fffffff50f0) at /home/julien/lo/libreoffice/desktop/source/app/app.cxx:1647 #31 0x00002aaab3bcde02 in ImplSVMain () at /home/julien/lo/libreoffice/vcl/source/app/svmain.cxx:172 #32 0x00002aaab3bcdf44 in SVMain () at /home/julien/lo/libreoffice/vcl/source/app/svmain.cxx:210 #33 0x00002aaaaaff4892 in soffice_main () at /home/julien/lo/libreoffice/desktop/source/app/sofficemain.cxx:135 #34 0x000000000040090e in sal_main () at /home/julien/lo/libreoffice/desktop/source/app/main.c:48 #35 0x00000000004008f4 in main (argc=2, argv=0x7fffffff5428) at /home/julien/lo/libreoffice/desktop/source/app/main.c:47 (gdb)