Bug 158078 - [7.6.3.1] Crashes on startup: segmentation fault in pthread_mutex_lock
Summary: [7.6.3.1] Crashes on startup: segmentation fault in pthread_mutex_lock
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.6.3.1 rc
Hardware: All Linux (All)
: medium critical
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: haveBacktrace, needsDevAdvice
Depends on:
Blocks: Crash
  Show dependency treegraph
 
Reported: 2023-11-05 22:58 UTC by Bernhard Rosenkraenzer
Modified: 2024-01-26 11:06 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
information from debugger on FreeBSD-14/amd64 (21.88 KB, text/plain)
2024-01-14 16:27 UTC, Mikhail T.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Rosenkraenzer 2023-11-05 22:58:32 UTC
7.6.3.1 (not currently available in the list of versions in bugzilla) crashes on startup (even after rm -rf ~/.config/libreoffice), bringing up the document recovery dialog (even if there's nothing to recover), then crashing for good.

starting it with lowriter --backtrace results in the following gdbtrace.log:

warning: Currently logging to gdbtrace.log.  Turn the logging off and on to make the new setting effective.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffe9bb56c0 (LWP 1340184)]
[New Thread 0x7fffe93b46c0 (LWP 1340185)]
[New Thread 0x7fffe251f6c0 (LWP 1340362)]
[New Thread 0x7fffe1bdd6c0 (LWP 1340363)]
[New Thread 0x7fffe13dc6c0 (LWP 1340364)]
[New Thread 0x7fffe0bdb6c0 (LWP 1340365)]
[New Thread 0x7fffcfbff6c0 (LWP 1340366)]
[New Thread 0x7fffcf3fe6c0 (LWP 1340367)]
[New Thread 0x7fffcebfd6c0 (LWP 1340368)]
[New Thread 0x7fffce3fc6c0 (LWP 1340369)]
[New Thread 0x7fffcdbfb6c0 (LWP 1340370)]
[Thread 0x7fffcdbfb6c0 (LWP 1340370) exited]
[Thread 0x7fffce3fc6c0 (LWP 1340369) exited]
[Thread 0x7fffcebfd6c0 (LWP 1340368) exited]
[New Thread 0x7fffcebfd6c0 (LWP 1340371)]
[New Thread 0x7fffce3fc6c0 (LWP 1340372)]
[New Thread 0x7fffcdbfb6c0 (LWP 1340373)]
[New Thread 0x7fffccfaa6c0 (LWP 1340374)]
[New Thread 0x7fffa7fff6c0 (LWP 1340375)]
[Thread 0x7fffcebfd6c0 (LWP 1340371) exited]
[Thread 0x7fffce3fc6c0 (LWP 1340372) exited]
[Thread 0x7fffcdbfb6c0 (LWP 1340373) exited]
[Thread 0x7fffa7fff6c0 (LWP 1340375) exited]
[Thread 0x7fffccfaa6c0 (LWP 1340374) exited]
[Thread 0x7fffe93b46c0 (LWP 1340185) exited]
[Thread 0x7fffcfbff6c0 (LWP 1340366) exited]
[Thread 0x7fffcf3fe6c0 (LWP 1340367) exited]
[Thread 0x7fffe13dc6c0 (LWP 1340364) exited]
[Thread 0x7fffe0bdb6c0 (LWP 1340365) exited]
[Thread 0x7fffe1bdd6c0 (LWP 1340363) exited]
[Thread 0x7fffe251f6c0 (LWP 1340362) exited]
[Thread 0x7fffe9bb56c0 (LWP 1340184) exited]
[Inferior 1 (process 1339858) exited with code 0121]
/usr/lib64/libreoffice/program/gdbtrace:9: Error in sourced command file:
No stack.
No stack.
warning: Currently logging to gdbtrace.log.  Turn the logging off and on to make the new setting effective.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffe9bb56c0 (LWP 1354163)]
[New Thread 0x7fffe93b46c0 (LWP 1354167)]
[New Thread 0x7fffe251f6c0 (LWP 1354486)]
[New Thread 0x7fffe1bdd6c0 (LWP 1354487)]
[New Thread 0x7fffe13dc6c0 (LWP 1354488)]
[New Thread 0x7fffe0bdb6c0 (LWP 1354489)]
[New Thread 0x7fffcfbff6c0 (LWP 1354490)]
[New Thread 0x7fffcf3fe6c0 (LWP 1354491)]
[New Thread 0x7fffcebfd6c0 (LWP 1354492)]
[New Thread 0x7fffce3fc6c0 (LWP 1354493)]
[New Thread 0x7fffcdbfb6c0 (LWP 1354494)]
[Thread 0x7fffcdbfb6c0 (LWP 1354494) exited]
[Thread 0x7fffce3fc6c0 (LWP 1354493) exited]
[Thread 0x7fffcebfd6c0 (LWP 1354492) exited]
[New Thread 0x7fffcebfd6c0 (LWP 1354495)]
[New Thread 0x7fffce3fc6c0 (LWP 1354496)]
[New Thread 0x7fffcdbfb6c0 (LWP 1354497)]
[New Thread 0x7fffccfaa6c0 (LWP 1354498)]
[New Thread 0x7fff9ffff6c0 (LWP 1354499)]
[Thread 0x7fffcebfd6c0 (LWP 1354495) exited]
[New Thread 0x7fffcebfd6c0 (LWP 1355001)]
[Thread 0x7fffcebfd6c0 (LWP 1355001) exited]
[New Thread 0x7fffcebfd6c0 (LWP 1355007)]
[New Thread 0x7fff9ee366c0 (LWP 1355030)]
[New Thread 0x7fff9e6356c0 (LWP 1355032)]
[New Thread 0x7fff9dd416c0 (LWP 1355037)]
[New Thread 0x7fff9d5406c0 (LWP 1356013)]
[Detaching after vfork from child process 1356078]

Thread 1 "soffice.bin" received signal SIGSEGV, Segmentation fault.
0x00007ffff7cb8ea0 in pthread_mutex_lock () from /lib64/libc.so.6
#0  0x00007ffff7cb8ea0 in pthread_mutex_lock () from /lib64/libc.so.6
#1  0x00007ffff4ff4e8c in VCLXMenu::addMenuListener(com::sun::star::uno::Reference<com::sun::star::awt::XMenuListener> const&) () from /usr/lib64/libreoffice/program/libtklo.so
#2  0x00007ffff53ce409 in svt::PopupMenuControllerBase::setPopupMenu(com::sun::star::uno::Reference<com::sun::star::awt::XPopupMenu> const&) () from /usr/lib64/libreoffice/program/libsvtlo.so
#3  0x00007ffff6e95e31 in framework::MenuBarManager::CreatePopupMenuController(framework::MenuBarManager::MenuItemHandler*, com::sun::star::uno::Reference<com::sun::star::frame::XDispatchProvider> const&, rtl::OUString const&) () from /usr/lib64/libreoffice/program/libfwklo.so
#4  0x00007ffff6e9073f in framework::MenuBarManager::FillMenuManager(Menu*, com::sun::star::uno::Reference<com::sun::star::frame::XFrame> const&, com::sun::star::uno::Reference<com::sun::star::frame::XDispatchProvider> const&, rtl::OUString const&, bool) () from /usr/lib64/libreoffice/program/libfwklo.so
#5  0x00007ffff6e911f0 in framework::MenuBarManager::MenuBarManager(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&, com::sun::star::uno::Reference<com::sun::star::frame::XFrame> const&, com::sun::star::uno::Reference<com::sun::star::util::XURLTransformer> const&, com::sun::star::uno::Reference<com::sun::star::frame::XDispatchProvider> const&, rtl::OUString const&, Menu*, bool, bool) () from /usr/lib64/libreoffice/program/libfwklo.so
#6  0x00007ffff6e9c1a2 in framework::MenuBarWrapper::initialize(com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&) () from /usr/lib64/libreoffice/program/libfwklo.so
#7  0x00007ffff6ef6f18 in framework::MenuBarFactory::CreateUIElement(rtl::OUString const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&, std::basic_string_view<char16_t, std::char_traits<char16_t> >, com::sun::star::uno::Reference<com::sun::star::ui::XUIElement> const&, com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&) () from /usr/lib64/libreoffice/program/libfwklo.so
#8  0x00007ffff6ef668e in framework::MenuBarFactory::createUIElement(rtl::OUString const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) () from /usr/lib64/libreoffice/program/libfwklo.so
#9  0x00007ffff6ef72e2 in non-virtual thunk to framework::MenuBarFactory::createUIElement(rtl::OUString const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) () from /usr/lib64/libreoffice/program/libfwklo.so
#10 0x00007ffff6efbee9 in (anonymous namespace)::UIElementFactoryManager::createUIElement(rtl::OUString const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) () from /usr/lib64/libreoffice/program/libfwklo.so
#11 0x00007ffff6efd9e2 in non-virtual thunk to (anonymous namespace)::UIElementFactoryManager::createUIElement(rtl::OUString const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) () from /usr/lib64/libreoffice/program/libfwklo.so
#12 0x00007ffff6dd858c in framework::LayoutManager::implts_createElement(rtl::OUString const&) () from /usr/lib64/libreoffice/program/libfwklo.so
#13 0x00007ffff6dd7dfa in framework::LayoutManager::implts_createMenuBar(rtl::OUString const&) () from /usr/lib64/libreoffice/program/libfwklo.so
#14 0x00007ffff6ddfafa in framework::LayoutManager::createElement(rtl::OUString const&) () from /usr/lib64/libreoffice/program/libfwklo.so
#15 0x00007ffff6657a3f in SfxDispatcher::Update_Impl(bool) () from /usr/lib64/libreoffice/program/libsfxlo.so
#16 0x00007ffff6650307 in SfxBindings::NextJob_Impl(Timer const*) () from /usr/lib64/libreoffice/program/libsfxlo.so
#17 0x00007ffff4938d1e in Scheduler::CallbackTaskScheduling() () from /usr/lib64/libreoffice/program/libvcllo.so
#18 0x00007fffeb7eb3e2 in QtTimer::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib64/libreoffice/program/libvclplug_qt6lo.so
#19 0x00007fffeb38dd07 in void doActivate<false>(QObject*, int, void**) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#20 0x00007fffeb3add89 in QTimer::timerEvent(QTimerEvent*) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#21 0x00007fffeb38b89e in QObject::event(QEvent*) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#22 0x00007fffea0d11c2 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt6/lib/libQt6Widgets.so.6
#23 0x00007fffea0cf007 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt6/lib/libQt6Widgets.so.6
#24 0x00007fffeb32b89f in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#25 0x00007fffeb514e49 in QTimerInfoList::activateTimers() () from /usr/lib64/qt6/lib/libQt6Core.so.6
#26 0x00007fffeb639347 in timerSourceDispatch(_GSource*, int (*)(void*), void*) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#27 0x00007ffff2b5fec3 in g_main_context_dispatch_unlocked () from /lib64/libglib-2.0.so.0
#28 0x00007ffff2b607ef in g_main_context_iterate_unlocked () from /lib64/libglib-2.0.so.0
#29 0x00007ffff2b6096d in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#30 0x00007fffeb639c57 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#31 0x00007fffeb7dea33 in QtInstance::ImplYield(bool, bool) () from /usr/lib64/libreoffice/program/libvclplug_qt6lo.so
#32 0x00007fffeb7e1130 in QtInstance::DoYield(bool, bool) () from /usr/lib64/libreoffice/program/libvclplug_qt6lo.so
#33 0x00007ffff494a6eb in Application::Yield() () from /usr/lib64/libreoffice/program/libvcllo.so
#34 0x00007ffff4512b50 in Dialog::Execute() () from /usr/lib64/libreoffice/program/libvcllo.so
#35 0x00007ffff4902d24 in virtual thunk to SalInstanceDialog::run() () from /usr/lib64/libreoffice/program/libvcllo.so
#36 0x00007ffff618efe5 in (anonymous namespace)::RecoveryUI::dispatchWithReturnValue(com::sun::star::util::URL const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) () from /usr/lib64/libreoffice/program/libsvxlo.so
#37 0x00007ffff618fc22 in non-virtual thunk to (anonymous namespace)::RecoveryUI::dispatchWithReturnValue(com::sun::star::util::URL const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) () from /usr/lib64/libreoffice/program/libsvxlo.so
#38 0x00007ffff7eb7b95 in desktop::(anonymous namespace)::impl_callRecoveryUI(bool, bool) () from /usr/lib64/libreoffice/program/libsofficeapp.so
#39 0x00007ffff7ebf574 in desktop::Desktop::OpenClients() () from /usr/lib64/libreoffice/program/libsofficeapp.so
#40 0x00007ffff7ebbe6c in desktop::Desktop::LinkStubOpenClients_Impl(void*, void*) () from /usr/lib64/libreoffice/program/libsofficeapp.so
#41 0x00007ffff45caac6 in ImplHandleUserEvent(ImplSVEvent*) () from /usr/lib64/libreoffice/program/libvcllo.so
#42 0x00007ffff45c8713 in ImplWindowFrameProc(vcl::Window*, SalEvent, void const*) () from /usr/lib64/libreoffice/program/libvcllo.so
#43 0x00007ffff48f557c in SalUserEventList::DispatchUserEvents(bool) () from /usr/lib64/libreoffice/program/libvcllo.so
#44 0x00007fffeb7de9dc in QtInstance::ImplYield(bool, bool) () from /usr/lib64/libreoffice/program/libvclplug_qt6lo.so
#45 0x00007fffeb7e1130 in QtInstance::DoYield(bool, bool) () from /usr/lib64/libreoffice/program/libvclplug_qt6lo.so
#46 0x00007ffff494a6eb in Application::Yield() () from /usr/lib64/libreoffice/program/libvcllo.so
#47 0x00007ffff494a52e in Application::Execute() () from /usr/lib64/libreoffice/program/libvcllo.so
#48 0x00007ffff7eba3c5 in desktop::Desktop::Main() () from /usr/lib64/libreoffice/program/libsofficeapp.so
#49 0x00007ffff4954d6c in ImplSVMain() () from /usr/lib64/libreoffice/program/libvcllo.so
#50 0x00007ffff7ee5c4b in soffice_main () from /usr/lib64/libreoffice/program/libsofficeapp.so
#51 0x0000555555555840 in main ()

Thread 23 (Thread 0x7fff9d5406c0 (LWP 1356013) "configmgrWriter"):
#0  0x00007ffff7cb2785 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007ffff7cb5629 in pthread_cond_clockwait () from /lib64/libc.so.6
#2  0x00007ffff7f9e403 in osl_waitCondition () from /usr/lib64/libreoffice/program/libuno_sal.so.3
#3  0x00007fffdbfbd02e in configmgr::Components::WriteThread::execute() () from /usr/lib64/libreoffice/program/../program/libconfigmgrlo.so
#4  0x00007ffff76cb7a0 in non-virtual thunk to salhelper::Thread::run() () from /usr/lib64/libreoffice/program/libuno_salhelpergcc3.so.3
#5  0x00007ffff76cb8ef in threadFunc () from /usr/lib64/libreoffice/program/libuno_salhelpergcc3.so.3
#6  0x00007ffff7fb184d in osl_thread_start_Impl(void*) [clone .llvm.12457316804753670165] () from /usr/lib64/libreoffice/program/libuno_sal.so.3
#7  0x00007ffff7cb5ca7 in start_thread () from /lib64/libc.so.6
#8  0x00007ffff7d38bf8 in clone3 () from /lib64/libc.so.6

Thread 22 (Thread 0x7fff9dd416c0 (LWP 1355037) "Thread (pooled)"):
#0  0x00007ffff7cb2785 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007ffff7cb5329 in pthread_cond_timedwait () from /lib64/libc.so.6
#2  0x00007fffeb521337 in QWaitConditionPrivate::wait(QDeadlineTimer) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#3  0x00007fffeb521483 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#4  0x00007fffeb519532 in QThreadPoolThread::run() () from /usr/lib64/qt6/lib/libQt6Core.so.6
#5  0x00007fffeb51590e in QThreadPrivate::start(void*) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#6  0x00007ffff7cb5ca7 in start_thread () from /lib64/libc.so.6
#7  0x00007ffff7d38bf8 in clone3 () from /lib64/libc.so.6

Thread 21 (Thread 0x7fff9e6356c0 (LWP 1355032) "Thread (pooled)"):
#0  0x00007ffff7cb2785 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007ffff7cb5329 in pthread_cond_timedwait () from /lib64/libc.so.6
#2  0x00007fffeb521337 in QWaitConditionPrivate::wait(QDeadlineTimer) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#3  0x00007fffeb521483 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#4  0x00007fffeb519532 in QThreadPoolThread::run() () from /usr/lib64/qt6/lib/libQt6Core.so.6
#5  0x00007fffeb51590e in QThreadPrivate::start(void*) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#6  0x00007ffff7cb5ca7 in start_thread () from /lib64/libc.so.6
#7  0x00007ffff7d38bf8 in clone3 () from /lib64/libc.so.6

Thread 20 (Thread 0x7fff9ee366c0 (LWP 1355030) "Thread (pooled)"):
#0  0x00007ffff7cb2785 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007ffff7cb5329 in pthread_cond_timedwait () from /lib64/libc.so.6
#2  0x00007fffeb521337 in QWaitConditionPrivate::wait(QDeadlineTimer) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#3  0x00007fffeb521483 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#4  0x00007fffeb519532 in QThreadPoolThread::run() () from /usr/lib64/qt6/lib/libQt6Core.so.6
#5  0x00007fffeb51590e in QThreadPrivate::start(void*) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#6  0x00007ffff7cb5ca7 in start_thread () from /lib64/libc.so.6
#7  0x00007ffff7d38bf8 in clone3 () from /lib64/libc.so.6

Thread 19 (Thread 0x7fffcebfd6c0 (LWP 1355007) "Thread (pooled)"):
#0  0x00007ffff7cb2785 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007ffff7cb5329 in pthread_cond_timedwait () from /lib64/libc.so.6
#2  0x00007fffeb521337 in QWaitConditionPrivate::wait(QDeadlineTimer) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#3  0x00007fffeb521483 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#4  0x00007fffeb519532 in QThreadPoolThread::run() () from /usr/lib64/qt6/lib/libQt6Core.so.6
#5  0x00007fffeb51590e in QThreadPrivate::start(void*) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#6  0x00007ffff7cb5ca7 in start_thread () from /lib64/libc.so.6
#7  0x00007ffff7d38bf8 in clone3 () from /lib64/libc.so.6

Thread 17 (Thread 0x7fff9ffff6c0 (LWP 1354499) "Thread (pooled)"):
#0  0x00007ffff7cb2785 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007ffff7cb5329 in pthread_cond_timedwait () from /lib64/libc.so.6
#2  0x00007fffeb521337 in QWaitConditionPrivate::wait(QDeadlineTimer) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#3  0x00007fffeb521483 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#4  0x00007fffeb519532 in QThreadPoolThread::run() () from /usr/lib64/qt6/lib/libQt6Core.so.6
#5  0x00007fffeb51590e in QThreadPrivate::start(void*) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#6  0x00007ffff7cb5ca7 in start_thread () from /lib64/libc.so.6
#7  0x00007ffff7d38bf8 in clone3 () from /lib64/libc.so.6

Thread 16 (Thread 0x7fffccfaa6c0 (LWP 1354498) "Thread (pooled)"):
#0  0x00007ffff7cb2785 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007ffff7cb5329 in pthread_cond_timedwait () from /lib64/libc.so.6
#2  0x00007fffeb521337 in QWaitConditionPrivate::wait(QDeadlineTimer) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#3  0x00007fffeb521483 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#4  0x00007fffeb519532 in QThreadPoolThread::run() () from /usr/lib64/qt6/lib/libQt6Core.so.6
#5  0x00007fffeb51590e in QThreadPrivate::start(void*) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#6  0x00007ffff7cb5ca7 in start_thread () from /lib64/libc.so.6
#7  0x00007ffff7d38bf8 in clone3 () from /lib64/libc.so.6

Thread 15 (Thread 0x7fffcdbfb6c0 (LWP 1354497) "Thread (pooled)"):
#0  0x00007ffff7cb2785 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007ffff7cb5329 in pthread_cond_timedwait () from /lib64/libc.so.6
#2  0x00007fffeb521337 in QWaitConditionPrivate::wait(QDeadlineTimer) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#3  0x00007fffeb521483 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#4  0x00007fffeb519532 in QThreadPoolThread::run() () from /usr/lib64/qt6/lib/libQt6Core.so.6
#5  0x00007fffeb51590e in QThreadPrivate::start(void*) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#6  0x00007ffff7cb5ca7 in start_thread () from /lib64/libc.so.6
#7  0x00007ffff7d38bf8 in clone3 () from /lib64/libc.so.6

Thread 14 (Thread 0x7fffce3fc6c0 (LWP 1354496) "PipeIPC"):
#0  0x00007ffff7d3a81f in accept () from /lib64/libc.so.6
#1  0x00007ffff7fa8363 in osl_acceptPipe () from /usr/lib64/libreoffice/program/libuno_sal.so.3
#2  0x00007ffff7ee2ca1 in desktop::PipeIpcThread::execute() () from /usr/lib64/libreoffice/program/libsofficeapp.so
#3  0x00007ffff76cb7a0 in non-virtual thunk to salhelper::Thread::run() () from /usr/lib64/libreoffice/program/libuno_salhelpergcc3.so.3
#4  0x00007ffff76cb8ef in threadFunc () from /usr/lib64/libreoffice/program/libuno_salhelpergcc3.so.3
#5  0x00007ffff7fb184d in osl_thread_start_Impl(void*) [clone .llvm.12457316804753670165] () from /usr/lib64/libreoffice/program/libuno_sal.so.3
#6  0x00007ffff7cb5ca7 in start_thread () from /lib64/libc.so.6
#7  0x00007ffff7d38bf8 in clone3 () from /lib64/libc.so.6

Thread 9 (Thread 0x7fffcf3fe6c0 (LWP 1354491) "soffic:traceq0"):
#0  0x00007ffff7cb2785 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007ffff7cb4fe1 in pthread_cond_wait () from /lib64/libc.so.6
#2  0x00007fffda3b20ad in util_queue_thread_func.llvm () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007fffda3f2063 in impl_thrd_routine.llvm () from /usr/lib64/dri/radeonsi_dri.so
#4  0x00007ffff7cb5ca7 in start_thread () from /lib64/libc.so.6
#5  0x00007ffff7d38bf8 in clone3 () from /lib64/libc.so.6

Thread 8 (Thread 0x7fffcfbff6c0 (LWP 1354490) "soffic:traceq0"):
#0  0x00007ffff7cb2785 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007ffff7cb4fe1 in pthread_cond_wait () from /lib64/libc.so.6
#2  0x00007fffda3b20ad in util_queue_thread_func.llvm () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007fffda3f2063 in impl_thrd_routine.llvm () from /usr/lib64/dri/radeonsi_dri.so
#4  0x00007ffff7cb5ca7 in start_thread () from /lib64/libc.so.6
#5  0x00007ffff7d38bf8 in clone3 () from /lib64/libc.so.6

Thread 7 (Thread 0x7fffe0bdb6c0 (LWP 1354489) "soffice.:shlo0"):
#0  0x00007ffff7cb2785 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007ffff7cb4fe1 in pthread_cond_wait () from /lib64/libc.so.6
#2  0x00007fffda3b20ad in util_queue_thread_func.llvm () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007fffda3f2063 in impl_thrd_routine.llvm () from /usr/lib64/dri/radeonsi_dri.so
#4  0x00007ffff7cb5ca7 in start_thread () from /lib64/libc.so.6
#5  0x00007ffff7d38bf8 in clone3 () from /lib64/libc.so.6

Thread 6 (Thread 0x7fffe13dc6c0 (LWP 1354488) "soffice.bi:sh0"):
#0  0x00007ffff7cb2785 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007ffff7cb4fe1 in pthread_cond_wait () from /lib64/libc.so.6
#2  0x00007fffda3b20ad in util_queue_thread_func.llvm () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007fffda3f2063 in impl_thrd_routine.llvm () from /usr/lib64/dri/radeonsi_dri.so
#4  0x00007ffff7cb5ca7 in start_thread () from /lib64/libc.so.6
#5  0x00007ffff7d38bf8 in clone3 () from /lib64/libc.so.6

Thread 5 (Thread 0x7fffe1bdd6c0 (LWP 1354487) "soffice:disk$0"):
#0  0x00007ffff7cb2785 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007ffff7cb4fe1 in pthread_cond_wait () from /lib64/libc.so.6
#2  0x00007fffda3b20ad in util_queue_thread_func.llvm () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007fffda3f2063 in impl_thrd_routine.llvm () from /usr/lib64/dri/radeonsi_dri.so
#4  0x00007ffff7cb5ca7 in start_thread () from /lib64/libc.so.6
#5  0x00007ffff7d38bf8 in clone3 () from /lib64/libc.so.6

Thread 4 (Thread 0x7fffe251f6c0 (LWP 1354486) "soffice.bi:cs0"):
#0  0x00007ffff7cb2785 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007ffff7cb4fe1 in pthread_cond_wait () from /lib64/libc.so.6
#2  0x00007fffda3b20ad in util_queue_thread_func.llvm () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007fffda3f2063 in impl_thrd_routine.llvm () from /usr/lib64/dri/radeonsi_dri.so
#4  0x00007ffff7cb5ca7 in start_thread () from /lib64/libc.so.6
#5  0x00007ffff7d38bf8 in clone3 () from /lib64/libc.so.6

Thread 3 (Thread 0x7fffe93b46c0 (LWP 1354167) "QXcbEventQueue"):
#0  0x00007ffff7d2b3ff in poll () from /lib64/libc.so.6
#1  0x00007ffff0fb1a02 in _xcb_conn_wait () from /lib64/libxcb.so.1
#2  0x00007ffff0fb4789 in xcb_wait_for_event () from /lib64/libxcb.so.1
#3  0x00007fffe9c26d5e in QXcbEventQueue::run() () from /usr/lib64/qt6/lib/libQt6XcbQpa.so.6
#4  0x00007fffeb51590e in QThreadPrivate::start(void*) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#5  0x00007ffff7cb5ca7 in start_thread () from /lib64/libc.so.6
#6  0x00007ffff7d38bf8 in clone3 () from /lib64/libc.so.6

Thread 2 (Thread 0x7fffe9bb56c0 (LWP 1354163) "QDBusConnection"):
#0  0x00007ffff7d2b3ff in poll () from /lib64/libc.so.6
#1  0x00007ffff2b60784 in g_main_context_iterate_unlocked () from /lib64/libglib-2.0.so.0
#2  0x00007ffff2b6096d in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007fffeb639c57 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#4  0x00007fffeb33b66a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#5  0x00007fffeb463a6d in QThread::exec() () from /usr/lib64/qt6/lib/libQt6Core.so.6
#6  0x00007fffe9d8cd74 in QDBusConnectionManager::run() () from /usr/lib64/qt6/lib/libQt6DBus.so.6
#7  0x00007fffeb51590e in QThreadPrivate::start(void*) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#8  0x00007ffff7cb5ca7 in start_thread () from /lib64/libc.so.6
#9  0x00007ffff7d38bf8 in clone3 () from /lib64/libc.so.6

Thread 1 (Thread 0x7ffff02e2ec0 (LWP 1353980) "soffice.bin"):
#0  0x00007ffff7cb8ea0 in pthread_mutex_lock () from /lib64/libc.so.6
#1  0x00007ffff4ff4e8c in VCLXMenu::addMenuListener(com::sun::star::uno::Reference<com::sun::star::awt::XMenuListener> const&) () from /usr/lib64/libreoffice/program/libtklo.so
#2  0x00007ffff53ce409 in svt::PopupMenuControllerBase::setPopupMenu(com::sun::star::uno::Reference<com::sun::star::awt::XPopupMenu> const&) () from /usr/lib64/libreoffice/program/libsvtlo.so
#3  0x00007ffff6e95e31 in framework::MenuBarManager::CreatePopupMenuController(framework::MenuBarManager::MenuItemHandler*, com::sun::star::uno::Reference<com::sun::star::frame::XDispatchProvider> const&, rtl::OUString const&) () from /usr/lib64/libreoffice/program/libfwklo.so
#4  0x00007ffff6e9073f in framework::MenuBarManager::FillMenuManager(Menu*, com::sun::star::uno::Reference<com::sun::star::frame::XFrame> const&, com::sun::star::uno::Reference<com::sun::star::frame::XDispatchProvider> const&, rtl::OUString const&, bool) () from /usr/lib64/libreoffice/program/libfwklo.so
#5  0x00007ffff6e911f0 in framework::MenuBarManager::MenuBarManager(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&, com::sun::star::uno::Reference<com::sun::star::frame::XFrame> const&, com::sun::star::uno::Reference<com::sun::star::util::XURLTransformer> const&, com::sun::star::uno::Reference<com::sun::star::frame::XDispatchProvider> const&, rtl::OUString const&, Menu*, bool, bool) () from /usr/lib64/libreoffice/program/libfwklo.so
#6  0x00007ffff6e9c1a2 in framework::MenuBarWrapper::initialize(com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&) () from /usr/lib64/libreoffice/program/libfwklo.so
#7  0x00007ffff6ef6f18 in framework::MenuBarFactory::CreateUIElement(rtl::OUString const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&, std::basic_string_view<char16_t, std::char_traits<char16_t> >, com::sun::star::uno::Reference<com::sun::star::ui::XUIElement> const&, com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&) () from /usr/lib64/libreoffice/program/libfwklo.so
#8  0x00007ffff6ef668e in framework::MenuBarFactory::createUIElement(rtl::OUString const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) () from /usr/lib64/libreoffice/program/libfwklo.so
#9  0x00007ffff6ef72e2 in non-virtual thunk to framework::MenuBarFactory::createUIElement(rtl::OUString const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) () from /usr/lib64/libreoffice/program/libfwklo.so
#10 0x00007ffff6efbee9 in (anonymous namespace)::UIElementFactoryManager::createUIElement(rtl::OUString const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) () from /usr/lib64/libreoffice/program/libfwklo.so
#11 0x00007ffff6efd9e2 in non-virtual thunk to (anonymous namespace)::UIElementFactoryManager::createUIElement(rtl::OUString const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) () from /usr/lib64/libreoffice/program/libfwklo.so
#12 0x00007ffff6dd858c in framework::LayoutManager::implts_createElement(rtl::OUString const&) () from /usr/lib64/libreoffice/program/libfwklo.so
#13 0x00007ffff6dd7dfa in framework::LayoutManager::implts_createMenuBar(rtl::OUString const&) () from /usr/lib64/libreoffice/program/libfwklo.so
#14 0x00007ffff6ddfafa in framework::LayoutManager::createElement(rtl::OUString const&) () from /usr/lib64/libreoffice/program/libfwklo.so
#15 0x00007ffff6657a3f in SfxDispatcher::Update_Impl(bool) () from /usr/lib64/libreoffice/program/libsfxlo.so
#16 0x00007ffff6650307 in SfxBindings::NextJob_Impl(Timer const*) () from /usr/lib64/libreoffice/program/libsfxlo.so
#17 0x00007ffff4938d1e in Scheduler::CallbackTaskScheduling() () from /usr/lib64/libreoffice/program/libvcllo.so
#18 0x00007fffeb7eb3e2 in QtTimer::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib64/libreoffice/program/libvclplug_qt6lo.so
#19 0x00007fffeb38dd07 in void doActivate<false>(QObject*, int, void**) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#20 0x00007fffeb3add89 in QTimer::timerEvent(QTimerEvent*) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#21 0x00007fffeb38b89e in QObject::event(QEvent*) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#22 0x00007fffea0d11c2 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt6/lib/libQt6Widgets.so.6
#23 0x00007fffea0cf007 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt6/lib/libQt6Widgets.so.6
#24 0x00007fffeb32b89f in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#25 0x00007fffeb514e49 in QTimerInfoList::activateTimers() () from /usr/lib64/qt6/lib/libQt6Core.so.6
#26 0x00007fffeb639347 in timerSourceDispatch(_GSource*, int (*)(void*), void*) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#27 0x00007ffff2b5fec3 in g_main_context_dispatch_unlocked () from /lib64/libglib-2.0.so.0
#28 0x00007ffff2b607ef in g_main_context_iterate_unlocked () from /lib64/libglib-2.0.so.0
#29 0x00007ffff2b6096d in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#30 0x00007fffeb639c57 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt6/lib/libQt6Core.so.6
#31 0x00007fffeb7dea33 in QtInstance::ImplYield(bool, bool) () from /usr/lib64/libreoffice/program/libvclplug_qt6lo.so
#32 0x00007fffeb7e1130 in QtInstance::DoYield(bool, bool) () from /usr/lib64/libreoffice/program/libvclplug_qt6lo.so
#33 0x00007ffff494a6eb in Application::Yield() () from /usr/lib64/libreoffice/program/libvcllo.so
#34 0x00007ffff4512b50 in Dialog::Execute() () from /usr/lib64/libreoffice/program/libvcllo.so
#35 0x00007ffff4902d24 in virtual thunk to SalInstanceDialog::run() () from /usr/lib64/libreoffice/program/libvcllo.so
#36 0x00007ffff618efe5 in (anonymous namespace)::RecoveryUI::dispatchWithReturnValue(com::sun::star::util::URL const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) () from /usr/lib64/libreoffice/program/libsvxlo.so
#37 0x00007ffff618fc22 in non-virtual thunk to (anonymous namespace)::RecoveryUI::dispatchWithReturnValue(com::sun::star::util::URL const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) () from /usr/lib64/libreoffice/program/libsvxlo.so
#38 0x00007ffff7eb7b95 in desktop::(anonymous namespace)::impl_callRecoveryUI(bool, bool) () from /usr/lib64/libreoffice/program/libsofficeapp.so
#39 0x00007ffff7ebf574 in desktop::Desktop::OpenClients() () from /usr/lib64/libreoffice/program/libsofficeapp.so
#40 0x00007ffff7ebbe6c in desktop::Desktop::LinkStubOpenClients_Impl(void*, void*) () from /usr/lib64/libreoffice/program/libsofficeapp.so
#41 0x00007ffff45caac6 in ImplHandleUserEvent(ImplSVEvent*) () from /usr/lib64/libreoffice/program/libvcllo.so
#42 0x00007ffff45c8713 in ImplWindowFrameProc(vcl::Window*, SalEvent, void const*) () from /usr/lib64/libreoffice/program/libvcllo.so
#43 0x00007ffff48f557c in SalUserEventList::DispatchUserEvents(bool) () from /usr/lib64/libreoffice/program/libvcllo.so
#44 0x00007fffeb7de9dc in QtInstance::ImplYield(bool, bool) () from /usr/lib64/libreoffice/program/libvclplug_qt6lo.so
#45 0x00007fffeb7e1130 in QtInstance::DoYield(bool, bool) () from /usr/lib64/libreoffice/program/libvclplug_qt6lo.so
#46 0x00007ffff494a6eb in Application::Yield() () from /usr/lib64/libreoffice/program/libvcllo.so
#47 0x00007ffff494a52e in Application::Execute() () from /usr/lib64/libreoffice/program/libvcllo.so
#48 0x00007ffff7eba3c5 in desktop::Desktop::Main() () from /usr/lib64/libreoffice/program/libsofficeapp.so
#49 0x00007ffff4954d6c in ImplSVMain() () from /usr/lib64/libreoffice/program/libvcllo.so
#50 0x00007ffff7ee5c4b in soffice_main () from /usr/lib64/libreoffice/program/libsofficeapp.so
#51 0x0000555555555840 in main ()
A debugging session is active.

	Inferior 1 [process 1353980] will be killed.

Quit anyway? (y or n) [answered Y; input not from terminal]


7.6.2.1 works. Disabling the Qt6 VCL plug changes the backtrace, but shows the same effect.
Comment 1 Stéphane Guillou (stragu) 2023-11-06 13:16:22 UTC
No repro with:

Version: 7.6.3.1 (X86_64) / LibreOffice Community
Build ID: c4af5b1259bceea6e979e6fe2435dbee7a5a87c2
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Also tried qt5/kf5 (cairo+xcb) and gen VCL plugins, no crash either.
Comment 2 Stéphane Guillou (stragu) 2023-11-22 07:07:48 UTC
Which distribution and desktop environment are you using?
Comment 3 Bernhard Rosenkraenzer 2023-11-22 09:52:14 UTC
OpenMandriva Cooker with Plasma 6. Like bug 158107, we also use LLVM 17, so there may be a connection there.

It looks like this is triggered by something the compiler does (I can produce a working build by adding -O0 to compiler flags in some directories), but I doubt it's a compiler bug because I get the crash on startup with both clang 17.0.5 and gcc 13.1.

Probably undefined behavior somewhere that happens to work as expected with some compilers and (disabled) optimizations.

So far I haven't isolated the particular file that needs to be built with -O0 to make it work (if any -- might of course be multiple files).
Comment 4 lo 2023-11-29 02:04:57 UTC
I also reproduce this on Chimera Linux (clang 17 and musl), same backtrace.
Comment 5 lo 2023-11-29 02:20:56 UTC
(7.6.2.1 likewise also works for us)
Comment 6 Mikhail T. 2024-01-14 16:27:49 UTC
Created attachment 191927 [details]
information from debugger on FreeBSD-14/amd64

"Me too" -- running into the same crash on FreeBSD-14/amd64. Compiled via port using the default compiler (clang-17.0.6) with LTO enabled.

I invoke it as `libreoffice /path/to/my/spreadsheet.csv`

The program starts, asks me about recovering the same CSV (after the earlier crashes), I tell it to "discard all" and it proceeds to ask me about the CS-conversion options (column-delimiter, etcætera), I accept the choices and BOOM.

Attaching the debug-session showing very similar stack to that seen by the others here, and the invalid value of the mutex-pointer, which is the immediate reason for the crash...

I'm going to try recompiling it all again _without LTO_ now...
Comment 7 Bernhard Rosenkraenzer 2024-01-14 16:49:26 UTC
FWIW we're currently "fixing" this in OpenMandriva by building LO with:

make
# FIXME workaround for what is either nasty undefined behavior in LO    
# or a pretty bad compiler bug
sed -i -e 's,export CXXFLAGS=.*,export CXXFLAGS=-O0,' config_host.mk
sed -i -e 's,export CFLAGS=.*,export CFLAGS=-O0,' config_host.mk
sed -i -e 's,export LDFLAGS=.*,export LDFLAGS=-O0,' config_host.mk
for i in framework svtools; do
        cd $i                                              
        make clean
        make
        cd ..
done

Obviously this is not the nicest thing to do, but better than the crash or disabling optimizations globally any day.
Comment 8 Mikhail T. 2024-01-14 21:15:38 UTC
(In reply to Mikhail T. from comment #6)
> I'm going to try recompiling it all again _without LTO_ now...
Yes, rebuilding without LTO helped...

By the way, my version is 7.6.4.1.
Comment 9 Stéphane Guillou (stragu) 2024-01-26 11:06:21 UTC
Setting to "new" as 3 people can reproduce, and "critical" as it's a crash. But asking for dev input.