mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-30 08:42:00 +00:00 
			
		
		
		
	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
					Daniel Tang
				
			
				
					committed by
					
						 Georgi Gerganov
						Georgi Gerganov
					
				
			
			
				
	
			
			
			 Georgi Gerganov
						Georgi Gerganov
					
				
			
						parent
						
							8726392d3d
						
					
				
				
					commit
					fedf034a98
				
			| @@ -32,6 +32,8 @@ | ||||
| extern "C" { | ||||
| #endif | ||||
|  | ||||
| void ggml_print_backtrace(void); | ||||
|  | ||||
| #ifndef MIN | ||||
| #    define MIN(a, b) ((a) < (b) ? (a) : (b)) | ||||
| #endif | ||||
|   | ||||
		Reference in New Issue
	
	Block a user