-
Notifications
You must be signed in to change notification settings - Fork 653
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
Segmentation fault in 3.1 docker image #2308
Comments
Please see #2260 (comment). Debian/Ubuntu is unsupported by LibGit2Sharp. Use one of our official Docker images instead. |
Thanks @asbjornu . Would it possible to fail early with an error message that says something like "Debian/Ubuntu is unsupported by LibGit2Sharp. Use one of our official Docker images instead (https://hub.docker.com/r/gittools/gitversion)"? My colleague and I spent nearly a day trying to narrow down the error. So a clear error message instead of a non-systematic crash would have made a huge difference. Thanks. |
I would love to do that, but as I wrote in #2260 (comment):
|
I have tried to use That being said, it's a little painfull to download a 341 MB docker image instead of the 1 MB |
I understand your pain, but our |
@asbjornu I see that you have updated the README of the docker images to refer to
Note that I see a size of 183 MB and not 89 MB. I guess you meant that you only add 89 MB on top of the alpine image. Thanks again for your support. It does minimize the pain to to have a smaller image ;) |
I may have looked at "compressed size" on hub.docker.com and also remember the size wrong. |
managed to run it on ubuntu bionic (mcr.microsoft.com/dotnet/sdk:3.1-bionic |
Dont know why 'netcoreapp3.1' path, my project is set to net5.0, GitVersion.MsBuild 5.6.4 |
@Lukkian, can you please use one of the official GitVersion Docker images, such as |
Thanks @asbjornu I could but I just found out that the oficial I'm not using GitVersion.MsBuild 5.6.6 because of this: #2590 (comment) |
I have the same issue. Segmentation fault (core dumped) /home/build/.nuget/packages/gitversion.msbuild/5.6.6/tools/GitVersion.MsBuild.targets(9,9): error MSB3073: The command "dotnet --roll-forward Major "/home/build/.nuget/packages/gitversion.msbuild/5.6.6/tools/netcoreapp3.1/gitversion.dll" "/builds/ ... SOURCE_PATH" -output file -outputfile obj/gitversion.json" exited with code 139. Project has been configured to use dotnet 5.0. |
@vadym fyi: this is my (now working) Dockerfile
|
@Lukkian - Thank you for your proposal (to use debian). But I'd like to have solution without this vulnerability: https://security-tracker.debian.org/tracker/CVE-2019-25013. |
I think this is resolved and can be closed. Please object if you disagree. |
Describe the bug
GitVersion dotnet global tool ends in segmentation fault.
Expected Behavior
It should print the version
Actual Behavior
Segmentation fault crash
Steps to Reproduce
To make sure that I have a clean environment, I start by opening a bash shell in an asp.net core 3.1 docker image:
In this bash, I then execute these commands:
I then have this result:
What is really weird, is that the behavior is not the same on all machines even though we are running in docker!
Your Environment
The text was updated successfully, but these errors were encountered: