Hi

In case of crash, my applicaiton generate the core dump file, most of the times it is fine, but some times the generated core dump file size is ~1 kb, an when i try to use this in gdb debugger i get the error on the console "Couldn't find general-purpose registers in core file"


>gdb MyProgram CoreDumpFile

Enviorment
1. my application is build on 32 bit centos, with -ggdb3 on.
2.My applicaion is running on 64 bit cent os. and some times it get crashed, and generate the core dump file, and then i am analyisng the core dump on same machine usnig the gdb debugger.

my question is
1. why this garbage core dump file is created, instead of good core file.
2. how can i fix this problem

Thanks