-
Notifications
You must be signed in to change notification settings - Fork 748
Build fails with (signal: 11, SIGSEGV: invalid memory reference) #2035
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
Is there any chance you could grab an stack trace or such with a debugger? I'm not on macOS. |
Not sure how to do this in this case. After spending 20mins (!) to codesign
I.e. I did a Sorry about this, last time I used a debugger was probably >ten years ago. Any tips? |
Never mind, I was more successful with
|
Is there any chance of getting a backtrace? That's somewhere in the std code right? I wonder if we're overflowing the stack or such. |
The above is the only thing I got in |
Is the problem not reproducible on other platforms using my repo? |
Hello. I know next to nothing about C/C++ and just the very basics about Rust so I can't really help, but I tried to compile the project on Fedora 33 and I can reproduce the issue. These are the steps needed to avoid additional errors before the current issue on Fedora 33:
dnf install boost-devel cmake eigen3-devel libpng-devel libatomic clang libcxx-devel
- .clang_arg("-I/usr/local/include/eigen3")
+ .clang_arg("-I/usr/include/eigen3")
- .clang_arg("-I/usr/local/include")
+ .clang_arg("-I/usr/include") |
I got the seg fault running bindgen as a binary on Ubuntu 18.04. So with
causes
A backtrace:
|
I ran This code snippet will cause unoptimized bindgen to segfault with
|
The segfault seems likely to be due to running out of stack. This might be the same as #1679. |
This small snippet runs without errors in the current master (6e5a666). Can someone confirm if this still happens for the larger case? |
Hello, I tried to compile the libfive-rs repo (https://github.com/virtualritz/libfive-rs) mentioned in this thread which still uses bindgen version "0.58.1" released on Apr 6 2021, but it already compiles, so maybe they worked around this issue some other way. In other words, I can't reproduce this issue anymore. P.S. Maybe because of some incompatibility with the version of GCC I have installed, to make the C++ side build successfully I had to comment out 2 lines containing the
|
Uh oh!
There was an error while loading. Please reload this page.
I had previously waited for #493 to be closed as I had hoped this would fix it for my case, a
libfive
wrapper, too.However, it still persists:
The repository is here.
Requires
--recursive
cloning.I am building on macOS. The README has instructions for dependencies.
I am only including
libfive.h
in mywrapper.hpp
.Libfive
uses C++17 features. The previous version I tried to wrap, in January, was just using C++11 features. I.e. I doubt this is related.Just run
cargo build
on latestnightly
to reproduce.The text was updated successfully, but these errors were encountered: