*** glibc detected *** ./a.out: double free or corruption (out): 0xbf9840d8
***
======= Backtrace: =========
/lib/i686/nosegneg/libc.so.6[0x670716]
/lib/i686/nosegneg/libc.so.6(cfree+0x90)[0x673c80]
./a.out[0x8048de9]
/lib/i686/nosegneg/libc.so.6(__libc_start_main+0xdc)[0x61cdec]
./a.out[0x80486b1]
======= Memory map: ========
005b4000-005b5000 r-xp 005b4000 00:00 0 [vdso]
005e9000-00603000 r-xp 00000000 fd:00 4228679 /lib/ld-2.5.so
00603000-00604000 r--p 00019000 fd:00 4228679 /lib/ld-2.5.so
00604000-00605000 rw-p 0001a000 fd:00 4228679 /lib/ld-2.5.so
00607000-00747000 r-xp 00000000 fd:00 4228694
/lib/i686/nosegneg/libc-2.5.so
00747000-00749000 r--p 00140000 fd:00 4228694
/lib/i686/nosegneg/libc-2.5.so
00749000-0074a000 rw-p 00142000 fd:00 4228694
/lib/i686/nosegneg/libc-2.5.so
0074a000-0074d000 rw-p 0074a000 00:00 0
0077e000-00791000 r-xp 00000000 fd:00 4228696
/lib/i686/nosegneg/libpthread-2.5.so
00791000-00792000 r--p 00012000 fd:00 4228696
/lib/i686/nosegneg/libpthread-2.5.so
00792000-00793000 rw-p 00013000 fd:00 4228696
/lib/i686/nosegneg/libpthread-2.5.so
00793000-00795000 rw-p 00793000 00:00 0
008d0000-008db000 r-xp 00000000 fd:00 4227283
/lib/libgcc_s-4.1.2-20080102.so.1
008db000-008dc000 rw-p 0000a000 fd:00 4227283
/lib/libgcc_s-4.1.2-20080102.so.1
08048000-0804a000 r-xp 00000000 00:14 6106
/mnt/hgfs/zq/zq/linux_tcp/a.out
0804a000-0804b000 rw-p 00001000 00:14 6106
/mnt/hgfs/zq/zq/linux_tcp/a.out
09e8f000-09ec0000 rw-p 09e8f000 00:00 0
b7400000-b7421000 rw-p b7400000 00:00 0
b7421000-b7500000 ---p b7421000 00:00 0
b75a5000-b75a6000 ---p b75a5000 00:00 0
b75a6000-b7fa7000 rw-p b75a6000 00:00 0
b7fbb000-b7fbd000 rw-p b7fbb000 00:00 0
bf971000-bf987000 rw-p bf971000 00:00 0 [stack]
已放弃
还有这种错误:
*** glibc detected *** ./a.out: double free or corruption (top): 0x098d3480 ***
今天不知道咋了,各种错误,纠结!!!