[问题] 内存错误

楼主: photonzero (邪心魔佛)   2012-04-01 15:36:44
我在工作站测n1000&n10000 for GD RC DP 时能输出档案
但主程式结束时跑出下列讯息
*** glibc detected *** ./bin/mysort: free(): invalid next size (fast):
0x000000001651b410 ***
======= Backtrace: =========
/lib64/libc.so.6[0x306767245f]
/lib64/libc.so.6(cfree+0x4b)[0x30676728bb]
./bin/mysort[0x4015f9]
./bin/mysort[0x401cdd]
/lib64/libc.so.6(__libc_start_main+0xf4)[0x306761d994]
./bin/mysort(__gxx_personality_v0+0x69)[0x401079]
======= Memory map: ========
00400000-00405000 r-xp 00000000 00:1c 1630216
/raid3/courses/algo2012/alg011/PA2/bin/mysort
00604000-00605000 rw-p 00004000 00:1c 1630216
/raid3/courses/algo2012/alg011/PA2/bin/mysort
16515000-16557000 rw-p 16515000 00:00 0
[heap]
3067200000-306721c000 r-xp 00000000 fd:00 3964951
/lib64/ld-2.5.so
306741c000-306741d000 r
作者: anfranion (南‧生命的意義是經歷)   2012-04-01 17:52:00
delete没有写好
楼主: photonzero (邪心魔佛)   2012-04-01 18:10:00
已发现问题在哪 感谢回答

Links booklink

Contact Us: admin [ a t ] ucptt.com