Aborted (core dumped)
Hi,
I m running a program where I m assigning values to an array which i have statically declared to be 126976 bytes long. I get a core dump which I have pasted below :- I looked at the output of the readelf -a for my executable -- but couldnt debug much -- can someone suggest how i should go about debugging this error? Thanks, Ashlesha. Quote:
|
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 |
Aborted: core-dumped
Quote:
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 |
Quote:
-Aaron |
All times are GMT -5. The time now is 08:54 AM. |