Re: [Jack-Devel] gdb-ing jack apps?

PrevNext  Index
DateSun, 24 Apr 2011 07:48:49 -0400
From Paul Davis <[hidden] at linuxaudiosystems dot com>
ToDan Muresan <[hidden] at gmail dot com>
Cc[hidden] at jackaudio dot org
In-Reply-ToDan Muresan Re: [Jack-Devel] gdb-ing jack apps?
Follow-UpDan Muresan Re: [Jack-Devel] gdb-ing jack apps?
On Sun, Apr 24, 2011 at 7:10 AM, Dan Muresan <[hidden]> wrote:
>> One way is to get core dumps from the app (ulimit -c unlimited) and
>> then gdb ./myapp core, and then in gdb: thread apply all bt.
>
> This actually works out OK, thanks. I had forgotten about core dumps.
> I guess I can add abort() as necessary.
>
>> You can also use the dummy driver (instead of, for example Alsa) with
>> a long --timeout value to be able to step through the code.
>
> But I wonder what is the problem that's preventing gdb from stopping?
> And why does jack get stuck in a loop printing "subgraph timed out"?
> Even a poorly-behaved client shouldn't crash jack, right?

i know that some people do seem to have problems using JACK and gdb.
but others (e.g. myself) never have (modulo the usual issues with not
running in RT mode and using a long timeout. i routinely run ardour
inside gdb a lot, and stop in various places without the issue you
describe.

you didn't mention which version of JACK you are using - the error
message makes it sound like jack1, but which release?
PrevNext  Index

1303645754.3174_0.ltw:2,a <BANLkTik1nFP3wGo4YKeUFvrk2=4c+n7vrw at mail dot gmail dot com>