Created attachment 133864 [details] bt with debug symbols On pc Debian x86-64 with master sources updated today, I got a crash with this step: Open https://bugs.documentfoundation.org/attachment.cgi?id=123850 => crash soffice.bin: /home/julien/lo/libreoffice/include/o3tl/strong_int.hxx:99: constexpr o3tl::strong_int<UNDERLYING_TYPE, PHANTOM_TYPE>::strong_int(T, typename std::enable_if<std::is_integral<T>::value, int>::type) [with T = short int; UNDERLYING_TYPE = short unsigned int; PHANTOM_TYPE = LanguageTypeTag; typename std::enable_if<std::is_integral<T>::value, int>::type = int]: Assertion `detail::isInRange<UNDERLYING_TYPE>(value) && "out of range"' failed. Regression from https://cgit.freedesktop.org/libreoffice/core/commit/?id=c70d49c7c888da8cfd73db8585e7be1f37fc398a
Noel: noticing https://cgit.freedesktop.org/libreoffice/core/commit/?id=c70d49c7c888da8cfd73db8585e7be1f37fc398a, could you give a look?
I can't reproduce it in Version: 5.5.0.0.alpha0+ Build ID: f2d40b8ba172d90be9a43c30cd5cbd62c0e8e548 CPU Threads: 4; OS Version: Linux 4.8; UI Render: default; VCL: gtk3; Locale: ca-ES (ca_ES.UTF-8); Calc: group
(In reply to Xisco Faulí from comment #2) > I can't reproduce it in > > Version: 5.5.0.0.alpha0+ > Build ID: f2d40b8ba172d90be9a43c30cd5cbd62c0e8e548 > CPU Threads: 4; OS Version: Linux 4.8; UI Render: default; VCL: gtk3; > Locale: ca-ES (ca_ES.UTF-8); Calc: group I think it's because it needs enable-dbgutil to reproduce this.
And that's why we should not call it "crash" but "assertion failed" instead ;-)
i have a fix, but need to ask jenkins which compilers are ok with it https://gerrit.libreoffice.org/38473
Michael Stahl committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=93a41b20538f18344eb1b8c23b1eae134212b141 tdf#108349: fix LanguageType conversions from UNO "short" It will be available in 5.5.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
foxed pm ,aster
Michael: do you think it could help to backport the patch on 5.4 branch? Indeed, even if it's an assert, perhaps this could trigger other bugs? (I can cherry-pick it, quite straightforward to do)
Just cherry-pick to 5-4.
Michael Stahl committed a patch related to this issue. It has been pushed to "libreoffice-5-4": http://cgit.freedesktop.org/libreoffice/core/commit/?id=2e5e92eed940ea1992f7962b43b6bfcea0daf08b&h=libreoffice-5-4 tdf#108349: fix LanguageType conversions from UNO "short" It will be available in 5.4.0.1. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
With master sources updated today (815324285b994036299fe7bbf47d61e07322ffcc), I don't reproduce this. Thank you Michael!