You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 that reportFault calls subcase_end according to the max stack depth, not the current stack location, so currentSubcaseLevel gets decremented below 0. Then the logTestStart attempts to print that many names from the subcase stack, with sad results.
The text was updated successfully, but these errors were encountered:
patstew
added a commit
to patstew/doctest
that referenced
this issue
Sep 7, 2023
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: