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

BinderTracingTest.ResolutionFlow.cmd failing with EventSourceException #38121

Closed
am11 opened this issue Jun 18, 2020 · 4 comments · Fixed by #38251
Closed

BinderTracingTest.ResolutionFlow.cmd failing with EventSourceException #38121

am11 opened this issue Jun 18, 2020 · 4 comments · Fixed by #38251

Comments

@am11
Copy link
Member

am11 commented Jun 18, 2020

Similar to #37132, but throws exception in ETW listener.

   Loader\binding\tracing\BinderTracingTest.ResolutionFlow\BinderTracingTest.ResolutionFlow.cmd [FAIL]
      
      
      
      
      
      Return code:      1
      Raw output file:      D:\h\w\B7CF0A15\w\B70009E0\e\Loader\binding\Reports\Loader.binding\tracing\BinderTracingTest.ResolutionFlow\BinderTracingTest.ResolutionFlow.output.txt
      Raw output:
      BEGIN EXECUTION
       "D:\h\w\B7CF0A15\p\corerun.exe" BinderTracingTest.ResolutionFlow.dll 
      [2:12:17 PM] Launching process for AppDomainAssemblyResolveEvent_Exception...
      [2:12:17 PM] Running AppDomainAssemblyResolveEvent_Exception...
      
      [2:12:18 PM] Launching process for LoadFromAssemblyPath_FoundInAppPath...
      [2:12:18 PM] Running LoadFromAssemblyPath_FoundInAppPath...
      
      [2:12:19 PM] Launching process for LoadFromAssemblyPath_FoundInLoadContext_DifferentMvid...
      [2:12:19 PM] Running LoadFromAssemblyPath_FoundInLoadContext_DifferentMvid...
      
      [2:12:20 PM] Launching process for LoadFromAssemblyPath_FoundInAppPath_IncompatibleVersion...
      [2:12:20 PM] Running LoadFromAssemblyPath_FoundInAppPath_IncompatibleVersion...
      
      [2:12:21 PM] Running AssemblyLoadContextResolving_ReturnNull...
      Test AssemblyLoadContextResolving_ReturnNull failed: System.AggregateException: One or more errors occurred. (An error occurred when writing to a listener.)
       ---> System.Diagnostics.Tracing.EventSourceException: An error occurred when writing to a listener.
       ---> TestLibrary.AssertTestException: Assert.Fail: KnownPathProbed (ActivityId: 00000000-0000-0000-0000-000000000000) should have a matching AssemblyBindStart
      Parsed event: D:\h\w\B7CF0A15\p\system.componentmodel.dll - Source=ApplicationAssemblies, Result=0
      Received events:
      
      
         at TestLibrary.Assert.HandleFail(String assertionName, String message) in /Users/runner/runners/2.170.1/work/1/s/src/coreclr/tests/src/Common/CoreCLRTestLibrary/Assertion.cs:line 735
         at TestLibrary.Assert.Fail(String message, Object[] args) in /Users/runner/runners/2.170.1/work/1/s/src/coreclr/tests/src/Common/CoreCLRTestLibrary/Assertion.cs:line 722
         at BinderTracingTests.BinderEventListener.OnEventWritten(EventWrittenEventArgs data) in /Users/runner/runners/2.170.1/work/1/s/src/coreclr/tests/src/Loader/binding/tracing/BinderEventListener.cs:line 319
         at System.Diagnostics.Tracing.EventSource.DispatchToAllListeners(Int32 eventId, EventWrittenEventArgs eventCallbackArgs)
         --- End of inner exception stack trace ---
         at System.Diagnostics.Tracing.EventSource.DispatchToAllListeners(Int32 eventId, EventWrittenEventArgs eventCallbackArgs)
         at System.Diagnostics.Tracing.EventSource.WriteToAllListeners(Int32 eventId, UInt32* osThreadId, DateTime* timeStamp, Guid* activityID, Guid* childActivityID, Object[] args)
         at System.Diagnostics.Tracing.EventPipeEventDispatcher.DispatchEventsToEventListeners()
         at System.Threading.Tasks.Task.InnerInvoke()
         at System.Threading.Tasks.Task.<>c.<.cctor>b__277_0(Object obj)
         at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
      --- End of stack trace from previous location ---
         at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
         at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
         --- End of inner exception stack trace ---
         at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
         at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
         at System.Threading.Tasks.Task.Wait()
         at System.Diagnostics.Tracing.EventPipeEventDispatcher.StopDispatchTask()
         at System.Diagnostics.Tracing.EventPipeEventDispatcher.CommitDispatchConfiguration()
         at System.Diagnostics.Tracing.EventPipeEventDispatcher.RemoveEventListener(EventListener listener)
         at System.Diagnostics.Tracing.EventListener.RemoveReferencesToListenerInEventSources(EventListener listenerToRemove)
         at System.Diagnostics.Tracing.EventListener.Dispose()
         at BinderTracingTests.BinderTracingTest.RunSingleTest(MethodInfo method) in /Users/runner/runners/2.170.1/work/1/s/src/coreclr/tests/src/Loader/binding/tracing/BinderTracingTest.cs:line 161
      Expected: 100
      Actual: 101
      END EXECUTION - FAILED
      FAILED
      Test Harness Exitcode is : 1
      To run the test:
      > set CORE_ROOT=D:\h\w\B7CF0A15\p
      > D:\h\w\B7CF0A15\w\B70009E0\e\Loader\binding\tracing\BinderTracingTest.ResolutionFlow\BinderTracingTest.ResolutionFlow.cmd
      Expected: True
      Actual:   False

This was also on Windows arm:
https://helix.dot.net/api/2019-06-17/jobs/8a4f9abf-406e-4cb3-8705-b478fbced97c/workitems/PayloadGroup0/console

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added area-System.Diagnostics.Tracing untriaged New issue has not been triaged by the area owner labels Jun 18, 2020
@ghost
Copy link

ghost commented Jun 18, 2020

Tagging subscribers to this area: @tarekgh, @tommcdon, @pjanotti
Notify danmosemsft if you want to be subscribed.

@safern
Copy link
Member

safern commented Jun 18, 2020

@safern
Copy link
Member

safern commented Jun 18, 2020

cc: @elinor-fung @vitek-karas

@tommcdon
Copy link
Member

@elinor-fung @vitek-karas please let us know if any assistance is needed
cc @sywhang @josalem

@tommcdon tommcdon removed the untriaged New issue has not been triaged by the area owner label Jun 22, 2020
@tommcdon tommcdon added this to the 5.0.0 milestone Jun 22, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants