[mythtv-users] help diagnosing mythbackend service crashing

Michael T. Dean mtdean at thirdcontact.com
Mon Mar 1 21:02:05 UTC 2010


On 03/01/2010 02:03 PM, Larry wrote:
> On 3/1/10 2:58 AM, mythtv-users-request wrote:
>> The best information you could provide to help us diagnose the crashing
>> is a gdb thread backtrace, as described 
>> athttp://mythtv.org/wiki/Debugging
>>
>> Logs will almost definitely have no useful information for diagnosing
>> the crash.
> Just so I'm doing this right here is what I have done.
>
> First I installed the atrpms-debug packages
>
> yum --enablerepo=atrpms-debuginfo install mythtv-debuginfo
>
>
> Then I added the following to my /etc/rc.d/init.d/mythbackend script 
> inside the start section
>
> ulimit -c unlimited
> echo 1>  /proc/sys/kernel/core_uses_pid
> echo "/tmp/core.%t.%u.%p.%e">  /proc/sys/kernel/core_pattern
>
>
> once the system dies is horrible death and gets restarted I should run 
> the following:
>
> $ sudo gdb mythbackend -c /tmp/core.[rest_of_the_file_name] 2>&1 | tee 
> mythtv_backtrace.txt
> set pagination off
> thread apply all bt
> quit
>
> and all the goodness should be available in the mythtv_backtrace.txt 
> file?
>
> Anything else that I should do ?  I just want to make sure I'm 
> capturing everything that is needed.

That's a good start.  Let's see what we get from that.

Mike


More information about the mythtv-users mailing list