About 2,490,000 results
Open links in new tab
  1. c++ - attaching callgrind/valgrind to program in mid-way of its ...

    May 19, 2020 · There is no way to use valgrind on an already running program. For callgrind, you can however somewhat speed it up by only recording data later during execution.

  2. valgrind (1) - Linux manual page - man7.org

    The port may be omitted, in which case port 1500 is used. If a connection cannot be made to the specified socket, Valgrind falls back to writing output to the standard error (stderr). This option is …

  3. How can I find a memory leak of a running process?

    It debugs memory leak of a running process by attaching it, without recompiling program or restarting target process. It's very convenient and suitable for production environment.

  4. Valgrind User Manual

    Oct 24, 2025 · Official Home Page for valgrind, a suite of tools for debugging and profiling. Automatically detect memory management and threading bugs, and perform detailed profiling.

  5. [Valgrind-users] Attaching a process with valgrind using process id

    You would have to either change the monitor to start the core process in question under valgrind, or replace the executable for that process with a shell script that started the real core process under …

  6. How to associate valgrind with a running process? - Stack Overflow

    Sep 17, 2013 · You need to adjust your shell-script to explicitly log the output of valgrind to a file as described here. If your program is invoked multiple times, try using a filename with the PID, as …

  7. Valgrind

    An alternative way to avoid these problems is to tell the OS scheduler to tie a Valgrind process to a specific (fixed) CPU using the taskset command. This should ensure that the selected CPU does not …

  8. 2. Using and understanding the Valgrind core

    When using --db-attach=yes and --gen-suppressions=yes, Valgrind will stop so as to read keyboard input from you, when each error occurs. By default it reads from the standard input (stdin), which is …

  9. What is Valgrind and why we need it - Alex Ott

    This is controlled by --db-attach (yes or no, by default no) option, that, if user enables it, will ask about attaching debugger to process. You can set debugger command-line options with --db-command …

  10. How do I tell valgrind to memcheck forked processes?

    According to the man page, this option does not cause valgrind to trace into forks, it causes it to trace into execs. Valgrind always follows forks, but won't follow an exec unless you add this option (is my …