Skip to content
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

Exception on Azure DevOps Mac in Nerdbank.GitVersioning.Tasks.GetBuildVersion #487

Closed
Eilon opened this issue Jun 30, 2020 · 0 comments · Fixed by #521
Closed

Exception on Azure DevOps Mac in Nerdbank.GitVersioning.Tasks.GetBuildVersion #487

Eilon opened this issue Jun 30, 2020 · 0 comments · Fixed by #521
Labels
Milestone

Comments

@Eilon
Copy link
Member

Eilon commented Jun 30, 2020

Something similar was previously reported here: #306

But that was fixed ages ago, and I'm running the latest RTM version: https://www.nuget.org/packages/Nerdbank.GitVersioning/3.1.91

I'm running this on Azure DevOps on a Mac build and it gets this exception and then seems to hang (at least ~45min; I then cancelled the build):

2020-06-30T22:17:36.7536820Z Stacktrace:
2020-06-30T22:17:36.7537320Z 
2020-06-30T22:17:36.7537730Z   at <unknown> <0xffffffff>
2020-06-30T22:17:36.7538330Z   at LibGit2Sharp.Core.EncodingMarshaler.MarshalManagedToNative (object) [0x00033] in <c6ddab362adb4977b9e6460e3b7d98f1>:0
2020-06-30T22:17:36.7540040Z   at (wrapper managed-to-native) LibGit2Sharp.Core.NativeMethods.git_libgit2_opts (int,uint,string) [0x00015] in <c6ddab362adb4977b9e6460e3b7d98f1>:0
2020-06-30T22:17:36.7541080Z   at LibGit2Sharp.Core.Proxy.git_libgit2_opts_set_search_path (LibGit2Sharp.ConfigurationLevel,string) [0x00000] in <c6ddab362adb4977b9e6460e3b7d98f1>:0
2020-06-30T22:17:36.7542000Z   at LibGit2Sharp.GlobalSettings.SetConfigSearchPaths (LibGit2Sharp.ConfigurationLevel,string[]) [0x0001a] in <c6ddab362adb4977b9e6460e3b7d98f1>:0
2020-06-30T22:17:36.7542900Z   at Nerdbank.GitVersioning.GitExtensions.OpenGitRepo (string,bool) [0x00025] in <897015f416174969b83606561766ed67>:0
2020-06-30T22:17:36.7543850Z   at Nerdbank.GitVersioning.VersionOracle.Create (string,string,Nerdbank.GitVersioning.ICloudBuild,System.Nullable`1<int>,string) [0x00017] in <897015f416174969b83606561766ed67>:0
2020-06-30T22:17:36.7544790Z   at Nerdbank.GitVersioning.Tasks.GetBuildVersion.ExecuteInner () [0x000c5] in <be4381b7946142508d2f747b9460e2ef>:0
2020-06-30T22:17:36.7545520Z   at MSBuildExtensionTask.ContextAwareTask.Execute () [0x0005e] in <be4381b7946142508d2f747b9460e2ef>:0
2020-06-30T22:17:36.7546360Z   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute () [0x00023] in <76dd0031e0df4aa99d9befb4c4585c69>:0
2020-06-30T22:17:36.7547270Z   at Microsoft.Build.BackEnd.TaskBuilder/<ExecuteInstantiatedTask>d__26.MoveNext () [0x0022d] in <76dd0031e0df4aa99d9befb4c4585c69>:0
2020-06-30T22:17:36.7548390Z   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<Microsoft.Build.BackEnd.WorkUnitResult>.Start<Microsoft.Build.BackEnd.TaskBuilder/<ExecuteInstantiatedTask>d__26> (Microsoft.Build.BackEnd.TaskBuilder/<ExecuteInstantiatedTask>d__26&) [0x0002c] in <4fdc5ed61a074cafb49fa42deb20d521>:0
2020-06-30T22:17:36.7550010Z   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask (Microsoft.Build.BackEnd.ITaskExecutionHost,Microsoft.Build.BackEnd.Logging.TaskLoggingContext,Microsoft.Build.BackEnd.TaskHost,Microsoft.Build.BackEnd.ItemBucket,Microsoft.Build.BackEnd.TaskExecutionMode) [0x0004d] in <76dd0031e0df4aa99d9befb4c4585c69>:0
2020-06-30T22:17:36.7551320Z   at Microsoft.Build.BackEnd.TaskBuilder/<InitializeAndExecuteTask>d__24.MoveNext () [0x00065] in <76dd0031e0df4aa99d9befb4c4585c69>:0
2020-06-30T22:17:36.7552490Z   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<Microsoft.Build.BackEnd.WorkUnitResult>.Start<Microsoft.Build.BackEnd.TaskBuilder/<InitializeAndExecuteTask>d__24> (Microsoft.Build.BackEnd.TaskBuilder/<InitializeAndExecuteTask>d__24&) [0x0002c] in <4fdc5ed61a074cafb49fa42deb20d521>:0
2020-06-30T22:17:36.7554400Z   at Microsoft.Build.BackEnd.TaskBuilder.InitializeAndExecuteTask (Microsoft.Build.BackEnd.Logging.TaskLoggingContext,Microsoft.Build.BackEnd.ItemBucket,System.Collections.Generic.IDictionary`2<string, string>,Microsoft.Build.BackEnd.TaskHost,Microsoft.Build.BackEnd.TaskExecutionMode) [0x0004d] in <76dd0031e0df4aa99d9befb4c4585c69>:0
2020-06-30T22:17:36.7555720Z   at Microsoft.Build.BackEnd.TaskBuilder/<ExecuteBucket>d__19.MoveNext () [0x00198] in <76dd0031e0df4aa99d9befb4c4585c69>:0
2020-06-30T22:17:36.7556820Z   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<Microsoft.Build.BackEnd.WorkUnitResult>.Start<Microsoft.Build.BackEnd.TaskBuilder/<ExecuteBucket>d__19> (Microsoft.Build.BackEnd.TaskBuilder/<ExecuteBucket>d__19&) [0x0002c] in <4fdc5ed61a074cafb49fa42deb20d521>:0
2020-06-30T22:17:36.7558280Z   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteBucket (Microsoft.Build.BackEnd.TaskHost,Microsoft.Build.BackEnd.ItemBucket,Microsoft.Build.BackEnd.TaskExecutionMode,System.Collections.Generic.Dictionary`2<string, string>) [0x00044] in <76dd0031e0df4aa99d9befb4c4585c69>:0
2020-06-30T22:17:36.7559820Z   at Microsoft.Build.BackEnd.TaskBuilder/<ExecuteTask>d__18.MoveNext () [0x0015e] in <76dd0031e0df4aa99d9befb4c4585c69>:0
2020-06-30T22:17:36.7560860Z   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<Microsoft.Build.BackEnd.WorkUnitResult>.Start<Microsoft.Build.BackEnd.TaskBuilder/<ExecuteTask>d__18> (Microsoft.Build.BackEnd.TaskBuilder/<ExecuteTask>d__18&) [0x0002c] in <4fdc5ed61a074cafb49fa42deb20d521>:0
2020-06-30T22:17:36.7562090Z   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask (Microsoft.Build.BackEnd.TaskExecutionMode,Microsoft.Build.BackEnd.Lookup) [0x00033] in <76dd0031e0df4aa99d9befb4c4585c69>:0
2020-06-30T22:17:36.7563030Z   at Microsoft.Build.BackEnd.TaskBuilder/<ExecuteTask>d__13.MoveNext () [0x00197] in <76dd0031e0df4aa99d9befb4c4585c69>:0
2020-06-30T22:17:36.7564140Z   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<Microsoft.Build.BackEnd.WorkUnitResult>.Start<Microsoft.Build.BackEnd.TaskBuilder/<ExecuteTask>d__13> (Microsoft.Build.BackEnd.TaskBuilder/<ExecuteTask>d__13&) [0x0002c] in <4fdc5ed61a074cafb49fa42deb20d521>:0
2020-06-30T22:17:36.7565970Z   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask (Microsoft.Build.BackEnd.Logging.TargetLoggingContext,Microsoft.Build.BackEnd.BuildRequestEntry,Microsoft.Build.BackEnd.ITargetBuilderCallback,Microsoft.Build.Execution.ProjectTargetInstanceChild,Microsoft.Build.BackEnd.TaskExecutionMode,Microsoft.Build.BackEnd.Lookup,Microsoft.Build.BackEnd.Lookup,System.Threading.CancellationToken) [0x00068] in <76dd0031e0df4aa99d9befb4c4585c69>:0
2020-06-30T22:17:36.7567520Z   at Microsoft.Build.BackEnd.TargetEntry/<ProcessBucket>d__49.MoveNext () [0x0005f] in <76dd0031e0df4aa99d9befb4c4585c69>:0
2020-06-30T22:17:36.7568620Z   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<Microsoft.Build.BackEnd.WorkUnitResult>.Start<Microsoft.Build.BackEnd.TargetEntry/<ProcessBucket>d__49> (Microsoft.Build.BackEnd.TargetEntry/<ProcessBucket>d__49&) [0x0002c] in <4fdc5ed61a074cafb49fa42deb20d521>:0
2020-06-30T22:17:36.7570150Z   at Microsoft.Build.BackEnd.TargetEntry.ProcessBucket (Microsoft.Build.BackEnd.ITaskBuilder,Microsoft.Build.BackEnd.Logging.TargetLoggingContext,Microsoft.Build.BackEnd.TaskExecutionMode,Microsoft.Build.BackEnd.Lookup,Microsoft.Build.BackEnd.Lookup) [0x0004d] in <76dd0031e0df4aa99d9befb4c4585c69>:0
2020-06-30T22:17:36.7571380Z   at Microsoft.Build.BackEnd.TargetEntry/<ExecuteTarget>d__42.MoveNext () [0x002b1] in <76dd0031e0df4aa99d9befb4c4585c69>:0
2020-06-30T22:17:36.7572350Z   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.Build.BackEnd.TargetEntry/<ExecuteTarget>d__42> (Microsoft.Build.BackEnd.TargetEntry/<ExecuteTarget>d__42&) [0x0002c] in <4fdc5ed61a074cafb49fa42deb20d521>:0
2020-06-30T22:17:36.7573730Z   at Microsoft.Build.BackEnd.TargetEntry.ExecuteTarget (Microsoft.Build.BackEnd.ITaskBuilder,Microsoft.Build.BackEnd.BuildRequestEntry,Microsoft.Build.BackEnd.Logging.ProjectLoggingContext,System.Threading.CancellationToken) [0x00044] in <76dd0031e0df4aa99d9befb4c4585c69>:0
2020-06-30T22:17:36.7575080Z   at Microsoft.Build.BackEnd.TargetBuilder/<ProcessTargetStack>d__22.MoveNext () [0x003aa] in <76dd0031e0df4aa99d9befb4c4585c69>:0
2020-06-30T22:17:36.7576150Z   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.Build.BackEnd.TargetBuilder/<ProcessTargetStack>d__22> (Microsoft.Build.BackEnd.TargetBuilder/<ProcessTargetStack>d__22&) [0x0002c] in <4fdc5ed61a074cafb49fa42deb20d521>:0
2020-06-30T22:17:36.7577230Z   at Microsoft.Build.BackEnd.TargetBuilder.ProcessTargetStack (Microsoft.Build.BackEnd.ITaskBuilder) [0x0002b] in <76dd0031e0df4aa99d9befb4c4585c69>:0
2020-06-30T22:17:36.7578110Z   at Microsoft.Build.BackEnd.TargetBuilder/<BuildTargets>d__11.MoveNext () [0x0028b] in <76dd0031e0df4aa99d9befb4c4585c69>:0
2020-06-30T22:17:36.7579500Z   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<Microsoft.Build.Execution.BuildResult>.Start<Microsoft.Build.BackEnd.TargetBuilder/<BuildTargets>d__11> (Microsoft.Build.BackEnd.TargetBuilder/<BuildTargets>d__11&) [0x0002c] in <4fdc5ed61a074cafb49fa42deb20d521>:0
2020-06-30T22:17:36.7581090Z   at Microsoft.Build.BackEnd.TargetBuilder.BuildTargets (Microsoft.Build.BackEnd.Logging.ProjectLoggingContext,Microsoft.Build.BackEnd.BuildRequestEntry,Microsoft.Build.BackEnd.IRequestBuilderCallback,string[],Microsoft.Build.BackEnd.Lookup,System.Threading.CancellationToken) [0x00056] in <76dd0031e0df4aa99d9befb4c4585c69>:0
2020-06-30T22:17:36.7582390Z   at Microsoft.Build.BackEnd.RequestBuilder/<BuildProject>d__57.MoveNext () [0x002c6] in <76dd0031e0df4aa99d9befb4c4585c69>:0
2020-06-30T22:17:36.7583490Z   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<Microsoft.Build.Execution.BuildResult>.Start<Microsoft.Build.BackEnd.RequestBuilder/<BuildProject>d__57> (Microsoft.Build.BackEnd.RequestBuilder/<BuildProject>d__57&) [0x0002c] in <4fdc5ed61a074cafb49fa42deb20d521>:0
2020-06-30T22:17:36.7584540Z   at Microsoft.Build.BackEnd.RequestBuilder.BuildProject () [0x00023] in <76dd0031e0df4aa99d9befb4c4585c69>:0
2020-06-30T22:17:36.7585330Z   at Microsoft.Build.BackEnd.RequestBuilder/<BuildAndReport>d__49.MoveNext () [0x00029] in <76dd0031e0df4aa99d9befb4c4585c69>:0
2020-06-30T22:17:36.7586370Z   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.Build.BackEnd.RequestBuilder/<BuildAndReport>d__49> (Microsoft.Build.BackEnd.RequestBuilder/<BuildAndReport>d__49&) [0x0002c] in <4fdc5ed61a074cafb49fa42deb20d521>:0
2020-06-30T22:17:36.7587380Z   at Microsoft.Build.BackEnd.RequestBuilder.BuildAndReport () [0x00023] in <76dd0031e0df4aa99d9befb4c4585c69>:0
2020-06-30T22:17:36.7588140Z   at Microsoft.Build.BackEnd.RequestBuilder/<RequestThreadProc>d__48.MoveNext () [0x00022] in <76dd0031e0df4aa99d9befb4c4585c69>:0
2020-06-30T22:17:36.7589190Z   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.Build.BackEnd.RequestBuilder/<RequestThreadProc>d__48> (Microsoft.Build.BackEnd.RequestBuilder/<RequestThreadProc>d__48&) [0x0002c] in <4fdc5ed61a074cafb49fa42deb20d521>:0
2020-06-30T22:17:36.7590240Z   at Microsoft.Build.BackEnd.RequestBuilder.RequestThreadProc (bool) [0x0002b] in <76dd0031e0df4aa99d9befb4c4585c69>:0
2020-06-30T22:17:36.7591020Z   at Microsoft.Build.BackEnd.RequestBuilder.<StartBuilderThread>b__44_2 () [0x00000] in <76dd0031e0df4aa99d9befb4c4585c69>:0
2020-06-30T22:17:36.7591830Z   at System.Threading.Tasks.Task`1<TResult_REF>.InnerInvoke () [0x0000f] in <4fdc5ed61a074cafb49fa42deb20d521>:0
2020-06-30T22:17:36.7592560Z   at System.Threading.Tasks.Task.Execute () [0x00010] in <4fdc5ed61a074cafb49fa42deb20d521>:0
2020-06-30T22:17:36.7593260Z   at System.Threading.Tasks.Task.ExecutionContextCallback (object) [0x00000] in <4fdc5ed61a074cafb49fa42deb20d521>:0
2020-06-30T22:17:36.7594210Z   at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00071] in <4fdc5ed61a074cafb49fa42deb20d521>:0
2020-06-30T22:17:36.7595490Z   at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00000] in <4fdc5ed61a074cafb49fa42deb20d521>:0
2020-06-30T22:17:36.7596480Z   at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task&) [0x00050] in <4fdc5ed61a074cafb49fa42deb20d521>:0
2020-06-30T22:17:36.7597260Z   at System.Threading.Tasks.Task.ExecuteEntry (bool) [0x00058] in <4fdc5ed61a074cafb49fa42deb20d521>:0
2020-06-30T22:17:36.7598060Z   at System.Threading.Tasks.ThreadPoolTaskScheduler.LongRunningThreadWork (object) [0x00000] in <4fdc5ed61a074cafb49fa42deb20d521>:0
2020-06-30T22:17:36.7598880Z   at System.Threading.ThreadHelper.ThreadStart_Context (object) [0x00025] in <4fdc5ed61a074cafb49fa42deb20d521>:0
2020-06-30T22:17:36.7599790Z   at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00071] in <4fdc5ed61a074cafb49fa42deb20d521>:0
2020-06-30T22:17:36.7601150Z   at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00000] in <4fdc5ed61a074cafb49fa42deb20d521>:0
2020-06-30T22:17:36.7602210Z   at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) [0x0002b] in <4fdc5ed61a074cafb49fa42deb20d521>:0
2020-06-30T22:17:36.7603100Z   at System.Threading.ThreadHelper.ThreadStart (object) [0x0000f] in <4fdc5ed61a074cafb49fa42deb20d521>:0
2020-06-30T22:17:36.7604460Z   at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object (object,intptr,intptr,intptr) [0x0004f] in <4fdc5ed61a074cafb49fa42deb20d521>:0
2020-06-30T22:17:36.7605110Z 
2020-06-30T22:17:36.7605370Z Native stacktrace:
2020-06-30T22:17:36.7605650Z 
2020-06-30T22:17:36.7606050Z 	0   mono                                0x00000001096d03d1 mono_handle_native_crash + 257
2020-06-30T22:17:36.7606670Z 	1   mono                                0x0000000109737e86 altstack_handle_and_restore + 70
2020-06-30T22:17:36.7607260Z 	2   mono                                0x000000010968ef87 mono_local_cprop + 423
2020-06-30T22:17:36.7607800Z 	3   mono                                0x0000000109620257 mini_method_compile + 4375
2020-06-30T22:17:36.7608540Z 	4   mono                                0x0000000109623395 mono_jit_compile_method_inner + 773
2020-06-30T22:17:36.7609170Z 	5   mono                                0x0000000109626903 mono_jit_compile_method_with_opt + 1379
2020-06-30T22:17:36.7610170Z 	6   mono                                0x00000001096d2871 common_call_trampoline + 1217
2020-06-30T22:17:36.7610990Z 	7   mono                                0x00000001096d2379 mono_magic_trampoline + 73
2020-06-30T22:17:36.7611640Z 	8   ???                                 0x0000000109aa539e 0x0 + 4457124766
2020-06-30T22:17:36.7612290Z 	9   ???                                 0x000000010e62b01b 0x0 + 4536315931
2020-06-30T22:17:36.7612700Z 
2020-06-30T22:17:36.7612960Z Debug info from gdb:
2020-06-30T22:17:36.7613180Z 
2020-06-30T22:17:37.7270430Z (lldb) command source -s 0 '/tmp/mono-gdb-commands.rlMTfM'
2020-06-30T22:17:37.7282610Z Executing commands in '/tmp/mono-gdb-commands.rlMTfM'.
2020-06-30T22:17:37.7283420Z (lldb) process attach --pid 44254
@AArnott AArnott added this to the v3.4 milestone Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants