View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

** glibc detected *** error

kshitij_ghule wrote on Feb 08, 2007

i am getting the followinf error.
wat is the exact reason for this error.

*** glibc detected *** ./sam: malloc(): memory corruption: 0x08540d00 ***
======= Backtrace: =========
/lib/libc.so.6[0x5ad1a2]
/lib/libc.so.6(malloc+0x74)[0x5ae587]
./sam[0x8051275]
./sam[0x8051303]
./sam[0x804e272]
./sam[0x804e837]
./sam[0x805282f]
./sam[0x8052889]
./sam[0x80571e8]
./sam[0x8057339]
./sam[0x805bb44]
./sam[0x804b2ff]
/lib/libc.so.6(__libc_start_main+0xdf)[0x55dd7f]
./sam[0x804a791]
======= Memory map: ========
00111000-00113000 rwxp 00111000 00:00 0
00275000-0027e000 r-xp 00000000 08:02 16449588 /lib/libnss_files-2.3.6.so
0027e000-0027f000 r-xp 00008000 08:02 16449588 /lib/libnss_files-2.3.6.so
0027f000-00280000 rwxp 00009000 08:02 16449588 /lib/libnss_files-2.3.6.so
00288000-002b8000 rwxp 00288000 00:00 0
0052b000-00545000 r-xp 00000000 08:02 16449538 /lib/ld-2.3.6.so
00545000-00546000 r-xp 00019000 08:02 16449538 /lib/ld-2.3.6.so
00546000-00547000 rwxp 0001a000 08:02 16449538 /lib/ld-2.3.6.so
00549000-0066c000 r-xp 00000000 08:02 16449546 /lib/libc-2.3.6.so
0066c000-0066e000 r-xp 00122000 08:02 16449546 /lib/libc-2.3.6.so
0066e000-00670000 rwxp 00124000 08:02 16449546 /lib/libc-2.3.6.so
00670000-00672000 rwxp 00670000 00:00 0
0067a000-0069d000 r-xp 00000000 08:02 16449558 /lib/libm-2.3.6.so
0069d000-0069e000 r-xp 00022000 08:02 16449558 /lib/libm-2.3.6.so
0069e000-0069f000 rwxp 00023000 08:02 16449558 /lib/libm-2.3.6.so
00aee000-00af7000 r-xp 00000000 08:02 16449561 /lib/libgcc_s-4.0.2-20051126.so.1
00af7000-00af8000 rwxp 00009000 08:02 16449561 /lib/libgcc_s-4.0.2-20051126.so.1
00d0e000-00d0f000 r-xp 00d0e000 00:00 0
00d66000-00dbc000 rwxp 00d66000 00:00 0
08048000-081c4000 r-xp 00000000 08:11 18874602 /home/manredd/CollegeProject/sam
081c4000-081c8000 rwxp 0017c000 08:11 18874602 /home/manredd/CollegeProject/sam
081c8000-081d4000 rwxp 081c8000 00:00 0
08533000-08554000 rwxp 08533000 00:00 0 [heap]
b7e00000-b7e21000 rwxp b7e00000 00:00 0
b7e21000-b7f00000 ---p b7e21000 00:00 0
bfc8d000-bfca2000 rwxp bfc8d000 00:00 0 [stack]
Aborted

hoping for help at earliest

Kshitij,

Mike Fitzpatrick wrote on Feb 08, 2007

The exact reason won't be known until you find the bug, generically it just means you corrupted a pointer in your program somewhere. Compiling with the '-g' flag will enable debugging output, and memory tools like Valgrind or ElectricFencec (Google for references) can help as can the MALLOC_CHECK_ environment variable (see the 'malloc' man page).

This doesn't appear to be any sort of IRAF program though so this probably isn't the best forum for solving the problem.

-Mike

Last post on Feb 08, 2007