Quote:
Originally Posted by slzckboy
if your program was compiled with the gcc -g switch
then you can do gdb -c core prog_name to view the core file and see which lines of code caused the problem
|
Hello,
I think you are freeing twice (exactly you might allocated a memory and freed some where in the code after freed pointer again you are using free to that pointer) the same pointer variable.
Ok, to re-solve this issue if you are using C shell use the following command to fix this.
setenv MALLOC_CHECK 0
Or if you use Bash Shell
export MALLOC_CHECK=0
now run you executable, i hope it will work.
Thanks,
Dayalan