https://bugs.documentfoundation.org/show_bug.cgi?id=158107
--- Comment #1 from [email protected] --- Backtrace with debug info: (gdb) where #0 __pthread_mutex_lock (m=0x40) at src/thread/pthread_mutex_lock.c:5 #1 0x00007ffff50acc3f in __gthread_mutex_lock(pthread_mutex_t*) (__mutex=0x40) at /usr/bin/../lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../include/c++/13.2.1/x86_64-alpine-linux-musl/bits/gthr-default.h:749 #2 std::mutex::lock() (this=0x40) at /usr/bin/../lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../include/c++/13.2.1/bits/std_mutex.h:113 #3 std::unique_lock<std::mutex>::lock() (this=0x7fffffffdd88) at /usr/bin/../lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../include/c++/13.2.1/bits/unique_lock.h:141 #4 std::unique_lock<std::mutex>::unique_lock(std::mutex&) (this=0x7fffffffdd88, __m=...) at /usr/bin/../lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../include/c++/13.2.1/bits/unique_lock.h:71 #5 VCLXMenu::addMenuListener(com::sun::star::uno::Reference<com::sun::star::awt::XMenuListener> const&) (this=0x0, rxListener=...) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/toolkit/source/awt/vclxmenu.cxx:262 #6 0x00007ffff5567f86 in svt::PopupMenuControllerBase::setPopupMenu(com::sun::star::uno::Reference<com::sun::star::awt::XPopupMenu> const&) (this=0x7fffef2a03d0, xPopupMenu=<optimized out>) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/svtools/source/uno/popupmenucontrollerbase.cxx:348 #7 0x00007ffff6ffa011 in framework::MenuBarManager::CreatePopupMenuController(framework::MenuBarManager::MenuItemHandler*, com::sun::star::uno::Reference<com::sun::star::frame::XDispatchProvider> const&, rtl::OUString const&) (this=<optimized out>, pMenuItemHandler=<optimized out>, rDispatchProvider=<optimized out>, rModuleIdentifier=<optimized out>) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/framework/source/uielement/menubarmanager.cxx:893 #8 0x00007ffff6ff88a0 in framework::MenuBarManager::Activate(Menu*) (this=0x7fffeb9b8150, pMenu=<optimized out>) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/framework/source/uielement/menubarmanager.cxx:674 #9 framework::MenuBarManager::LinkStubActivate(void*, Menu*) (instance=0x7fffeb9b8150, data=<optimized out>) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/framework/source/uielement/menubarmanager.cxx:552 #10 0x00007ffff460ec4a in Link<Menu*, bool>::Call(Menu*) const (this=0x7fffeda387c0, data=0x7fffeda38790) at include/tools/link.hxx:111 #11 Menu::Activate() (this=0x7fffeda38790) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/window/menu.cxx:266 #12 0x00007ffff4617328 in Menu::HandleMenuActivateEvent(Menu*) const (this=0x7fffee1a0690, pMenu=0x7fffeda38790) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/window/menu.cxx:2546 #13 0x00007ffff0de51c4 in GtkSalMenu::ActivateAllSubmenus(Menu*) (this=0x7fffeb9b7980, pMenuBar=0x7fffee1a0690) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/unx/gtk3/gtksalmenu.cxx:1449 #14 0x00007ffff0de51fd in GtkSalMenu::ActivateAllSubmenus(Menu*) (this=0x7fffeb9b71d0, pMenuBar=0x7fffee1a0690) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/unx/gtk3/gtksalmenu.cxx:1455 #15 0x00007ffff0de34d8 in GtkSalMenu::UpdateFull() (this=0x7fffeb9b71d0) at vcl/inc/unx/gtk/gtksalmenu.hxx:119 #16 GtkSalMenu::SetFrame(SalFrame const*) (this=0x7fffeb9b71d0, pFrame=<optimized out>) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/unx/gtk3/gtksalmenu.cxx:1162 #17 0x00007ffff461bcc1 in MenuBarWindow::SetMenu(MenuBar*) (this=0x7fffee4880b0, pMen=0x7fffee1a0690) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/window/menubarwindow.cxx:191 #18 0x00007ffff4617032 in MenuBar::ImplCreate(vcl::Window*, vcl::Window*, MenuBar*) (pParent=0x7fffed655590, pWindow=0x7fffee4880b0, pMenu=0x7fffee1a0690) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/window/menu.cxx:2454 #19 0x00007ffff4654a3f in SystemWindow::SetMenuBar(MenuBar*) (this=0x7fffed6543d0, pMenuBar=0x7fffee1a0690) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/window/syswin.cxx:874 #20 0x00007ffff6f315c6 in framework::LayoutManager::implts_createMenuBar(rtl::OUString const&) (this=0x7fffed56d340, rMenuBarName=<optimized out>) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/framework/source/layoutmanager/layoutmanager.cxx:191 #21 0x00007ffff6f391a3 in framework::LayoutManager::createElement(rtl::OUString const&) (this=0x7fffed56d340, aName=...) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/framework/source/layoutmanager/layoutmanager.cxx:1444 #22 0x00007ffff66d1643 in (anonymous namespace)::BackingComp::attachFrame(com::sun::star::uno::Reference<com::sun::star::frame::XFrame> const&) (this=0x7fffeda3e790, xFrame=<optimized out>) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/sfx2/source/dialog/backingcomp.cxx:364 #23 0x00007ffff7e20c36 in desktop::Desktop::ShowBackingComponent(desktop::Desktop*) (progress=0x7fffffffe6d0) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/desktop/source/app/app.cxx:2526 #24 0x00007ffff7e1f5fc in desktop::Desktop::Main() (this=0x7fffffffe6d0) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/desktop/source/app/app.cxx:1521 #25 0x00007ffff4a403a9 in ImplSVMain() () at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/app/svmain.cxx:204 #26 0x00007ffff7e4d0b1 in soffice_main() () at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/desktop/source/app/sofficemain.cxx:94 #27 0x000055555555518d in sal_main () at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/desktop/source/app/main.c:51 #28 main (argc=<optimized out>, argv=<optimized out>) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/desktop/source/app/main.c:49 Culprit seems to be in frame #5 with this=0: VCLXMenu::addMenuListener(com::sun::star::uno::Reference<com::sun::star::awt::XMenuListener> const&) (this=0x0, rxListener=...) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/toolkit/source/awt/vclxmenu.cxx:262 the caller at frame #6 in svt::PopupMenuControllerBase::setPopupMenu probably has a failed dynamic_cast. This kind of potential call on null pointer exists in: ./svtools/source/uno/popupmenucontrollerbase.cxx: m_xPopupMenu->addMenuListener( Reference< awt::XMenuListener >(this) ); ./framework/source/uielement/toolbarsmenucontroller.cxx: m_xPopupMenu->addMenuListener( Reference< css::awt::XMenuListener >(this) ); ./framework/source/uielement/toolbarmodemenucontroller.cxx: m_xPopupMenu->addMenuListener( Reference< css::awt::XMenuListener >(this) ); -- You are receiving this mail because: You are the assignee for the bug.
