Memory Management Debugger
Valgrind checks all memory operations in an application, like read,
write, malloc, new, free, and delete. Valgrind can find uses of
uninitialized memory, access to already freed memory, overflows,
illegal stack operations, memory leaks, and any illegal
new/malloc/free/delete commands. Another program in the package is
"cachegrind," a profiler based on the valgrind engine.
To use valgrind you should compile your application with "-g -O0"
compiler options. Afterwards you can use it with:
valgrind --tool=memcheck --sloppy-malloc=yes --leak-check=yes
--db-attach=yes my_application, for example.
More valgrind options can be listed via "valgrind --help". There is
also complete documentation in the /usr/share/doc/packages/valgrind/
directory. A debugged application runs slower and needs much more
memory, but is usually still usable. Valgrind is still in development,
but it has been successfully used to optimize several KDE applications.
- Sources inherited from project SUSE:SLE-15-SP3:GA
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout openSUSE:Leap:15.3/valgrind && cd $_
- Create Badge
Source Files
Filename | Size | Changed |
---|---|---|
_multibuild | 0000000063 63 Bytes | |
armv6-support.diff | 0000000213 213 Bytes | |
dhat-use-datadir.patch | 0000000543 543 Bytes | |
parallel-lto.patch | 0000001290 1.26 KB | |
valgrind-3.16.1.tar.bz2 | 0016262776 15.5 MB | |
valgrind.changes | 0000051441 50.2 KB | |
valgrind.spec | 0000012549 12.3 KB | |
valgrind.xen.patch | 0000110497 108 KB |
Revision 2 (latest revision is 3)
- update to 3.16.1 (jsc#SLE-13769): * PPC sync instruction L field should only be 2 bits in ISA 3.0 * vex: the `impossible' happened: expr_is_guardable: unhandled expr - remove 0001-Power-PC-Fix-extraction-of-the-L-field-for-sync-inst.patch (upstream) - Use autopatch - Change armv6-support.diff to a/b format - update to 3.16.0: * Many bugfixes, too many to list here, see NEWS file - The implicit memcpy done by each call to realloc now counts towards the read and write counts of resized heap blocks, making those counts higher and more accurate. - cg_annotate's --auto and --show-percs options now default to 'yes', because they are usually wanted. - callgrind_annotate's --auto and --show-percs options now default to 'yes', because they are usually wanted. - The command option --collect-systime has been enhanced to specify the unit used to record the elapsed time spent during system calls. The command option now accepts the values no|yes|msec|usec|nsec, where yes is a synonym of msec. When giving the value nsec, the system cpu time of system calls is also recorded. - Several memcheck options are now dynamically changeable. Use valgrind --help-dyn-options to list them. - The release 3.15 introduced a backward incompatible change for some suppression entries related to preadv and pwritev syscalls. When reading a suppression entry using the unsupported 3.14 format, valgrind will now produce a warning to say the suppression entry will not work, and suggest the needed change. - Significantly fewer false positive errors on optimised code generated by
Comments 0