Closed jorendorff closed 4 months ago
This is a really great spot. We've been meaning to change to a reference-counting based model for the leaks thing but haven't gotten the chance to yet.
I've put in a "circuit breaker" for now (see above branch); this will be added to the next release.
I've also added a couple of tests here and here based on your comment.
Please let us know if this doesn't address your concern before we close the issue (will do so in a couple of days).
Yes, this totally addresses the issue. :+1:
xr0 should find a leak in this program:
Instead we get stack overflow.
object_referencesheap
and friends do not account for the possibility of cycles in the state graph.Another test case that crashes this way is given below.