runtime icon indicating copy to clipboard operation
runtime copied to clipboard

System.Diagnostics.Tracing.EventSource.DoCommand assertion failure during the repo build

Open xwnb opened this issue 3 years ago • 3 comments

Using powershell at Windows x64 Run build.cmd Build error:

crossgen2 -> D:\GitTestWS\runtime_ws\runtime\artifacts\bin\coreclr\windows.x64.Debug\crossgen2\crossgen2.dll Generating native code crossgen2 -> D:\GitTestWS\runtime_ws\runtime\artifacts\bin\coreclr\windows.x64.Debug\crossgen2\win-x64\publish
Unhandled Exception: EETypeRva:0x01230CE8(System.Diagnostics.DebugProvider+DebugAssertException): at System.Diagnostics.DebugProvider.Fail(String, String) + 0x4b at System.Diagnostics.Debug.Fail(String, String) + 0x45 at System.Diagnostics.Debug.Assert(Boolean, String, String) + 0x3c at System.Diagnostics.Debug.Assert(Boolean) + 0x27 at System.Diagnostics.Tracing.EventSource.DoCommand(EventCommandEventArgs) + 0x76 at System.Diagnostics.Tracing.EventSource.Initialize(Guid, String, String[]) + 0x4b6 at System.Diagnostics.Tracing.EventSource..ctor(Guid, String, EventSourceSettings, String[]) + 0xfe at System.Diagnostics.Tracing.EventSource..ctor(Guid, String) + 0x4e at System.Diagnostics.Tracing.NativeRuntimeEventSource..ctor() + 0xa0 at System.Diagnostics.Tracing.NativeRuntimeEventSource..cctor() + 0x2a at System.Runtime.CompilerServices.ClassConstructorRunner.EnsureClassConstructorRun(StaticClassConstructionContext*) + 0x1ad at System.Runtime.CompilerServices.ClassConstructorRunner.CheckStaticClassConstructionReturnGCStaticBase(StaticClassConstructionContext*, Object) + 0x23 at System.Diagnostics.Tracing.EventListener.get_EventListenersLock() + 0x7b at System.Diagnostics.Tracing.EventSource.Initialize(Guid, String, String[]) + 0x2a6 at System.Diagnostics.Tracing.EventSource..ctor(EventSourceSettings settings, String[] traits) + 0x164 at System.Diagnostics.Tracing.EventSource..ctor(EventSourceSettings settings) + 0x21 at System.Diagnostics.Tracing.EventSource..ctor() + 0x1d at ILCompiler.PerfEventSource..ctor() + 0x18 at ILCompiler.PerfEventSource..cctor() + 0x2a at System.Runtime.CompilerServices.ClassConstructorRunner.EnsureClassConstructorRun(StaticClassConstructionContext*) + 0x1ad at System.Runtime.CompilerServices.ClassConstructorRunner.CheckStaticClassConstructionReturnGCStaticBase(StaticClassConstructionContext*, Object) + 0x23 at ILCompiler.PerfEventSource.StartStopEvents.LoadingEvents() + 0x25 at ILCompiler.Program.Run() + 0x7bc at ILCompiler.Crossgen2RootCommand.<>c__DisplayClass187_0.<.ctor>b__0(InvocationContext context) + 0x534 at System.CommandLine.Invocation.AnonymousCommandHandler.Invoke(InvocationContext) + 0x43 at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<b__0>d.MoveNext() + 0x1d5 at System.Runtime.CompilerServices.AsyncMethodBuilderCore.StartTStateMachine + 0x86 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.StartTStateMachine + 0x1c at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.b__0(InvocationContext invocationContext, Func2 _) + 0x7a at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_2.<BuildInvocationChain>b__3(InvocationContext c) + 0x48 at System.CommandLine.CommandLineBuilderExtensions.<>c__DisplayClass16_0.<<UseParseErrorReporting>b__0>d.MoveNext() + 0x154 at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine&) + 0x86 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine&) + 0x1c at System.CommandLine.CommandLineBuilderExtensions.<>c__DisplayClass16_0.<UseParseErrorReporting>b__0(InvocationContext context, Func2 next) + 0x82 at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_2.b__3(InvocationContext c) + 0x48 at System.CommandLine.CommandLineBuilderExtensions.<>c__DisplayClass11_0.<b__0>d.MoveNext() + 0xb1 at System.Runtime.CompilerServices.AsyncMethodBuilderCore.StartTStateMachine + 0x86 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.StartTStateMachine + 0x1c at System.CommandLine.CommandLineBuilderExtensions.<>c__DisplayClass11_0.b__0(InvocationContext context, Func2 next) + 0x82 at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_2.<BuildInvocationChain>b__3(InvocationContext c) + 0x48 at System.CommandLine.CommandLineBuilderExtensions.<>c__DisplayClass22_0.<<UseVersionOption>b__0>d.MoveNext() + 0x29b at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine&) + 0x86 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine&) + 0x1c at System.CommandLine.CommandLineBuilderExtensions.<>c__DisplayClass22_0.<UseVersionOption>b__0(InvocationContext context, Func2 next) + 0x82 at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_1.b__2(Invocatio

xwnb avatar Feb 10 '23 08:02 xwnb

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

ghost avatar Feb 10 '23 08:02 ghost

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas See info in area-owners.md if you want to be subscribed.

Issue Details

Using powershell at Windows x64 Run build.cmd Build error:

crossgen2 -> D:\GitTestWS\runtime_ws\runtime\artifacts\bin\coreclr\windows.x64.Debug\crossgen2\crossgen2.dll Generating native code crossgen2 -> D:\GitTestWS\runtime_ws\runtime\artifacts\bin\coreclr\windows.x64.Debug\crossgen2\win-x64\publish
Unhandled Exception: EETypeRva:0x01230CE8(System.Diagnostics.DebugProvider+DebugAssertException): at System.Diagnostics.DebugProvider.Fail(String, String) + 0x4b at System.Diagnostics.Debug.Fail(String, String) + 0x45 at System.Diagnostics.Debug.Assert(Boolean, String, String) + 0x3c at System.Diagnostics.Debug.Assert(Boolean) + 0x27 at System.Diagnostics.Tracing.EventSource.DoCommand(EventCommandEventArgs) + 0x76 at System.Diagnostics.Tracing.EventSource.Initialize(Guid, String, String[]) + 0x4b6 at System.Diagnostics.Tracing.EventSource..ctor(Guid, String, EventSourceSettings, String[]) + 0xfe at System.Diagnostics.Tracing.EventSource..ctor(Guid, String) + 0x4e at System.Diagnostics.Tracing.NativeRuntimeEventSource..ctor() + 0xa0 at System.Diagnostics.Tracing.NativeRuntimeEventSource..cctor() + 0x2a at System.Runtime.CompilerServices.ClassConstructorRunner.EnsureClassConstructorRun(StaticClassConstructionContext*) + 0x1ad at System.Runtime.CompilerServices.ClassConstructorRunner.CheckStaticClassConstructionReturnGCStaticBase(StaticClassConstructionContext*, Object) + 0x23 at System.Diagnostics.Tracing.EventListener.get_EventListenersLock() + 0x7b at System.Diagnostics.Tracing.EventSource.Initialize(Guid, String, String[]) + 0x2a6 at System.Diagnostics.Tracing.EventSource..ctor(EventSourceSettings settings, String[] traits) + 0x164 at System.Diagnostics.Tracing.EventSource..ctor(EventSourceSettings settings) + 0x21 at System.Diagnostics.Tracing.EventSource..ctor() + 0x1d at ILCompiler.PerfEventSource..ctor() + 0x18 at ILCompiler.PerfEventSource..cctor() + 0x2a at System.Runtime.CompilerServices.ClassConstructorRunner.EnsureClassConstructorRun(StaticClassConstructionContext*) + 0x1ad at System.Runtime.CompilerServices.ClassConstructorRunner.CheckStaticClassConstructionReturnGCStaticBase(StaticClassConstructionContext*, Object) + 0x23 at ILCompiler.PerfEventSource.StartStopEvents.LoadingEvents() + 0x25 at ILCompiler.Program.Run() + 0x7bc at ILCompiler.Crossgen2RootCommand.<>c__DisplayClass187_0.<.ctor>b__0(InvocationContext context) + 0x534 at System.CommandLine.Invocation.AnonymousCommandHandler.Invoke(InvocationContext) + 0x43 at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<b__0>d.MoveNext() + 0x1d5 at System.Runtime.CompilerServices.AsyncMethodBuilderCore.StartTStateMachine + 0x86 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.StartTStateMachine + 0x1c at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.b__0(InvocationContext invocationContext, Func2 _) + 0x7a at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_2.<BuildInvocationChain>b__3(InvocationContext c) + 0x48 at System.CommandLine.CommandLineBuilderExtensions.<>c__DisplayClass16_0.<<UseParseErrorReporting>b__0>d.MoveNext() + 0x154 at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine&) + 0x86 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine&) + 0x1c at System.CommandLine.CommandLineBuilderExtensions.<>c__DisplayClass16_0.<UseParseErrorReporting>b__0(InvocationContext context, Func2 next) + 0x82 at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_2.b__3(InvocationContext c) + 0x48 at System.CommandLine.CommandLineBuilderExtensions.<>c__DisplayClass11_0.<b__0>d.MoveNext() + 0xb1 at System.Runtime.CompilerServices.AsyncMethodBuilderCore.StartTStateMachine + 0x86 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.StartTStateMachine + 0x1c at System.CommandLine.CommandLineBuilderExtensions.<>c__DisplayClass11_0.b__0(InvocationContext context, Func2 next) + 0x82 at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_2.<BuildInvocationChain>b__3(InvocationContext c) + 0x48 at System.CommandLine.CommandLineBuilderExtensions.<>c__DisplayClass22_0.<<UseVersionOption>b__0>d.MoveNext() + 0x29b at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine&) + 0x86 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine&) + 0x1c at System.CommandLine.CommandLineBuilderExtensions.<>c__DisplayClass22_0.<UseVersionOption>b__0(InvocationContext context, Func2 next) + 0x82 at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_1.b__2(Invocatio

Author: xwnb
Assignees: -
Labels:

os-windows, arch-x64, area-crossgen2-coreclr, untriaged, area-NativeAOT-coreclr

Milestone: -

ghost avatar Feb 10 '23 17:02 ghost

Should be fixed by #82200

LakshanF avatar Feb 20 '23 19:02 LakshanF