zhuwenxi commented on pull request #7619:
URL: https://github.com/apache/tvm/pull/7619#issuecomment-800052394


   > > @huajsj @tqchen There is a UT "test_te_tesnor.py" failed for this PR, 
which is a "SegmentFault" in the generated code. Since tvm llvm backend code is 
generated on the fly (JIT), no binary generated, I couldn't debug it with gdb. 
Do you have any suggestions? What is the best practice to debug such kind of 
problems? use lldb?
   > 
   > @zhuwenxi , besides of using export_library, sometime I use "python -m 
pdb" and gdb together to debug generate code issue, hope this information is 
useful for you.
   
   Great! It works, I've found the crash point. (Though it crashes in 
ndarray.h, rather than llvm ir itself directly)
   
   Just curious, if crash happens in the llvm generated code, is gdb still able 
to report the crash point, exactly which ir crashed?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to