Well, I am getting following output :
Code:
0
1
4
9
16
*** glibc detected *** ./1: free(): invalid pointer: 0x00000000021ee024 ***
======= Backtrace: =========
/lib/libc.so.6(+0x775b6)[0x7f4aa73285b6]
/lib/libc.so.6(cfree+0x73)[0x7f4aa732ee83]
./1[0x400631]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7f4aa72cfc4d]
./1[0x4004f9]
======= Memory map: ========
00400000-00401000 r-xp 00000000 08:05 1442049                            /home/himanshu/practice/1
00600000-00601000 r--p 00000000 08:05 1442049                            /home/himanshu/practice/1
00601000-00602000 rw-p 00001000 08:05 1442049                            /home/himanshu/practice/1
021ee000-0220f000 rw-p 00000000 00:00 0                                  [heap]
7f4aa0000000-7f4aa0021000 rw-p 00000000 00:00 0 
7f4aa0021000-7f4aa4000000 ---p 00000000 00:00 0 
7f4aa709a000-7f4aa70b0000 r-xp 00000000 08:05 262224                     /lib/libgcc_s.so.1
7f4aa70b0000-7f4aa72af000 ---p 00016000 08:05 262224                     /lib/libgcc_s.so.1
7f4aa72af000-7f4aa72b0000 r--p 00015000 08:05 262224                     /lib/libgcc_s.so.1
7f4aa72b0000-7f4aa72b1000 rw-p 00016000 08:05 262224                     /lib/libgcc_s.so.1
7f4aa72b1000-7f4aa742b000 r-xp 00000000 08:05 265935                     /lib/libc-2.11.1.so
7f4aa742b000-7f4aa762a000 ---p 0017a000 08:05 265935                     /lib/libc-2.11.1.so
7f4aa762a000-7f4aa762e000 r--p 00179000 08:05 265935                     /lib/libc-2.11.1.so
7f4aa762e000-7f4aa762f000 rw-p 0017d000 08:05 265935                     /lib/libc-2.11.1.so
7f4aa762f000-7f4aa7634000 rw-p 00000000 00:00 0 
7f4aa7634000-7f4aa7654000 r-xp 00000000 08:05 265932                     /lib/ld-2.11.1.so
7f4aa7831000-7f4aa7834000 rw-p 00000000 00:00 0 
7f4aa7850000-7f4aa7853000 rw-p 00000000 00:00 0 
7f4aa7853000-7f4aa7854000 r--p 0001f000 08:05 265932                     /lib/ld-2.11.1.so
7f4aa7854000-7f4aa7855000 rw-p 00020000 08:05 265932                     /lib/ld-2.11.1.so
7f4aa7855000-7f4aa7856000 rw-p 00000000 00:00 0 
7fff4a6a9000-7fff4a6be000 rw-p 00000000 00:00 0                          [stack]
7fff4a7c2000-7fff4a7c3000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted
I dunno how its working on your system?