-
Notifications
You must be signed in to change notification settings - Fork 390
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
Segfault during fetch #1057
Comments
I am using |
Workaround for: rust-lang/git2-rs#1057
Workaround for: rust-lang/git2-rs#1057
Workaround for: rust-lang/git2-rs#1057
Can you create a reproduction? Otherwise I don't think we'll be able to help. |
I briefly tried that, but didn't succeed and went in a different direction. If that helps, I'll try again and see if I can get there. Because on that single installation, it fails 100% of the time. |
Just a quick update, I am trying to narrow it down. Using the original application, it seems to work when using |
I do have a reproducer. It's a bit complex and a bit weird. It seems to include |
The main difference I figured out so far is that |
Since everything is vendored and static, I don't understand what flows into the final binary that makes a difference. |
If I swap out the build image with the I don't know which parts influence the final binary to misbehave, as to my understanding everything should be vendored. On the other side, I am not sure trying to fix an issue which is caused by an 8 year old distribution makes sense. |
When building with cross, a container image using Ubuntu 16.04 is being used. This seems to be the cause for creating a binary which will segfault (or run into other such failures) when running on aarch64. Using Ubuntu 20.04 does not produce this issue. Also see: * cross-rs/cross#1512 * rust-lang/git2-rs#1057
When building with cross, a container image using Ubuntu 16.04 is being used. This seems to be the cause for creating a binary which will segfault (or run into other such failures) when running on aarch64. Using Ubuntu 20.04 does not produce this issue. Also see: * cross-rs/cross#1512 * rust-lang/git2-rs#1057
I am not sure what the exact condition is, as the code works in some cases. It fails on aarch64.
I assume it is using the vendored version (default build flags, compiled with cross, which doesn't have
libgit2
installed afaik). The output ofldd
is:The text was updated successfully, but these errors were encountered: