check stack for analyze endless loop