-
Notifications
You must be signed in to change notification settings - Fork 721
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
SIGSEGV / Segfault in 0.61.0 #2395
Comments
These kind of errors are usually bugs while using the I'd be grateful if you could either try and |
There you go:
|
Ugh... it's no surprise this has to do with C++ templates. |
could you give me a reproducible example so we can work on it? |
Yes, but it is far from minimized:
|
So I have done some work on this. The offender is
This segfaults bindgen 0.69.4 in a docker container with clang 17. It segfaults bindgen on my mac with clang 15. I have attached the preprocessed headers in one file (gzipped) if that is helpful. The
which I modified to get rid of some clang warnings.
This is the head of the gdb output. |
Thanks for you work :)
That's expected, |
I just upgraded
bindgen
to0.63.0
and was greeted with a segfault. A little bit of manual bisect yielded version0.61.0
as the first offender.I'll start digging deeper into the issue soon, I plan to do a
git bisect
to figure out the commit that introduced the issue and if that doesn't help try to get my build-system running with gdb attached for a backtrace. I'm also open to other debugging suggestions.Note: this could be duplicate of #2035, but
bindgen
still works fine for me up until the segfault in0.61.0
and above.Input C/C++ Header
It's a large code base with long build times, I'd rather not try to find a minimal reproducer if possible.
Bindgen Invocation
Actual Results
Expected Results
No segfault.
The text was updated successfully, but these errors were encountered: