Summary: | v7.6.2.1 crashes with Unspecified Application Error on Alpine Linux | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | chereskata <kboykinov> |
Component: | LibreOffice | Assignee: | Not Assigned <libreoffice-bugs> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | stephane.guillou |
Priority: | medium | Keywords: | haveBacktrace |
Version: | 7.6.2.1 release | ||
Hardware: | All | ||
OS: | Linux (All) | ||
See Also: | https://bugs.documentfoundation.org/show_bug.cgi?id=158078 | ||
Whiteboard: | |||
Crash report or crash signature: | Regression By: | ||
Bug Depends on: | |||
Bug Blocks: | 133092 |
Description
chereskata
2023-11-07 20:45:06 UTC
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) ); Trying to just comment out the calls to null pointer does fix the immediate crash, but the next crash is at: (gdb) where #0 (anonymous namespace)::ResourceMenuController::updatePopupMenu() (this=0x7fffe21f6cd0) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/framework/source/uielement/resourcemenucontroller.cxx:228 #1 0x00007ffff6ff865a in framework::MenuBarManager::Activate(Menu*) (this=0x7fffdfa49980, pMenu=<optimized out>) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/framework/source/uielement/menubarmanager.cxx:705 #2 framework::MenuBarManager::LinkStubActivate(void*, Menu*) (instance=0x7fffdfa49980, data=<optimized out>) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/framework/source/uielement/menubarmanager.cxx:552 #3 0x00007ffff460ec4a in Link<Menu*, bool>::Call(Menu*) const (this=0x7fffe22405e0, data=0x7fffe22405b0) at include/tools/link.hxx:111 #4 Menu::Activate() (this=0x7fffe22405b0) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/window/menu.cxx:266 #5 0x00007ffff4617328 in Menu::HandleMenuActivateEvent(Menu*) const (this=0x7fffe223f790, pMenu=0x7fffe22405b0) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/window/menu.cxx:2546 #6 0x00007ffff0de51c4 in GtkSalMenu::ActivateAllSubmenus(Menu*) (this=0x7fffe21dbcc0, pMenuBar=0x7fffe223f790) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/unx/gtk3/gtksalmenu.cxx:1449 #7 0x00007ffff0de51fd in GtkSalMenu::ActivateAllSubmenus(Menu*) (this=0x7fffe223bfc0, pMenuBar=0x7fffe223f790) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/unx/gtk3/gtksalmenu.cxx:1455 #8 0x00007ffff0de51fd in GtkSalMenu::ActivateAllSubmenus(Menu*) (this=0x7fffe223bcb0, pMenuBar=0x7fffe223f790) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/unx/gtk3/gtksalmenu.cxx:1455 #9 0x00007ffff0de34d8 in GtkSalMenu::UpdateFull() (this=0x7fffe223bcb0) at vcl/inc/unx/gtk/gtksalmenu.hxx:119 #10 GtkSalMenu::SetFrame(SalFrame const*) (this=0x7fffe223bcb0, pFrame=<optimized out>) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/unx/gtk3/gtksalmenu.cxx:1162 #11 0x00007ffff461bcc1 in MenuBarWindow::SetMenu(MenuBar*) (this=0x7fffe223e790, pMen=0x7fffe223f790) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/window/menubarwindow.cxx:191 #12 0x00007ffff4617032 in MenuBar::ImplCreate(vcl::Window*, vcl::Window*, MenuBar*) (pParent=0x7fffe8b76710, pWindow=0x7fffe223e790, pMenu=0x7fffe223f790) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/window/menu.cxx:2454 #13 0x00007ffff4654a3f in SystemWindow::SetMenuBar(MenuBar*) (this=0x7fffe300f3c0, pMenuBar=0x7fffe223f790) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/window/syswin.cxx:874 #14 0x00007ffff6f315c6 in framework::LayoutManager::implts_createMenuBar(rtl::OUString const&) (this=0x7fffedbf1ba0, rMenuBarName=<optimized out>) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/framework/source/layoutmanager/layoutmanager.cxx:191 #15 0x00007ffff6f391a3 in framework::LayoutManager::createElement(rtl::OUString const&) (this=0x7fffedbf1ba0, aName=...) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/framework/source/layoutmanager/layoutmanager.cxx:1444 #16 0x00007ffff677bea5 in SfxDispatcher::SetMenu_Impl() (this=0x7fffe4ad9930) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/sfx2/source/control/dispatch.cxx:1028 #17 SfxDispatcher::Update_Impl(bool) (this=0x7fffe4ad9930, bForce=<optimized out>) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/sfx2/source/control/dispatch.cxx:1093 #18 0x00007ffff66ea2fa in SfxApplication::SetViewFrame_Impl(SfxViewFrame*) (this=<optimized out>, pFrame=0x7fffeda44cd0) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/sfx2/source/appl/app.cxx:280 #19 0x00007ffff69ef97e in SfxViewFrame::SetViewFrame(SfxViewFrame*) (pFrame=0x7fffeda44cd0) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/sfx2/source/view/viewfrm.cxx:3576 #20 SfxViewFrame::MakeActive_Impl(bool) (this=0x7fffeda44cd0, bGrabFocus=true) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/sfx2/source/view/viewfrm.cxx:2181 #21 0x00007ffff4628ba6 in vcl::Window::ImplGrabFocus(GetFocusFlags) (this=0x7fffe8b87820, nFlags=<optimized out>) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/window/mouse.cxx:384 #22 0x00007ffff50dfffb in VCLXWindow::setFocus() (this=0x7fffeb93e790) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/toolkit/source/awt/vclxwindow.cxx:1023 #23 0x00007ffff6f852bd in (anonymous namespace)::XFrameImpl::focusGained(com::sun::star::awt::FocusEvent const&) (this=<optimized out>) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/framework/source/services/frame.cxx:2460 #24 0x00007ffff5243068 in FocusListenerMultiplexer::focusGained(com::sun::star::awt::FocusEvent const&) (this=<optimized out>, evt=<optimized out>) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/toolkit/source/helper/listenermultiplexer.cxx:58 #25 0x00007ffff50dc77c in VCLXWindow::ProcessWindowEvent(VclWindowEvent const&) (this=0x7fffeda3c6d0, rVclWindowEvent=...) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/toolkit/source/awt/vclxwindow.cxx:591 #26 0x00007ffff45f3aee in Link<VclWindowEvent&, void>::Call(VclWindowEvent&) const (this=<optimized out>, data=<optimized out>) at include/tools/link.hxx:111 #27 vcl::Window::CallEventListeners(VclEventId, void*) (this=<optimized out>, nEvent=<optimized out>, pData=<optimized out>) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/window/event.cxx:262 #28 0x00007ffff45f3910 in vcl::Window::PreNotify(NotifyEvent&) (this=0x7fffe300f3c0, rNEvt=...) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/window/event.cxx:77 #29 0x00007ffff4628b8c in vcl::Window::ImplGrabFocus(GetFocusFlags) (this=0x7fffe300f3c0, nFlags=<optimized out>) --Type <RET> for more, q to quit, c to continue without paging-- at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/window/mouse.cxx:383 #30 0x00007ffff4694211 in Link<void*, void>::Call(void*) const (this=0x7fffee47dcb8, data=0x0) at include/tools/link.hxx:111 #31 ImplHandleUserEvent(ImplSVEvent*) (pSVEvent=0x7fffee47dcb0) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/window/winproc.cxx:2287 #32 0x00007ffff4691e84 in ImplWindowFrameProc(vcl::Window*, SalEvent, void const*) (_pWindow=0x7fffedd71310, nEvent=SalEvent::UserEvent, pEvent=0x7fffee47dcb0) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/window/winproc.cxx:2857 #33 0x00007ffff49ddc5e in SalUserEventList::DispatchUserEvents(bool)::$_0::operator()() const (this=<optimized out>) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/app/salusereventlist.cxx:119 #34 SalUserEventList::DispatchUserEvents(bool) (this=0x7fffef021fb0, bHandleAllCurrentEvents=false) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/app/salusereventlist.cxx:120 #35 0x00007ffff0d64cea in call_userEventFn(void*) (data=0x7ffff302c480) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/unx/gtk3/gtkdata.cxx:824 #36 0x00007ffff32ae17a in () at /usr/lib/libglib-2.0.so.0 #37 0x00007ffff330f4c7 in () at /usr/lib/libglib-2.0.so.0 #38 0x00007ffff32ac47e in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0 #39 0x00007ffff0d63ee2 in GtkSalData::Yield(bool, bool) (this=0x7ffff302c480, bWait=true, bHandleAllCurrentEvents=<optimized out>) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/unx/gtk3/gtkdata.cxx:405 #40 0x00007ffff4a356e6 in ImplYield(bool, bool) (i_bWait=true, i_bAllEvents=false) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/app/svapp.cxx:369 #41 Application::Yield() () at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/app/svapp.cxx:453 #42 0x00007ffff4a354e2 in Application::Execute() () at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/app/svapp.cxx:347 #43 0x00007ffff7e1f84a in desktop::Desktop::Main() (this=0x7fffffffe6e0) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/desktop/source/app/app.cxx:1592 #44 0x00007ffff4a403a9 in ImplSVMain() () at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/app/svmain.cxx:204 #45 0x00007ffff7e4d0b1 in soffice_main() () at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/desktop/source/app/sofficemain.cxx:94 #46 0x000055555555518d in sal_main () at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/desktop/source/app/main.c:51 #47 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 Probably the callers need to be updated to not pass objects of wrong type in the first place. Thanks for the report. Looks similar to bug 158078. Can you please test the pre-release for 7.6.3, at the bottom of this page: https://www.libreoffice.org/download/download-libreoffice/ (In reply to Stéphane Guillou (stragu) from comment #3) > Can you please test the pre-release for 7.6.3 Sorry, ignore that, just saw in the Alphine issue that the update to 7.6.3.1 hadn't fixed it. I see your issue #15439 was marked as fixed, and a user reports that it now works: https://gitlab.alpinelinux.org/alpine/aports/-/issues/15484#note_356045 Has there been any change since two weeks ago? |