Closed ikrima closed 2 years ago
Thank you for chasing this one. Frankly, I have no idea why it would return zero/no trace or succeed on a repeated call :/ I may look at this at some point but swamped with other things at the moment
No worries! The workaround is pretty stable so it's not super critical; just very perplexed by the behavior so i'll probably step away from it for a bit and resume my investigation with fresh eyes
Been chasing a nondeterministic bug where the trace file gets corrupted for a couple of days Finally found culprit to be
RtlCaptureStackBackTrace()
sometimes returning 0/no stacktraceSome odd tidbbits:
__forceinline
withinline
solves the problem. The triggering code usually has a callstack with a lambda & a function that was __forceinlined. This doesn't make any sense but putting it out thereAny ideas/thoughts as to what's going on? Maybe someone has some insight before having to dive into
RtlCaptureStackBackTrace()
internals