You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
hai (@haiy) we use MI command interpreter mode in lldb to talk to the debugger. You can duplicate this from the command line by using lldb-mi instead of lldb. To see what we are sending and what we get back, you can enable "logging": { "engineLogging": true }
Activity
pieandcakes commentedon Jul 5, 2017
hai (@haiy) we use MI command interpreter mode in lldb to talk to the debugger. You can duplicate this from the command line by using
lldb-miinstead oflldb. To see what we are sending and what we get back, you can enable"logging": { "engineLogging": true }pieandcakes commentedon Oct 7, 2017
Please provide more information if this is still an issue and reopen.
peteralm80 commentedon Apr 24, 2018
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
lldb-hang.zip
haohaolee commentedon Apr 12, 2020
The same here. lldb-mi hangs at 100% cpu and the last message is:
-var-create - - "result" --thread 1 --frame 0
zwangz commentedon Jul 18, 2020
Same issue here