Skip to content
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

...ldlogger.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored #4053

Closed
rdong8 opened this issue Oct 20, 2023 · 1 comment
Labels
analyzer 📈 Related to the analyze commands (analysis driver) ld-logger 📃 package-Python 🐍 Issues related to the officially supplied PyPI (pip) package

Comments

@rdong8
Copy link

rdong8 commented Oct 20, 2023

Describe the bug
A clear and concise description of what the bug is.

When trying to use CodeChecker with the VS Code extension, I'm unable to view the errors detected by CodeChecker. I cannot access the logs as there are errors about LD_PRELOAD.

CodeChecker version
You can get version info by running CodeChecker version.

6.22.2 installed through pip using system Python 3.10 installation.

To Reproduce
Steps to reproduce the behaviour:

  1. Click "Preview CodeChecker log in terminal":

image

  1. Run the resulting command in the terminal:

image

This is the result:

 % ~/.local/bin/CodeChecker log --output /u4/rydong/cs246e/.codechecker/compile_commands.json --build make
[INFO 2023-10-20 18:23] - Starting build...
[INFO 2023-10-20 18:23] - Using CodeChecker ld-logger.
ERROR: ld.so: object '/u4/rydong/.local/lib/python3.10/site-packages/codechecker_analyzer/ld_logger/lib/x86_64/ldlogger.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/u4/rydong/.local/lib/python3.10/site-packages/codechecker_analyzer/ld_logger/lib/x86_64/ldlogger.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
make: *** No rule to make target 'runSuite', needed by 'test'.  Stop.
[INFO 2023-10-20 18:23] - Build failed.

Expected behaviour
What you expected to happen.

The log command is run successfully.

Desktop (please complete the following information)

  • OS: Ubuntu 22.04.3

Additional context
Add any other context about the problem.

@whisperity whisperity added analyzer 📈 Related to the analyze commands (analysis driver) ld-logger 📃 package-Python 🐍 Issues related to the officially supplied PyPI (pip) package labels Oct 22, 2023
@bruntib
Copy link
Contributor

bruntib commented Oct 30, 2023

The issue has been solved by #3976.
We have deployed a fixed CodeChecker version to Pypi, please install that: pip install codechecker==6.22.2.post1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer 📈 Related to the analyze commands (analysis driver) ld-logger 📃 package-Python 🐍 Issues related to the officially supplied PyPI (pip) package
Projects
None yet
Development

No branches or pull requests

3 participants