[PATCH] fix IDE deadlock in error reporting code