A checked build of the C implementation of EventPipe triggers an assert during process shutdown if the app has a tracing session open.
Assert failure(PID 21410 [0x000053a2], Thread: 23643989 [0x168c755]): thread->session_state [i] == 0
File: /Users/josalem/git/alts/runtime/src/native/eventpipe/ep-thread.c Line: 64
Image: /Users/josalem/git/EventPipeLab/scalability/corescaletest/c-checked/corescaletest
This is a valid scenario that works under the C++ implementation.
Belongs to #46079
CC - @lateralusX