[mythtv] no more live tv

David Engel dlengel at attbi.com
Tue Apr 29 20:48:49 EDT 2003


On Tue, Apr 29, 2003 at 06:21:19PM -0400, Isaac Richards wrote:
> If it doesn't do anything, recompile for debugging, run it in gdb and hit 
> ctl-c when it hangs, and send a full backtrace of all threads (as described 
> in the docs) to the list.  Sending an email that just says it hangs really 
> isn't that productive.

Sorry about that.  I was in a hurry and forgot to ask what debug info
I could provide to help.  My backtrace is below.  FYI, it would be
nice if the docs said how to backtrace multiple threads.

David
-- 
David Engel
dlengel at attbi.com


sh-2.05b$ gdb mythbackend
GNU gdb 5.3-debian
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...
(gdb) run
Starting program: /home/david/src/mythtv/programs/mythbackend/mythbackend 
[New Thread 16384 (LWP 19969)]
Starting up as the master server.
Probed: /dev/video0 - Composite 0
Probed: /dev/video0 - Composite 1
Probed: /dev/video0 - Composite 2
Probed: /dev/video0 - Composite 3
Probed: /dev/video0 - Tuner 0
Probed: /dev/video0 - Composite 4
Probed: /dev/video0 - S-Video 0
Probed: /dev/video0 - S-Video 1
Probed: /dev/video0 - S-Video 2
Probed: /dev/video0 - S-Video 3
VIDIOCGPICT: Invalid argument
VIDIOCGPICT: Invalid argument
VIDIOCGPICT: Invalid argument
[New Thread 32769 (LWP 19985)]
[New Thread 16386 (LWP 19986)]
[New Thread 32771 (LWP 19987)]
[New Thread 49156 (LWP 19988)]
[New Thread 65541 (LWP 19989)]
[New Thread 81926 (LWP 19990)]
[New Thread 98311 (LWP 19991)]
[New Thread 114696 (LWP 19992)]
[New Thread 131081 (LWP 19993)]
2003-04-29 19:34:27 adding: opus as a player 1
2003-04-29 19:34:32 adding: opus as a player 0
[New Thread 147466 (LWP 20067)]
2003-04-29 19:34:32 adding: opus as a player 0
2003-04-29 19:34:32adding: opus as a remote ringbuffer
[New Thread 163851 (LWP 20068)]
Program received signal SIGINT, Interrupt.
[Switching to Thread 163851 (LWP 20068)]
0x40a1de81 in nanosleep () from /lib/libc.so.6

(gdb) info threads
* 12 Thread 163851 (LWP 20068)  0x40a1de81 in nanosleep () from /lib/libc.so.6
  11 Thread 147466 (LWP 20067)  0x40a1de81 in nanosleep () from /lib/libc.so.6
  10 Thread 131081 (LWP 19993)  0x409aaad2 in sigsuspend () from /lib/libc.so.6
  9 Thread 114696 (LWP 19992)  0x409aaad2 in sigsuspend () from /lib/libc.so.6
  8 Thread 98311 (LWP 19991)  0x409aaad2 in sigsuspend () from /lib/libc.so.6
  7 Thread 81926 (LWP 19990)  0x409aaad2 in sigsuspend () from /lib/libc.so.6
  6 Thread 65541 (LWP 19989)  0x409aaad2 in sigsuspend () from /lib/libc.so.6
  5 Thread 49156 (LWP 19988)  0x40a1de81 in nanosleep () from /lib/libc.so.6
  4 Thread 32771 (LWP 19987)  0x40a1de81 in nanosleep () from /lib/libc.so.6
  3 Thread 16386 (LWP 19986)  0x40a1de81 in nanosleep () from /lib/libc.so.6
  2 Thread 32769 (LWP 19985)  0x40a40248 in poll () from /lib/libc.so.6
  1 Thread 16384 (LWP 19969)  0x40a3b904 in open () from /lib/libc.so.6

(gdb) thread 1
[Switching to thread 1 (Thread 16384 (LWP 19969))]#0  0x40a3b904 in open ()
   from /lib/libc.so.6
(gdb) bt
#0  0x40a3b904 in open () from /lib/libc.so.6
#1  0x40a90f60 in sys_sigabbrev () from /lib/libc.so.6
#2  0x4085ed9d in open64 () from /lib/libpthread.so.0
#3  0x0806979d in MainServer::HandleAnnounce(QStringList&, QStringList, QSocket*) (this=0x8328f50, slist=@0xbfffe280, commands=
        {<QValueList<QString>> = {sh = 0x8321dc8}, <No data fields>}, 
    socket=0x832d2d0) at mainserver.cpp:399
#4  0x08067cb0 in MainServer::readSocket() (this=0x8328f50)
    at mainserver.cpp:153
#5  0x08085cf3 in MainServer::qt_invoke(int, QUObject*) (this=0x8328f50, 
    _id=6, _o=0xbfffe340) at moc_mainserver.cpp:100
#6  0x4040ac42 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/lib/libqt-mt.so.3
#7  0x4040aaff in QObject::activate_signal(int) () from /usr/lib/libqt-mt.so.3
#8  0x406969cc in QSocket::readyRead() () from /usr/lib/libqt-mt.so.3
#9  0x405a6583 in QSocket::sn_read(bool) () from /usr/lib/libqt-mt.so.3
#10 0x40696a82 in QSocket::qt_invoke(int, QUObject*) ()
   from /usr/lib/libqt-mt.so.3
#11 0x4040ac42 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/lib/libqt-mt.so.3
#12 0x4040acf3 in QObject::activate_signal(int, int) ()
   from /usr/lib/libqt-mt.so.3
#13 0x40673665 in QSocketNotifier::activated(int) ()
   from /usr/lib/libqt-mt.so.3
#14 0x40422d64 in QSocketNotifier::event(QEvent*) ()
   from /usr/lib/libqt-mt.so.3
#15 0x403b6c66 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/lib/libqt-mt.so.3
#16 0x403b68a7 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/libqt-mt.so.3
#17 0x40395020 in QEventLoop::activateSocketNotifiers() ()
   from /usr/lib/libqt-mt.so.3
#18 0x40375e1d in QEventLoop::processEvents(unsigned) ()
   from /usr/lib/libqt-mt.so.3
#19 0x403c8223 in QEventLoop::enterLoop() () from /usr/lib/libqt-mt.so.3
#20 0x403c80e0 in QEventLoop::exec() () from /usr/lib/libqt-mt.so.3
#21 0x403b6e60 in QApplication::exec() () from /usr/lib/libqt-mt.so.3
#22 0x08065cbb in main (argc=1, argv=0xbffffb34) at main.cpp:235

(gdb) thread 2
[Switching to thread 2 (Thread 32769 (LWP 19985))]#0  0x40a40248 in poll ()
   from /lib/libc.so.6
(gdb) bt
#0  0x40a40248 in poll () from /lib/libc.so.6
#1  0x4085aa8e in __pthread_manager () from /lib/libpthread.so.0
#2  0x4085ac55 in __pthread_manager_event () from /lib/libpthread.so.0

(gdb) thread 3
[Switching to thread 3 (Thread 16386 (LWP 19986))]#0  0x40a1de81 in nanosleep
    () from /lib/libc.so.6
(gdb) bt
#0  0x40a1de81 in nanosleep () from /lib/libc.so.6
#1  0x4085ed0d in nanosleep () from /lib/libpthread.so.0
#2  0x40a4210a in usleep () from /lib/libc.so.6
#3  0x080aa9c9 in TVRec::RunTV() (this=0x8321268) at tv_rec.cpp:728
#4  0x080aa969 in TVRec::EventThread(void*) (param=0x8321268) at tv_rec.cpp:710
#5  0x4085ad53 in pthread_start_thread () from /lib/libpthread.so.0
#6  0x4085ad99 in pthread_start_thread_event () from /lib/libpthread.so.0

(gdb) thread 4
[Switching to thread 4 (Thread 32771 (LWP 19987))]#0  0x40a1de81 in nanosleep
    () from /lib/libc.so.6
(gdb) bt
#0  0x40a1de81 in nanosleep () from /lib/libc.so.6
#1  0x4085ed0d in nanosleep () from /lib/libpthread.so.0
#2  0x40a1de10 in sleep () from /lib/libc.so.6
#3  0x0807de85 in Scheduler::RunScheduler() (this=0x83210d8)
    at scheduler.cpp:998
#4  0x0807dea5 in Scheduler::SchedulerThread(void*) (param=0x83210d8)
    at scheduler.cpp:1005
#5  0x4085ad53 in pthread_start_thread () from /lib/libpthread.so.0
#6  0x4085ad99 in pthread_start_thread_event () from /lib/libpthread.so.0

(gdb) thread 5
[Switching to thread 5 (Thread 49156 (LWP 19988))]#0  0x40a1de81 in nanosleep
    () from /lib/libc.so.6
(gdb) bt
#0  0x40a1de81 in nanosleep () from /lib/libc.so.6
#1  0x4085ed0d in nanosleep () from /lib/libpthread.so.0
#2  0x40a1de10 in sleep () from /lib/libc.so.6
#3  0x08084a82 in Transcoder::TranscodePoll() (this=0x83265f0)
    at transcoder.cpp:238
#4  0x08084b65 in Transcoder::TranscodePollThread(void*) (param=0x83265f0)
    at transcoder.cpp:256
#5  0x4085ad53 in pthread_start_thread () from /lib/libpthread.so.0
#6  0x4085ad99 in pthread_start_thread_event () from /lib/libpthread.so.0

(gdb) thread 6
[Switching to thread 6 (Thread 65541 (LWP 19989))]#0  0x409aaad2 in sigsuspend
    () from /lib/libc.so.6
(gdb) bt
#0  0x409aaad2 in sigsuspend () from /lib/libc.so.6
#1  0x4085cf35 in __pthread_wait_for_restart_signal ()
   from /lib/libpthread.so.0
#2  0x40859f05 in pthread_cond_wait () from /lib/libpthread.so.0
#3  0x4061432b in QWaitCondition::wait(unsigned long) ()
   from /usr/lib/libqt-mt.so.3
#4  0x0807845c in ProcessRequestThread::run() (this=0x8329028)
    at mainserver.cpp:57
#5  0x403ac8a6 in QProc::~QProc() () from /usr/lib/libqt-mt.so.3
#6  0x4085ad53 in pthread_start_thread () from /lib/libpthread.so.0
#7  0x4085ad99 in pthread_start_thread_event () from /lib/libpthread.so.0

(gdb) thread 7
[Switching to thread 7 (Thread 81926 (LWP 19990))]#0  0x409aaad2 in sigsuspend
    () from /lib/libc.so.6
(gdb) bt
#0  0x409aaad2 in sigsuspend () from /lib/libc.so.6
#1  0x4085cf35 in __pthread_wait_for_restart_signal ()
   from /lib/libpthread.so.0
#2  0x40859f05 in pthread_cond_wait () from /lib/libpthread.so.0
#3  0x4061432b in QWaitCondition::wait(unsigned long) ()
   from /usr/lib/libqt-mt.so.3
#4  0x0807845c in ProcessRequestThread::run() (this=0x83266c8)
    at mainserver.cpp:57
#5  0x403ac8a6 in QProc::~QProc() () from /usr/lib/libqt-mt.so.3
#6  0x4085ad53 in pthread_start_thread () from /lib/libpthread.so.0
#7  0x4085ad99 in pthread_start_thread_event () from /lib/libpthread.so.0

(gdb) thread 8
[Switching to thread 8 (Thread 98311 (LWP 19991))]#0  0x409aaad2 in sigsuspend
    () from /lib/libc.so.6
(gdb) bt
#0  0x409aaad2 in sigsuspend () from /lib/libc.so.6
#1  0x4085cf35 in __pthread_wait_for_restart_signal ()
   from /lib/libpthread.so.0
#2  0x40859f05 in pthread_cond_wait () from /lib/libpthread.so.0
#3  0x4061432b in QWaitCondition::wait(unsigned long) ()
   from /usr/lib/libqt-mt.so.3
#4  0x0807845c in ProcessRequestThread::run() (this=0x832b138)
    at mainserver.cpp:57
#5  0x403ac8a6 in QProc::~QProc() () from /usr/lib/libqt-mt.so.3
#6  0x4085ad53 in pthread_start_thread () from /lib/libpthread.so.0
#7  0x4085ad99 in pthread_start_thread_event () from /lib/libpthread.so.0

(gdb) thread 9
[Switching to thread 9 (Thread 114696 (LWP 19992))]#0  0x409aaad2 in sigsuspend
    () from /lib/libc.so.6
(gdb) bt
#0  0x409aaad2 in sigsuspend () from /lib/libc.so.6
#1  0x4085cf35 in __pthread_wait_for_restart_signal ()
   from /lib/libpthread.so.0
#2  0x40859f05 in pthread_cond_wait () from /lib/libpthread.so.0
#3  0x4061432b in QWaitCondition::wait(unsigned long) ()
   from /usr/lib/libqt-mt.so.3
#4  0x0807845c in ProcessRequestThread::run() (this=0x832b2b8)
    at mainserver.cpp:57
#5  0x403ac8a6 in QProc::~QProc() () from /usr/lib/libqt-mt.so.3
#6  0x4085ad53 in pthread_start_thread () from /lib/libpthread.so.0
#7  0x4085ad99 in pthread_start_thread_event () from /lib/libpthread.so.0

(gdb) thread 10
[Switching to thread 10 (Thread 131081 (LWP 19993))]#0  0x409aaad2 in sigsuspend () from /lib/libc.so.6
(gdb) bt
#0  0x409aaad2 in sigsuspend () from /lib/libc.so.6
#1  0x4085cf35 in __pthread_wait_for_restart_signal ()
   from /lib/libpthread.so.0
#2  0x40859f05 in pthread_cond_wait () from /lib/libpthread.so.0
#3  0x4061432b in QWaitCondition::wait(unsigned long) ()
   from /usr/lib/libqt-mt.so.3
#4  0x0807845c in ProcessRequestThread::run() (this=0x832b328)
    at mainserver.cpp:57
#5  0x403ac8a6 in QProc::~QProc() () from /usr/lib/libqt-mt.so.3
#6  0x4085ad53 in pthread_start_thread () from /lib/libpthread.so.0
#7  0x4085ad99 in pthread_start_thread_event () from /lib/libpthread.so.0

(gdb) thread 11
[Switching to thread 11 (Thread 147466 (LWP 20067))]#0  0x40a1de81 in nanosleep
    () from /lib/libc.so.6
(gdb) bt
#0  0x40a1de81 in nanosleep () from /lib/libc.so.6
#1  0x4085ed0d in nanosleep () from /lib/libpthread.so.0
#2  0x40a4210a in usleep () from /lib/libc.so.6
#3  0x08093a13 in ThreadedFileWriter::DiskLoop() (this=0x832cf08)
    at RingBuffer.cpp:183
#4  0x08093561 in ThreadedFileWriter::boot_writer(void*) (wotsit=0x832cf08)
    at RingBuffer.cpp:75
#5  0x4085ad53 in pthread_start_thread () from /lib/libpthread.so.0
#6  0x4085ad99 in pthread_start_thread_event () from /lib/libpthread.so.0

(gdb) thread 12
[Switching to thread 12 (Thread 163851 (LWP 20068))]#0  0x40a1de81 in nanosleep
    () from /lib/libc.so.6
(gdb) bt
#0  0x40a1de81 in nanosleep () from /lib/libc.so.6
#1  0x4085ed0d in nanosleep () from /lib/libpthread.so.0
#2  0x40a4210a in usleep () from /lib/libc.so.6
#3  0x080b2c53 in TVRec::DoReadThread() (this=0x8321268) at tv_rec.cpp:1887
#4  0x080b2d49 in TVRec::ReadThread(void*) (param=0x8321268) at tv_rec.cpp:1909
#5  0x4085ad53 in pthread_start_thread () from /lib/libpthread.so.0
#6  0x4085ad99 in pthread_start_thread_event () from /lib/libpthread.so.0

(gdb) quit




More information about the mythtv-dev mailing list