From: Tom B. (Tehom) <te...@pa...> - 2013-01-08 18:41:57
|
(CC-ed rosegarden-devel. Followups probably belong there) > Speaking of which, what's the usual way of debugging crash problems with > rosegarden? I use gdb to find the crash site itself. Pretty normal: Start RG, attach gdb to the running process, make the crash, see the backtrace. Of course you must have configured/compiled RG with --enable-debug. After that, you can't do the normal thing of setting breakpoints and stepping thru. Other threads keep running (looks like Jack support), spewing output complaining that RG is stopped. This tends to confuse the debugger (maybe just gdb under emacs/gud?) Nevertheless I find gud indispensable for segregating rg's debug output in a separate window. What I do then (seems to be the practice here) is primitive: add debug tracing at the points I need to know about. Recompile. Capture output to a file, like ./rosegarden &> ../trace Inspect the trace file (emacs' occur is very helpful). Repeat as needed. Tom Breton (Tehom) |