On Fri, Jul 24, 2009 at 10:10 AM, vineet pratap<[email protected]> wrote: > hi, > i m new in Linux world. and i have one problem regarding compilation of > c code on gcc. i got error while compiling c code as > shown below... this is not a problem with compilation of code. The problem is with in code itself. this kind of error occurs when you try to free an piece of memory which is already freed, or when you over write a block of dynamically allocated memory and try to free it or close an already closed file stream
try posting code here regards vibi sreenivasan > ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > v...@debian:~$ cd Desktop/ > v...@debian:~/Desktop$ gcc matrix_multiplication.c > v...@debian:~/Desktop$ ./a.out > *** glibc detected *** ./a.out: double free or corruption (!prev): > 0x0000000001de0010 *** > ======= Backtrace: ========= > /lib/libc.so.6[0x7f2819912948] > /lib/libc.so.6(cfree+0x76)[0x7f2819914a56] > ./a.out[0x400767] > /lib/libc.so.6(__libc_start_main+0xe6)[0x7f28198bd1a6] > ./a.out[0x400459] > ======= Memory map: ======== > 00400000-00401000 r-xp 00000000 08:05 360283 > /home/vinu/Desktop/a.out > 00600000-00601000 rw-p 00000000 08:05 360283 > /home/vinu/Desktop/a.out > 01de0000-01fcf000 rw-p 01de0000 00:00 0 > [heap] > 7f2814000000-7f2814021000 rw-p 7f2814000000 00:00 0 > 7f2814021000-7f2818000000 ---p 7f2814021000 00:00 0 > 7f2819688000-7f281969e000 r-xp 00000000 08:05 2125804 > /lib/libgcc_s.so.1 > 7f281969e000-7f281989e000 ---p 00016000 08:05 2125804 > /lib/libgcc_s.so.1 > 7f281989e000-7f281989f000 rw-p 00016000 08:05 2125804 > /lib/libgcc_s.so.1 > 7f281989f000-7f28199e9000 r-xp 00000000 08:05 2125778 > /lib/libc-2.7.so > 7f28199e9000-7f2819be8000 ---p 0014a000 08:05 2125778 > /lib/libc-2.7.so > 7f2819be8000-7f2819beb000 r--p 00149000 08:05 2125778 > /lib/libc-2.7.so > 7f2819beb000-7f2819bed000 rw-p 0014c000 08:05 2125778 > /lib/libc-2.7.so > 7f2819bed000-7f2819bf2000 rw-p 7f2819bed000 00:00 0 > 7f2819bf2000-7f2819c0e000 r-xp 00000000 08:05 2125781 > /lib/ld-2.7.so > 7f2819df2000-7f2819df4000 rw-p 7f2819df2000 00:00 0 > 7f2819e0a000-7f2819e0d000 rw-p 7f2819e0a000 00:00 0 > 7f2819e0d000-7f2819e0f000 rw-p 0001b000 08:05 2125781 > /lib/ld-2.7.so > 7fff21dfa000-7fff21e0f000 rw-p 7ffffffea000 00:00 0 > [stack] > 7fff21fff000-7fff22000000 r-xp 7fff21fff000 00:00 0 > [vdso] > ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 > [vsyscall] > Aborted > v...@debian:~/Desktop$ > ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > > Plz help me to solve this problem..... > > > > --~--~---------~--~----~------------~-------~--~----~ "Freedom is the only law". "Freedom Unplugged" http://www.ilug-tvm.org You received this message because you are subscribed to the Google Groups "ilug-tvm" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For details visit the website: www.ilug-tvm.org or the google group page: http://groups.google.com/group/ilug-tvm?hl=en -~----------~----~----~----~------~----~------~--~---
