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

Auto-initialize NgSpice to avoid segfaults #35

Merged
merged 1 commit into from
Dec 6, 2022
Merged

Conversation

staticfloat
Copy link
Member

Ironically, NgSpice is attempting to print out that you should call NgSpice_init(), so that you can provide a print callback, but because you haven't called NgSpice_init(), the print callback is NULL, and we segfault.

Ironically, NgSpice is attempting to print out that you should call
`NgSpice_init()`, so that you can provide a print callback, but
because you haven't called `NgSpice_init()`, the print callback is
NULL, and we segfault.
@staticfloat staticfloat requested a review from Keno December 1, 2022 21:02
@Keno Keno merged commit beed1eb into main Dec 6, 2022
@Keno Keno deleted the sf/auto_initialize branch December 6, 2022 14:13
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