*** stack smashing detected *** - this is the error I got when I ran my program. After doing some google, i found this happens for the buffer overrun. I looked into the program line by line to find where am I doing that. Finally I was able to find it out, only because its a tiny program. I got the following dumps on my screen. But no idea how to read them and proceed with them.Any link or any guidance will be very much helpful..
Code:*** stack smashing detected ***: pipe2 terminated ======= Backtrace: ========= /lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb7fd7da8] /lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x0)[0xb7fd7d60] pipe2[0x8048622] /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb7ef0775] pipe2[0x8048491] ======= Memory map: ======== 08048000-08049000 r-xp 00000000 08:23 1178746 /home/chakra/programming/pipe2 08049000-0804a000 r--p 00000000 08:23 1178746 /home/chakra/programming/pipe2 0804a000-0804b000 rw-p 00001000 08:23 1178746 /home/chakra/programming/pipe2 0805d000-0807e000 rw-p 0805d000 00:00 0 [heap] b7ed9000-b7eda000 rw-p b7ed9000 00:00 0 b7eda000-b8036000 r-xp 00000000 08:22 792661 /lib/tls/i686/cmov/libc-2.9.so b8036000-b8037000 ---p 0015c000 08:22 792661 /lib/tls/i686/cmov/libc-2.9.so b8037000-b8039000 r--p 0015c000 08:22 792661 /lib/tls/i686/cmov/libc-2.9.so b8039000-b803a000 rw-p 0015e000 08:22 792661 /lib/tls/i686/cmov/libc-2.9.so b803a000-b803d000 rw-p b803a000 00:00 0 b803e000-b804b000 r-xp 00000000 08:22 767105 /lib/libgcc_s.so.1 b804b000-b804c000 r--p 0000c000 08:22 767105 /lib/libgcc_s.so.1 b804c000-b804d000 rw-p 0000d000 08:22 767105 /lib/libgcc_s.so.1 b804d000-b8050000 rw-p b804d000 00:00 0 b8050000-b8051000 r-xp b8050000 00:00 0 [vdso] b8051000-b806d000 r-xp 00000000 08:22 767063 /lib/ld-2.9.so b806d000-b806e000 r--p 0001b000 08:22 767063 /lib/ld-2.9.so b806e000-b806f000 rw-p 0001c000 08:22 767063 /lib/ld-2.9.so bf859000-bf86e000 rw-p bffeb000 00:00 0 [stack] Process 8958 ended