shared-library-event
breakpoint at dlopen
does not work in my setup
#1158
Unanswered
georglauterbach
asked this question in
Q&A
Replies: 1 comment 1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
OS: Yocto Linux (Kirkstone)
VSCode version: 1.93.1
CodeLLDB version: 1.11.0
Compiler: g++ (GCC) 11.3.0
Debuggee: a program that loads a ton of shared objects and runs the code inside them
I see a very strange behavior: After most shared object are loaded, which seems to be working fine (and quite fast, honestly 👍🏼), a single
dlopen
calls wrecks havoc with the debugger. The debugger does not continue, but keeps hitting the breakpoint again and again:Previous calls to
dlopen
succeeded. Curiously, when starting the program, halting inmain
, disabling theshared-library-event
breakpoint withbreakpoint disable -1
and then continueing makes the program work fine (but the debugger lacks information about shared objects, obviously).The call to
dlopen
itself does not seem to be stange either:dlopen( iDllName.c_str(), RTLD_NOW );
where
iDllName = "/workspaces/build-<PROJECT NAME>/kirkstone/<PATH ...>/<SO NAME>.so"
I cannot post all the log because the code I am working with must not be leaked. I am trying to provide as much information here, but I need to be somewhat generic, I am very sorry! Here is the log:
Click to expand
Can someone please help me here? I am out of ideas currently... is there an exception thrown in
dlopen
? It's too late where I am to be sure...Beta Was this translation helpful? Give feedback.
All reactions