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

Abort instead of setting Python exception in typemaps #699

Merged
merged 1 commit into from
Feb 5, 2019
Merged

Abort instead of setting Python exception in typemaps #699

merged 1 commit into from
Feb 5, 2019

Conversation

ChristopherHogan
Copy link
Contributor

Errors in the typemaps never printed any useful messages because they told SWIG to fail, which caused the SWIG cleanup typemaps to fire, which resulted in NULL pointer dereferencing and segmentation faults. This PR just aborts on typemap errors instead of trying to set a Python exception.
@stevengj @oskooi

@stevengj stevengj merged commit e454714 into NanoComp:master Feb 5, 2019
@ChristopherHogan ChristopherHogan deleted the chogan/err_handling branch February 8, 2019 14:04
bencbartlett pushed a commit to bencbartlett/meep that referenced this pull request Sep 9, 2021
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