Print function name and file location when caught a SIGSEGV

This commit is contained in:
2025-03-12 14:25:55 +01:00
parent 6a5b07fa93
commit 3b938a06dd
7 changed files with 131 additions and 46 deletions

5
test.c
View File

@@ -1,5 +1,6 @@
#include <stdio.h>
#include <inttypes.h>
#include <stdlib.h>
void dupa(void) {
printf("KSKSKKSKSKSK\n");
@@ -15,6 +16,10 @@ int main(void)
dupa();
}
}
int *a = NULL;
*a = 6969;
return 0;
}