Mythtv/Troubleshooting

From MattWiki
(Redirected from Mythtv:Troubleshooting)

For this error

[root@neptune etc]# start mythbackend
Starting mythbackend: /usr/local/bin/mythbackend: error while loading shared libraries: libmythtv-0.20.so.0: cannot open shared object file: No such file or directory

edit /etc/ld.so.conf and add:

include ld.so.conf.d/*.conf
/usr/local/lib/

Then Run

/sbin/ldconfig

GDB

In order to use GDB first you need to make a file named 'gdbcommands' and place it in your home directory. The contests of the file should look like this:

handle SIGPIPE nostop noprint
handle SIG33 nostop noprint
set logging on
set pagination off
set args -l myth.log -v record,channel,siparser
run
thread apply all bt full
set logging off

Mythtv must be compiled with the debug command built in you must compile myth with something like:

./configure --prefix=/usr/local --compile-type=debug

To run Mythbackend with GDB try:

gdb mythbackend -x gdbcommands

To restart Mythbackend after it crashed run:

while true; do date >> gdb.txt; gdb mythbackend -x gdbcommands; done;
while true; do date >> gdb-`date +%Y%m%d%H%M%S`.txt; gdb mythbackend -x gdbcommands; done;


date +%Y%m%d%H%M%S