[mythtv] Re: Hang with mythtv-0.8 - backtrace of all threads

Dan Schwarz mythtv-dev@snowman.net
Fri Jan 10 05:13:12 EST 2003


>
>
>Check out where the rest of the threads are..  'info threads' to get a list in 
>gdb, then 'thread #' to switch to that thread and get a backtrace of where 
>it's at..
>
>Isaac
>
OK, here's a look at all the threads.  gdb log has been slightly trimmed 
down to save space.

I'm a bit suspicious of thread 16761, which appears to be hanging in the 
open () call for the audio? For what it's worth, I'm using an OSS sound 
driver, not ALSA, and KDE 3.x is running with the KDE artsd audio server 
enabled

---snip---
#0  0x4099a834 in open () from /lib/libc.so.6
#1  0x40770b50 in __JCR_LIST__ () from /lib/libpthread.so.0
#2  0x0809678c in NuppelVideoRecorder::AudioInit (this=0x41050008) at 
NuppelVideoRecorder.cpp:351
---snip---

Trace of all the threads follows below. Any tips/info would be very much 
appreciated!

Thanks,

Dan


root@linuxbox:/usr/doc/vncserver/examples# ps -e f | grep mythbackend
16820 pts/3    S      0:00  |       |   \_ grep mythbackend
16755 pts/5    T      0:00  |   |   \_ mythbackend
16760 pts/5    T      0:00  |   |       \_ mythbackend
16761 pts/5    T      0:00  |   |           \_ mythbackend
16762 pts/5    T      0:00  |   |           \_ mythbackend
16773 pts/5    T      0:00  |   |           \_ mythbackend
16774 pts/5    T      0:00  |   |           \_ mythbackend


Current directory is /etc/
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) attach 16755
Attaching to process 16755
0x4097cdc1 in nanosleep () from /lib/libc.so.6
(gdb) bt
#0  0x4097cdc1 in nanosleep () from /lib/libc.so.6
#1  0x4076bd0d in nanosleep () from /lib/libpthread.so.0
#2  0x409a102a in usleep () from /lib/libc.so.6
#3  0x0808453a in TVRec::SpawnLiveTV (this=0x829c1f0) at tv_rec.cpp:977
#4  0x080596a8 in EncoderLink::SpawnLiveTV (this=0x828f260) at 
encoderlink.cpp:162
#5  0x08061ac6 in MainServer::HandleRecorderQuery (this=0x829ccf0, 
slist=<incomplete type>, commands=<incomplete type>, pbs=0x82a2740)
    at mainserver.cpp:591
#6  0x0805dff9 in MainServer::readSocket (this=0x829ccf0) at 
mainserver.cpp:115
#7  0x080720c9 in MainServer::qt_invoke (this=0x829ccf0, _id=47, 
_o=0xbfffe474) at moc_mainserver.cpp:95
#8  0x403ab2e9 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#9  0x403ab22e in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#10 0x4063c498 in QSocket::readyRead () from /usr/lib/libqt-mt.so.3
#11 0x4052fbd2 in QSocket::sn_read () from /usr/lib/libqt-mt.so.3
#12 0x4063c589 in QSocket::qt_invoke () from /usr/lib/libqt-mt.so.3
#13 0x403ab2e9 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#14 0x403ab464 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#15 0x4060c8cb in QSocketNotifier::activated () from /usr/lib/libqt-mt.so.3
#16 0x403c214c in QSocketNotifier::event () from /usr/lib/libqt-mt.so.3
#17 0x40359283 in QApplication::internalNotify () from 
/usr/lib/libqt-mt.so.3
#18 0x40359084 in QApplication::notify () from /usr/lib/libqt-mt.so.3
#19 0x4033c673 in QEventLoop::activateSocketNotifiers () from 
/usr/lib/libqt-mt.so.3
#20 0x4031e4da in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#21 0x4036a8ee in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#22 0x4036a84b in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#23 0x403593da in QApplication::exec () from /usr/lib/libqt-mt.so.3
#24 0x0805c5c3 in main (argc=1, argv=0xbffff9f4) at main.cpp:173
(gdb) detach
Detaching from program: /usr/local/bin/mythbackend, process 16755
(gdb) attach 16760
Attaching to program: /usr/local/bin/mythbackend, process 16760
warning: process 16760 is a cloned process
[New Thread 16384 (LWP 16755)]
[New Thread 32769 (LWP 16760)]
[New Thread 16386 (LWP 16761)]
[New Thread 32771 (LWP 16762)]
[New Thread 49156 (LWP 16773)]
[New Thread 65541 (LWP 16774)]
[Switching to Thread 32769 (LWP 16760)]
0x4099f160 in poll () from /lib/libc.so.6
(gdb) bt
#0  0x4099f160 in poll () from /lib/libc.so.6
#1  0x40767a8e in __pthread_manager () from /lib/libpthread.so.0
(gdb) detach
Detaching from program: /usr/local/bin/mythbackend, process 16760
(gdb) attach 16761
Attaching to program: /usr/local/bin/mythbackend, process 16761
warning: process 16761 is a cloned process
[New Thread 16384 (LWP 16755)]
[New Thread 32769 (LWP 16760)]
[New Thread 16386 (LWP 16761)]
[New Thread 32771 (LWP 16762)]
[New Thread 49156 (LWP 16773)]
[New Thread 65541 (LWP 16774)]
[Switching to Thread 16386 (LWP 16761)]
0x4099a834 in open () from /lib/libc.so.6
(gdb) bt 
#0  0x4099a834 in open () from /lib/libc.so.6
#1  0x40770b50 in __JCR_LIST__ () from /lib/libpthread.so.0
#2  0x0809678c in NuppelVideoRecorder::AudioInit (this=0x41050008) at 
NuppelVideoRecorder.cpp:351
#3  0x08096374 in NuppelVideoRecorder::Initialize (this=0x41050008) at 
NuppelVideoRecorder.cpp:262
#4  0x080802de in TVRec::SetupRecorder (this=0x829c1f0, 
profile=@0xbf7ffa10) at tv_rec.cpp:394
#5  0x0807f2a9 in TVRec::HandleStateChange (this=0x829c1f0) at 
tv_rec.cpp:329
#6  0x08080fef in TVRec::RunTV (this=0x829c1f0) at tv_rec.cpp:525
#7  0x08080fa8 in TVRec::EventThread (param=0x829c1f0) at tv_rec.cpp:510
#8  0x40767d53 in pthread_start_thread () from /lib/libpthread.so.0
(gdb) up
#1  0x40770b50 in __JCR_LIST__ () from /lib/libpthread.so.0
(gdb) up
#2  0x0809678c in NuppelVideoRecorder::AudioInit (this=0x41050008) at 
NuppelVideoRecorder.cpp:351
(gdb) down
#1  0x40770b50 in __JCR_LIST__ () from /lib/libpthread.so.0
(gdb) up
#2  0x0809678c in NuppelVideoRecorder::AudioInit (this=0x41050008) at 
NuppelVideoRecorder.cpp:351
(gdb) detach
Detaching from program: /usr/local/bin/mythbackend, process 16761
(gdb) attach 16762
Attaching to program: /usr/local/bin/mythbackend, process 16762
warning: process 16762 is a cloned process
[New Thread 16384 (LWP 16755)]
[New Thread 32769 (LWP 16760)]
[New Thread 16386 (LWP 16761)]
[New Thread 32771 (LWP 16762)]
[New Thread 49156 (LWP 16773)]
[New Thread 65541 (LWP 16774)]
[Switching to Thread 32771 (LWP 16762)]
0x4097cdc1 in nanosleep () from /lib/libc.so.6
(gdb) bt
#0  0x4097cdc1 in nanosleep () from /lib/libc.so.6
#1  0x4076bd0d in nanosleep () from /lib/libpthread.so.0
#2  0x4097cd50 in sleep () from /lib/libc.so.6
#3  0x0805bde1 in runScheduler (dummy=0x82845c0) at main.cpp:100
#4  0x40767d53 in pthread_start_thread () from /lib/libpthread.so.0
(gdb) detach
Detaching from program: /usr/local/bin/mythbackend, process 16762
(gdb) attach 16773
Attaching to program: /usr/local/bin/mythbackend, process 16773
warning: process 16773 is a cloned process
[New Thread 16384 (LWP 16755)]
[New Thread 32769 (LWP 16760)]
[New Thread 16386 (LWP 16761)]
[New Thread 32771 (LWP 16762)]
[New Thread 49156 (LWP 16773)]
[New Thread 65541 (LWP 16774)]
[Switching to Thread 49156 (LWP 16773)]
0x4097cdc1 in nanosleep () from /lib/libc.so.6
(gdb) bt
#0  0x4097cdc1 in nanosleep () from /lib/libc.so.6
#1  0x4076bd0d in nanosleep () from /lib/libpthread.so.0
#2  0x409a102a in usleep () from /lib/libc.so.6
#3  0x0807cbc2 in ThreadedFileWriter::DiskLoop (this=0x82a1ad0) at 
RingBuffer.cpp:140
#4  0x0807c8c4 in ThreadedFileWriter::boot_writer (wotsit=0x82a1ad0) at 
RingBuffer.cpp:44
#5  0x40767d53 in pthread_start_thread () from /lib/libpthread.so.0
(gdb) detach
Detaching from program: /usr/local/bin/mythbackend, process 16773
(gdb) attach 16774
Attaching to program: /usr/local/bin/mythbackend, process 16774
warning: process 16774 is a cloned process
[New Thread 16384 (LWP 16755)]
[New Thread 32769 (LWP 16760)]
[New Thread 16386 (LWP 16761)]
[New Thread 32771 (LWP 16762)]
[New Thread 49156 (LWP 16773)]
[New Thread 65541 (LWP 16774)]
[Switching to Thread 65541 (LWP 16774)]
0x4097cdc1 in nanosleep () from /lib/libc.so.6
(gdb) bt
#0  0x4097cdc1 in nanosleep () from /lib/libc.so.6
#1  0x4076bd0d in nanosleep () from /lib/libpthread.so.0
#2  0x409a102a in usleep () from /lib/libc.so.6
#3  0x08084c9f in TVRec::DoReadThread (this=0x829c1f0) at tv_rec.cpp:1168
#4  0x08084d70 in TVRec::ReadThread (param=0x829c1f0) at tv_rec.cpp:1190
#5  0x40767d53 in pthread_start_thread () from /lib/libpthread.so.0
(gdb) up
#1  0x4076bd0d in nanosleep () from /lib/libpthread.so.0
(gdb) up
#2  0x409a102a in usleep () from /lib/libc.so.6
(gdb) up
#3  0x08084c9f in TVRec::DoReadThread (this=0x829c1f0) at tv_rec.cpp:1168
(gdb) go










More information about the mythtv-dev mailing list