In my program I made an obvious typo
for(int i = 0; i<mNoOfCores; i+3)
instead of
for(int i = 0; i<mNoOfCores; i++)
Unfortunately, in the loop I was generating QT5 windows. So my Ubuntu system was absolutely denied, I could only restart after power-on reset. (the mouse was responsive, and probably so was the keyboard, too.) Is there a better method? Or, in this way I can deny my OS from an application?