-
Notifications
You must be signed in to change notification settings - Fork 338
Crashes when built using -Cpanic=abort #569
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
Comments
elbe0046
added a commit
to elbe0046/cbindgen
that referenced
this issue
Jun 20, 2021
Incorate dtolnay/proc-macro2#220 to fix the case where a binary which is built with `panic = "abort"` aborts when calling into cbdingen functionality. mozilla#569 Signed-off-by: Grant Elbert <[email protected]>
elbe0046
added a commit
to elbe0046/cbindgen
that referenced
this issue
Jun 20, 2021
Incorporate dtolnay/proc-macro2#220 to fix the case where a binary which is built with `panic = "abort"` aborts when calling into cbdingen functionality. mozilla#569 Signed-off-by: Grant Elbert <[email protected]>
elbe0046
added a commit
to elbe0046/cbindgen
that referenced
this issue
Jun 20, 2021
Incorporate dtolnay/proc-macro2#220 to fix the case where a binary which is built with `panic = "abort"` aborts when calling into cbindgen functionality. mozilla#569 Signed-off-by: Grant Elbert <[email protected]>
elbe0046
added a commit
to elbe0046/cbindgen
that referenced
this issue
Jun 20, 2021
Incorporate dtolnay/proc-macro2#220 to fix the case where a binary which is built with `panic = "abort"` aborts when calling into cbindgen functionality. mozilla#569 Signed-off-by: Grant Elbert <[email protected]>
Can this issue be closed? The upstream issues was closed end of 2021. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
proc-macro2 crashes during parsing when building with
-Cpanic=abort
flag.cbindgen-0.14.4/src/bindgen/parser.rs:229
leads all the way toproc-macro2-1.0.19/src/detection.rs:59
where it panics and aborts. This is a proc-macro2 issue in question: dtolnay/proc-macro2#218Solution would be to incorporate
proc_macro2::fallback::force()
somewhere in the code.The text was updated successfully, but these errors were encountered: