ggml : Print backtrace on uncaught C++ exceptions (ggml/1232)

The goal is to have what users call "full logs" contain the backtrace.

This is registered upon ggml_init. Also fixes a minor fd leak on Linux.
This commit is contained in:
Daniel Tang
2025-05-29 09:56:26 +03:00
committed by Georgi Gerganov
parent 73a8c5fb94
commit 5ea2c37a4c
4 changed files with 37 additions and 1 deletions
+2
View File
@@ -32,6 +32,8 @@
extern "C" {
#endif
void ggml_print_backtrace(void);
#ifndef MIN
# define MIN(a, b) ((a) < (b) ? (a) : (b))
#endif