Bug 156076 - LibreOffice-7.5.3.2 hangs on oosplash when built with clang and lto on Gentoo
Summary: LibreOffice-7.5.3.2 hangs on oosplash when built with clang and lto on Gentoo
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.5.3.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-27 10:51 UTC by guillaumedevolpiano
Modified: 2023-07-08 11:56 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
GDB backtrace when running /usr/lib64/libreoffice/programs/oosplash (1.68 KB, text/plain)
2023-06-27 10:51 UTC, guillaumedevolpiano
Details

Note You need to log in before you can comment on or make changes to this bug.
Description guillaumedevolpiano 2023-06-27 10:51:40 UTC
Created attachment 188103 [details]
GDB backtrace when running /usr/lib64/libreoffice/programs/oosplash

Fresh install of LibreOffice 7.5.3.2 on Gentoo. When built with clang and lto, launching the /usr/bin/libreoffice script or /usr/lib64/libreoffice/oosplash hangs indefinitely, whilst running /usr/lib64/libreoffice/soffice.bin works.

I'm attaching a gdb backtrace. Other relevant elements:

clang --version
clang version 16.0.5
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/16/bin
Configuration file: /etc/clang/clang.cfg

/etc/clang/clang.cfg
# This configuration file is used by clang driver.
@gentoo-common.cfg

/etc/clang/gentoo-common.cfg
# This file contains flags common to clang, clang++ and clang-cpp.
@gentoo-runtimes.cfg
@gentoo-gcc-install.cfg
@gentoo-hardened.cfg
# bug #870001
-include "/usr/include/gentoo/maybe-stddefs.h"

/etc/clang/cfg/gentoo-runtimes.cfg
# This file is initially generated by sys-devel/clang-runtime.
# It is used to control the default runtimes using by clang.

--rtlib=libgcc
--unwindlib=libgcc
--stdlib=libstdc++
-fuse-ld=bfd

/etc/clang/gentoo-gcc-install.cfg
# This file is maintained by gcc-config.
# It is used to specify the selected GCC installation.
--gcc-install-dir="/usr/lib/gcc/x86_64-pc-linux-gnu/12"

/etc/clang/gentoo-hardened.cfg
# Some of these options are added unconditionally, regardless of
# USE=hardened, for parity with sys-devel/gcc.
-fstack-clash-protection
-fstack-protector-strong
-fPIE
-include "/usr/include/gentoo/fortify.h"


strace -p -f on the libreoffice process doesn't provide any output after process X attached.

Relevant Gentoo bug https://bugs.gentoo.org/907905 (a little bit convoluted in the report, one has to admit).

Let me know if I can give any additional information.
Comment 1 guillaumedevolpiano 2023-06-27 13:47:18 UTC
Additional note: the bug doesn't occur when building with gcc (with lto enabled) nor when building with clang, but without lto. So it seems to be somehow related to clang+lto
Comment 2 Roman Kuznetsov 2023-07-08 11:56:56 UTC
Stephan may be you have some tips here?