Valgrind - program is crashing

2.3k views Asked by At

I'm new to valgrind. While trying to check my small program, I'm getting this error:

==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)

This kind of errors are AFAIK due to an incorrect memory access. The library is trying to access a memory area which is not mapped in its memory space.

Did valgrind stop without checking the whole program? Or does it mean that my app is ok? How can I fix the existing problem?

0

There are 0 answers