Skip to content

Catching segmentation faults on Windows, proof of concept #118

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

Merged
merged 4 commits into from
Aug 6, 2018

Conversation

ArtemGr
Copy link

@ArtemGr ArtemGr commented Aug 6, 2018

By using a C helper with the __try/__except pair in it we're able to catch the segmentation faults and print the stack trace.

It seems that the next step should be running everything from a Rust binary in order to wrap the MarketMaker code in the Rust fault-catching machinery, and for cargo test to just work.

ArtemGr added 4 commits August 6, 2018 03:42
Test the usability of the Structured Exception Handling in catching the crashes.
The filter function is executed at the point of failure, allowing us to see the full stack trace there.
@ArtemGr ArtemGr mentioned this pull request Aug 6, 2018
18 tasks
@artemii235 artemii235 merged commit 32f7100 into etomic Aug 6, 2018
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