[mythtv] Backend Crash (0.18.1 + svn20050726)

Russ W. Knize rknize at yahoo.com
Sat Jul 30 14:02:08 EDT 2005


The backend in 0.18.1 crashes once or twice a day.  0.18 crashed about
once a week.  I pulled in the latest SVN earlier this week after reading
some threads on the subject, but I am still getting the crash.  A stack
trace is enclosed below.  Let me know what else I can provide.  It is
fairly reproducible and seems to coincide the a recording finishing up.

System is a dual P3 running Debian Sarge plus whatever else I needed out
of sid to install the myth packages.  I have one generic BTTV frame
grabber and a Hauppage PVR-350.

I've also had backend lockups where my video partition will reach 100%
even though I have auto-expire set to a 2GB limit checked every 10
minutes.  Auto-expire does work (I have seen the logs), but sometimes it
seems that it does not and the logs fill with angry messages from an
encoder (usually audio) that it cannot write.

Thanks,
Russ

---

(gdb) run --verbose file,record,playback
--logfile /var/log/mythtv/mythbackend.log
Starting program: /usr/bin/mythbackend --verbose file,record,playback
--logfile /var/log/mythtv/mythbackend.log
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 25342)]
[New Thread 32769 (LWP 25346)]
[New Thread 16386 (LWP 25347)]
[New Thread 32771 (LWP 25348)]
[New Thread 49156 (LWP 25350)]
[New Thread 65541 (LWP 25351)]
[New Thread 81926 (LWP 25352)]
[New Thread 98311 (LWP 25353)]
[New Thread 114696 (LWP 25354)]
[New Thread 131081 (LWP 25355)]
[New Thread 147466 (LWP 25356)]
[New Thread 163851 (LWP 25358)]
[New Thread 180236 (LWP 25360)]
[New Thread 196621 (LWP 25623)]
[New Thread 213006 (LWP 25628)]
[New Thread 229391 (LWP 25629)]
[New Thread 245776 (LWP 25630)]
[New Thread 262161 (LWP 25631)]
[Thread 229391 (LWP 25629) exited]
[Thread 262161 (LWP 25631) exited]
[Thread 245776 (LWP 25630) exited]
[Thread 213006 (LWP 25628) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16386 (LWP 25347)]
0x417c9b22 in pthread_mutex_lock () from /lib/libpthread.so.0
(gdb) thread apply all bt full

Thread 14 (Thread 196621 (LWP 25623)):
#0  0x419cfdb6 in nanosleep () from /lib/libc.so.6
No symbol table info available.
#1  0x00000000 in ?? ()
No symbol table info available.
#2  0x419f995a in usleep () from /lib/libc.so.6
No symbol table info available.
#3  0x402f4fd3 in ThreadedFileWriter::DiskLoop (this=0x838c4f8) at
RingBuffer.cpp:276
        size = 0
        written = 262150
        timer = {ds = 77402706}
#4  0x402f4363 in ThreadedFileWriter::boot_writer (wotsit=0x838c4f8) at
RingBuffer.cpp:120
        fw = (ThreadedFileWriter *) 0x838c4f8
#5  0x417c8e51 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#6  0x417c8ecf in pthread_start_thread_event ()
from /lib/libpthread.so.0
No symbol table info available.
#7  0x419ff92a in clone () from /lib/libc.so.6
No symbol table info available.

Thread 13 (Thread 180236 (LWP 25360)):
#0  0x417cb604 in __pthread_sigsuspend () from /lib/libpthread.so.0
No symbol table info available.
#1  0x417cb3c8 in __pthread_wait_for_restart_signal ()
from /lib/libpthread.so.0
No symbol table info available.
#2  0x417c7f2b in pthread_cond_wait at GLIBC_2.0 ()
from /lib/libpthread.so.0
No symbol table info available.
#3  0x41515658 in QWaitCondition::wait () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#4  0x0809edef in ProcessRequestThread::run (this=0x825b040) at
mainserver.cpp:69
No locals.
#5  0x4120f4ea in QThreadInstance::start () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#6  0x417c8e51 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#7  0x417c8ecf in pthread_start_thread_event ()
from /lib/libpthread.so.0
No symbol table info available.
#8  0x419ff92a in clone () from /lib/libc.so.6
No symbol table info available.

Thread 12 (Thread 163851 (LWP 25358)):
#0  0x417cb604 in __pthread_sigsuspend () from /lib/libpthread.so.0
No symbol table info available.
#1  0x417cb3c8 in __pthread_wait_for_restart_signal ()
from /lib/libpthread.so.0
No symbol table info available.
#2  0x417c7f2b in pthread_cond_wait at GLIBC_2.0 ()
from /lib/libpthread.so.0
No symbol table info available.
#3  0x41515658 in QWaitCondition::wait () from /usr/lib/libqt-mt.so.3
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#4  0x0809edef in ProcessRequestThread::run (this=0x825a300) at
mainserver.cpp:69
No locals.
#5  0x4120f4ea in QThreadInstance::start () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#6  0x417c8e51 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#7  0x417c8ecf in pthread_start_thread_event ()
from /lib/libpthread.so.0
No symbol table info available.
#8  0x419ff92a in clone () from /lib/libc.so.6
No symbol table info available.

Thread 11 (Thread 147466 (LWP 25356)):
#0  0x417cb604 in __pthread_sigsuspend () from /lib/libpthread.so.0
No symbol table info available.
#1  0x417cb3c8 in __pthread_wait_for_restart_signal ()
from /lib/libpthread.so.0
No symbol table info available.
#2  0x417c7f2b in pthread_cond_wait at GLIBC_2.0 ()
from /lib/libpthread.so.0
No symbol table info available.
#3  0x41515658 in QWaitCondition::wait () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#4  0x0809edef in ProcessRequestThread::run (this=0x82119e8) at
mainserver.cpp:69
No locals.
#5  0x4120f4ea in QThreadInstance::start () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#6  0x417c8e51 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#7  0x417c8ecf in pthread_start_thread_event ()
from /lib/libpthread.so.0
No symbol table info available.
#8  0x419ff92a in clone () from /lib/libc.so.6
No symbol table info available.

Thread 10 (Thread 131081 (LWP 25355)):
#0  0x417cb604 in __pthread_sigsuspend () from /lib/libpthread.so.0
No symbol table info available.
#1  0x417cb3c8 in __pthread_wait_for_restart_signal ()
from /lib/libpthread.so.0
No symbol table info available.
#2  0x417c7f2b in pthread_cond_wait at GLIBC_2.0 ()
from /lib/libpthread.so.0
No symbol table info available.
#3  0x41515658 in QWaitCondition::wait () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#4  0x0809edef in ProcessRequestThread::run (this=0x825a838) at
mainserver.cpp:69
No locals.
#5  0x4120f4ea in QThreadInstance::start () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#6  0x417c8e51 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#7  0x417c8ecf in pthread_start_thread_event ()
from /lib/libpthread.so.0
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#8  0x419ff92a in clone () from /lib/libc.so.6
No symbol table info available.

Thread 9 (Thread 114696 (LWP 25354)):
#0  0x417cb604 in __pthread_sigsuspend () from /lib/libpthread.so.0
No symbol table info available.
#1  0x417cb3c8 in __pthread_wait_for_restart_signal ()
from /lib/libpthread.so.0
No symbol table info available.
#2  0x417c7f2b in pthread_cond_wait at GLIBC_2.0 ()
from /lib/libpthread.so.0
No symbol table info available.
#3  0x41515658 in QWaitCondition::wait () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#4  0x0809edef in ProcessRequestThread::run (this=0x825abd0) at
mainserver.cpp:69
No locals.
#5  0x4120f4ea in QThreadInstance::start () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#6  0x417c8e51 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#7  0x417c8ecf in pthread_start_thread_event ()
from /lib/libpthread.so.0
No symbol table info available.
#8  0x419ff92a in clone () from /lib/libc.so.6
No symbol table info available.

Thread 8 (Thread 98311 (LWP 25353)):
#0  0x419cfdb6 in nanosleep () from /lib/libc.so.6
No symbol table info available.
#1  0x00000000 in ?? ()
No symbol table info available.
#2  0x419cfbff in sleep () from /lib/libc.so.6
No symbol table info available.
#3  0x4042dbe4 in JobQueue::ProcessQueue (this=0x825a5a0) at
jobqueue.cpp:469
        queueStartTimeStr = {static null = {
    static null = <same as static member of an already seen type>, d =
0x80d8ec0,
    static shared_null = 0x80d8ec0}, d = 0x41f076c0, static shared_null
= 0x80d8ec0}
        queueStartTime = 0
        atMax = false
        status = -2147483648
        hostname = {static null = {static null = <same as static member
of an already seen type>,
    d = 0x80d8ec0, static shared_null = 0x80d8ec0}, d = 0x80d8ec0,
static shared_null = 0x80d8ec0}
        maxJobs = 3
        queueEndTimeStr = {static null = {
    static null = <same as static member of an already seen type>, d =
0x80d8ec0,
    static shared_null = 0x80d8ec0}, d = 0x41f577f0, static shared_null
= 0x80d8ec0}
        message = {static null = {static null = <same as static member
of an already seen type>,
    d = 0x80d8ec0, static shared_null = 0x80d8ec0}, d = 0x80d8ec0,
static shared_null = 0x80d8ec0}
        tmpStr = {static null = {static null = <same as static member of
an already seen type>,
    d = 0x80d8ec0, static shared_null = 0x80d8ec0}, d = 0x80d8ec0,
static shared_null = 0x80d8ec0}
        inTimeWindow = true
        type = 1074907038
---Type <return> to continue, or q <return> to quit---
        id = 0
        jobStatus = {sh = 0x825aae0}
        curQTime = {ds = 0}
        starttime = {d = {jd = 0}, t = {ds = 0}}
        flags = 0
        sleepTime = 60
        curTime = 1101363328
        startedJobAlready = false
        chanid = {static null = {static null = <same as static member of
an already seen type>,
    d = 0x80d8ec0, static shared_null = 0x80d8ec0}, d = 0x80d8ec0,
static shared_null = 0x80d8ec0}
        startts = {static null = {static null = <same as static member
of an already seen type>,
    d = 0x80d8ec0, static shared_null = 0x80d8ec0}, d = 0x80d8ec0,
static shared_null = 0x80d8ec0}
        cmds = 0
        queueEndTime = 1073772081
        jobs = {sh = 0x825a228}
#4  0x40428770 in JobQueue::RunQueueProcesser (this=0x825a5a0) at
jobqueue.cpp:135
No locals.
#5  0x40428799 in JobQueue::QueueProcesserThread (param=0x825a5a0) at
jobqueue.cpp:141
        jobqueue = (JobQueue *) 0x825a5a0
#6  0x417c8e51 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#7  0x417c8ecf in pthread_start_thread_event ()
from /lib/libpthread.so.0
No symbol table info available.
#8  0x419ff92a in clone () from /lib/libc.so.6
No symbol table info available.

Thread 7 (Thread 81926 (LWP 25352)):
#0  0x419cfdb6 in nanosleep () from /lib/libc.so.6
No symbol table info available.
#1  0x00000000 in ?? ()
No symbol table info available.
#2  0x419cfbff in sleep () from /lib/libc.so.6
No symbol table info available.
#3  0x080ba1ff in HouseKeeper::RunHouseKeeping (this=0x825bab8) at
housekeeper.cpp:175
        period = 1100260857
        maxhr = -1090520372
        minhr = 1098694456
        dbTag = {static null = {static null = <same as static member of
an already seen type>,
    d = 0x80d8ec0, static shared_null = 0x80d8ec0}, d = 0x439006a0,
static shared_null = 0x80d8ec0}
#4  0x080bad2d in HouseKeeper::doHouseKeepingThread (param=0x825bab8) at
housekeeper.cpp:236
        hkeeper = (HouseKeeper *) 0x825bab8
#5  0x417c8e51 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#6  0x417c8ecf in pthread_start_thread_event ()
from /lib/libpthread.so.0
No symbol table info available.
#7  0x419ff92a in clone () from /lib/libc.so.6
No symbol table info available.

Thread 6 (Thread 65541 (LWP 25351)):
---Type <return> to continue, or q <return> to quit---
#0  0x419cfdb6 in nanosleep () from /lib/libc.so.6
No symbol table info available.
#1  0x00000000 in ?? ()
No symbol table info available.
#2  0x419cfbff in sleep () from /lib/libc.so.6
No symbol table info available.
#3  0x08058b29 in AutoExpire::RunExpirer (this=0x8259f08) at
autoexpire.cpp:158
        statbuf = {f_type = 61267, f_bsize = 4096, f_blocks = 27738320,
f_bfree = 2442166,
  f_bavail = 1314947, f_files = 14090240, f_ffree = 14089937, f_fsid =
{__val = {0, 0}},
  f_namelen = 255, f_frsize = 0, f_spare = {0, 0, 0, 0, 0}}
        freespace = 5
        minFree = 2
        recordfileprefix = {static null = {
    static null = <same as static member of an already seen type>, d =
0x80d8ec0,
    static shared_null = 0x80d8ec0}, d = 0x41e00820, static shared_null
= 0x80d8ec0}
#4  0x08059127 in AutoExpire::ExpirerThread (param=0x8259f08) at
autoexpire.cpp:200
        expirer = (AutoExpire *) 0x8259f08
#5  0x417c8e51 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#6  0x417c8ecf in pthread_start_thread_event ()
from /lib/libpthread.so.0
No symbol table info available.
#7  0x419ff92a in clone () from /lib/libc.so.6
No symbol table info available.

Thread 5 (Thread 49156 (LWP 25350)):
#0  0x419cfdb6 in nanosleep () from /lib/libc.so.6
No symbol table info available.
#1  0x00000000 in ?? ()
No symbol table info available.
#2  0x419f995a in usleep () from /lib/libc.so.6
No symbol table info available.
#3  0x4046c474 in TVRec::StartRecording (this=0x41d00008,
rcinfo=0x8374438) at tv_rec.cpp:261
        retval = 0
        recprefix = {static null = {static null = <same as static member
of an already seen type>,
    d = 0x80d8ec0, static shared_null = 0x80d8ec0}, d = 0x41f06300,
static shared_null = 0x80d8ec0}
#4  0x0805fd11 in EncoderLink::StartRecording (this=0x825b928,
rec=0x8374438)
    at encoderlink.cpp:256
        retval = 0
#5  0x080a85a5 in Scheduler::RunScheduler (this=0x825a080) at
scheduler.cpp:1081
        msg = {static null = {static null = <same as static member of an
already seen type>,
    d = 0x80d8ec0, static shared_null = 0x80d8ec0}, d = 0x80d8ec0,
static shared_null = 0x80d8ec0}
        lockit = {mtx = 0x820dbf8}
        retval = 138229680
        statuschanged = false
        recIter = {_M_node = 0x83d40b0}
        curtime = {d = {jd = 2453580}, t = {ds = 77402369}}
        secsleft = -2
        nexttv = (EncoderLink *) 0x825b928
        nextRecording = (ProgramInfo *) 0x8374438
---Type <return> to continue, or q <return> to quit---
        nextrectime = {d = {jd = 2453580}, t = {ds = 77400000}}
        startIter = {_M_node = 0x83d40b0}
        idleSince = {d = {jd = 0}, t = {ds = 0}}
        matchTime = 0.355599999
        blockShutdown = false
        idleTimeoutSecs = 0
        idleWaitForRecordingTime = 15
        fillstart = {tv_sec = 1122601799, tv_usec = 722777}
        prerollseconds = 60
        lastupdate = {d = {jd = 2453580}, t = {ds = 74999366}}
        recordfileprefix = {static null = {
    static null = <same as static member of an already seen type>, d =
0x80d8ec0,
    static shared_null = 0x80d8ec0}, d = 0x825bf78, static shared_null =
0x80d8ec0}
        firstRun = false
        fillend = {tv_sec = 1122601801, tv_usec = 818164}
        placeTime = 2.09538698
#6  0x080a9d81 in Scheduler::SchedulerThread (param=0x825a080) at
scheduler.cpp:1293
        sched = (Scheduler *) 0x825a080
#7  0x417c8e51 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#8  0x417c8ecf in pthread_start_thread_event ()
from /lib/libpthread.so.0
No symbol table info available.
#9  0x419ff92a in clone () from /lib/libc.so.6
No symbol table info available.

Thread 4 (Thread 32771 (LWP 25348)):
#0  0x419cfdb6 in nanosleep () from /lib/libc.so.6
No symbol table info available.
#1  0x00000000 in ?? ()
No symbol table info available.
#2  0x419f995a in usleep () from /lib/libc.so.6
No symbol table info available.
#3  0x4047116a in TVRec::RunTV (this=0x41d3f008) at tv_rec.cpp:933
No locals.
#4  0x40470f09 in TVRec::EventThread (param=0x41d3f008) at
tv_rec.cpp:908
        thetv = (TVRec *) 0x41d3f008
#5  0x417c8e51 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#6  0x417c8ecf in pthread_start_thread_event ()
from /lib/libpthread.so.0
No symbol table info available.
#7  0x419ff92a in clone () from /lib/libc.so.6
No symbol table info available.

Thread 3 (Thread 16386 (LWP 25347)):
#0  0x417c9b22 in pthread_mutex_lock () from /lib/libpthread.so.0
No symbol table info available.
#1  0x4199917d in free () from /lib/libc.so.6
No symbol table info available.
#2  0x4044fd28 in ~NuppelVideoRecorder (this=0x42201008) at
NuppelVideoRecorder.cpp:213
---Type <return> to continue, or q <return> to quit---
No locals.
#3  0x404700e5 in TVRec::TeardownRecorder (this=0x41d00008,
killFile=false) at tv_rec.cpp:770
        message = {static null = {static null = <same as static member
of an already seen type>,
    d = 0x80d8ec0, static shared_null = 0x80d8ec0}, d = 0x41e00df8,
static shared_null = 0x80d8ec0}
        me = {<QCustomEvent> = {<> = {<No data fields>}, d = 0x0},
message = {static null = {
      static null = <same as static member of an already seen type>, d =
0x80d8ec0,
      static shared_null = 0x80d8ec0}, d = 0x41e00df8, static
shared_null = 0x80d8ec0},
  extradata = {<QValueList<QString>> = {sh = 0x41ee69e8}, <No data
fields>}}
        blank_frame_map = {sh = 0x41e05f98}
        oldProfileName = {static null = {
    static null = <same as static member of an already seen type>, d =
0x80d8ec0,
    static shared_null = 0x80d8ec0}, d = 0x41ee4800, static shared_null
= 0x80d8ec0}
        filelen = 1859
#4  0x4046f35f in TVRec::HandleStateChange (this=0x41d00008) at
tv_rec.cpp:638
        killRecordingFile = false
        origname = {static null = {static null = <same as static member
of an already seen type>,
    d = 0x80d8ec0, static shared_null = 0x80d8ec0}, d = 0x41f5bce8,
static shared_null = 0x80d8ec0}
        tmpInternalState = kState_None
        changed = true
        startRecorder = false
        closeRecorder = true
        statename = {static null = {static null = <same as static member
of an already seen type>,
    d = 0x80d8ec0, static shared_null = 0x80d8ec0}, d = 0x43884a20,
static shared_null = 0x80d8ec0}
#5  0x40470f67 in TVRec::RunTV (this=0x41d00008) at tv_rec.cpp:924
No locals.
#6  0x40470f09 in TVRec::EventThread (param=0x41d00008) at
tv_rec.cpp:908
        thetv = (TVRec *) 0x41d00008
#7  0x417c8e51 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#8  0x417c8ecf in pthread_start_thread_event ()
from /lib/libpthread.so.0
No symbol table info available.
#9  0x419ff92a in clone () from /lib/libc.so.6
No symbol table info available.

Thread 2 (Thread 32769 (LWP 25346)):
#0  0x419f6ada in poll () from /lib/libc.so.6
No symbol table info available.
#1  0x417c8b50 in __pthread_manager () from /lib/libpthread.so.0
No symbol table info available.
#2  0x417c8d57 in __pthread_manager_event () from /lib/libpthread.so.0
No symbol table info available.
#3  0x419ff92a in clone () from /lib/libc.so.6
No symbol table info available.

Thread 1 (Thread 16384 (LWP 25342)):
#0  0x419f9081 in select () from /lib/libc.so.6
No symbol table info available.
#1  0x416e053c in ?? () from /usr/lib/libqt-mt.so.3
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#2  0x00000012 in ?? ()
No symbol table info available.
#3  0x4122e1d8 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#4  0x4122e088 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#5  0x4121c071 in QApplication::exec () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#6  0x0806f8e9 in main (argc=5, argv=0xbffffc34) at main.cpp:587
        a = <incomplete type>
        testsched = false
        ismaster = true
        runsched = true
        binname = {static null = {static null = <same as static member
of an already seen type>,
    d = 0x80d8ec0, static shared_null = 0x80d8ec0}, d = 0x80ec318,
static shared_null = 0x80d8ec0}
        nosched = false
        logfd = 3
        port = 6543
        masterip = {static null = {static null = <same as static member
of an already seen type>,
    d = 0x80d8ec0, static shared_null = 0x80d8ec0}, d = 0x8209b40,
static shared_null = 0x80d8ec0}
        verboseString = {static null = {
    static null = <same as static member of an already seen type>, d =
0x80d8ec0,
    static shared_null = 0x80d8ec0}, d = 0x80ec358, static shared_null =
0x80d8ec0}
        printsched = false
        logfile = {static null = {static null = <same as static member
of an already seen type>,
    d = 0x80d8ec0, static shared_null = 0x80d8ec0}, d = 0x80ec2e0,
static shared_null = 0x80d8ec0}
        daemonize = false
        resched = false
        printexpire = false
        pidfs = <incomplete type>
        statusport = 6544
        myip = {static null = {static null = <same as static member of
an already seen type>,
    d = 0x80d8ec0, static shared_null = 0x80d8ec0}, d = 0x8209cf0,
static shared_null = 0x80d8ec0}
#7  0x4193de36 in __libc_start_main () from /lib/libc.so.6
No symbol table info available.
#8  0x080568d1 in _start () at ../sysdeps/i386/elf/start.S:102
No locals.
#0  0x417c9b22 in pthread_mutex_lock () from /lib/libpthread.so.0
(gdb) quit
The program is running.  Exit anyway? (y or n) y




More information about the mythtv-dev mailing list