Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Symbol lookup error in C++ example of QBDIPreload #208

@derchr

Description

@derchr

Bug description
Hello,
I cannot run the QBDIPreload C++ example. When I try to run a simple hello world program together with the successfully compiled library, I get a symbol lookup error for the symbol qbdi_removeInstrumentedModuleFromAddr.
The C example works flawlessly on the other hand.

Bug log

LD_BIND_NOW=1 LD_PRELOAD=./libtracer_preload_cpp.so ./a.out                                                            ✘ INT
./a.out: symbol lookup error: ./libtracer_preload_cpp.so: undefined symbol: qbdi_removeInstrumentedModuleFromAddr

Minimal code to reproduce the bug
I just compiled the C++ example that comes with the project.

Specific command to reproduce the bug
Specific command used to compile and inject QBDI

Version (please complete the following information):

  • OS: Arch Linux
  • Architecture: X64
  • QBDI version (returned by getVersion) and commit hash (if not a release version): 390f987 (current commit on dev-next branch)

Additional context
I tried also to build against the precompiled package of QBDI (version 0.8.0) for my distribution. This also did not work.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions