Save stack trace on game crash

Godot Version

4.2

Question

How do you deal with crashes in a build?
It’s fine in the editor where its caught and all, but in builds I cannot figure out a good way to get a stack trace.
I know it’s saved into the logs/godot.log file, but that is reset on the next start.
I tried reacting to the NOTIFICATION_CRASH but when that happens the stack trace hasn’t been written to the log file yet.

I wanted to set up a way for my testers to quickly send me crash reports with all the data I need, but so far I failed.
How do you solve this?

edit: looking at the engine code in crash_handler_linuxbsd.cpp the notification is sent before the backtrace is dumped. I can probably just move that code. Still curious if there is a better solution