-
Notifications
You must be signed in to change notification settings - Fork 245
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
dynamic link libs loaded by dlopen seem not to be auto-loaded in the debugger so break points not hit. #445
Comments
I've tests for this exact scenario, and they work fine. Do you see any modules in the MODULES panel when debugging? Can you please attach a verbose log? |
Problem_ext_1_6_4_AttachBeforeLibsLoaded.txt Thanks for your response .. i attached the 3 verbose logs for 3 cases, but let me describe the cases
Now i describe the 3 logs:
Note: my dynamic lib name is "libdrivesim_uss_model_debug.so" and the dynamic loader is "ld-linux-x86-64.so.2" .. and i can find them in "NoProblem_ext_1_6_1_AttachBeforeLibsLoaded.txt", and in "Problem_ext_1_6_4_AttachAfterLibsLoaded.txt" .. but not in "Problem_ext_1_6_4_AttachBeforeLibsLoaded.txt" i beg your pardon that I couldn't create a simplified version of my app that highlights the problem, because it will take me some time that i didn't have, but i hope this can help you identify the issue .. let me know if i can send more data |
Sounds like the problem is in the LLDB engine itself. I've updated it to v13.0.0 in CodeLLDB 1.6.6, maybe the bug got fixed... |
Operating System: Ubuntu 20.04.2 LTS
Kernel: Linux 5.4.0-73-generic
Architecture: x86-64
VSCode Version: 1.56.2
Commit: 054a9295330880ed74ceaedda236253b4f39a335
Date: 2021-05-12T16:45:26.313Z
Electron: 12.0.4
Chrome: 89.0.4389.114
Node.js: 14.16.0
V8: 8.9.255.24-electron.0
OS: Linux x64 5.4.0-73-generic
Extension version: 1.6.4
i am remote debugging an application in a docker container, the behavior i am seeing is that the first attachment, if it is before parts of the code that loads custom .so libs using dlopen, then attachment seems successful but break points in these libs are not hit, even though the program continues normally indicating the correct .so files are loaded and running.
doing an "image list" to check the loaded objects i can see my custom .so libs are missing and also "ld-linux-x86-64.so.2" is not loaded .. so somehow dynamic loading of libs in the debuggee is not felt in the debugger but the libs are loaded normally in the app (i thought the default behavior of lldb is that dynamic libs are loaded in the debugger as they are loaded in runtime automatically)
if i just detach and reattach again things work as expected (now the debugger feels everything that is loaded) .. so problem happens only first time after application launch
i was using the launch configs in this project as they are for long time, so when they suddenly started doing this behavior i tried to revert the extension to veriosn 1.6.1, and then everything was working good like before. so some how the problem was introduced between 1.6.1 and 1.6.4
Thanks for all your great work, and please tell me if i should send any more info
The text was updated successfully, but these errors were encountered: