[LAU] Valgrind

Robin Gareus robin at gareus.org
Fri Nov 5 12:59:36 UTC 2010


On 11/05/10 13:53, Darrin Thompson wrote:
> Has anyone managed to get good results running valgrind vs. jackd or
> apps for it?
> 
> My experience with Valgrind at work is you run it and it magically
> tells you the exact line of code where you have a serious bug, which
> is a good thing. But it has really high overhead. So I've been
> considering running it against say, Rosegarden, which I crashed
> repeatedly, but I'll beg off if someone has already been there and
> done that.
> 
> --
> Darrin

A "trick" to run JACK apps in a debugger is to use a dedicated
non-realtime jackd for it.

jackd -t 600000 -r -n debug -d dummy
JACK_DEFAULT_SERVER=debug gdb --args <someapp>

Works with valgrind, too.

HTH,
robin


More information about the Linux-audio-user mailing list