[mythtv] Re: Re: SIGSEGV at end of recording

Michael J. Sherman msherman at dsbox.com
Sun May 22 14:01:37 UTC 2005


> > I have also been seeing this exact behavior. My backtrace looks
> > exactly like yours below. Today I completely cleaned out my DB,
> > installed a fresh Myth, and even reinstalled ivtv and upgraded all 
> FC3
> > packages via apt. Still the problem persists.
> >
> > The crash is in QMutex::lock. I have Fedora Core 3 with an AverMedia
> > M179. Seems like it was working until late April, and ever since then
> > (I do CVS updates weekly) it will crash often after recordings 
> finish.
>
> Is this with _current_ cvs? A commit of mine from a day ago may have 
> had
> caused this to change for the better (or not)..

CVS pulled at 11:13am on May 21 (Saturday).  I also got a similar crash 
not after the recording finished, but after the commercial flagging 
finished.  But the crash was still with the QMutex::lock.  Checking 
back through the archives, it seems a few folks have been getting this 
crash after recordings finish, after commercial flagging, and after 
deleting via MythWeb.

Below is the complete backtrace of a crash after a recording finished.


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208822080 (LWP 21729)]
0x04d8af4c in QMutex::lock () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
(gdb) thread apply all bt full

Thread 14 (Thread -1223775312 (LWP 22662)):
#0  0x002fe7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
No symbol table info available.
#1  0x0024631b in __waitpid_nocancel () from /lib/tls/libpthread.so.0
No symbol table info available.
#2  0x00f57597 in myth_system (command=@0xb70ea3e0, flags=0) at 
util.cpp:724
         status = 3929
         lirc_lock = {events_locked = false}
         joystick_lock = {events_locked = false}
         child = 22663
#3  0x009b3671 in JobQueue::DoFlagCommercialsThread (this=0x97b1398) at 
jobqueue.cpp:1678
         key = {static null = {static null = <same as static member of 
an already seen type>,
     d = 0x978e0c0, static shared_null = 0x978e0c0}, d = 0x9822958, 
static shared_null = 0x978e0c0}
         logDesc = {static null = {static null = <same as static member 
of an already seen type>,
     d = 0x978e0c0, static shared_null = 0x978e0c0}, d = 0x9813af0, 
static shared_null = 0x978e0c0}
         msg = {static null = {static null = <same as static member of 
an already seen type>,
     d = 0x978e0c0, static shared_null = 0x978e0c0}, d = 0x981d6b0, 
static shared_null = 0x978e0c0}
         program_info = (ProgramInfo *) 0x982bc60
         controlFlagging = 0
         jobID = 4
         stillRecording = false
         breaksFound = 0
         cmd = {static null = {static null = <same as static member of 
an already seen type>,
     d = 0x978e0c0, static shared_null = 0x978e0c0}, d = 0x9820368, 
static shared_null = 0x978e0c0}
#4  0x009b25bb in JobQueue::FlagCommercialsThread (param=0x97b1398) at 
jobqueue.cpp:1613
         theFlagger = (JobQueue *) 0x97b1398
#5  0x00240341 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#6  0x04694fee in clone () from /lib/tls/libc.so.6
No symbol table info available.

---Type <return> to continue, or q <return> to quit---
Thread 11 (Thread -1211184208 (LWP 21749)):
#0  0x002fe7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
No symbol table info available.
#1  0x00242a86 in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/tls/libpthread.so.0
No symbol table info available.
#2  0x04d8c3e5 in QWaitCondition::wait () from 
/usr/lib/qt-3.3/lib/libqt-mt.so.3
No symbol table info available.
#3  0x0809d931 in ProcessRequestThread::run (this=0x97b4918) at 
mainserver.cpp:73
No locals.
#4  0x04a90431 in QThreadInstance::start () from 
/usr/lib/qt-3.3/lib/libqt-mt.so.3
No symbol table info available.
#5  0x00240341 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#6  0x04694fee in clone () from /lib/tls/libc.so.6
No symbol table info available.

Thread 10 (Thread 156253104 (LWP 21748)):
#0  0x002fe7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
No symbol table info available.
#1  0x00242a86 in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/tls/libpthread.so.0
No symbol table info available.
#2  0x04d8c3e5 in QWaitCondition::wait () from 
/usr/lib/qt-3.3/lib/libqt-mt.so.3
No symbol table info available.
#3  0x0809d931 in ProcessRequestThread::run (this=0x97ba180) at 
mainserver.cpp:73
No locals.
#4  0x04a90431 in QThreadInstance::start () from 
/usr/lib/qt-3.3/lib/libqt-mt.so.3
No symbol table info available.
#5  0x00240341 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#6  0x04694fee in clone () from /lib/tls/libc.so.6
No symbol table info available.

---Type <return> to continue, or q <return> to quit---
Thread 9 (Thread 119761840 (LWP 21747)):
#0  0x002fe7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
No symbol table info available.
#1  0x00242a86 in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/tls/libpthread.so.0
No symbol table info available.
#2  0x04d8c3e5 in QWaitCondition::wait () from 
/usr/lib/qt-3.3/lib/libqt-mt.so.3
No symbol table info available.
#3  0x0809d931 in ProcessRequestThread::run (this=0x97b0668) at 
mainserver.cpp:73
No locals.
#4  0x04a90431 in QThreadInstance::start () from 
/usr/lib/qt-3.3/lib/libqt-mt.so.3
No symbol table info available.
#5  0x00240341 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#6  0x04694fee in clone () from /lib/tls/libc.so.6
No symbol table info available.

Thread 8 (Thread 93682608 (LWP 21746)):
#0  0x002fe7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
No symbol table info available.
#1  0x00242a86 in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/tls/libpthread.so.0
No symbol table info available.
#2  0x04d8c3e5 in QWaitCondition::wait () from 
/usr/lib/qt-3.3/lib/libqt-mt.so.3
No symbol table info available.
#3  0x0809d931 in ProcessRequestThread::run (this=0x97b58f0) at 
mainserver.cpp:73
No locals.
#4  0x04a90431 in QThreadInstance::start () from 
/usr/lib/qt-3.3/lib/libqt-mt.so.3
No symbol table info available.
#5  0x00240341 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#6  0x04694fee in clone () from /lib/tls/libc.so.6
No symbol table info available.

---Type <return> to continue, or q <return> to quit---
Thread 7 (Thread 56138672 (LWP 21745)):
#0  0x002fe7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
No symbol table info available.
#1  0x00242a86 in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/tls/libpthread.so.0
No symbol table info available.
#2  0x04d8c3e5 in QWaitCondition::wait () from 
/usr/lib/qt-3.3/lib/libqt-mt.so.3
No symbol table info available.
#3  0x0809d931 in ProcessRequestThread::run (this=0x97acd58) at 
mainserver.cpp:73
No locals.
#4  0x04a90431 in QThreadInstance::start () from 
/usr/lib/qt-3.3/lib/libqt-mt.so.3
No symbol table info available.
#5  0x00240341 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#6  0x04694fee in clone () from /lib/tls/libc.so.6
No symbol table info available.

Thread 6 (Thread 42953648 (LWP 21743)):
#0  0x002fe7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
No symbol table info available.
#1  0x046581a6 in __nanosleep_nocancel () from /lib/tls/libc.so.6
No symbol table info available.
#2  0x04657fac in sleep () from /lib/tls/libc.so.6
No symbol table info available.
#3  0x009a61a0 in JobQueue::ProcessQueue (this=0x97b1398) at 
jobqueue.cpp:470
         queueStartTimeStr = {static null = {
     static null = <same as static member of an already seen type>, d = 
0x978e0c0,
     static shared_null = 0x978e0c0}, d = 0x98dc7a8, static shared_null 
= 0x978e0c0}
         queueStartTime = 0
         atMax = true
         status = 4
         hostname = {static null = {static null = <same as static member 
of an already seen type>,
     d = 0x978e0c0, static shared_null = 0x978e0c0}, d = 0x98a78f0, 
static shared_null = 0x978e0c0}
---Type <return> to continue, or q <return> to quit---
         maxJobs = 1
         queueEndTimeStr = {static null = {
     static null = <same as static member of an already seen type>, d = 
0x978e0c0,
     static shared_null = 0x978e0c0}, d = 0x98be110, static shared_null 
= 0x978e0c0}
         message = {static null = {static null = <same as static member 
of an already seen type>,
     d = 0x978e0c0, static shared_null = 0x978e0c0}, d = 0x9832918, 
static shared_null = 0x978e0c0}
         tmpStr = {static null = {static null = <same as static member 
of an already seen type>,
     d = 0x978e0c0, static shared_null = 0x978e0c0}, d = 0x9843358, 
static shared_null = 0x978e0c0}
         inTimeWindow = true
         type = 2
         id = 4
         jobStatus = {sh = 0x97de100}
         curQTime = {ds = 85343751}
         starttime = {d = {jd = 2453512}, t = {ds = 83100000}}
         flags = 0
         sleepTime = 60
         curTime = 2342
         startedJobAlready = false
         chanid = {static null = {static null = <same as static member 
of an already seen type>,
     d = 0x978e0c0, static shared_null = 0x978e0c0}, d = 0x984a7d8, 
static shared_null = 0x978e0c0}
         startts = {static null = {static null = <same as static member 
of an already seen type>,
     d = 0x978e0c0, static shared_null = 0x978e0c0}, d = 0x98a7858, 
static shared_null = 0x978e0c0}
         cmds = 0
         queueEndTime = 2359
         jobs = {sh = 0x97d7fe0}
#4  0x009a0d3c in JobQueue::RunQueueProcesser (this=0x97b1398) at 
jobqueue.cpp:136
No locals.
#5  0x009a0d65 in JobQueue::QueueProcesserThread (param=0x97b1398) at 
jobqueue.cpp:142
         jobqueue = (JobQueue *) 0x97b1398
#6  0x00240341 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#7  0x04694fee in clone () from /lib/tls/libc.so.6
---Type <return> to continue, or q <return> to quit---
No symbol table info available.

Thread 5 (Thread 145763248 (LWP 21742)):
#0  0x002fe7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
No symbol table info available.
#1  0x046581a6 in __nanosleep_nocancel () from /lib/tls/libc.so.6
No symbol table info available.
#2  0x04657fac in sleep () from /lib/tls/libc.so.6
No symbol table info available.
#3  0x080ba283 in HouseKeeper::RunHouseKeeping (this=0x97ad828) at 
housekeeper.cpp:175
         period = 0
         maxhr = 0
         minhr = 0
         dbTag = {static null = {static null = <same as static member of 
an already seen type>,
     d = 0x978e0c0, static shared_null = 0x978e0c0}, d = 0x988fcd0, 
static shared_null = 0x978e0c0}
#4  0x080badb1 in HouseKeeper::doHouseKeepingThread (param=0x97ad828) 
at housekeeper.cpp:236
         hkeeper = (HouseKeeper *) 0x97ad828
#5  0x00240341 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#6  0x04694fee in clone () from /lib/tls/libc.so.6
No symbol table info available.

Thread 4 (Thread 30002096 (LWP 21741)):
#0  0x002fe7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
No symbol table info available.
#1  0x046581a6 in __nanosleep_nocancel () from /lib/tls/libc.so.6
No symbol table info available.
#2  0x04657fac in sleep () from /lib/tls/libc.so.6
No symbol table info available.
#3  0x080587e1 in AutoExpire::RunExpirer (this=0x97b1560) at 
autoexpire.cpp:158
         statbuf = {f_type = 61267, f_bsize = 4096, f_blocks = 38458713, 
f_bfree = 9770161,
   f_bavail = 7816557, f_files = 19546112, f_ffree = 19545921, f_fsid = 
{__val = {0, 0}},
---Type <return> to continue, or q <return> to quit---
   f_namelen = 255, f_frsize = 4096, f_spare = {0, 0, 0, 0, 0}}
         freespace = 29
         minFree = 2
         recordfileprefix = {static null = {
     static null = <same as static member of an already seen type>, d = 
0x978e0c0,
     static shared_null = 0x978e0c0}, d = 0x97b0608, static shared_null 
= 0x978e0c0}
#4  0x08058ddf in AutoExpire::ExpirerThread (param=0x97b1560) at 
autoexpire.cpp:200
         expirer = (AutoExpire *) 0x97b1560
#5  0x00240341 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#6  0x04694fee in clone () from /lib/tls/libc.so.6
No symbol table info available.

Thread 3 (Thread 109271984 (LWP 21740)):
#0  0x002fe7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
No symbol table info available.
#1  0x00242cfc in pthread_cond_timedwait@@GLIBC_2.3.2 () from 
/lib/tls/libpthread.so.0
No symbol table info available.
#2  0x04d8c3ad in QWaitCondition::wait () from 
/usr/lib/qt-3.3/lib/libqt-mt.so.3
No symbol table info available.
#3  0x080a5791 in Scheduler::RunScheduler (this=0x97ba8f8) at 
scheduler.cpp:903
         statuschanged = false
         recIter = {_M_node = 0x98adf08}
         curtime = {d = {jd = 2453512}, t = {ds = 85388929}}
         secsleft = 245812
         nexttv = (EncoderLink *) 0x97adc08
         nextRecording = (ProgramInfo *) 0x97e33c8
         nextrectime = {d = {jd = 2453515}, t = {ds = 72000000}}
         startIter = {_M_node = 0x98adf08}
         idleSince = {d = {jd = 0}, t = {ds = 0}}
         matchTime = 0.000172
         blockShutdown = true
---Type <return> to continue, or q <return> to quit---
         idleTimeoutSecs = 0
         idleWaitForRecordingTime = 15
         fillstart = {tv_sec = 1116732600, tv_usec = 66712}
         prerollseconds = 0
         lastupdate = {d = {jd = 2453512}, t = {ds = 84599182}}
         recordfileprefix = {static null = {
     static null = <same as static member of an already seen type>, d = 
0x978e0c0,
     static shared_null = 0x978e0c0}, d = 0x97ad140, static shared_null 
= 0x978e0c0}
         firstRun = false
         fillend = {tv_sec = 1116732600, tv_usec = 231807}
         placeTime = 0.165095001
#4  0x080a90ed in Scheduler::SchedulerThread (param=0x97ba8f8) at 
scheduler.cpp:1318
         sched = (Scheduler *) 0x97ba8f8
#5  0x00240341 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#6  0x04694fee in clone () from /lib/tls/libc.so.6
No symbol table info available.

Thread 2 (Thread 66911152 (LWP 21738)):
#0  0x002fe7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
No symbol table info available.
#1  0x046581a6 in __nanosleep_nocancel () from /lib/tls/libc.so.6
No symbol table info available.
#2  0x0468e31a in usleep () from /lib/tls/libc.so.6
No symbol table info available.
#3  0x009fad2c in TVRec::RunTV (this=0xb7ced008) at tv_rec.cpp:944
No locals.
#4  0x009faacb in TVRec::EventThread (param=0xb7ced008) at 
tv_rec.cpp:919
         thetv = (TVRec *) 0xb7ced008
#5  0x00240341 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#6  0x04694fee in clone () from /lib/tls/libc.so.6
---Type <return> to continue, or q <return> to quit---
No symbol table info available.

Thread 1 (Thread -1208822080 (LWP 21729)):
#0  0x04d8af4c in QMutex::lock () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
No symbol table info available.
#1  0x080978b8 in RefSocket::Lock (this=0x9823680) at server.h:22
No locals.
#2  0x0807555a in MainServer::customEvent (this=0x97b4c58, e=0x9814390) 
at mainserver.cpp:622
         pbs = (PlaybackSock *) 0x98ecea8
         sock = (RefSocket *) 0x9823680
         sendGlobal = false
         sentSet = {<QGList> = {<> = {<No data fields>}, firstNode = 
0xb7101118, lastNode = 0xb71009a0,
     curNode = 0xb71009a0, curIndex = 2, numNodes = 3, iterators = 0x0}, 
<No data fields>}
         iter = {_M_current = 0x97be040}
         broadcast = {<QValueList<QString>> = {sh = 0xb7100ff0}, <No 
data fields>}
         sendstuff = true
#3  0x04af47be in QObject::event () from 
/usr/lib/qt-3.3/lib/libqt-mt.so.3
No symbol table info available.
#4  0x04a98539 in QApplication::internalNotify () from 
/usr/lib/qt-3.3/lib/libqt-mt.so.3
No symbol table info available.
#5  0x04a986ca in QApplication::notify () from 
/usr/lib/qt-3.3/lib/libqt-mt.so.3
No symbol table info available.
#6  0x04a99696 in QApplication::sendPostedEvents () from 
/usr/lib/qt-3.3/lib/libqt-mt.so.3
No symbol table info available.
#7  0x04a99722 in QApplication::sendPostedEvents () from 
/usr/lib/qt-3.3/lib/libqt-mt.so.3
No symbol table info available.
#8  0x04a481c8 in QEventLoop::processEvents () from 
/usr/lib/qt-3.3/lib/libqt-mt.so.3
No symbol table info available.
#9  0x04aadb85 in QEventLoop::enterLoop () from 
/usr/lib/qt-3.3/lib/libqt-mt.so.3
No symbol table info available.
#10 0x04aadade in QEventLoop::exec () from 
/usr/lib/qt-3.3/lib/libqt-mt.so.3
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#11 0x04a9773b in QApplication::exec () from 
/usr/lib/qt-3.3/lib/libqt-mt.so.3
No symbol table info available.
#12 0x0806d7bf in main (argc=1, argv=0xbff75344) at main.cpp:599
         a = <incomplete type>
         logfile = {static null = {static null = <same as static member 
of an already seen type>,
     d = 0x978e0c0, static shared_null = 0x978e0c0}, d = 0x97a38e8, 
static shared_null = 0x978e0c0}
         resched = false
         nosched = false
         printexpire = false
         logfd = -1
         port = 6543
         fatal_error = false
         verboseString = {static null = {static null = <same as static 
member of an already seen type>,
     d = 0x978e0c0, static shared_null = 0x978e0c0}, d = 0x97a24d0, 
static shared_null = 0x978e0c0}
         runsched = true
         binname = {static null = {static null = <same as static member 
of an already seen type>,
     d = 0x978e0c0, static shared_null = 0x978e0c0}, d = 0x97a3920, 
static shared_null = 0x978e0c0}
         daemonize = false
         printsched = false
         masterip = {static null = {static null = <same as static member 
of an already seen type>,
     d = 0x978e0c0, static shared_null = 0x978e0c0}, d = 0x97ad000, 
static shared_null = 0x978e0c0}
         testsched = false
         pidfs = <incomplete type>
         statusport = 6544
         myip = {static null = {static null = <same as static member of 
an already seen type>,
     d = 0x978e0c0, static shared_null = 0x978e0c0}, d = 0x97ace60, 
static shared_null = 0x978e0c0}
         ismaster = true



More information about the mythtv-dev mailing list