Skip to content
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

Figure out why StackOverflowException on TeamCity is not a failure #2805

Closed

Conversation

nickshulman
Copy link
Contributor

Trying to track down why TeamCity does not notice that a StackOverflowException which causes TestRunner.exe to abruptly exit with exit code 2147943401 should be treated as a test failure.

…wException which causes TestRunner.exe to abruptly exit with exit code 2147943401 should be treated as a test failure.
@chambm
Copy link
Member

chambm commented Dec 7, 2023 via email

@chambm
Copy link
Member

chambm commented Dec 7, 2023

It just hung indefinitely. When I run it from Boost.Build, your version of the stack overflow test hangs on my machine locally as well. When I try to attach and break to see what's happening, I get:
image
and it seems to exits with code 0. When I start it from the Visual Studio debugger, I get the stack overflow immediately and it exits non-zero.

I made my own version before you made this PR. It didn't go through DoTest, the [TestMethod] just called itself directly. Running that via Boost.Build did exit with stack overflow exception and non-zero exit code. But your version is closer to what the functional test actually did.

Perhaps the easiest way forward would be to set a TC failure condition on the string terminated due to StackOverflowException and also end the build immediately to avoid the hang.

@nickshulman
Copy link
Contributor Author

Looks like TeamCity now correctly detects the stack overflow message in the build log.

@nickshulman nickshulman closed this Dec 7, 2023
@nickshulman nickshulman deleted the Skyline/work/20231206_TestStackOverflowException branch December 7, 2023 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants