I have this program:
When run, it just does nothing and exits. I used MinGW gdb as shown in the attached screenshot and I'm getting a SIGTRAP ntdll!RtlIsNonEmptyDirectoryReparsePointAllowed () error. At first I thought maybe some memory corruption was going on but when I examined the array, it is successfully populated and this crash happens AFTER the loop when the printf statement is run.Code:#include <stdio.h> #include <stdlib.h> int main(void) { int (*a)[5][5] = calloc(25, 1); *a[0][0] = 5; size_t i, j; for(i =0; i < 5; i++) { for(j = 0; j < 5; j++) { *a[i][j] = 25; } } printf("%d\n", *a[0][4]); free(a); return EXIT_SUCCESS; }
Does anyone have experience with this error or know what it may be?