You are writing to memory which you do now own i.e. was not handed back by malloc
, calloc
or realloc
. This results in undefined behaviour. Your program can do anything at all, including not producing any error message or core dump.
7
solved Not generation of core [duplicate]