Valgrind - 程序崩溃了

时间:2013-12-18 15:36:31

标签: memory-management memory-leaks valgrind memcheck

我是valgrind的新手。在尝试检查我的小程序时,我收到了这个错误:

==973== Process terminating with default action of signal 11 (SIGSEGV)
==973==  Bad permissions for mapped region at address 0x57E
==973==    at 0x57E: ???
==973==    by 0x400C3BA: _dl_signal_error (in /lib64/ld-2.4.so)
==973==    by 0x400B82F: _dl_map_object_deps (in /lib64/ld-2.4.so)
==973==    by 0x4002ED9: dl_main (in /lib64/ld-2.4.so)
==973==    by 0x4011F81: _dl_sysdep_start (in /lib64/ld-2.4.so)
==973==    by 0x4001245: _dl_start (in /lib64/ld-2.4.so)
==973==    by 0x4000A87: ??? (in /lib64/ld-2.4.so)

==973== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
==973==
==973== 1 errors in context 1 of 1:
==973== Jump to the invalid address stated on the next line
==973==    at 0x57E: ???
==973==    by 0x400C3BA: _dl_signal_error (in /lib64/ld-2.4.so)
==973==    by 0x400B82F: _dl_map_object_deps (in /lib64/ld-2.4.so)
==973==    by 0x4002ED9: dl_main (in /lib64/ld-2.4.so)
==973==    by 0x4011F81: _dl_sysdep_start (in /lib64/ld-2.4.so)
==973==    by 0x4001245: _dl_start (in /lib64/ld-2.4.so)
==973==    by 0x4000A87: ??? (in /lib64/ld-2.4.so)
==973==  Address 0x57e is not stack'd, malloc'd or (recently) free'd
==973==
==973== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)

由于内存访问不正确,此类错误是AFAIK。该库正在尝试访问未在其内存空间中映射的内存区域。

valgrind没有检查整个程序就停止了吗?或者这是否意味着我的应用程序还可以?我该如何解决现有问题?

0 个答案:

没有答案