- 论坛徽章:
- 0
|
代码写得不好,出现如下错误,忙了一下午,也没有找出是什么问题,求各位高手帮帮忙,小弟在此谢过
*** glibc detected *** ./netmonitor: malloc(): memory corruption (fast): 0x08051af0 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7e4288f]
/lib/tls/i686/cmov/libc.so.6(malloc+0x7f)[0xb7e4383f]
./netmonitor[0x8048eea]
./netmonitor[0x804936a]
./netmonitor[0x8049537]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc)[0xb7df08cc]
./netmonitor[0x80488f1]
======= Memory map: ========
08048000-0804a000 r-xp 00000000 03:08 49014 /home/zhoucr/newproject/netmonitor
0804a000-0804b000 rw-p 00001000 03:08 49014 /home/zhoucr/newproject/netmonitor
0804b000-0806c000 rw-p 0804b000 00:00 0 [heap]
5f529000-5f52a000 ---p 5f529000 00:00 0
5f52a000-5fd2a000 rw-p 5f52a000 00:00 0
5fd2a000-5fd2b000 ---p 5fd2a000 00:00 0
5fd2b000-6052b000 rw-p 5fd2b000 00:00 0
6052b000-6052c000 ---p 6052b000 00:00 0
6052c000-60d2c000 rw-p 6052c000 00:00 0
60d2c000-60d2d000 ---p 60d2c000 00:00 0
60d2d000-6152d000 rw-p 60d2d000 00:00 0
b7c00000-b7c21000 rw-p b7c00000 00:00 0
b7c21000-b7d00000 ---p b7c21000 00:00 0
b7dda000-b7ddb000 rw-p b7dda000 00:00 0
b7ddb000-b7f08000 r-xp 00000000 03:08 390936 /lib/tls/i686/cmov/libc-2.4.so
b7f08000-b7f0a000 r--p 0012c000 03:08 390936 /lib/tls/i686/cmov/libc-2.4.so
b7f0a000-b7f0c000 rw-p 0012e000 03:08 390936 /lib/tls/i686/cmov/libc-2.4.so
b7f0c000-b7f0f000 rw-p b7f0c000 00:00 0
b7f0f000-b7f1e000 r-xp 00000000 03:08 390950 /lib/tls/i686/cmov/libpthread-2.4.so
b7f1e000-b7f20000 rw-p 0000f000 03:08 390950 /lib/tls/i686/cmov/libpthread-2.4.so
b7f20000-b7f22000 rw-p b7f20000 00:00 0
b7f2a000-b7f34000 r-xp 00000000 03:08 390928 /lib/libgcc_s.so.1
b7f34000-b7f35000 rw-p 00009000 03:08 390928 /lib/libgcc_s.so.1
b7f35000-b7f38000 rw-p b7f35000 00:00 0
b7f38000-b7f51000 r-xp 00000000 03:08 392396 /lib/ld-2.4.so
b7f51000-b7f53000 rw-p 00018000 03:08 392396 /lib/ld-2.4.so
bfcf8000-bfd0e000 rw-p bfcf8000 00:00 0 [stack]
ffffe000-fffff000 ---p 00000000 00:00 0 [vdso]
[ 本帖最后由 guxing1841 于 2007-4-18 22:08 编辑 ] |
|