-
-
Notifications
You must be signed in to change notification settings - Fork 470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LibreOffice unit tests crash when linked with mold #201
Comments
Thank you for your report! I tried to build LibreOffice on my machine and confirmed that the test crashes. Here is the stack trace.
I'll investigate and fix the issue. |
It looks like this is a regression caused by 5c35d2a. I reverted it, so it should be fine now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So I was able to build LibreOffice (LO) with all unit tests after fixing the '?' glob handling. I've build
mold_1.0.0-75-g04ad22d3
as a Debian package. And LO itself seems to run fine. Seems, because I can start it, open Writer etc., but a lot (all?) unit tests crash.My LO is current master with some additional patches, but mainly https://gerrit.libreoffice.org/c/core/+/127493 to use
mold
withgcc
. It's build in aUbuntu 20.04
schroot, with updates-repo enabled (AKAlibc6:amd64 - 2.31-0ubuntu9.2
). If I just switch the linker togold
, and just rebuild thecomphelper
module (which includes the library and matching unit tests), the crash disappears, so it seems to be a linker problem, from all I can tell.Example bt starts with (all frames in libtest_comphelper_parallelsort_test_mold.so.bt.txt):
As the crash happens in some file called relocate, I thought to dump them for the broken and working library with:
and I got a longer
diff
then expected with some__cxa
/ CXXABI symbols gone: relocations.diff.txtWhat is also strange is the fact, that
file
tells me for both variants:But
ldd
claims formold
that it'sstatically linked
- WTF?So my current guess is that something is wrong with the ELF tables / headers in the mold variant.
Link command
gold
:Link command with
mold
asgold
:gz compressed binaries:
libtest_comphelper_parallelsort_test_gold.so.gz
libtest_comphelper_parallelsort_test_mold.so.gz
I hope this is enough info, so you don't need to build LO. I certainly don't have a simple test case. I'll happily provide more info as needed.
The text was updated successfully, but these errors were encountered: