There are some ways which cause an endless high CPU usage such as catching recursion exception. e.g. the following script in Python causes that problem:
def main(): try: main() except: main() main()
This is an obvious and simple example, but there might be some strange ways to arise such problems.