MSBuild crash on mono with GitVersion task
See original GitHub issueHi!
I’am build my .Net project with GitVersion task (package ver. 4.0.0). On windows all fine, but when try to build on CI system with docker and mono all failed.
Full log:
root@03382baffe18:/opt# mono --version
Mono JIT compiler version 5.18.0.225 (tarball Wed Jan 2 21:21:16 UTC 2019)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
Interpreter: yes
LLVM: yes(600)
Suspend: preemptive
GC: sgen (concurrent by default)
root@03382baffe18:/opt# msbuild
Microsoft (R) Build Engine version 16.0.0.0 for Mono
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 01/29/2019 07:17:23.
Project "/opt/TribezServer.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration "Debug|Mixed Platforms".
Project "/opt/TribezServer.sln" (1) is building "/opt/Divo.TribezServer/Divo.TribezServer.csproj" (2) on node 1 (default targets).
_HandlePackageFileConflicts:
Encountered conflict between 'Reference:System.Net.Http, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL' and 'Reference:System.Net.Http'. Choosing 'Reference:System.Net.Http' because AssemblyVersion '4.2.0.0' is greater than '4.1.1.0'.
Encountered conflict between 'Reference:System.Security.Cryptography.Algorithms, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL' and 'Reference:System.Security.Cryptography.Algorithms'. Choosing 'Reference:System.Security.Cryptography.Algorithms'
because AssemblyVersion '4.3.0.0' is greater than '4.2.1.0'.
Encountered conflict between 'Reference:System.Net.Http, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL' and 'CopyLocal:/usr/lib/mono/xbuild/Microsoft/Microsoft.NET.Build.Extensions/net471/lib/System.Net.Http.dll'. Choosing 'CopyLocal:/usr/lib/mono/xbuild/Microsoft/Microsoft.NET.Build.Extensions/net471/lib/System.Net.Http.dll' because AssemblyVersion '4.2.0.0' is greater than '4.1.1.0'.
Encountered conflict between 'Reference:System.Security.Cryptography.Algorithms, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL' and 'CopyLocal:/usr/lib/mono/xbuild/Microsoft/Microsoft.NET.Build.Extensions/net471/lib/System.Security.Cryptography.Algorithms.dll'. Choosing 'CopyLocal:/usr/lib/mono/xbuild/Microsoft/Microsoft.NET.Build.Extensions/net471/lib/System.Security.Cryptography.Algorithms.dll' because AssemblyVersion '4.3.0.0' is greater than '4.2.1.0'.
GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
WriteVersionInfoToBuildLog:
Detected current NuGet framework to be ".NETFramework,Version=v4.6.1", with RID "unix.4.9-x64", and local repositories: /root/.nuget/packages/.
[NuGet Minimal]: Restoring packages for /opt/packages/GitVersionTask.4.0.0/build/functionality/GitVersionBuild.targets...
Stacktrace:
/proc/self/maps:
4018e000-4019e000 rwxp 00000000 00:00 0
409ba000-40a6a000 rwxp 00000000 00:00 0
40def000-4119f000 rwxp 00000000 00:00 0
562cca037000-562cca48c000 r-xp 00000000 08:01 393255 /usr/bin/mono-sgen
562cca68c000-562cca692000 r--p 00455000 08:01 393255 /usr/bin/mono-sgen
562cca692000-562cca698000 rw-p 0045b000 08:01 393255 /usr/bin/mono-sgen
562cca698000-562cca729000 rw-p 00000000 00:00 0
562ccc4e9000-562cccbf0000 rw-p 00000000 00:00 0 [heap]
7f7e1c000000-7f7e1c045000 rw-p 00000000 00:00 0
7f7e1c045000-7f7e20000000 ---p 00000000 00:00 0
7f7e20000000-7f7e20058000 rw-p 00000000 00:00 0
7f7e20058000-7f7e24000000 ---p 00000000 00:00 0
7f7e24000000-7f7e24021000 rw-p 00000000 00:00 0
7f7e24021000-7f7e28000000 ---p 00000000 00:00 0
7f7e2b9fd000-7f7e2ba06000 ---p 00000000 00:00 0
7f7e2ba06000-7f7e2bbfe000 rw-p 00000000 00:00 0
7f7e2bbfe000-7f7e2bc07000 ---p 00000000 00:00 0
7f7e2bc07000-7f7e2bdff000 rw-p 00000000 00:00 0
7f7e2bdff000-7f7e2be08000 ---p 00000000 00:00 0
7f7e2be08000-7f7e2c000000 rw-p 00000000 00:00 0
7f7e2c000000-7f7e2d3ab000 rw-p 00000000 00:00 0
7f7e2d3ab000-7f7e30000000 ---p 00000000 00:00 0
7f7e30000000-7f7e30056000 rw-p 00000000 00:00 0
7f7e30056000-7f7e34000000 ---p 00000000 00:00 0
7f7e34000000-7f7e340a1000 rw-p 00000000 00:00 0
Memory around native instruction pointer (0x7f7e2d316398):
0x7f7e2d316388 14 f0 de 40 00 00 00 00 1e f0 de 40 00 00 00 00 ...@.......@....
0x7f7e2d316398 55 74 69 6c 50 61 63 6b 2e 4e 75 47 65 74 2e 41 UtilPack.NuGet.A
0x7f7e2d3163a8 73 73 65 6d 62 6c 79 4c 6f 61 64 69 6e 67 2e 4e ssemblyLoading.N
0x7f7e2d3163b8 75 47 65 74 52 65 73 74 6f 72 65 72 57 72 61 70 uGetRestorerWrap
Native stacktrace:
/usr/bin/mono(+0x132a9d) [0x562cca169a9d]
/usr/bin/mono(+0x132da8) [0x562cca169da8]
/usr/bin/mono(+0xc63ef) [0x562cca0fd3ef]
/usr/bin/mono(+0x45342) [0x562cca07c342]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x110c0) [0x7f7e517d80c0]
[0x7f7e2d316398]
Pkilling 0x7f7e2bdfe700 from 0x7f7e4921a700
Pkilling 0x7f7e496f6700 from 0x7f7e4921a700
Pkilling 0x7f7e2bfff700 from 0x7f7e4921a700
Pkilling 0x7f7e2bbfd700 from 0x7f7e4921a700
Pkilling 0x7f7e48e9d700 from 0x7f7e4921a700
Pkilling 0x7f7e5230b740 from 0x7f7e4921a700
Pkilling 0x7f7e498f7700 from 0x7f7e4921a700
Pkilling 0x7f7e4925b700 from 0x7f7e4921a700
Pkilling 0x7f7e4a344700 from 0x7f7e4921a700
Pkilling 0x7f7e494f5700 from 0x7f7e4921a700
Entering thread summarizer pause from 0x7f7e4921a700
Finished thread summarizer pause from 0x7f7e4921a700.
Waiting for dumping threads to resume
Debug info from gdb:
mono_gdb_render_native_backtraces not supported on this platform, unable to find gdb or lldb
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
[Bug] Build with GitVersion.MsBuild fails because ...
Because GitVersionTask seems to be deprecated, I have switched to the GitVersion.MsBuild package. However, the build of my netstandard2.1 ...
Read more >MSBuild Task
MsBuild — is a simple solution if you want to version your assemblies without writing any command line scripts or modifying your build...
Read more >msbuild - TF Service's Hosted Build Controller running ...
MSBUILD executes this task as expected on my local machine but fails on when Team Foundation Service's Hosted Build Controller executes it:
Read more >GitVersion/CHANGELOG and GitVersion Releases (Page 3)
#1380 - TFS Task fails when there are spaces in the agent path. #1375 - Support for bitbucket pull request merge message contributed...
Read more >GitVersion.MSBuild error - Build/Test Issues
I have recently migrated from GitVersion.Task to GitVersion.MSBuild (the former being deprecated) and now I'm getting this build error:.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I can see the same. I guess the GitVersionTask depends on native library calls that fail. It would be good to know why it is happening and if there is any workaround. I had to disable GitVersion in my Mono build nodes completely 😦
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs. Thank you for your contributions.