Skip to content

Assert in CounterGroup.OnEventSourceCommand after trying to run BDN x86 #99497

@MichalPetryka

Description

@MichalPetryka

I've tried to run BenchmarkDotNet in x86 (which failed unless I used InProcessEmitToolchain) and after that I've noticed that checked CoreLib is now hitting an assert here:

Debug.Assert(e.Command == EventCommand.Enable || e.Command == EventCommand.Disable);

Seems like BDN somehow corrupt my current PC boot, still, this probably shouldn't assert in .NET when BDN isn't even running anymore.

Stacktrace:

Process terminated. Assertion failed.
   at System.Diagnostics.Tracing.CounterGroup.OnEventSourceCommand(Object sender, EventCommandEventArgs e)
   at System.Diagnostics.Tracing.EventSource.add_EventCommandExecuted(EventHandler`1 value)
   at System.Diagnostics.Tracing.CounterGroup.GetCounterGroup(EventSource eventSource)
   at System.Diagnostics.Tracing.DiagnosticCounter.Publish()
   at System.Diagnostics.Tracing.RuntimeEventSource.OnEventCommand(EventCommandEventArgs command)
   at System.Diagnostics.Tracing.EventSource.DoCommand(EventCommandEventArgs commandArgs)
   at System.Diagnostics.Tracing.EventSource.Initialize(Guid eventSourceGuid, String eventSourceName, String[] traits)
   at System.Diagnostics.Tracing.RuntimeEventSource..ctor()
   at System.Diagnostics.Tracing.RuntimeEventSource.Initialize()
   at System.StartupHookProvider.ManagedStartup(Char* pDiagnosticStartupHooks)

Metadata

Metadata

Assignees

Labels

area-Tracing-coreclrin-prThere is an active PR which will close this issue when it is merged

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions