-
Notifications
You must be signed in to change notification settings - Fork 379
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
ERROR: ld.so: object 'ldlogger.so` from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored #3858
Comments
Today the problem was gone. No idea why. |
This happens again. I download the code from git in /git/codechecker, then do
Without quiting the virtual environment I change to directory U with these files: Makefile:
and x.c: #include <stdio.h>
int main() {
printf("Hello World!\n");
} Then I call
The output of calling As can be seen on lines 9704-9735 the system tries to load ld_logger.so from /git/codechecker/build/CodeChecker/ld_logger/lib/{,i386,i486,i586,i686,x86_64}/ldlogger.so and eventually finds it. The same logic is applied also on lines 9776-9806. On lines 10179-10209 the logic to find ldlogger.so is different:
Since /git/codechecker/build/CodeChecker/ld_logger/lib/{i386,i486,i586,i686,x86_64}/ldlogger.so are not inspected, the search fails an the system logs So why does the system not search for ldlogger.so where it is supposed to search? |
I'm experiencing the same problem. |
A related pull request has been merged today: #3919. Could you check, if this solves the issue? Thank you! |
This merge seems to have fixed the problem. Thanks. |
Thanks, in this case I close this ticket. Fixed by #3919. |
I compile the code with
clang++ -m32
. I have installed CodeChecher from source, as described at https://codechecker.readthedocs.io/en/latest/#linux (make venv && make package). I use python 3.11.2 on Fedora (Windows with WSL2).Running
CodeChecker log -o x -b make
prints a lot ofERROR: ld.so: object 'ldlogger.so
from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored`.The ldlogger.so library is in the analyzer/tools/build-logger/build/lib/ i386, i486, i586, i686 , x86_64 directories and in the build/CodeChecker/ld_logger/lib i386, i486, i586, i686 and x64_84 directories.
The the -o file contains just
[]
.How can I debug why ld_logger.so cannot be loaded?
The same happens when CodeChecker is on PATH, and virtenv is not executed, and when CodeChecker loaded, after the virtenv is activated.
The text was updated successfully, but these errors were encountered: