[mythtv] Reproducible Backend Crash (0.18.1)

Dave Sp dspmisc at speakeasy.net
Fri Jul 8 18:10:50 EDT 2005


Lucas Meijer wrote:
>> So it seems I can reproduce this issue at will.  What can I enable, or 
>> how
>> can I run the backend/frontend, to help debug this issue?
> 
> 
> Install current svn, see if it still happens, if it does run it in debug 
> mode (in the documentation somewhere at the end), and send the results 
> to this list..
> 
> Bye, Lucas
> _______________________________________________


Thank you, Lucas.

Before trying the latest, I re-compiled 0.18.1 with debug enabled (as per
the instructions found in the doc) and ran mythbackend from gdb.  After
watching a program, I hit "d" to delete it, chose "Yes, delete", and
mythbackend crashed.  Below is the result; let me know if it really would
be more helpful to run the latest CVS.

(gdb) run
Starting program: /usr/local/bin/mythbackend -l /var/tmp/mythbackend.log
[Thread debugging using libthread_db enabled]
[New Thread 1100848512 (LWP 17740)]
[New Thread 1110346672 (LWP 17746)]
[New Thread 1118739376 (LWP 17748)]
[New Thread 1127132080 (LWP 17749)]
[New Thread 1135524784 (LWP 17750)]
[New Thread 1145047984 (LWP 17751)]
[New Thread 1153440688 (LWP 17752)]
[New Thread 1161833392 (LWP 17753)]
[New Thread 1170226096 (LWP 17754)]
[New Thread 1178618800 (LWP 17755)]
[New Thread 1187011504 (LWP 17756)]
[New Thread 1195404208 (LWP 17776)]
[New Thread 1203796912 (LWP 17783)]
[Thread 1195404208 (LWP 17776) exited]
[New Thread 1195404208 (LWP 17788)]
[Thread 1203796912 (LWP 17783) exited]
[Thread 1195404208 (LWP 17788) exited]
[New Thread 1195404208 (LWP 17800)]
[New Thread 1203796912 (LWP 17801)]
[New Thread 1238707120 (LWP 17802)]
[New Thread 1247099824 (LWP 17803)]
[New Thread 1255492528 (LWP 17804)]
[Thread 1238707120 (LWP 17802) exited]
[Thread 1247099824 (LWP 17803) exited]
[Thread 1255492528 (LWP 17804) exited]
[Thread 1203796912 (LWP 17801) exited]
[Thread 1195404208 (LWP 17800) exited]
[New Thread 1195404208 (LWP 17809)]
[New Thread 1203796912 (LWP 17810)]
[New Thread 1255492528 (LWP 17811)]
[New Thread 1247099824 (LWP 17812)]
[New Thread 1234717616 (LWP 17813)]
[New Thread 1308134320 (LWP 17820)]
[Thread 1308134320 (LWP 17820) exited]
[New Thread 1308134320 (LWP 17832)]
[Thread 1308134320 (LWP 17832) exited]
[New Thread 1308134320 (LWP 17846)]
[Thread 1308134320 (LWP 17846) exited]
[New Thread 1308134320 (LWP 17870)]
[Thread 1308134320 (LWP 17870) exited]
[New Thread 1308134320 (LWP 17896)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1100848512 (LWP 17740)]
0x41333fda in QMutex::lock () from /usr/lib/qt3/lib/libqt-mt.so.3
Current language:  auto; currently c
(gdb) thread apply all bt full

Thread 29 (Thread 1308134320 (LWP 17896)):
#0  0xffffe410 in ?? ()
No symbol table info available.
#1  0x4df88b0c in ?? ()
No symbol table info available.
#2  0x00000002 in ?? ()
No symbol table info available.
#3  0x415d10fe in __lll_mutex_lock_wait () from /lib/tls/libpthread.so.0
No symbol table info available.

Thread 24 (Thread 1234717616 (LWP 17813)):
#0  0xffffe410 in ?? ()
No symbol table info available.
#1  0x49984a88 in ?? ()
No symbol table info available.
#2  0x00000000 in ?? ()
No symbol table info available.
#3  0x49984960 in ?? ()
No symbol table info available.
#4  0x4178f981 in select () from /lib/tls/libc.so.6
No symbol table info available.
#5  0x403c5b85 in NuppelVideoRecorder::doVbiThread (this=0x817a378) at NuppelVideoRecorder.cpp:3140
         tv = {tv_sec = 4, tv_usec = 974000}
         rdset = {fds_bits = {131072, 0 <repeats 31 times>}}
         vbi = (vbi *) 0x0
         cc = (cc *) 0x8588ac0
         vbifd = 17
         vbicallbackdata = {nvr = 0x817a378, teletextpage = {pgno = 0, subno = 0, lang = 0, flags = 0,
     errors = 0, lines = 0, data = {'\0' <repeats 39 times> <repeats 25 times>}, flof = 0, link = {{
         pgno = 0, subno = 0}, {pgno = 0, subno = 0}, {pgno = 0, subno = 0}, {pgno = 0, subno = 0}, {
         pgno = 0, subno = 0}, {pgno = 0, subno = 0}}}, foundteletextpage = false}
#6  0x403c094b in NuppelVideoRecorder::VbiThread (param=0x817a378) at NuppelVideoRecorder.cpp:2076
         nvr = (NuppelVideoRecorder *) 0x817a378
#7  0x415ccb3c in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#8  0x4179692a in clone () from /lib/tls/libc.so.6
No symbol table info available.

Thread 23 (Thread 1247099824 (LWP 17812)):
#0  0xffffe410 in ?? ()
No symbol table info available.
#1  0x4a553790 in ?? ()
No symbol table info available.
#2  0x0000004f in ?? ()
No symbol table info available.
#3  0x41733490 in _IO_do_write () from /lib/tls/libc.so.6
No symbol table info available.
#4  0x4173342e in _IO_do_write () from /lib/tls/libc.so.6
No symbol table info available.
#5  0x41734122 in _IO_file_sync () from /lib/tls/libc.so.6
No symbol table info available.
#6  0x4172922c in fflush () from /lib/tls/libc.so.6
No symbol table info available.
#7  0x4164d9c0 in std::time_put<char, std::ostreambuf_iterator<char, std::char_traits<char> > >::put ()
    from /usr/lib/libstdc++.so.6
No symbol table info available.
#8  0x4164fe54 in std::ostream::flush () from /usr/lib/libstdc++.so.6
No symbol table info available.
#9  0x4164feed in std::flush<char, std::char_traits<char> > () from /usr/lib/libstdc++.so.6
No symbol table info available.
#10 0x41651daa in std::endl<char, std::char_traits<char> > () from /usr/lib/libstdc++.so.6
No symbol table info available.
#11 0x4164f0ef in std::ostream::operator<< () from /usr/lib/libstdc++.so.6
No symbol table info available.
#12 0x403c1d1f in NuppelVideoRecorder::doAudioThread (this=0x817a378) at NuppelVideoRecorder.cpp:2168
         dtmp = {d = {jd = 2453560}, t = {ds = 61114662}}
         dtime = {static null = {static null = <same as static member of an already seen type>,
     d = 0x80d0fc0, static shared_null = 0x80d0fc0}, d = 0x8703a40, static shared_null = 0x80d0fc0}
         verbose_macro_tmp = <incomplete type>
         afmt = 16
         afd = 16
         buffer = (
     unsigned char *) 0x8598c90 "\fî\212\002¶óá\003 ÷3\f&øõ\004\033ö÷ÿ¼÷g\002wø¿ÿÉúëûcø\006ù¸úe÷8ûÙùàùRû×þÝùnüëüà\001ûÿ@\003³ûWÿ\026õ\\ý\202ös\0026ïÅý\023îHõúêàð\033éâó^ïQõ\037ô\226ñlñ¼ï"
         trigger = 1
         act = 190
         lastread = 1984
         frag = 524298
         anow = {tv_sec = 1120859914, tv_usec = 571930}
         blocksize = 4096
         ispace = {fragments = 1, fragstotal = 2, fragsize = 1024, bytes = 1952}
#13 0x403c091d in NuppelVideoRecorder::AudioThread (param=0x817a378) at NuppelVideoRecorder.cpp:2067
         nvr = (NuppelVideoRecorder *) 0x817a378
#14 0x415ccb3c in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#15 0x4179692a in clone () from /lib/tls/libc.so.6
No symbol table info available.

Thread 22 (Thread 1255492528 (LWP 17811)):
#0  0xffffe410 in ?? ()
No symbol table info available.
#1  0x4ad54908 in ?? ()
No symbol table info available.
#2  0x405969a8 in __JCR_LIST__ () from /usr/local/lib/libmythtv-0.18.1.so.0
No symbol table info available.
#3  0x00000000 in ?? ()
No symbol table info available.
#4  0x41760956 in nanosleep () from /lib/tls/libc.so.6
No symbol table info available.
#5  0x4179024a in usleep () from /lib/tls/libc.so.6
No symbol table info available.
#6  0x403c648e in NuppelVideoRecorder::doWriteThread (this=0x817a378) at NuppelVideoRecorder.cpp:3284
         action = NuppelVideoRecorder::ACTION_NONE
         firsttimecode = -1
#7  0x403c08ef in NuppelVideoRecorder::WriteThread (param=0x817a378) at NuppelVideoRecorder.cpp:2058
         nvr = (NuppelVideoRecorder *) 0x817a378
#8  0x415ccb3c in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#9  0x4179692a in clone () from /lib/tls/libc.so.6
No symbol table info available.

Thread 21 (Thread 1203796912 (LWP 17810)):
#0  0xffffe410 in ?? ()
No symbol table info available.
#1  0x47c04c38 in ?? ()
No symbol table info available.
#2  0x00000024 in ?? ()
No symbol table info available.
#3  0x41734b29 in _IO_file_xsputn () from /lib/tls/libc.so.6
No symbol table info available.
#4  0x41714b7d in vfprintf () from /lib/tls/libc.so.6
No symbol table info available.
#5  0x41710a05 in vfprintf () from /lib/tls/libc.so.6
No symbol table info available.
#6  0x4171951f in fprintf () from /lib/tls/libc.so.6
No symbol table info available.
#7  0x41726f24 in perror () from /lib/tls/libc.so.6
No symbol table info available.
#8  0x403bc1ed in NuppelVideoRecorder::StartRecording (this=0x817a378) at NuppelVideoRecorder.cpp:1152
         vc = {name = "BT878 video (ATI TV-Wonder)\000\000\000\000", type = 171, channels = 3,
   audios = 1, maxwidth = 768, maxheight = 480, minwidth = 48, minheight = 32}
         buf = (
     unsigned char *) 0x4b5eb000 '\020' <repeats 11 times>, "\024\026\022\020\020\021\023\023\022\021\021\023\024\023\023\021\024\027\027\025\022\020\020\022\023\024\030\027\030\021\021\020\024\027\027\025\022\021\020\021\022\024\026\026\025\022\024\025\031\031\026\023\023\025\025\023\022\021\021\023\022\026\027\030\030\027\026\024\024\022\022\024\024\026\025\025\026\030\031\030\032\031\033\027\022\020\020\022\027\032\030\024\022\022\022\025\026\031\030\030\025\022\023\023\026\025\026\024\025\022\022\021\023\024\026\031\030\027\022\020\020\020\021\023\030\030\031\031\032\030\026\024\024\023\023\025\024\026\026\021\022\020\024\027\031\026\023\021\024\026\023\024\025\030\032\032\030\027\026\022\020\022\027\032\030\022\021\024\027\030\023\021\020\021\025\030\032\027\022\020\020\024\025\022\020\020\023\026\024"...
         vm = {size = 34078720, frames = 16, offsets = {0, 2129920, 4259840, 6389760, 8519680, 10649600,
     12779520, 14909440, 17039360, 19169280, 21299200, 23429120, 25559040, 27688960, 29818880, 31948800,
     0 <repeats 16 times>}}
         va = {audio = 0, volume = 58981, bass = 32768, treble = 32768, flags = 30,
   name = "Television\000\000\000\000\000", mode = 3, balance = 32768, step = 0}
         channelinput = 0
         frame = 1
         mm = {frame = 1, height = 480, width = 720, format = 15}
         vchan = {channel = 0, name = "Television", '\0' <repeats 21 times>, tuners = 1, flags = 3,
   type = 1, norm = 1}
         vt = {tuner = 0, name = '\0' <repeats 31 times>, rangelow = 0, rangehigh = 0, flags = 0,
   mode = 0, signal = 0}
         syncerrors = 9
#9  0x403cbe3a in SpawnEncode (param=0x817a378) at tv_rec.cpp:48
         nvr = (class RecorderBase *) 0x817a378
#10 0x415ccb3c in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#11 0x4179692a in clone () from /lib/tls/libc.so.6
No symbol table info available.

Thread 20 (Thread 1195404208 (LWP 17809)):
#0  0xffffe410 in ?? ()
No symbol table info available.
#1  0x47406a48 in ?? ()
No symbol table info available.
#2  0x000118de in ?? ()
No symbol table info available.
#3  0x47c08008 in ?? ()
No symbol table info available.
#4  0x415d133b in __write_nocancel () from /lib/tls/libpthread.so.0
No symbol table info available.
#5  0x402622a0 in safe_write (fd=15, data=0x47c08008, sz=71902) at RingBuffer.cpp:91
         ret = 203382
         tot = 0
         errcnt = 0
#6  0x40263073 in ThreadedFileWriter::DiskLoop (this=0x8115718) at RingBuffer.cpp:299
         first_chunk_size = 203382
         second_chunk_size = 71902
         size = 203382
         written = 297632
         timer = {ds = 61114509}
#7  0x4026234d in ThreadedFileWriter::boot_writer (wotsit=0x8115718) at RingBuffer.cpp:120
         fw = (ThreadedFileWriter *) 0x8115718
#8  0x415ccb3c in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#9  0x4179692a in clone () from /lib/tls/libc.so.6
No symbol table info available.

Thread 11 (Thread 1187011504 (LWP 17756)):
#0  0xffffe410 in ?? ()
No symbol table info available.
#1  0x080f7538 in ?? ()
No symbol table info available.
#2  0x00000131 in ?? ()
No symbol table info available.
#3  0x00000000 in ?? ()
No symbol table info available.
#4  0x415ceb22 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0
No symbol table info available.
#5  0x413357db in QWaitCondition::wait () from /usr/lib/qt3/lib/libqt-mt.so.3
No symbol table info available.
#6  0x080f75c0 in ?? ()
No symbol table info available.
#7  0x080f759c in ?? ()
No symbol table info available.
#8  0x46c05a58 in ?? ()
No symbol table info available.
#9  0x413342fe in QRealMutexPrivate::unlock () from /usr/lib/qt3/lib/libqt-mt.so.3
No symbol table info available.
#10 0x46c05a64 in ?? ()
No symbol table info available.
#11 0x414e0aa8 in ?? () from /usr/lib/qt3/lib/libqt-mt.so.3
No symbol table info available.
#12 0x41334002 in QMutex::unlock () from /usr/lib/qt3/lib/libqt-mt.so.3
No symbol table info available.
#13 0x080f70a0 in ?? ()
No symbol table info available.
#14 0x414e0aa8 in ?? () from /usr/lib/qt3/lib/libqt-mt.so.3
No symbol table info available.
#15 0x46c05a58 in ?? ()
No symbol table info available.
#16 0x414e0aa8 in ?? () from /usr/lib/qt3/lib/libqt-mt.so.3
No symbol table info available.
#17 0x080f754c in ?? ()
No symbol table info available.
#18 0x46c05a90 in ?? ()
No symbol table info available.
#19 0x46c05a78 in ?? ()
No symbol table info available.
#20 0x0809866f in ProcessRequestThread::run (this=0x1) at mainserver.cpp:69
No locals.
Previous frame inner to this frame (corrupt stack?)
#0  0x41333fda in QMutex::lock () from /usr/lib/qt3/lib/libqt-mt.so.3
(gdb)



More information about the mythtv-dev mailing list