[mythtv] Backend Hang with current CVS + current IVTV cvs (long)

Derek Atkins warlord at MIT.EDU
Sun Nov 16 02:16:38 EST 2003


Hi,

I upgraded mythtv and ivtv to current CVS today, and it's seemed
pretty unstable.  So far today it's crashed a number of times, and
just now we were watching LiveTV and then it just hung completely.
The frontend was sitting "waiting for data", but the backtrace was
basically all 'nanosleep()' for all threads.  I killed the frontend,
but then the backend hung!

I have this in /var/log/messages:

Nov 16 01:01:05 mythtv kernel: ivtv: silently returning
Nov 16 01:01:07 mythtv last message repeated 63 times
Nov 16 01:01:07 mythtv kernel: ivtv: DMA buffer DeQueue failed! got 1, want 1
Nov 16 01:01:07 mythtv kernel: ivtv: DEC: free_q: 0 elements
Nov 16 01:01:07 mythtv kernel: ivtv: DEC: dma_q: 100 elements
Nov 16 01:01:07 mythtv kernel: ivtv: DEC: full_q: 0 elements

I see this in my mythbackend.log:

2003-11-16 01:01:05 Changing from None to WatchingLiveTV
Couldn't read data from the capture card in 15 seconds.  Game over, man.
2003-11-16 02:08:05 Changing from WatchingLiveTV to None

And this is the backtrace of the hung backend process.  Hopefully this
might help?

-derek

0xffffe002 in ?? ()
(gdb) thread apply all bt full

Thread 15 (Thread 1104551104 (LWP 3107)):
#0  0xffffe002 in ?? ()
No symbol table info available.
#1  0x409faf19 in pthread_join () from /lib/tls/libpthread.so.0
No symbol table info available.
#2  0x080d42a8 in TVRec::TeardownRecorder(bool) (this=0x845eed8, killFile=true)
    at tv_rec.cpp:686
        message = {static null = {
    static null = <same as static member of an already seen type>, 
    d = 0x843e070, static shared_null = 0x843e070}, d = 0x8524170, 
  static shared_null = 0x843e070}
        me = {<QCustomEvent> = {<> = {<No data fields>}, d = 0x0}, message = {
    static null = {
      static null = <same as static member of an already seen type>, 
      d = 0x843e070, static shared_null = 0x843e070}, d = 0x8524170, 
    static shared_null = 0x843e070}, extradata = {static null = {
      static null = <same as static member of an already seen type>, 
      d = 0x843e070, static shared_null = 0x843e070}, d = 0x8552988, 
    static shared_null = 0x843e070}}
        blank_frame_map = {sh = 0x847ca38}
        oldProfileName = {static null = {
    static null = <same as static member of an already seen type>, 
    d = 0x843e070, static shared_null = 0x843e070}, d = 0x853be60, 
  static shared_null = 0x843e070}
        filelen = 0
#3  0x080d1d0a in TVRec::HandleStateChange() (this=0x845eed8) at tv_rec.cpp:502
        tmpInternalState = kState_None
        changed = true
        startRecorder = false
        closeRecorder = true
        killRecordingFile = true
        statename = {static null = {
    static null = <same as static member of an already seen type>, 
    d = 0x843e070, static shared_null = 0x843e070}, d = 0x8489130, 
  static shared_null = 0x843e070}
        origname = {static null = {
    static null = <same as static member of an already seen type>, 
    d = 0x843e070, static shared_null = 0x843e070}, d = 0x8499628, 
  static shared_null = 0x843e070}
#4  0x080d51a8 in TVRec::RunTV() (this=0x845eed8) at tv_rec.cpp:848
No locals.
#5  0x080d5155 in TVRec::EventThread(void*) (param=0x845eed8) at tv_rec.cpp:832
        thetv = (TVRec *) 0x845eed8
#6  0x409fa2b6 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#7  0x420de407 in clone () from /lib/tls/libc.so.6
No symbol table info available.

Thread 14 (Thread 1116941376 (LWP 3109)):
#0  0xffffe002 in ?? ()
No symbol table info available.
#1  0x420ac5b6 in nanosleep () from /lib/tls/libc.so.6
No symbol table info available.

Thread 13 (Thread 1125329856 (LWP 3111)):
#0  0xffffe002 in ?? ()
No symbol table info available.
#1  0x420ac5b6 in nanosleep () from /lib/tls/libc.so.6
No symbol table info available.

Thread 12 (Thread 1133718336 (LWP 3113)):
#0  0xffffe002 in ?? ()
No symbol table info available.
#1  0x420ac5b6 in nanosleep () from /lib/tls/libc.so.6
No symbol table info available.

Thread 11 (Thread 1142106816 (LWP 3114)):
#0  0xffffe002 in ?? ()
No symbol table info available.
#1  0x420ac5b6 in nanosleep () from /lib/tls/libc.so.6
No symbol table info available.

Thread 10 (Thread 1150495296 (LWP 3115)):
#0  0xffffe002 in ?? ()
No symbol table info available.
#1  0x420ac5b6 in nanosleep () from /lib/tls/libc.so.6
No symbol table info available.

Thread 9 (Thread 1158883776 (LWP 3116)):
#0  0xffffe002 in ?? ()
No symbol table info available.
#1  0x420ac5b6 in nanosleep () from /lib/tls/libc.so.6
No symbol table info available.

Thread 8 (Thread 1167272256 (LWP 3117)):
#0  0xffffe002 in ?? ()
No symbol table info available.
#1  0x409fc379 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/tls/libpthread.so.0
No symbol table info available.

Thread 7 (Thread 1175660736 (LWP 3118)):
#0  0xffffe002 in ?? ()
No symbol table info available.
#1  0x409fc379 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/tls/libpthread.so.0
No symbol table info available.

Thread 6 (Thread 1184049216 (LWP 3119)):
#0  0xffffe002 in ?? ()
No symbol table info available.
#1  0x409fc379 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/tls/libpthread.so.0
No symbol table info available.

Thread 5 (Thread 1192437696 (LWP 3120)):
#0  0xffffe002 in ?? ()
No symbol table info available.
#1  0x409fc379 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/tls/libpthread.so.0
No symbol table info available.

Thread 4 (Thread 1200826176 (LWP 3121)):
#0  0xffffe002 in ?? ()
No symbol table info available.
#1  0x409fc379 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/tls/libpthread.so.0
No symbol table info available.

Thread 3 (Thread 1213413056 (LWP 3407)):
#0  0xffffe002 in ?? ()
No symbol table info available.
#1  0x420ac5b6 in nanosleep () from /lib/tls/libc.so.6
No symbol table info available.

Thread 2 (Thread 1221801536 (LWP 3408)):
#0  0xffffe002 in ?? ()
No symbol table info available.
#1  0x409fe1bb in read () from /lib/tls/libpthread.so.0
No symbol table info available.
#2  0x08488e78 in ?? ()
No symbol table info available.

Thread 1 (Thread 1092271936 (LWP 2954)):
#0  0xffffe002 in ?? ()
No symbol table info available.
#1  0x420ac5b6 in nanosleep () from /lib/tls/libc.so.6
No symbol table info available.
#0  0xffffe002 in ?? ()
(gdb) 

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the mythtv-dev mailing list