[mythtv-users] `Mythbackend leaks memory` continued

Jan Ceuleers jan.ceuleers at computer.org
Sun Jun 22 13:25:24 UTC 2008


Udo van den Heuvel wrote:
> Hello,
> 
> The system is backup again. Mythbackend appears to be recording again.
> 
> About the valgrind trick:
> What is the way I am suppsed to run the tool?
> 
> `valgrind [insert normal mythbackend command line here] 2>
> valgrindlog.txt` ?
> 
> Any suggestions?

 From man valgrind:

SYNOPSIS
  valgrind [[valgrind] [options]] [your-program] [[your-program-options]]

....
  --log-file=<filename>
       Specifies that Valgrind should send all of its messages to the
       specified file. In fact, the file name used is created by
       concatenating the text filename, "." and the process ID, (ie.
       <filename>.<pid>), so as to create a file per process. The
       specified file name may not be the empty string.

  --log-file-exactly=<filename>
       Just like --log-file, but the suffix ".pid" is not added. If you
       trace multiple processes with Valgrind when using this option
       the log file may get all messed up.

So you could try:

  valgrind --log-file-exactly=/tmp/mythbackend.valgrind.log [insert 
normal mythbackend command line here]

Cheers, Jan


More information about the mythtv-users mailing list