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

[tx] fix for crash when tx calls fatal() #495

Merged
merged 1 commit into from
Jul 18, 2018
Merged

Conversation

readroberts
Copy link
Contributor

Fix for issue 445. Substituted a call to exit() instead of longjmp() in all the fatal() functions.
There are no tests, as the only reliable test case to force the crash was removed when issue 444 was fixed. Instead, I provided tests in a branch called 'test-for-issue445', which branched from 'develop' before the fix for issue 444. The branch 'test-for-issue445' contains a test for causing the crash before the fix is applied, and a test for verifying that the correct exit code is returned after the fix is applied.

Note that some white space changed in 'except.c' in lines other than the fixed line; this was to make all the lines in the block have the same white space.

Substituted a call to exit() instead of longjmp() in all the fatal() functions.
There are no a tests, as the only reliable test case to force the crash was removed when issue 444 was fixed. Instead, I provided tests in  a branch called 'test-for-issue445', which branched from 'develop' before the fix for issue 444. The branch 'test-for-issue445' contains a test for causing the crash before the fix is applied, and a test for verifying that the correct exit code is supplied after the fix is applied.

Note that some white space changed in 'except.c' in lines other than the fixed line; this was to make all the lines in the block have the same white space.
@miguelsousa miguelsousa merged commit 8acced1 into develop Jul 18, 2018
@miguelsousa miguelsousa deleted the fix-for-issue445 branch July 18, 2018 23:26
@miguelsousa
Copy link
Member

@readroberts I'm going to delete the branch test-for-issue445 as well, since it's no longer needed

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.

3 participants