bash-3.2$ g++ main.cpp chaine.cpp chaine.h -o chain
bash-3.2$ ./chain
delem alikomm hahhaha
*** glibc detected *** ./chain: double free or corruption (out): 0xbfdd5d68 ***
======= Backtrace: =========
/lib/libc.so.6[0x2b5ac1]
/lib/libc.so.6(cfree+0x90)[0x2b90f0]
/usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0x1df111]
/usr/lib/libstdc++.so.6(_ZdaPv+0x1d)[0x1df16d]
./chain(__gxx_personality_v0+0x2ff)[0x804899f]
./chain(__gxx_personality_v0+0x1d6)[0x8048876]
/lib/libc.so.6(__libc_start_main+0xe0)[0x262390]
./chain(__gxx_personality_v0+0x41)[0x80486e1]
======= Memory map: ========
00110000-0012b000 r-xp 00000000 08:03 648970 /lib/ld-2.7.so
0012b000-0012c000 r--p 0001a000 08:03 648970 /lib/ld-2.7.so
0012c000-0012d000 rw-p 0001b000 08:03 648970 /lib/ld-2.7.so
0012d000-0012e000 r-xp 0012d000 00:00 0 [vdso]
0012e000-0020c000 r-xp 00000000 08:03 111844 /usr/lib/libstdc++.so.6.0.8
0020c000-0020f000 r--p 000dd000 08:03 111844 /usr/lib/libstdc++.so.6.0.8
0020f000-00211000 rw-p 000e0000 08:03 111844 /usr/lib/libstdc++.so.6.0.8
00211000-00217000 rw-p 00211000 00:00 0
00217000-0023e000 r-xp 00000000 08:03 645918 /lib/libm-2.7.so
0023e000-0023f000 r--p 00026000 08:03 645918 /lib/libm-2.7.so
0023f000-00240000 rw-p 00027000 08:03 645918 /lib/libm-2.7.so
00240000-0024b000 r-xp 00000000 08:03 648978 /lib/libgcc_s-4.1.2-20070925.so.1
0024b000-0024c000 rw-p 0000a000 08:03 648978 /lib/libgcc_s-4.1.2-20070925.so.1
0024c000-0039f000 r-xp 00000000 08:03 648853 /lib/libc-2.7.so
0039f000-003a1000 r--p 00153000 08:03 648853 /lib/libc-2.7.so
003a1000-003a2000 rw-p 00155000 08:03 648853 /lib/libc-2.7.so
003a2000-003a5000 rw-p 003a2000 00:00 0
08048000-0804a000 r-xp 00000000 00:19 136314967 /usagers/hamaa/Desktop/temp/string/chain
0804a000-0804b000 rw-p 00001000 00:19 136314967 /usagers/hamaa/Desktop/temp/string/chain
0897e000-0899f000 rw-p 0897e000 00:00 0 [heap]
b7e00000-b7e21000 rw-p b7e00000 00:00 0
b7e21000-b7f00000 ---p b7e21000 00:00 0
b7faf000-b7fb1000 rw-p b7faf000 00:00 0
b7fd6000-b7fd7000 rw-p b7fd6000 00:00 0
bfdc2000-bfdd7000 rw-p bffeb000 00:00 0 [stack]
delem alikomm hahhahaAbandon
Partager