[mythtv] [BT] mythbackend segfaults

Bruce Markey bjm at lvcm.com
Wed Feb 18 02:23:27 EST 2004


After months of stability, I've had several backend SEGVs
during recording on both the master and slaves. This started
about 24 hours ago and may have started after the last ffmpeg
resync. Before writing a restart script, I did a debug build
and grabed this backtrace. This seems to happen at a frequency
of about once per 1-2 hours.

--  bjm
-------------- next part --------------
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 245776 (LWP 20267)]
mpeg4_encode_picture_header (s=0x86ced70, picture_number=62885) at bswap.h:24
24      {
Current language:  auto; currently c
(gdb)
(gdb) thread apply all bt full

Thread 21 (Thread 311316 (LWP 20271)):
#0  0x412afde1 in select () from /lib/libc.so.6
No symbol table info available.
#1  0x4043d190 in __JCR_LIST__ () from /usr/local/lib/libmythtv-0.15.so.0
No symbol table info available.
#2  0x402f5545 in NuppelVideoRecorder::VbiThread(void*) (param=0x41fcb008)
    at NuppelVideoRecorder.cpp:1919
        nvr = (NuppelVideoRecorder *) 0x41fcb008
#3  0x410b2e51 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#4  0x410b2ecf in pthread_start_thread_event () from /lib/libpthread.so.0
No symbol table info available.

Thread 19 (Thread 278546 (LWP 20269)):
#0  0x410b8aab in read () from /lib/libpthread.so.0
No symbol table info available.
#1  0x4043d190 in __JCR_LIST__ () from /usr/local/lib/libmythtv-0.15.so.0
No symbol table info available.
#2  0x402f5517 in NuppelVideoRecorder::AudioThread(void*) (param=0x41fcb008)
    at NuppelVideoRecorder.cpp:1910
        nvr = (NuppelVideoRecorder *) 0x41fcb008
#3  0x410b2e51 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#4  0x410b2ecf in pthread_start_thread_event () from /lib/libpthread.so.0
No symbol table info available.

Thread 17 (Thread 245776 (LWP 20267)):
---Type <return> to continue, or q <return> to quit---
#0  mpeg4_encode_picture_header (s=0x86ced70, picture_number=62885) at bswap.h:24
        time_incr = -8032388
        time_div = -8032388
        time_mod = -1361
#1  0x404aa7dd in encode_picture (s=0x86ced70, picture_number=62885)
    at mpegvideo.c:4791
        i = 1
        j = 141356400
        bits = -1
#2  0x404a4dee in MPV_encode_picture (avctx=0x86ceae0, buf=0x4486f008 "",
    buf_size=391680, data=0x420df1c8) at mpegvideo.c:2019
        s = (MpegEncContext *) 0x86ced70
        pic_arg = (AVFrame *) 0x420df1c8
        i = 1
        stuffing_count = 0
#3  0x4049ecae in avcodec_encode_video (avctx=0x86ceae0,
    buf=0xffffffff <Address 0xffffffff out of bounds>, buf_size=-1, pict=0xffffffff)
    at utils.c:443
        ret = -1
#4  0x402f795a in NuppelVideoRecorder::WriteVideo(VideoFrame_*, bool, bool) (
    this=0x41fcb008, frame=0xbdbffa44, skipsync=false, forcekey=false)
    at NuppelVideoRecorder.cpp:2755
        tmp = 0
        r = 0
        out_len = 1064979
        frameheader = {frametype = 0 '\0', comptype = 0 '\0', keyframe = 22 '\026',
  filters = 0 '\0', timecode = 0, packetlength = 0}
        xaa = 51
---Type <return> to continue, or q <return> to quit---
        freecount = 50
        compressthis = 1
        raw = 0
        timeperframe = 40
        planes = {
  0x422f2008 "\020\020\020\020\020\020\020\021\022\024\031\e\032\032\e\e\030\026\027\e\034\e\032\031\030\027\031\e\034\026\024\026\036 \034\e\034\032\031\031\032\e\032\031\031\032\032\e\027\030\031\030\026\030\034\034\e\032\034\032\031\027\032\031\027\031\036\037\034\e\031\030\030\030\034\034\034\030\026\027\e\035\e\030\e\031\032\031\035\034\027\030\034\036\e\031\e\034\032\031\032\031\030\030\031\034\035\031\031\e\e\027\030\032\035\032\031\027\027\030\032\032\032\031\030\030\031\e\035\035\e\030\027\031\e\031\030\031\035\e\031\032\031\030\026\031\031\034\031\030\032\036\037\e\030\030\030\031\032\035\034\032\032\032\032\031\032\032\031\031\032\030\030\031\036\e\030\027\e\032\031\030\030\026\031\030\034\034\034\032\034 \037\032\030\032\036\e\030\027"...,
  0x42331c08 "\202\204\203\200\200\177\200\200\201\200\200\177\177\177\200\200\177\177\200\200\202\200\200\200\200\202\204\204\204\204\204\204\202\200\200\200\200\202\202\202\200\200\202\202\201\200\200\202\204\202\201\200\200}y}~\177\177\200\202\202\200\201\200\200\200\200\200\200\200\200\200\201\202\200\177\200\202\200\200\177\177\177\177\177}}\177\200\200\200\202\177\200\177\177\200\200\200\200\200\200\177\177\177\200\177\200\200\177\177\200\200\202\202\202\202\204\202\203\204\202\202\201\200\200\177\200\200\200\177\177\177\177\177\201\202\202\200\200\200\200\200\200\200\200\202\201\202\202\200\202\202\200\200\177\177\201\204\204\204\204\201\200\200\200\200\202\201\200\200\201\202\202\201\200\177\177\177\177}}|}\177\177\200\201\202\200\200\200\200\200\177\177\202\201\202"...,
  0x42341b08 "\200\200\200|~\200\177\200\200\200\200\200\200\200\200\200\200\201\203\203\202\202\201\200\203\203\203\202\201\201\200\200\200\200\200\201\201\201\201\201\201\201\200\200\200\200\200\200\200\200~~~\200\200\201\201\201\200\200\200\200\200\200\201\203\203\203\206\206\206\204\202\201\201\200\201\200\201\200\201\201\201\200\200\---Type <return> to continue, or q <return> to quit---
200\200\200\200\200\200\177\200\200\200\200\201\202\203\203\203\202\203\201\203\202\203\201\200\200\200\201\203\201\201\200\200\200\201\201\201\201\200\200\200\200\200\201\200\200\200\200\200\201\201\201\201\201\200\200\200\201\201\201\200\200\200\201\201\201\201\203\201", '\200' <repeats 16 times>, "\177~~~\200\200\200\201\201\201\201\200\200\200\200\200\201\203\203\203\203\201\200\200\200\200\200\201\201\203\201"...}
        len = 391680
        fnum = 129046
        timecode = 2147513
        buf = (
    unsigned char *) 0x422f2008 "\020\020\020\020\020\020\020\021\022\024\031\e\032\032\e\e\030\026\027\e\034\e\032\031\030\027\031\e\034\026\024\026\036 \034\e\034\032\031\031\032\e\032\031\031\032\032\e\027\030\031\030\026\030\034\034\e\032\034\032\031\027\032\031\027\031\036\037\034\e\031\030\030\030\034\034\034\030\026\027\e\035\e\030\e\031\032\031\035\034\027\030\034\036\e\031\e\034\032\031\032\031\030\030\031\034\035\031\031\e\e\027\030\032\035\032\031\027\027\030\032\032\032\031\030\030\031\e\035\035\e\030\027\031\e\031\030\031\035\e\031\032\031\030\026\031\031\034\031\030\032\036\037\e\030\030\030\031\032\035\034\032\032\032\032\031\032\032\031\031\032\030\030\031\036\e\030\027\e\032\031\030\030\026\031\030\034\034\034\032\034 \037\032\030\032\036\e\030\027"...
        wantkeyframe = false
#5  0x402f7139 in NuppelVideoRecorder::doWriteThread() (this=0x41fcb008)
    at NuppelVideoRecorder.cpp:2592
        frame = {codec = FMT_YV12,
  buf = 0x422f2008 "\020\020\020\020\020\020\020\021\022\024\031\e\032\032\e\e\030\026\027\e\034\e\032\031\030\027\031\e\034\026\024\026\036 \034\e\034\032\031\031\032\e\032\031\031\032\032\e\027\030\031\030\026\030\034\034\e\032\034\032\031\027\032\031\027\031\036\037\034\e\031\030\030\030\034\034\034\030\026\027\e\035\e\030\e\031\032\031\035\034\027\030\034\036\e\031\e\034\032\031\032\031\030\030\031\034\035\031\031\e\e---Type <return> to continue, or q <return> to quit---
\027\030\032\035\032\031\027\027\030\032\032\032\031\030\030\031\e\035\035\e\030\027\031\e\031\030\031\035\e\031\032\031\030\026\031\031\034\031\030\032\036\037\e\030\030\030\031\032\035\034\032\032\032\032\031\032\032\031\031\032\030\030\031\036\e\030\027\e\032\031\030\030\026\031\030\034\034\034\032\034 \037\032\030\032\036\e\030\027"..., height = 480, width = 544, bpp = 1073838428, size = 391680,
  frameNumber = 129046, timecode = 2147513, priv = {0x0, 0x0, 0x0,
    0x4043e2e4 "\210n/@Âl\027@Òl\027@âl\027@òl\027@\002m\027@\022m\027@\"m\027 at 2m\027 at Bm\027 at Rm\027 at bm\027 at rm\027@Щ A\222m\027@¢m\027@²m\027@Âm\027@\020f @\020\211â@òm\027@\002n\027@\022n\027@\"n\027 at 2n\027 at Bn\027 at Rn\027@\032Ð\a\b½!@\202n\027@\222n\027@¢n\027@²n\027@Ân\027@Òn\027@ân\027@òn\027@\002o\027@\022o\027@\"o\027 at 2o\027@\230u\"@Ro\027 at bo\027 at ro\027@Æ~/@\222o\027@\002Â\037@²o\027 at Lç\"@"...},
  qscale_table = 0xb97 <Address 0xb97 out of bounds>, qstride = 1074438918}
        action = ACTION_VIDEO
        firsttimecode = 2147513
#6  0x402f54e9 in NuppelVideoRecorder::WriteThread(void*) (param=0x41fcb008)
    at NuppelVideoRecorder.cpp:1901
        nvr = (NuppelVideoRecorder *) 0x41fcb008
#7  0x410b2e51 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#8  0x410b2ecf in pthread_start_thread_event () from /lib/libpthread.so.0
No symbol table info available.

Thread 15 (Thread 213006 (LWP 20265)):
#0  0x412af3f4 in ioctl () from /lib/libc.so.6
No symbol table info available.
#1  0x4043d190 in __JCR_LIST__ () from /usr/local/lib/libmythtv-0.15.so.0
No symbol table info available.
#2  0x402fbe76 in SpawnEncode(void*) (param=0x41fcb008) at tv_rec.cpp:39
---Type <return> to continue, or q <return> to quit---
        nvr = (class RecorderBase *) 0x41fcb008
#3  0x410b2e51 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#4  0x410b2ecf in pthread_start_thread_event () from /lib/libpthread.so.0
No symbol table info available.

Thread 13 (Thread 180236 (LWP 20263)):
#0  0x41286c36 in nanosleep () from /lib/libc.so.6
No symbol table info available.
#1  0x00000000 in ?? ()
No symbol table info available.

Thread 12 (Thread 163851 (LWP 20261)):
#0  0x410b55f4 in __pthread_sigsuspend () from /lib/libpthread.so.0
No symbol table info available.
#1  0xbe5ffa00 in ?? ()
No symbol table info available.
#2  0x410b53b8 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0
No symbol table info available.
#3  0x410b1f2b in pthread_cond_wait at GLIBC_2.0 () from /lib/libpthread.so.0
No symbol table info available.
#4  0x40e0e3f8 in QWaitCondition::wait(QMutex*, unsigned long) ()
   from /usr/lib/libqt-mt.so.3
No symbol table info available.
#5  0x0807c6f3 in ProcessRequestThread::run() (this=0x80d3fd8) at mainserver.cpp:61
No locals.
#6  0x40b1ef2a in QThreadInstance::start(void*) () from /usr/lib/libqt-mt.so.3
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#7  0x410b2e51 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#8  0x410b2ecf in pthread_start_thread_event () from /lib/libpthread.so.0
No symbol table info available.

Thread 11 (Thread 147466 (LWP 20260)):
#0  0x410b55f4 in __pthread_sigsuspend () from /lib/libpthread.so.0
No symbol table info available.
#1  0xbe7ffa00 in ?? ()
No symbol table info available.
#2  0x410b53b8 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0
No symbol table info available.
#3  0x410b1f2b in pthread_cond_wait at GLIBC_2.0 () from /lib/libpthread.so.0
No symbol table info available.
#4  0x40e0e3f8 in QWaitCondition::wait(QMutex*, unsigned long) ()
   from /usr/lib/libqt-mt.so.3
No symbol table info available.
#5  0x0807c6f3 in ProcessRequestThread::run() (this=0x80d3ee0) at mainserver.cpp:61
No locals.
#6  0x40b1ef2a in QThreadInstance::start(void*) () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#7  0x410b2e51 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#8  0x410b2ecf in pthread_start_thread_event () from /lib/libpthread.so.0
No symbol table info available.

Thread 10 (Thread 131081 (LWP 20259)):
#0  0x410b55f4 in __pthread_sigsuspend () from /lib/libpthread.so.0
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#1  0xbe9ffa00 in ?? ()
No symbol table info available.
#2  0x410b53b8 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0
No symbol table info available.
#3  0x410b1f2b in pthread_cond_wait at GLIBC_2.0 () from /lib/libpthread.so.0
No symbol table info available.
#4  0x40e0e3f8 in QWaitCondition::wait(QMutex*, unsigned long) ()
   from /usr/lib/libqt-mt.so.3
No symbol table info available.
#5  0x0807c6f3 in ProcessRequestThread::run() (this=0x80dcde0) at mainserver.cpp:61
No locals.
#6  0x40b1ef2a in QThreadInstance::start(void*) () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#7  0x410b2e51 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#8  0x410b2ecf in pthread_start_thread_event () from /lib/libpthread.so.0
No symbol table info available.

Thread 9 (Thread 114696 (LWP 20258)):
#0  0x410b55f4 in __pthread_sigsuspend () from /lib/libpthread.so.0
No symbol table info available.
#1  0xbebffa00 in ?? ()
No symbol table info available.
#2  0x410b53b8 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0
No symbol table info available.
#3  0x410b1f2b in pthread_cond_wait at GLIBC_2.0 () from /lib/libpthread.so.0
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#4  0x40e0e3f8 in QWaitCondition::wait(QMutex*, unsigned long) ()
   from /usr/lib/libqt-mt.so.3
No symbol table info available.
#5  0x0807c6f3 in ProcessRequestThread::run() (this=0x80dcd68) at mainserver.cpp:61
No locals.
#6  0x40b1ef2a in QThreadInstance::start(void*) () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#7  0x410b2e51 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#8  0x410b2ecf in pthread_start_thread_event () from /lib/libpthread.so.0
No symbol table info available.

Thread 8 (Thread 98311 (LWP 20257)):
#0  0x410b55f4 in __pthread_sigsuspend () from /lib/libpthread.so.0
No symbol table info available.
#1  0xbedffa00 in ?? ()
No symbol table info available.
#2  0x410b53b8 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0
No symbol table info available.
#3  0x410b1f2b in pthread_cond_wait at GLIBC_2.0 () from /lib/libpthread.so.0
No symbol table info available.
#4  0x40e0e3f8 in QWaitCondition::wait(QMutex*, unsigned long) ()
   from /usr/lib/libqt-mt.so.3
No symbol table info available.
#5  0x0807c6f3 in ProcessRequestThread::run() (this=0x80ddad8) at mainserver.cpp:61
No locals.
#6  0x40b1ef2a in QThreadInstance::start(void*) () from /usr/lib/libqt-mt.so.3
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#7  0x410b2e51 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#8  0x410b2ecf in pthread_start_thread_event () from /lib/libpthread.so.0
No symbol table info available.

Thread 7 (Thread 81926 (LWP 20256)):
#0  0x41286c36 in nanosleep () from /lib/libc.so.6
No symbol table info available.
#1  0x00000000 in ?? ()
No symbol table info available.

Thread 6 (Thread 65541 (LWP 20255)):
#0  0x41286c36 in nanosleep () from /lib/libc.so.6
No symbol table info available.
#1  0x00000000 in ?? ()
No symbol table info available.

Thread 5 (Thread 49156 (LWP 20254)):
#0  0x41286c36 in nanosleep () from /lib/libc.so.6
No symbol table info available.
#1  0x00000000 in ?? ()
No symbol table info available.

Thread 4 (Thread 32771 (LWP 20253)):
#0  0x41286c36 in nanosleep () from /lib/libc.so.6
No symbol table info available.
#1  0x00000014 in ?? ()
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#2  0x40301158 in TVRec::RunTV() (this=0x80da988) at tv_rec.cpp:794
No locals.
#3  0x403010ed in TVRec::EventThread(void*) (param=0x80da988) at tv_rec.cpp:776
        thetv = (TVRec *) 0x80da988
#4  0x410b2e51 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#5  0x410b2ecf in pthread_start_thread_event () from /lib/libpthread.so.0
No symbol table info available.

Thread 3 (Thread 16386 (LWP 20251)):
#0  0x41286c36 in nanosleep () from /lib/libc.so.6
No symbol table info available.
#1  0x00000014 in ?? ()
No symbol table info available.
#2  0x40301158 in TVRec::RunTV() (this=0x80d7480) at tv_rec.cpp:794
No locals.
#3  0x403010ed in TVRec::EventThread(void*) (param=0x80d7480) at tv_rec.cpp:776
        thetv = (TVRec *) 0x80d7480
#4  0x410b2e51 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#5  0x410b2ecf in pthread_start_thread_event () from /lib/libpthread.so.0
No symbol table info available.

Thread 2 (Thread 32769 (LWP 20250)):
#0  0x412ad81a in poll () from /lib/libc.so.6
No symbol table info available.
#1  0x410b2b50 in __pthread_manager () from /lib/libpthread.so.0
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#2  0x410b2d57 in __pthread_manager_event () from /lib/libpthread.so.0
No symbol table info available.

Thread 1 (Thread 16384 (LWP 20228)):
#0  0x412afde1 in select () from /lib/libc.so.6
No symbol table info available.
#1  0x40fc9504 in typeinfo for QMotifStyle () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#2  0x40b3ece8 in QEventLoop::enterLoop() () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#3  0x40b3eb98 in QEventLoop::exec() () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#4  0x40b2b6d1 in QApplication::exec() () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#5  0x0805ef38 in main (argc=1, argv=0xbffffac4) at main.cpp:503
        a = <incomplete type>
        logfile = {static null = {
    static null = <same as static member of an already seen type>, d = 0x80af050,
    static shared_null = 0x80af050}, d = 0x80b5d70, static shared_null = 0x80af050}
        binname = {static null = {
    static null = <same as static member of an already seen type>, d = 0x80af050,
    static shared_null = 0x80af050}, d = 0x80b8100, static shared_null = 0x80af050}
        verboseString = {static null = {
    static null = <same as static member of an already seen type>, d = 0x80af050,
    static shared_null = 0x80af050}, d = 0x80b8140, static shared_null = 0x80af050}
        daemonize = false
        printsched = false
        nosched = false
---Type <return> to continue, or q <return> to quit---
        printexpire = false
        logfd = -1
        pidfs = <incomplete type>
        db = (struct QSqlDatabase *) 0x80c0448
        subthread = (struct QSqlDatabase *) 0x80c0820
        expthread = (struct QSqlDatabase *) 0x80c1f38
        transthread = (struct QSqlDatabase *) 0x80c1fd0
        msdb = (struct QSqlDatabase *) 0x80c0b38
        port = 6543
        statusport = 6544
        myip = {static null = {
    static null = <same as static member of an already seen type>, d = 0x80af050,
    static shared_null = 0x80af050}, d = 0x80d33a8, static shared_null = 0x80af050}
        masterip = {static null = {
    static null = <same as static member of an already seen type>, d = 0x80af050,
    static shared_null = 0x80af050}, d = 0x80d3268, static shared_null = 0x80af050}
        ismaster = true
        runsched = true
        expdb = (struct QSqlDatabase *) 0x80c1f38
        trandb = (struct QSqlDatabase *) 0x80c1fd0
24      {
(gdb)


More information about the mythtv-dev mailing list