GitVersion: Segmentation fault in 3.1 docker image

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

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 15 (6 by maintainers)

Most upvoted comments

managed to run it on ubuntu bionic (mcr.microsoft.com/dotnet/sdk:3.1-bionic

@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.