-
Notifications
You must be signed in to change notification settings - Fork 658
Closed
Labels
Description
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:
docker run --rm -it mcr.microsoft.com/dotnet/core/sdk:3.1 bash
In this bash, I then execute these commands:
export PATH="$PATH:/root/.dotnet/tools"
dotnet tool install -g "GitVersion.Tool"
mkdir ~/git
cd ~/git
git clone https://github.com/mabead/old-github-packages-cleaner.git
cd old-github-packages-cleaner/
dotnet-gitversion -verbosity Debug
I then have this result:
root@d7406c09cb8e:~/git/old-github-packages-cleaner# dotnet-gitversion -verbosity Debug
Segmentation fault (core dumped)
What is really weird, is that the behavior is not the same on all machines even though we are running in docker!
- my machine (windows with docker 19.03.8): no crash
- my collegue machine (windows with docker 19.03.8): segmentation fault
- TeamCity build agent with docker 19.03.5: no crash
- another TeamCity build agent with docker 19.03.5: segmentation fault
Your Environment
- Version Used: GitVersion.Tool 5.3.4
- Operating System and version (Windows 10, Ubuntu 18.04): docker
LazaroOnline