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
c++ lldb debugger seems hangs #860
Comments
@haiy we use MI command interpreter mode in lldb to talk to the debugger. You can duplicate this from the command line by using |
Please provide more information if this is still an issue and reopen. |
I managed to reproduce this in a small project. The uninitialised vectors needed to be in a class with a vtable for them to have garbage data. This the engineLogging for the problem with a breakpoint at line 24, lldb-mi seems to get stuck at var-create:
Running this in the regular lldb-cli you can see that the one of the vectors has a sizeof 2^32-1:
If I attach lldb to the hung lldb-mi process I can see that var-create is stuck iterating over 4 billion entries in this for loop: https://github.com/llvm-mirror/lldb/blob/master/tools/lldb-mi/MICmdCmdVar.cpp#L300 |
The same here. lldb-mi hangs at 100% cpu and the last message is: |
Same issue here |
Steps to Reproduce:
to compile the source normally and then I use vs to debug.My launch.json is
at first, the debugger works fine, but when I set a breakpoint at 405 in tensorflow/core/common_runtime/direct_session.cc ,the debugger seems hangs, I can't run to next line or step out.
I've tried to debug the program with lldb in terminal with command
everything works normally.
The text was updated successfully, but these errors were encountered: