I compiled my program with -g switch and ran in GDB. It failed immediately with this message ...
SIGSEGV segmentation fault
0x00009dac in free()
Search found 62 matches
I am trying to write a program that uses a linked list as a data structure. I am using callocate and pointers. The program runs sometimes and gives a GPF sometimes. A dump of the data structure shows it is linked properly. It is not easy to diagnose a GPF since it cannot be trapped.