https://bugs.documentfoundation.org/show_bug.cgi?id=174388
--- Comment #1 from A <[email protected]> --- I did try to trace the dump file, and found (using windbg) and help from Claude that it might be the name of the locale that is the problem, with the character "å" (Bokmål) that is causing trouble: Root cause analysis (WinDbg, full symbols, hang dump of 26.8.2.2): Main thread ("VCL Main") while creating the menu bar: MenuBarWindow::MenuBarWindow -> VclResId -> ImplGetResLocale -> Translate::Create("nb_NO.UTF-8") [unotools/source/i18n/resmgr.cxx:192] -> boost::locale::generator::generate -> boost::locale::impl_std::std_localization_backend::prepare_data -> (anonymous)::loadable("Norwegian Bokmål_Norway") [boost/libs/locale/src/std/std_backend.cpp:68] -> std::locale::locale -> std::_Locinfo -> ucrtbase!setlocale -> ucrtbase!invalid_parameter_internal -> google_breakpad::ExceptionHandler::HandleInvalidParameter -> google_breakpad::ExceptionHandler::WriteMinidumpOnHandlerThread -> WaitForSingleObject (never returns) Breakpad handler thread (~4) at the time of the hang, confirming the deadlock: ExceptionHandler::ExceptionHandlerThreadMain -> ExceptionHandler::WriteMinidumpWithExceptionForProcess [exception_handler.cc:1025] -> dbgcore!MiniDumpWriteDump -> dbgcore!MiniDumpProvideDump -> dbgcore!wil::...FeatureImpl<...IngoreVirtualReadErrors>::__private_IsEnabled -> dbgcore!StringCchPrintfW -> ucrtbase!__stdio_common_vswprintf -> ucrtbase!_acrt_update_thread_locale_data -> RtlEnterCriticalSection (waits for the CRT locale lock owned by the main thread) !locks: a ucrtbase critical section is held by the main thread (RecursionCount 2) while it waits for the breakpad handler thread, so the handler thread (and 11 other threads) cannot proceed -> deadlock. The Windows locale name for nb contains a non-ASCII character ("å"), which the narrow setlocale() rejects as an invalid parameter. Nynorsk maps to "Norwegian-Nynorsk_Norway" (ASCII only) and works. Two issues: 1. The boost.locale std backend passes a non-ASCII Windows locale name to setlocale for nb_NO. 2. Breakpad's invalid-parameter handler deadlocks when invoked while the CRT locale lock is held, turning a would-be crash into a silent hang. WinDbg: !analyze -v -hang FAILURE_BUCKET_ID: APPLICATION_HANG_cfffffff_mergedlo.dll!google_breakpad::ExceptionHandler::WriteMinidumpOnHandlerThread -- You are receiving this mail because: You are the assignee for the bug.
