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

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

Closed
xwnb opened this issue Feb 10, 2023 · 3 comments

Comments

@xwnb
Copy link

xwnb commented Feb 10, 2023

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

@dotnet-issue-labeler
Copy link

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
Copy link

ghost commented Feb 10, 2023

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: -

@jkotas jkotas changed the title Build error in win64 from crossgen2 System.Diagnostics.Tracing.EventSource.DoCommand assertion failure during the repo build Feb 10, 2023
LakshanF added a commit to LakshanF/runtime that referenced this issue Feb 15, 2023
@LakshanF
Copy link
Contributor

Should be fixed by #82200

@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Feb 20, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Mar 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants