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

Always terminate helper thread when testing suspend. #400

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

schveiguy
Copy link
Contributor

While working on #399, I found that a failed unit test here resulted in a segfault.

What happens is the assert exits the test, without stopping the helper thread. Then the stack is now gone, and the helper thread is using unallocated memory.

Segfaults in sdunit are hard to diagnose because gdb doesn't have any clue what the call stack means.

a segfault occurs when a test fails, and these are hard to debug with
sdunit.
@deadalnix deadalnix merged commit 1a8ba56 into snazzy-d:master Oct 23, 2024
4 of 5 checks passed
@schveiguy schveiguy deleted the fixtstateunittest branch October 23, 2024 16:50
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