-
Notifications
You must be signed in to change notification settings - Fork 240
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
Add backtraces to examples #5973
Add backtraces to examples #5973
Conversation
/format |
🌈 Formatted, please merge the changes from this PR |
…trace Format code for PR shader-slang#5973
61e8ed6
to
5d202bd
Compare
return true; | ||
} | ||
|
||
// NOTE: This function is not thread-safe, due to usage of StackWalk64 and static buffers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use a mutex here to make this function reentrant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's currently only called from the main thread.
I suppose it's possible some other thread will call these dbghelp API's, is that the concern?
If so I would prefer it if the function was "externally synchronized" i.e. the mutex is around the call site.
/format |
🌈 Formatted, please merge the changes from this PR |
5d202bd
to
1bfebf9
Compare
1bfebf9
to
664740c
Compare
/format |
🌈 Formatted, please merge the changes from this PR |
…trace Format code for PR shader-slang#5973
For now, this is only implemented on Windows. This helps to address shader-slang#5520.
c8bfbb4
to
3abb2c6
Compare
/format |
🌈 Formatted, please merge the changes from this PR |
…trace Format code for PR shader-slang#5973
main
andWinMain
examples.WinMain
example programs, redirect stdout tostdout-[example].txt
and print that in CI if it's found.This helps to address #5520.