Infinite loops in specific files

Issue #1257 new