This question already has an answer here:
I try to comments 1.4K+ lines in a C++ function by using
M-; or rectangle insert string
Wait for several minutes, Emacs still no respond. I have to kill Emacs.
In this case, how could I locate what cause the Emacs use 100% CPU and looks like do nothing?
OS: Ubuntu 14.04