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

LD_PRELOAD cannot be preloaded, possible regression with #4312 #4360

Open
gamesh411 opened this issue Oct 11, 2024 · 0 comments
Open

LD_PRELOAD cannot be preloaded, possible regression with #4312 #4360

gamesh411 opened this issue Oct 11, 2024 · 0 comments
Assignees

Comments

@gamesh411
Copy link
Collaborator

gamesh411 commented Oct 11, 2024

Describe the bug
On Ubuntu-24.04, when analyzing bitcoin v0.20.1, the logging phase fails.

CodeChecker version
master a6663b3

To Reproduce

# Fresh build of CodeChecker on master
git clone https://github.com/Ericsson/codechecker.git
cd codechecker
make venv package
source venv
export PATH="$PWD/build/CodeChecker/bin:$PATH"
cd ..
# Clone and log bitcoin project
git clone https://github.com/bitcoin/bitcoin.git -b v0.20.1
cd bitcoin
./autogen.sh && ./configure --disable-wallet --disable-static --disable-tests --without-gui
CodeChecker log -b 'make -j' -o compile_commands.json

Results in this error for all TUs:

CXX      lib/libunivalue_la-univalue_get.lo
ERROR: ld.so: object 'ldlogger.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.

Expected behaviour
I expect the log to produce a compilation database, but it is empty.

Desktop (please complete the following information)

  • OS: WSL Ubuntu-24.04
  • Browser: not relevant
  • Version: not relevant

Additional context
I see that the issue came up in #3858, and I suspect that the regression to this error happened #4312.
I think the change should not just be reverted, but instead, the machine architecture of the TU analyzed should be added to LD_LIBRARY_PATH env variable of the compiler invocation to be logged.

@gamesh411 gamesh411 changed the title LD_LIBRARY_PATH not found, regression with #4312 LD_LIBRARY_PATH not found, possible regression with #4312 Oct 11, 2024
@gamesh411 gamesh411 changed the title LD_LIBRARY_PATH not found, possible regression with #4312 LD_PRELOAD cannot be preloaded, possible regression with #4312 Oct 11, 2024
@dkrupp dkrupp self-assigned this Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants