I've been facing this issue for a long time , whenever there is an infinite loop in my code , my system freezes and I have to restart my system EVEN DURING CONTESTS . Is there a way to stop this , I am using Linux Mint distro and Geany IDE . Any suggestions will be highly appreciated .