Bug 154744 - Assertion failure on LibreOffice start
Summary: Assertion failure on LibreOffice start
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.6.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bisected, haveBacktrace, regression
Depends on:
Blocks: Crash-Assert
  Show dependency treegraph
 
Reported: 2023-04-10 10:53 UTC by Hossein
Modified: 2023-04-10 11:32 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hossein 2023-04-10 10:53:49 UTC
Description:
After building the latest LO 7.6 dev master today, I can no longer start LibreOffice. Upon start, I immediately see a SIGABRT.

Steps to Reproduce:
1. Build the latest LO 7.6 dev master from sources
2. Start it using instdir/program/soffice

Actual Results:
Assertion failure with SIGABRT

Expected Results:
No assertion failure


Reproducible: Always


User Profile Reset: No

Additional Info:
I am building ccfd0c68611f2c28dabaab5ce485d1518b6438ec on Ubuntu Linux 22.04 x64.

$ cat autogen.input
--enable-debug
--enable-odk
--without-doxygen
--disable-online-update
--enable-ccache
--with-lang=fa
--enable-python=fully-internal

These are from the terminal logs:
$ instdir/program/soffice
...
soffice.bin: sal/textenc/textcvt.cxx:163: sal_Size rtl_convertTextToUnicode(rtl_TextToUnicodeConverter, rtl_TextToUnicodeContext, const char*, sal_Size, sal_Unicode*, sal_Size, sal_uInt32, sal_uInt32*, sal_Size*): Assertion `(nFlags & RTL_TEXTTOUNICODE_FLAGS_UNDEFINED_MASK) <= RTL_TEXTTOUNICODE_FLAGS_UNDEFINED_DEFAULT' failed.
Unspecified Application Error


Fatal exception: Signal 6
Stack:
instdir/program/libuno_sal.so.3(+0x93191)[0x7f60b1924191]
instdir/program/libuno_sal.so.3(+0x933c9)[0x7f60b19243c9]
instdir/program/libuno_sal.so.3(+0x93602)[0x7f60b1924602]
/lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7f60b1242520]
/lib/x86_64-linux-gnu/libc.so.6(pthread_kill+0x12c)[0x7f60b1296a7c]
/lib/x86_64-linux-gnu/libc.so.6(raise+0x16)[0x7f60b1242476]
/lib/x86_64-linux-gnu/libc.so.6(abort+0xd3)[0x7f60b12287f3]
instdir/program/libvcllo.so(+0xbc3e32)[0x7f60aa1c3e32]
instdir/program/libvcllo.so(_ZN11Application5AbortERKN3rtl8OUStringE+0x26)[0x7f60aa25cef8]
instdir/program/libsofficeapp.so(+0x2ef95)[0x7f60b162ef95]
instdir/program/libvcllo.so(+0xc71f93)[0x7f60aa271f93]
instdir/program/libuno_sal.so.3(+0x1aacc)[0x7f60b18abacc]
instdir/program/libuno_sal.so.3(+0x935c7)[0x7f60b19245c7]
/lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7f60b1242520]
/lib/x86_64-linux-gnu/libc.so.6(pthread_kill+0x12c)[0x7f60b1296a7c]
/lib/x86_64-linux-gnu/libc.so.6(raise+0x16)[0x7f60b1242476]
/lib/x86_64-linux-gnu/libc.so.6(abort+0xd3)[0x7f60b12287f3]
/lib/x86_64-linux-gnu/libc.so.6(+0x2871b)[0x7f60b122871b]
/lib/x86_64-linux-gnu/libc.so.6(+0x39e96)[0x7f60b1239e96]
instdir/program/libuno_sal.so.3(rtl_convertTextToUnicode+0x91)[0x7f60b18eacb4]
instdir/program/libuno_sal.so.3(+0x4cb6c)[0x7f60b18ddb6c]
instdir/program/libuno_sal.so.3(rtl_string2UString+0xa1)[0x7f60b18ddda7]
instdir/program/libvclplug_gtk3lo.so(+0xf885a)[0x7f60a02f885a]
instdir/program/libvclplug_gtk3lo.so(+0x10a0ba)[0x7f60a030a0ba]
instdir/program/libvclplug_gtk3lo.so(+0x2221ad)[0x7f60a04221ad]
instdir/program/libvcllo.so(_ZNK3vcl7KeyCode7GetNameEv+0x6d)[0x7f60a9b7bd31]
instdir/program/libfwklo.so(+0xfd07b)[0x7f60af8fd07b]
instdir/program/libfwklo.so(+0x102b72)[0x7f60af902b72]
instdir/program/libfwklo.so(+0x102b29)[0x7f60af902b29]
instdir/program/libfwklo.so(+0x102973)[0x7f60af902973]
instdir/program/libfwklo.so(+0x1028ad)[0x7f60af9028ad]
instdir/program/libfwklo.so(+0xfd0eb)[0x7f60af8fd0eb]
instdir/program/libfwklo.so(+0xfd2e6)[0x7f60af8fd2e6]
instdir/program/libfwklo.so(+0x319e60)[0x7f60afb19e60]
instdir/program/libfwklo.so(+0x31a4c9)[0x7f60afb1a4c9]
instdir/program/libfwklo.so(+0x316cc9)[0x7f60afb16cc9]
instdir/program/libfwklo.so(+0x316849)[0x7f60afb16849]
instdir/program/libvcllo.so(+0x5b1a13)[0x7f60a9bb1a13]
instdir/program/libvcllo.so(_ZN4Menu8ActivateEv+0x8b)[0x7f60a9ba3339]
instdir/program/libvcllo.so(_ZNK4Menu23HandleMenuActivateEventEPS_+0x75)[0x7f60a9baddbb]
instdir/program/libvclplug_gtk3lo.so(+0x23f551)[0x7f60a043f551]
instdir/program/libvclplug_gtk3lo.so(+0x23f5be)[0x7f60a043f5be]
instdir/program/libvclplug_gtk3lo.so(+0x22c9c2)[0x7f60a042c9c2]
instdir/program/libvclplug_gtk3lo.so(+0x23e3ce)[0x7f60a043e3ce]
instdir/program/libvcllo.so(+0x5b8710)[0x7f60a9bb8710]
instdir/program/libvcllo.so(+0x5ad8f4)[0x7f60a9bad8f4]
instdir/program/libvcllo.so(_ZN12SystemWindow10SetMenuBarEP7MenuBar+0x30c)[0x7f60a9c1a3ac]
instdir/program/libfwklo.so(+0x1fda16)[0x7f60af9fda16]
instdir/program/libfwklo.so(+0x204311)[0x7f60afa04311]
instdir/program/libsfxlo.so(+0x11c556)[0x7f60ae91c556]
instdir/program/libsofficeapp.so(+0x36c78)[0x7f60b1636c78]
instdir/program/libsofficeapp.so(+0x30651)[0x7f60b1630651]
instdir/program/libvcllo.so(_Z10ImplSVMainv+0x235)[0x7f60aa272224]
instdir/program/libvcllo.so(_Z6SVMainv+0xd)[0x7f60aa27234d]
instdir/program/libsofficeapp.so(soffice_main+0x141)[0x7f60b168fd4b]
instdir/program/soffice.bin(+0x930)[0x55ee34a07930]
instdir/program/soffice.bin(+0x912)[0x55ee34a07912]
/lib/x86_64-linux-gnu/libc.so.6(+0x29d90)[0x7f60b1229d90]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80)[0x7f60b1229e40]
instdir/program/soffice.bin(+0x825)[0x55ee34a07825]
Comment 1 Hossein 2023-04-10 11:01:10 UTC
Regression introduced by:
 d7910847fba1694c83dc57a1f27b8eaabb2a7d85 is the first bad commit
commit d7910847fba1694c83dc57a1f27b8eaabb2a7d85
Author: Noel Grandin <noel.grandin@collabora.co.uk>
Date:   Sun Apr 9 13:32:12 2023 +0200

    use more OStringToOUString
    
    both because it is more obvious to read, and it takes a string_view,
    which is handy

$ git bisect log
git bisect start
# bad: [ccfd0c68611f2c28dabaab5ce485d1518b6438ec] tdf#154740: Assert: Changing Paper tray property
git bisect bad ccfd0c68611f2c28dabaab5ce485d1518b6438ec
# good: [bcf9c4dc32eccd33234511ccf3c2281bee3b0e60] elide temporary OString in TokenMap::TokenMap
git bisect good bcf9c4dc32eccd33234511ccf3c2281bee3b0e60
# bad: [185cf4496d8750c9e4905c4e384252b01b85d130] Resolves: tdf#154217 Edit date+time User Field and Set Variable
git bisect bad 185cf4496d8750c9e4905c4e384252b01b85d130
# bad: [1e79befa61a08de7a1ddaccb6c435dbb8015c063] sc drawstyles: Use display name to find comment styles
git bisect bad 1e79befa61a08de7a1ddaccb6c435dbb8015c063
# bad: [d7910847fba1694c83dc57a1f27b8eaabb2a7d85] use more OStringToOUString
git bisect bad d7910847fba1694c83dc57a1f27b8eaabb2a7d85
# first bad commit: [d7910847fba1694c83dc57a1f27b8eaabb2a7d85] use more OStringToOUString
Comment 2 Noel Grandin 2023-04-10 11:28:00 UTC
fix is https://gerrit.libreoffice.org/c/core/+/150181
Comment 3 Noel Grandin 2023-04-10 11:32:06 UTC
fixed now