-
-
Notifications
You must be signed in to change notification settings - Fork 620
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Combining subcases and threads can put doctest into an infinite loop #803
Comments
patstew
added a commit
to patstew/doctest
that referenced
this issue
Sep 7, 2023
Fix doctest#803, presumably broken since doctest#598
patstew
added a commit
to patstew/doctest
that referenced
this issue
Sep 7, 2023
Fix doctest#803, presumably broken since doctest#598
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This test case causes doctest to try and print out its subcase stack 2^64-1 times. The same thing happens with any exception, segfault etc in the sub thread, not just
REQUIRE
. The problem is thatreportFault
callssubcase_end
according to the max stack depth, not the current stack location, socurrentSubcaseLevel
gets decremented below 0. Then thelogTestStart
attempts to print that many names from the subcase stack, with sad results.The text was updated successfully, but these errors were encountered: