[PATCH 14/24] trace: Detect an infinite loop