test-sigsegv: Add a deeper segfault to test debugging libs
This commit is contained in:
parent
6fd05ef013
commit
a697f1abf5
@ -1,4 +1,11 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
int main(int argc, char * argv[]) {
|
||||
*(volatile int*)0x12345 = 42;
|
||||
if (argc > 1) {
|
||||
fprintf(stderr, "%s\n", (char*)(uintptr_t)strtoul(argv[1],NULL,0));
|
||||
} else {
|
||||
*(volatile int*)0x12345 = 42;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user