Maintain an anchor stack for traces of errors