[mythtv] Backend segfault - backtrace attached

mark fairlane at springcom.com
Tue Aug 10 17:47:32 EDT 2004


Been having very frequent crashes on mythbackend.  Only can get
2-5 hours uptime before the segfaults.  WAF is going down the tubes.

Backend and frontend on same machine, garden variety, good quality
hardware.
AMD 2500
512MB ram
KT400A chipset
Mandrake 9.1 
Have not dropped the database for a very long time.
I have over 500 channels, I'm sure the db is very large.

I ran mythbackend from a ssh shell to get this backtrace:  That's the only 
deviation from normal, and the behavior was the same.  

Backtrace:

Thread 54 (Thread 852021 (LWP 27224)):
#0  0x41398ef1 in select () from /lib/i686/libc.so.6
No symbol table info available.
#1  0x404b71d4 in __JCR_LIST__ () from /usr/local/lib/libmythtv-0.15.so.0
No symbol table info available.
#2  0x4033363e in NuppelVideoRecorder::VbiThread(void*) (param=0x81dbda8)
    at NuppelVideoRecorder.cpp:1922
        nvr = (NuppelVideoRecorder *) 0x81dbda8
#3  0x4119a811 in pthread_start_thread () from /lib/i686/libpthread.so.0
No symbol table info available.
#4  0x4119a915 in pthread_start_thread_event () from /lib/i686/libpthread.so.0
No symbol table info available.
 
Thread 53 (Thread 835636 (LWP 27223)):
#0  0x4119f7cb in read () from /lib/i686/libpthread.so.0
No symbol table info available.
#1  0x404b71d4 in __JCR_LIST__ () from /usr/local/lib/libmythtv-0.15.so.0
No symbol table info available.
#2  0x4033360c in NuppelVideoRecorder::AudioThread(void*) (param=0x81dbda8)
    at NuppelVideoRecorder.cpp:1913
        nvr = (NuppelVideoRecorder *) 0x81dbda8
#3  0x4119a811 in pthread_start_thread () from /lib/i686/libpthread.so.0
No symbol table info available.
#4  0x4119a915 in pthread_start_thread_event () from /lib/i686/libpthread.so.0
No symbol table info available.
 
Thread 52 (Thread 819251 (LWP 27222)):
#0  mpeg4_encode_picture_header (s=0x83cd520, picture_number=44682)
    at bswap.h:24
        time_incr = -4194239
        time_div = -4194239
        time_mod = 2137
#1  0x40530676 in encode_picture (s=0x83cd520, picture_number=44682)
    at mpegvideo.c:4777
        i = 1
#2  0x4052b23a in MPV_encode_picture (avctx=0x8149760, buf=0x5711b008 "",
    buf_size=391680, data=0x82eff64) at mpegvideo.c:2124
        s = (MpegEncContext *) 0x83cd520
        pic_arg = (AVFrame *) 0x82eff64
        i = 1
        stuffing_count = 0
#3  0x40524dcd in avcodec_encode_video (avctx=0x8149760, buf=0x5711b008 "",
    buf_size=391680, pict=0x82eff64) at utils.c:468
        ret = -1
#4  0x403378aa in NuppelVideoRecorder::WriteVideo(VideoFrame_*, bool, bool) (
    this=0x81dbda8, frame=0x5799aa1c, skipsync=false, forcekey=false)
    at NuppelVideoRecorder.cpp:3248
        tmp = 0
        r = 0
        out_len = 1064979
        frameheader = {frametype = 0 '\0', comptype = 0 '\0',
  keyframe = 23 '\027', filters = 0 '\0', timecode = 0, packetlength = 0}
        xaa = 51
        freecount = 50
        compressthis = 1
        raw = 0
        timeperframe = 40
        planes = {
  0x46bd5008 
"\020\020\020\020\020\020\020\020\023\020\021\021\021\020\021\021\020\020\020\021\020\020\021\022\021\020\020\020\020\020\020\020\020\022\020\021\020\022\021\021\020\021\020\022\020\020\020\022\022", 
'\020' <repeats 11 times>,
"\021\021\020\021\020\022\020\022\020\021\021\020\020\020\022\020\020\020\020\020\021\020\021\020\021\021\020\021\020\021\021\020\021\021\020\022\020\020\020\020\022\020\020\020\021\020\022\021\022\021\022\020\021\021\020\021\020\020\021\021\022\021\022\020\020\020\020\020\020\021\020\020\021\020\022\020\022\020\021\020\021\022\022\020\020\021\020\022\021\020\020\020\020\020\020\020\022\021\022\020\022\020\021\020\022\020\022\020\020\020\020\021\021\020\021\021\021\021\020\022\021\020\020\020\022\022\021\020\022\020\020\020\022\020\020\020\020\020\020\02
0"...,
  0x46c14c08 
"\200\200~~\200\200\177\200\200\200\200\200\200\200\200\200\177\200\200\177", 
'\200' <repeats 12 times>, 
"\202\201\202\200\200\200\200\200\200\200\200\200\202\202\201\201\200\200\200\200\200\177\200\200\202\201", 
'\200' <repeats 11 times>, 
"\202\200\200\200\200\200\200\200\200\202\200\200\200\200\200\200\200\202\201\202", 
'\200' <repeats 20 times>, 
"\202\200\200\200\200\200\177\200\202\200\202\202\200\200\200\200\200\200\200\201\202\202\202\201\200\200~\200\200\200\200\200\200\200\200\200\177\200\200\200\200\200\200~\200\200\177\177", 
'\200' <repeats 14 times>, 
"\202\201\201\200\200\200\202\202\200\200\200\202\201\202\202", '\200' 
<repeats 14 times>...,
  0x46c24b08 "\200\200\200\200\202\202", '\200' <repeats 50 times>, 
"\202\201\201\202\200\200\200\200\201\202\202", '\200' <repeats 21 times>, 
"\201\202\202\202\201\200\200\200\200\200\200\200\202\202\201", '\200' 
<repeats 12 times>, 
"\177\177\200\200\200\200\200\200\200\200\200\177\200\200~", '\200' <repeats 
12 times>, 
"\202\201\202\200\200\200\200\201\201\202\202\200\202\202\201\202\200\200\177", 
'\200' <repeats 22 times>, "\177\200\202\202", '\200' <repeats 13 times>...}
        len = 391680
        fnum = 89868
        timecode = 1493713
        buf = (
    unsigned char *) 0x46bd5008 
"\020\020\020\020\020\020\020\020\023\020\021\021\021\020\021\021\020\020\020\021\020\020\021\022\021\020\020\020\020\020\020\020\020\022\020\021\020\022\021\021\020\021\020\022\020\020\020\022\022", 
'\020' <repeats 11 times>, 
"\021\021\020\021\020\022\020\022\020\021\021\020\020\020\022\020\020\020\020\020\021\020\021\020\021\021\020\021\020\021\021\020\021\021\020\022\020\020\020\020\022\020\020\020\021\020\022\021\022\021\022\020\021\021\020\021\020\020\021\021\022\021\022\020\020\020\020\020\020\021\020\020\021\020\022\020\022\020\021\020\021\022\022\020\020\021\020\022\021\020\020\020\020\020\020\020\022\021\022\020\022\020\021\020\022\020\022\020\020\020\020\021\021\020\021\021\021\021\020\022\021\020\020\020\022\022\021\020\022\020\020\020\022\020\020\020\020\020\020\020"...
        wantkeyframe = false
#5  0x403370a2 in NuppelVideoRecorder::doWriteThread() (this=0x81dbda8)
    at NuppelVideoRecorder.cpp:3085
        frame = {codec = FMT_YV12,
  buf = 0x46bd5008 
"\020\020\020\020\020\020\020\020\023\020\021\021\021\020\021\021\020\020\020\021\020\020\021\022\021\020\020\020\020\020\020\020\020\022\020\021\020\022\021\021\020\021\020\022\020\020\020\022\022", 
'\020' <repeats 11 times>, 
"\021\021\020\021\020\022\020\022\020\021\021\020\020\020\022\020\020\020\020\020\021\020\021\020\021\021\020\021\020\021\021\020\021\021\020\022\020\020\020\020\022\020\020\020\021\020\022\021\022\021\022\020\021\021\020\021\020\020\021\021\022\021\022\020\020\020\020\020\020\021\020\020\021\020\022\020\022\020\021\020\021\022\022\020\020\021\020\022\021\020\020\020\020\020\020\020\022\021\022\020\022\020\021\020\022\020\022\020\020\020\020\021\021\020\021\021\021\021\020\022\021\020\020\020\022\022\021\020\022\020\020\020\022\020\020\020\020\020\020\020"..., 
height = 480, width = 544, bpp = 0, size = 391680,
  frameNumber = 89868, timecode = 1493713, priv = {0x0, 0x0, 0x0, 0x0},
  qscale_table = 0x0, qstride = 0}
        action = ACTION_VIDEO
        firsttimecode = 1493713
#6  0x403335da in NuppelVideoRecorder::WriteThread(void*) (param=0x81dbda8)
    at NuppelVideoRecorder.cpp:1904
        nvr = (NuppelVideoRecorder *) 0x81dbda8
#7  0x4119a811 in pthread_start_thread () from /lib/i686/libpthread.so.0
No symbol table info available.
#8  0x4119a915 in pthread_start_thread_event () from /lib/i686/libpthread.so.0
No symbol table info available.
 
Thread 51 (Thread 802866 (LWP 27221)):
#0  0x413986e4 in ioctl () from /lib/i686/libc.so.6
No symbol table info available.
#1  0x404b71d4 in __JCR_LIST__ () from /usr/local/lib/libmythtv-0.15.so.0
No symbol table info available.
#2  0x4033be22 in SpawnEncode(void*) (param=0x81dbda8) at tv_rec.cpp:40
        nvr = (class RecorderBase *) 0x81dbda8
#3  0x4119a811 in pthread_start_thread () from /lib/i686/libpthread.so.0
No symbol table info available.
#4  0x4119a915 in pthread_start_thread_event () from /lib/i686/libpthread.so.0
No symbol table info available.
 
Thread 50 (Thread 786481 (LWP 27220)):
#0  0x4136fbe6 in nanosleep () from /lib/i686/libc.so.6
No symbol table info available.
#1  0x00000000 in ?? ()
No symbol table info available.
 
Thread 12 (Thread 163851 (LWP 26949)):
#0  0x412ea568 in sigsuspend () from /lib/i686/libc.so.6
No symbol table info available.
#1  0x4119c478 in __pthread_wait_for_restart_signal ()
   from /lib/i686/libpthread.so.0
No symbol table info available.
#2  0x41198c5b in pthread_cond_wait at GLIBC_2.0 () from 
/lib/i686/libpthread.so.0
No symbol table info available.
 
Thread 11 (Thread 147466 (LWP 26948)):
#0  0x412ea568 in sigsuspend () from /lib/i686/libc.so.6
No symbol table info available.
#1  0x4119c478 in __pthread_wait_for_restart_signal ()
   from /lib/i686/libpthread.so.0
No symbol table info available.
#2  0x41198c5b in pthread_cond_wait at GLIBC_2.0 () from 
/lib/i686/libpthread.so.0
No symbol table info available.
 
Thread 10 (Thread 131081 (LWP 26947)):
#0  0x412ea568 in sigsuspend () from /lib/i686/libc.so.6
No symbol table info available.
#1  0x4119c478 in __pthread_wait_for_restart_signal ()
   from /lib/i686/libpthread.so.0
No symbol table info available.
#2  0x41198c5b in pthread_cond_wait at GLIBC_2.0 () from 
/lib/i686/libpthread.so.0
No symbol table info available.
 
Thread 9 (Thread 114696 (LWP 26946)):
#0  0x412ea568 in sigsuspend () from /lib/i686/libc.so.6
No symbol table info available.
#1  0x4119c478 in __pthread_wait_for_restart_signal ()
   from /lib/i686/libpthread.so.0
No symbol table info available.
#2  0x41198c5b in pthread_cond_wait at GLIBC_2.0 () from 
/lib/i686/libpthread.so.0
No symbol table info available.
 
Thread 8 (Thread 98311 (LWP 26945)):
#0  0x412ea568 in sigsuspend () from /lib/i686/libc.so.6
No symbol table info available.
#1  0x4119c478 in __pthread_wait_for_restart_signal ()
   from /lib/i686/libpthread.so.0
No symbol table info available.
#2  0x41198c5b in pthread_cond_wait at GLIBC_2.0 () from 
/lib/i686/libpthread.so.0
No symbol table info available.
 
Thread 7 (Thread 81926 (LWP 26944)):
#0  0x4136fbe6 in nanosleep () from /lib/i686/libc.so.6
No symbol table info available.
#1  0x00000000 in ?? ()
No symbol table info available.
 
Thread 6 (Thread 65541 (LWP 26943)):
#0  0x4136fbe6 in nanosleep () from /lib/i686/libc.so.6
No symbol table info available.
#1  0x00000000 in ?? ()
No symbol table info available.
 
Thread 5 (Thread 49156 (LWP 26942)):
#0  0x4136fbe6 in nanosleep () from /lib/i686/libc.so.6
No symbol table info available.
#1  0x00000000 in ?? ()
No symbol table info available.
 
Thread 4 (Thread 32771 (LWP 26941)):
#0  0x4136fbe6 in nanosleep () from /lib/i686/libc.so.6
No symbol table info available.
#1  0x00000000 in ?? ()
No symbol table info available.
 
Thread 3 (Thread 16386 (LWP 26940)):
#0  0x4136fbe6 in nanosleep () from /lib/i686/libc.so.6
No symbol table info available.
#1  0x00000001 in ?? ()
No symbol table info available.
#2  0x403415b1 in TVRec::RunTV() (this=0x80de100) at tv_rec.cpp:816
No locals.
#3  0x4034153e in TVRec::EventThread(void*) (param=0x80de100) at 
tv_rec.cpp:798
        thetv = (TVRec *) 0x80de100
#4  0x4119a811 in pthread_start_thread () from /lib/i686/libpthread.so.0
No symbol table info available.
#5  0x4119a915 in pthread_start_thread_event () from /lib/i686/libpthread.so.0
No symbol table info available.
 
Thread 2 (Thread 32769 (LWP 26939)):
#0  0x41397537 in poll () from /lib/i686/libc.so.6
        thetv = (TVRec *) 0x80de100
#4  0x4119a811 in pthread_start_thread () from /lib/i686/libpthread.so.0
No symbol table info available.
#5  0x4119a915 in pthread_start_thread_event () from /lib/i686/libpthread.so.0
No symbol table info available.
 
Thread 2 (Thread 32769 (LWP 26939)):
#0  0x41397537 in poll () from /lib/i686/libc.so.6
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#1  0x4119996e in __pthread_manager () from /lib/i686/libpthread.so.0
No symbol table info available.
#2  0x41199bbb in __pthread_manager_event () from /lib/i686/libpthread.so.0
No symbol table info available.
 
Thread 1 (Thread 16384 (LWP 26928)):
#0  0x41398ef1 in select () from /lib/i686/libc.so.6
No symbol table info available.
#1  0x41188064 in typeinfo for QMotifStyle ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
No symbol table info available.
Cannot access memory at address 0x13
24      {

(gdb)







More information about the mythtv-dev mailing list