退出cobol运行时出错。我该怎么做才能解决它

时间:2010-07-23 06:20:51

标签: c++

*** glibc detected *** /acu/722/bin/runcblrpc: free(): invalid next size (fast): 0x082d8368 ***
                          ======= Backtrace: =========
                  /lib/libc.so.6[0xb7e38fc4]
                  /lib/libc.so.6(cfree+0x9c)0xb7e3a95c]
                  /acu/722/bin/runcblrpc[0x8241053]
                          ======= Memory map: ========
08048000-08273000 r-xp 00000000 08:02 1079681    /acu/722/bin/runcblrpc
08273000-08274000 r--p 0022b000 08:02 1079681    /acu/722/bin/runcblrpc
08274000-0827c000 rw-p 0022c000 08:02 1079681    /acu/722/bin/runcblrpc
0827c000-0835d000 rw-p 0827c000 00:00 0          [heap]
b7c00000-b7c21000 rw-p b7c00000 00:00 0
b7c21000-b7d00000 ---p b7c21000 00:00 0
b7d89000-b7d95000 r-xp 00000000 08:02 1594594    /lib/libgcc_s.so.1
b7d95000-b7d96000 r--p 0000b000 08:02 1594594    /lib/libgcc_s.so.1
b7d96000-b7d97000 rw-p 0000c000 08:02 1594594    /lib/libgcc_s.so.1
b7d97000-b7dcc000 r--s 00000000 08:02 671266     /var/run/nscd/passwd
b7dcc000-b7dcd000 rw-p b7dcc000 00:00 0
b7dcd000-b7f0a000 r-xp 00000000 08:02 1594443    /lib/libc-2.8.so
b7f0a000-b7f0c000 r--p 0013d000 08:02 1594443    /lib/libc-2.8.so
b7f0c000-b7f0d000 rw-p 0013f000 08:02 1594443    /lib/libc-2.8.so
b7f0d000-b7f10000 rw-p b7f0d000 00:00 0
b7f10000-b7f22000 r-xp 00000000 08:02 1594676    /lib/libz.so.1.2.3
b7f22000-b7f23000 r--p 00011000 08:02 1594676    /lib/libz.so.1.2.3
b7f23000-b7f24000 rw-p 00012000 08:02 1594676    /lib/libz.so.1.2.3
b7f24000-b7f48000 r-xp 00000000 08:02 1594454    /lib/libm-2.8.so
b7f48000-b7f49000 r--p 00023000 08:02 1594454    /lib/libm-2.8.so
b7f49000-b7f4a000 rw-p 00024000 08:02 1594454    /lib/libm-2.8.so
b7f4a000-b7f4c000 r-xp 00000000 08:02 1594449    /lib/libdl-2.8.so
b7f4c000-b7f4d000 r--p 00001000 08:02 1594449    /lib/libdl-2.8.so
b7f4d000-b7f4e000 rw-p 00002000 08:02 1594449    /lib/libdl-2.8.so
b7f4e000-b7f4f000 rw-p b7f4e000 00:00 0
b7f64000-b7f7f000 r-xp 00000000 08:02 1594773    /lib/ld-2.8.so
b7f7f000-b7f80000 r--p 0001a000 08:02 1594773    /lib/ld-2.8.so
b7f80000-b7f81000 rw-p 0001b000 08:02 1594773    /lib/ld-2.8.so
bfc6c000-bfc81000 rw-p bffeb000 00:00 0          [stack]
ffffe000-fffff000 r-xp 00000000 00:00 0          [vdso]
 ./fg4: line 23:  3247 Aborted
  /acu/722/bin/runcblrpc FG4RUN FM4-010
 End of FlexGen

1 个答案:

答案 0 :(得分:0)

程序中的内存损坏看起来像;在运行程序之前,请尝试将MALLOC_CHECK_环境变量设置为123。带有这些参数的MALLOC_CHECK_将要求标准malloc(3)对堆损坏执行更多检查。 (可能23会更有用,因为他们会立即abort(3)该程序。)

如果简单MALLOC_CHECK_没有为您追踪,您可能需要使用Valgrind来查找错误。 (另一种选择是尝试debugging memory allocator,但我从未使用过。{/ p>