找回密码
 用户注册

QQ登录

只需一步,快速开始

查看: 6714|回复: 1

Linux下运行我的服务器报 corrupted double-linked list:

[复制链接]
发表于 2011-6-15 23:38:51 | 显示全部楼层 |阅读模式
Linux下运行我的服务器报 corrupted double-linked list:
不知道是啥原因
gdb输出如下:


*** glibc detected *** /SourceCode/YR/YR_CT/Application/YRCTServerConsole/YRCTServerConsole: corrupted double-linked list: 0x080c0668 ***[-1208484976]
======= Backtrace: =========
/lib/libc.so.6[0x735fda]
/lib/libc.so.6(cfree+0x90)[0x739bc0]
/usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0x3e8571]
/SourceCode/YR/Bin/CentOS5.3_32_Debug/libYRCTSystemBase.so.2[0xc4c310]/SourceCode/YR/Bin/CentOS5.3_32_Debug/libYRCTSystemBase.so.2(_Z22WaitForMultipleObjectsjPKPvij+0x307)[0xc4cf1b]
/SourceCode/YR/Bin/CentOS5.3_32_Debug/libDYFileServerCore.so.2[0xb8804c]
/lib/libpthread.so.0[0x84749b]
/lib/libc.so.6(clone+0x5e)[0x79e42e]
======= Memory map: ========
00110000-0011b000 r-xp 00000000 fd:00 3868807    /lib/libgcc_s-4.1.2-20080825.so.1
0011b000-0011c000 rwxp 0000a000 fd:00 3868807    /lib/libgcc_s-4.1.2-20080825.so.1
0011c000-00170000 r-xp 00000000 fd:00 3378939    /SourceCode/YR/YR_CT/Src/YRFileTransfer/libYRFileTransfer.so.2
00170000-00171000 rwxp 00053000 fd:00 3378939    /SourceCode/YR/YR_CT/Src/YRFileTransfer/libYRFileTransfer.so.2
0017c000-00328000 r-xp 00000000 fd:00 3643406    /SourceCode/YR/YR_CT/Src/ace/libYRCTNetBase.so.2
00328000-00334000 rwxp 001ab000 fd:00 3643406    /SourceCode/YR/YR_CT/Src/ace/libYRCTNetBase.so.2
00334000-00335000 rwxp 00334000 00:00 0
00335000-00415000 r-xp 00000000 fd:00 2569404    /usr/lib/libstdc++.so.6.0.8
00415000-00419000 r-xp 000df000 fd:00 2569404    /usr/lib/libstdc++.so.6.0.8
00419000-0041a000 rwxp 000e3000 fd:00 2569404    /usr/lib/libstdc++.so.6.0.8
0041a000-00420000 rwxp 0041a000 00:00 0
005ab000-005ac000 r-xp 005ab000 00:00 0          [vdso]
006aa000-006c4000 r-xp 00000000 fd:00 3868797    /lib/ld-2.5.so
006c4000-006c5000 r-xp 00019000 fd:00 3868797    /lib/ld-2.5.so
006c5000-006c6000 rwxp 0001a000 fd:00 3868797    /lib/ld-2.5.so
006cd000-0080b000 r-xp 00000000 fd:00 3868798    /lib/libc-2.5.so
0080b000-0080d000 r-xp 0013e000 fd:00 3868798    /lib/libc-2.5.so
0080d000-0080e000 rwxp 00140000 fd:00 3868798    /lib/libc-2.5.so
0080e000-00811000 rwxp 0080e000 00:00 0
00813000-00838000 r-xp 00000000 fd:00 3868805    /lib/libm-2.5.so
00838000-00839000 r-xp 00024000 fd:00 3868805    /lib/libm-2.5.so
00839000-0083a000 rwxp 00025000 fd:00 3868805    /lib/libm-2.5.so
0083c000-0083e000 r-xp 00000000 fd:00 3868799    /lib/libdl-2.5.so
0083f000-00840000 rwxp 00002000 fd:00 3868799    /lib/libdl-2.5.so
00842000-00855000 r-xp 00000000 fd:00 3868800    /lib/libpthread-2.5.so
00855000-00856000 r-xp 00012000 fd:00 3868800    /lib/libpthread-2.5.so
00856000-00857000 rwxp 00013000 fd:00 3868800    /lib/libpthread-2.5.so
00857000-00859000 rwxp 00857000 00:00 0
00ab6000-00abd000 r-xp 00000000 fd:00 3868801    /lib/librt-2.5.so
00abd000-00abe000 r-xp 00006000 fd:00 3868801    /lib/librt-2.5.so
00abe000-00abf000 rwxp 00007000 fd:00 3868801    /lib/librt-2.5.so
00ac1000-00ac4000 r-xp 00000000 fd:00 3868808    /lib/libuuid.so.1.2
00ac4000-00ac5000 rwxp 00003000 fd:00 3868808    /lib/libuuid.so.1.2
00b34000-00ba2000 r-xp 00000000 fd:00 3378845    /SourceCode/YR/YR_CT/Src/DYFileServerCore_ACE/libDYFileServerCore.so.2
00ba2000-00ba3000 rwxp 0006d000 fd:00 3378845    /SourceCode/YR/YR_
CT/Src/DYFileServerCore_ACE/libDYFileServerCore.so.2
00bf6000-00bfd000 r-xp 00000000 fd:00 3577425    /SourceCode/YR/YR_CT/Src/YRStructBuffer/libYRStructBuffer.so.2
00bfd000-00bfe000 rwxp 00006000 fd:00 3577425    /SourceCode/YR/YR_CT/Src/YRStructBuffer/libYRStructBuffer.so.2
00c3f000-00c56000 r-xp 00000000 fd:00 3412046    /SourceCode/YR/YR_CT/Src/YRCTSystemBase/libYRCTSystemBase.so.2
00c56000-00c57000 rwxp 00017000 fd:00 3412046    /SourceCode/YR/YR_CT/Src/YRCTSystemBase/libYRCTSystemBase.so.2
00c73000-00c93000 r-xp 00000000 fd:00 3412050    /SourceCode/YR/YR_CT/Src/YRCTBaseModule/libYRCTBaseModule.so.2
00c93000-00c94000 rwxp 0001f000 fd:00 3412050    /SourceCode/YR/YR_CT/Src/YRCTBaseModule/libYRCTBaseModule.so.2
00cfa000-00d35000 r-xp 00000000 fd:00 3412053    /SourceCode/YR/YR_CT/Src/YRSocket/libYRSocket.so.2
00d35000-00d36000 rwxp 0003a000 fd:00 3412053    /SourceCode/YR/YR_CT/Src/YRSocket/libYRSocket.so.2
00db7000-00dfa000 r-xp 00000000 fd:00 3411992    /SourceCode/YR/YR_CT/Src/YRCTBaseModuleEx/libYRCTBaseModuleEx.so.2
00dfa000-00dfd000 rwxp 00042000 fd:00 3411992    /SourceCode/YR/YR_CT/Src/YRCTBaseModuleEx/libYRCTBaseModuleEx.so.2
08048000-0804a000 r-xp 00000000 fd:00 3378851    /SourceCode/YR/YR_CT/Application/YRCTServerConsole/YRCTServerConsole
0804a000-0804b000 rw-p 00002000 fd:00 3378851    /SourceCode/YR/YR_CT/Application/YRCTServerConsole/YRCTServerConsole
080ad000-08139000 rw-p 080ad000 00:00 0          [heap]
b5e00000-b5e21000 rw-p b5e00000 00:00 0
b5e21000-b5f00000 ---p b5e21000 00:00 0
b5f38000-b5f39000 rw-p b5f38000 00:00 0
b5f39000-b5f3a000 ---p b5f39000 00:00 0
b5f3a000-b693a000 rw-p b5f3a000 00:00 0
b693a000-b693b000 ---p b693a000 00:00 0
b693b000-b733b000 rw-p b693b000 00:00 0
b733b000-b7342000 r--s 00000000 fd:00 2654529    /usr/lib/gconv/gconv-modules.ca
che
b7342000-b7343000 r--p 01046000 fd:00 2560637    /usr/lib/locale/locale-archive
b7343000-b737f000 r--p 00fce000 fd:00 2560637    /usr/lib/locale/locale-archive
b737f000-b757f000 r--p 00000000 fd:00 2560637    /usr/lib/locale/locale-archive
b757f000-b7580000 ---p b757f000 00:00 0
b7580000-b7f86000 rw-p b7580000 00:00 0
b7f9e000-b7f9f000 rw-p b7f9e000 00:00 0
bfa31000-bfa46000 rw-p bffea000 00:00 0          [stack]


网上说说指针被free2次,怎么找到这个问题呢,可是不大好找啊
大家有无好的办法呢
发表于 2011-7-7 11:03:21 | 显示全部楼层
try valgrind.
您需要登录后才可以回帖 登录 | 用户注册

本版积分规则

Archiver|手机版|小黑屋|ACE Developer ( 京ICP备06055248号 )

GMT+8, 2024-11-21 23:20 , Processed in 0.018660 second(s), 5 queries , Redis On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表