Re: [LAU] Valgrind

From: Robin Gareus <robin@email-addr-hidden>
Date: Fri Nov 05 2010 - 14:59:36 EET

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
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Fri Nov 5 16:15:02 2010

This archive was generated by hypermail 2.1.8 : Fri Nov 05 2010 - 16:15:02 EET