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

create an isolated child process to run unsafe code and CFFI #53

Merged
merged 3 commits into from
Oct 6, 2023

Conversation

piket
Copy link
Collaborator

@piket piket commented Oct 6, 2023

What this PR does / why we need it:
We are using unsafe pointers to execute arbitrary CPython FFI. Because this is so unsafe we occasionally encounter fatal errors that shut down the entire program. This change isolates the unsafe code and FFI call in a separate process that can handle the fatal errors as a panic in the parent.

Which issue(s) this PR fixes:
Wrap unsafe code in isolated child process in case of a fatal error.
Return the output or error via channels

@piket piket merged commit f676400 into master Oct 6, 2023
17 checks passed
@piket piket deleted the tipike/odfv_bugs branch October 6, 2023 18:19
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