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-SP5:GA
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout openSUSE:Leap:15.5:Update/valgrind && cd $_
- Create Badge
Source Files
Filename | Size | Changed |
---|---|---|
_multibuild | 0000000063 63 Bytes | |
armv6-support.diff | 0000000213 213 Bytes | |
dhat-use-datadir.patch | 0000000488 488 Bytes | |
parallel-lto.patch | 0000001365 1.33 KB | |
valgrind-3.20.0.tar.bz2 | 0016469274 15.7 MB | |
valgrind.changes | 0000055090 53.8 KB | |
valgrind.spec | 0000012846 12.5 KB | |
valgrind.xen.patch | 0000110497 108 KB |
Revision 2 (latest revision is 3)
NEEDED BY https://jira.suse.com/browse/IBM-1077 - update to 3.20.0: * The option "--vgdb-stop-at=event1,event2,..." accepts the new value abexit. This indicates to invoke gdbserver when your program exits abnormally (i.e. with a non zero exit code). * Fix Rust v0 name demangling. * The Linux rseq syscall is now implemented as (silently) returning ENOSYS. * Add FreeBSD syscall wrappers for __specialfd and __realpathat. * Remove FreeBSD dependencies on COMPAT10, which fixes compatibility with HardenedBSD * The option --enable-debuginfod=<no|yes> [default: yes] has been added on Linux. * More DWARF5 support as generated by clang14. - exclude client-headers from building for non-supported architectures - fix build on SLE12 - spec-cleaner suggested cleanups - drop unnecessary procps buildrequires - update to 3.19.0 (bsc#1204685): * obsoletes backport 0001-arm64-Mismatch-detected-between-RDMA-and-atomics-fea.patch on older distributions * Fix Rust v0 name demangling. * The Linux rseq syscall is now implemented as (silently) returning ENOSYS. * Add FreeBSD syscall wrappers for __specialfd and __realpathat. * Remove FreeBSD dependencies on COMPAT10, which fixes compatibility with HardenedBSD * see https://valgrind.org/docs/manual/dist.news.html for list of bugfixes - drop handle-rseq-syscall.patch: upstream
Comments 0