-
Notifications
You must be signed in to change notification settings - Fork 897
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
Warning about missing 'libjemalloc.so' with 22.7.0-RC3 on Ubuntu 22.04 server #4191
Comments
@remyroy Could you try to install |
It seems like installing the
It also fixes this issue. This can be closed. |
I think we are going to keep this issue open and use it to track a better UX for this error. The benefits of using jemalloc are substantial, so it is worth a better and more actionable error. |
Hi docs team - please ping me when you pick this up |
@garyschulte is this still relevant? |
fixed by #4237 |
Description
As a user of Besu, I don't expect to see any error message when starting Besu so that I have a high confidence about my usage of this software.
Acceptance Criteria
Steps to Reproduce (Bug)
sudo apt install libjemalloc2
bin/besu --version
ERROR: ld.so: object 'libjemalloc.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Expected behavior: No error message is shown when starting Besu.
Actual behavior: The following error message is shown when starting besu:
ERROR: ld.so: object 'libjemalloc.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Frequency: 100% of the time
Versions (Add all that apply)
besu/v22.7.0-RC3/linux-x86_64/openjdk-java-17
Linux ubuntu-serser-2204 5.15.0-43-generic #46-Ubuntu SMP Tue Jul 12 10:30:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Temporary solution
I edited
/bin/besu
and replaced the LD_PRELOAD line with:export LD_PRELOAD=libjemalloc.so.2
and it fixed my issue. This might be a naming thing on Ubuntu as the libjemalloc is installed in/usr/lib/x86_64-linux-gnu/libjemalloc.so.2
.Other more elegant solutions might involve using a symlink as part of the installation on Ubuntu or rewriting that unixStartScript to account for different libjemalloc names.
Related
PR who introduced this change: #4126
Author of this change: @garyschulte
Reviewer: @jflo
The text was updated successfully, but these errors were encountered: