[mythtv-users] Segfault in Mythepg

David Vasquez vasqued2 at yahoo.com
Sun Oct 19 15:22:39 EDT 2003


I was trying to get Mythtv 0.11 up and running on a
Shuttle SS40G w/ RH9.  I used Jarod's excellent
documentation and everything seemed to be working
except I was getting some stuttering video.  I
realized that I was using the default video drivers
instead of the SiS drivers and installed the SiS
drivers.  

That took care of my stuttering problem, but then
the EPG generated a SEGFAULT every time I start it up.
 It actually displays the channels across the left
side and the half-hour time increments across the top,
but then SEGFAULTs before it displays any program
information.

Mythbackend generated an 'unknown socket' error but
continued to run.

I don't think I made other changes between the time it
worked and didn't work, but I wouldn't swear to it. 
:-)

I just installed 0.12 (frontend and backend) and it
still SEGFAULT's.  I've listed the original 'unknown
socket' error from the 0.11 backend (because the 0.12
backend no longer generates it) and the backtrace for
mythepg 0.12 below.

I'm a newbie at this so I'm probably missing something
simple.  If I've left out any information that would
be helpful, please let me know.  If anyone has any
ideas or suggestions, I'd appreciate it.

Thanks!
David

***   OUTPUT FROM Mythfrontend (v0.11)   ***

[mythtv at localhost mythtv]$ mythbackend
Starting up as the master server.
Probed: /dev/video0 - Composite 0
Probed: /dev/video0 - Composite 1
Probed: /dev/video0 - Composite 2
Probed: /dev/video0 - Composite 3
Probed: /dev/video0 - Tuner 0
Probed: /dev/video0 - Composite 4
Probed: /dev/video0 - S-Video 0
Probed: /dev/video0 - S-Video 1
Probed: /dev/video0 - S-Video 2
Probed: /dev/video0 - S-Video 3
2003-10-18 08:50:39 unknown socket


***   BACKTRACE FROM Mythepg (v0.12)   ***

[mythtv at localhost mythepg]$ gdb ./mythepg
GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General
Public License, and 
you are
welcome to change it and/or distribute copies of it
under certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show
warranty" for 
details.
This GDB was configured as "i386-redhat-linux-gnu"...
(gdb) handle SIGPIPE nostop
Signal        Stop      Print   Pass to program
Description
SIGPIPE       No        Yes     Yes             Broken
pipe
(gdb) run
Starting program: 
/home/mythtv/sources/myth/v12/mythtv-0.12/programs/mythepg/mythepg
[New Thread 1087181728 (LWP 2815)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1087181728 (LWP 2815)]
0x420744f5 in _int_malloc () from /lib/tls/libc.so.6
(gdb) thread apply all bt full

Thread 1 (Thread 1087181728 (LWP 2815)):
#0  0x420744f5 in _int_malloc () from
/lib/tls/libc.so.6
No symbol table info available.
#1  0x4207360b in malloc () from /lib/tls/libc.so.6
No symbol table info available.
#2  0x405af37b in QImage::create(int, int, int, int,
QImage::Endian) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
No symbol table info available.
#3  0x4053ef61 in QPixmap::convertToImage() const ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
No symbol table info available.
#4  0x400f731f in UIGuideType::Blender(QPainter*,
QRect, int, QString) 
(
    this=0x8455808, dr=0xbfffd210, area=
      {x1 = 127, y1 = 1, x2 = 501, y2 = 58}, num=101,
force=
      {static null = {static null = <same as static
member of an 
already seen type>, d = 0x838a2c8, static shared_null
= 0x838a2c8}, d = 
0x8466f88, static shared_null = 0x838a2c8}) at
uitypes.cpp:812
        color = {static null = {
    static null = <same as static member of an already
seen type>,
    d = 0x838a2c8, static shared_null = 0x838a2c8}, d
= 0x843ab28,
  static shared_null = 0x838a2c8}
        alpha = 96
---Type <return> to continue, or q <return> to quit---
        data = (unsigned int *) 0x0
        br = {<Qt> = {static color0 = @0x409ebe20,
    static color1 = @0x409ebe28, static black =
@0x409ebe30,
    static white = @0x409ebe38, static darkGray =
@0x409ebe40,
    static gray = @0x409ebe48, static lightGray =
@0x409ebe50,
    static red = @0x409ebe58, static green =
@0x409ebe60,
    static blue = @0x409ebe68, static cyan =
@0x409ebe70,
    static magenta = @0x409ebe78, static yellow =
@0x409ebe80,
    static darkRed = @0x409ebe88, static darkGreen =
@0x409ebe90,
    static darkBlue = @0x409ebe98, static darkCyan =
@0x409ebea0,
    static darkMagenta = @0x409ebea8, static
darkYellow = @0x409ebeb0,
    static arrowCursor = @0x409ea800, static
upArrowCursor = 
@0x409ea804,
    static crossCursor = @0x409ea808, static
waitCursor = @0x409ea80c,
    static ibeamCursor = @0x409ea810, static
sizeVerCursor = 
@0x409ea814,
    static sizeHorCursor = @0x409ea818,
    static sizeBDiagCursor = @0x409ea81c,
    static sizeFDiagCursor = @0x409ea820,
    static sizeAllCursor = @0x409ea824, static
blankCursor = 
@0x409ea828,
    static splitVCursor = @0x409ea830, static
splitHCursor = 
@0x409ea82c,
    static pointingHandCursor = @0x409ea834,
    static forbiddenCursor = @0x409ea838,
    static whatsThisCursor = @0x409ea83c}, data =
0x8462560}
        blendcolor = 1622159456
---Type <return> to continue, or q <return> to quit---
        orig = <incomplete type>
        bgimage = {data = 0x8467418}
#5  0x400f7097 in
UIGuideType::drawBackground(QPainter*, int) (
    this=0x8455808, dr=0xbfffd210, num=101) at
uitypes.cpp:784
        breakin = 1
        area = {x1 = 127, y1 = 1, x2 = 501, y2 = 58}
#6  0x400f459c in UIGuideType::Draw(QPainter*, int,
int) 
(this=0x8455808,
    dr=0xbfffd210, drawlayer=4, context=0) at
uitypes.cpp:502
        msg = {static null = {
    static null = <same as static member of an already
seen type>,
    d = 0x838a2c8, static shared_null = 0x838a2c8}, d
= 0x84671f8,
  static shared_null = 0x838a2c8}
        end = {node = 0x8455938}
        i = 101
        it = {node = 0x84494f8}
        start = {node = 0x8449318}
#7  0x400f1105 in LayerSet::Draw(QPainter*, int, int)
(this=0x8454e10,
    dr=0xbfffd210, drawlayer=4, context=0) at
uitypes.cpp:66
        type = (class UIType *) 0x8455808
        i = 
{<iterator<std::random_access_iterator_tag,UIType*,int,UIType**,UIType*&>>
= {<No data fields>}, _M_current = 0x840efc0}
#8  0x0807009f in GuideGrid::paintPrograms(QPainter*)
(this=0x842d380,
    p=0xbfffd3b0) at guidegrid.cpp:1004
---Type <return> to continue, or q <return> to quit---
        pr = {x1 = 114, y1 = 164, x2 = 629, y2 = 471}
        pix = <incomplete type>
        tmp = {<Qt> = {static color0 = @0x409ebe20,
    static color1 = @0x409ebe28, static black =
@0x409ebe30,
    static white = @0x409ebe38, static darkGray =
@0x409ebe40,
    static gray = @0x409ebe48, static lightGray =
@0x409ebe50,
    static red = @0x409ebe58, static green =
@0x409ebe60,
    static blue = @0x409ebe68, static cyan =
@0x409ebe70,
    static magenta = @0x409ebe78, static yellow =
@0x409ebe80,
    static darkRed = @0x409ebe88, static darkGreen =
@0x409ebe90,
    static darkBlue = @0x409ebe98, static darkCyan =
@0x409ebea0,
    static darkMagenta = @0x409ebea8, static
darkYellow = @0x409ebeb0,
    static arrowCursor = @0x409ea800, static
upArrowCursor = 
@0x409ea804,
    static crossCursor = @0x409ea808, static
waitCursor = @0x409ea80c,
    static ibeamCursor = @0x409ea810, static
sizeVerCursor = 
@0x409ea814,
    static sizeHorCursor = @0x409ea818,
    static sizeBDiagCursor = @0x409ea81c,
    static sizeFDiagCursor = @0x409ea820,
    static sizeAllCursor = @0x409ea824, static
blankCursor = 
@0x409ea828,
    static splitVCursor = @0x409ea830, static
splitHCursor = 
@0x409ea82c,
    static pointingHandCursor = @0x409ea834,
    static forbiddenCursor = @0x409ea838,
    static whatsThisCursor = @0x409ea83c}, flags =
40969, d = 0x0,
---Type <return> to continue, or q <return> to quit---
  pdev = 0xbfffd350, bg_col = {static color_init =
true,
    static globals_init = true, static colormodel =
d8, d = {
      argb = 4294967295, d8 = {argb = 4294967295, pix
= 1 '\001',
        invalid = 0 '\0', dirty = 0 '\0', direct = 0
'\0'}, d32 = {
        argb = 4294967295, pix = 1}}}, bg_mode = 0
'\0', rop = 0 '\0',
  pu = 0 '\0', bro = {xp = 0, yp = 0}, cfont = {d =
0x84456a0},
  pfont = 0x0, cpen = {<Qt> = {static color0 =
@0x409ebe20,
      static color1 = @0x409ebe28, static black =
@0x409ebe30,
      static white = @0x409ebe38, static darkGray =
@0x409ebe40,
      static gray = @0x409ebe48, static lightGray =
@0x409ebe50,
      static red = @0x409ebe58, static green =
@0x409ebe60,
      static blue = @0x409ebe68, static cyan =
@0x409ebe70,
      static magenta = @0x409ebe78, static yellow =
@0x409ebe80,
      static darkRed = @0x409ebe88, static darkGreen =
@0x409ebe90,
      static darkBlue = @0x409ebe98, static darkCyan =
@0x409ebea0,
      static darkMagenta = @0x409ebea8, static
darkYellow = 
@0x409ebeb0,
      static arrowCursor = @0x409ea800,
      static upArrowCursor = @0x409ea804,
      static crossCursor = @0x409ea808, static
waitCursor = 
@0x409ea80c,
      static ibeamCursor = @0x409ea810,
      static sizeVerCursor = @0x409ea814,
      static sizeHorCursor = @0x409ea818,
      static sizeBDiagCursor = @0x409ea81c,
---Type <return> to continue, or q <return> to quit---
      static sizeFDiagCursor = @0x409ea820,
      static sizeAllCursor = @0x409ea824,
      static blankCursor = @0x409ea828, static
splitVCursor = 
@0x409ea830,
      static splitHCursor = @0x409ea82c,
      static pointingHandCursor = @0x409ea834,
      static forbiddenCursor = @0x409ea838,
      static whatsThisCursor = @0x409ea83c}, data =
0x8467000},
  cbrush = {<Qt> = {static color0 = @0x409ebe20,
      static color1 = @0x409ebe28, static black =
@0x409ebe30,
      static white = @0x409ebe38, static darkGray =
@0x409ebe40,
      static gray = @0x409ebe48, static lightGray =
@0x409ebe50,
      static red = @0x409ebe58, static green =
@0x409ebe60,
      static blue = @0x409ebe68, static cyan =
@0x409ebe70,
      static magenta = @0x409ebe78, static yellow =
@0x409ebe80,
      static darkRed = @0x409ebe88, static darkGreen =
@0x409ebe90,
      static darkBlue = @0x409ebe98, static darkCyan =
@0x409ebea0,
      static darkMagenta = @0x409ebea8, static
darkYellow = 
@0x409ebeb0,
      static arrowCursor = @0x409ea800,
      static upArrowCursor = @0x409ea804,
      static crossCursor = @0x409ea808, static
waitCursor = 
@0x409ea80c,
      static ibeamCursor = @0x409ea810,
      static sizeVerCursor = @0x409ea814,
      static sizeHorCursor = @0x409ea818,
---Type <return> to continue, or q <return> to quit---
      static sizeBDiagCursor = @0x409ea81c,
      static sizeFDiagCursor = @0x409ea820,
      static sizeAllCursor = @0x409ea824,
      static blankCursor = @0x409ea828, static
splitVCursor = 
@0x409ea830,
      static splitHCursor = @0x409ea82c,
      static pointingHandCursor = @0x409ea834,
      static forbiddenCursor = @0x409ea838,
      static whatsThisCursor = @0x409ea83c}, data =
0x8466ac8}, crgn = 
{
    data = 0x8462030}, tabstops = 0, tabarray = 0x0,
tabarraylen = 0,
  block_ext = false, wx = 0, wy = 0, ww = 516, wh =
308, vx = 0, vy = 
0,
  vw = 516, vh = 308, wxmat = {_m11 = 1, _m12 = 0,
_m21 = 0, _m22 = 1,
    _dx = 0, _dy = 0}, xmat = {_m11 = 1, _m12 = 0,
_m21 = 0, _m22 = 1,
    _dx = 0, _dy = 0}, ixmat = {_m11 = 1, _m12 = 0,
_m21 = 0, _m22 = 1,
    _dx = 0, _dy = 0}, txop = 0, txinv = false, penRef
= 0x0,
  brushRef = 0x0, ps_stack = 0x0, wm_stack = 0x0, dpy
= 0x838e890,
  scrn = 0, hd = 35651667, rendhd = 0, gc = 0x8464440,
  gc_brush = 0x84676e8, curPt = {xp = 0, yp = 0},
clip_serial = 12}
        container = (LayerSet *) 0x8454e10
#9  0x0806e972 in GuideGrid::paintEvent(QPaintEvent*)
(this=0x842d380,
    e=0xbfffd6f0) at guidegrid.cpp:814
        r = {x1 = 0, y1 = 0, x2 = 639, y2 = 479}
        p = {<Qt> = {static color0 = @0x409ebe20,
    static color1 = @0x409ebe28, static black =
@0x409ebe30,
---Type <return> to continue, or q <return> to quit---
    static white = @0x409ebe38, static darkGray =
@0x409ebe40,
    static gray = @0x409ebe48, static lightGray =
@0x409ebe50,
    static red = @0x409ebe58, static green =
@0x409ebe60,
    static blue = @0x409ebe68, static cyan =
@0x409ebe70,
    static magenta = @0x409ebe78, static yellow =
@0x409ebe80,
    static darkRed = @0x409ebe88, static darkGreen =
@0x409ebe90,
    static darkBlue = @0x409ebe98, static darkCyan =
@0x409ebea0,
    static darkMagenta = @0x409ebea8, static
darkYellow = @0x409ebeb0,
    static arrowCursor = @0x409ea800, static
upArrowCursor = 
@0x409ea804,
    static crossCursor = @0x409ea808, static
waitCursor = @0x409ea80c,
    static ibeamCursor = @0x409ea810, static
sizeVerCursor = 
@0x409ea814,
    static sizeHorCursor = @0x409ea818,
    static sizeBDiagCursor = @0x409ea81c,
    static sizeFDiagCursor = @0x409ea820,
    static sizeAllCursor = @0x409ea824, static
blankCursor = 
@0x409ea828,
    static splitVCursor = @0x409ea830, static
splitHCursor = 
@0x409ea82c,
    static pointingHandCursor = @0x409ea834,
    static forbiddenCursor = @0x409ea838,
    static whatsThisCursor = @0x409ea83c}, flags =
33281, d = 0x0,
  pdev = 0x842d3a8, bg_col = {static color_init =
true,
    static globals_init = true, static colormodel =
d8, d = {
      argb = 4282541972, d8 = {argb = 4282541972, pix
= 145 '\221',
        invalid = 0 '\0', dirty = 0 '\0', direct = 0
'\0'}, d32 = {
---Type <return> to continue, or q <return> to quit---
        argb = 4282541972, pix = 145}}}, bg_mode = 0
'\0', rop = 0 
'\0',
  pu = 0 '\0', bro = {xp = 0, yp = 0}, cfont = {d =
0x8419650},
  pfont = 0x0, cpen = {<Qt> = {static color0 =
@0x409ebe20,
      static color1 = @0x409ebe28, static black =
@0x409ebe30,
      static white = @0x409ebe38, static darkGray =
@0x409ebe40,
      static gray = @0x409ebe48, static lightGray =
@0x409ebe50,
      static red = @0x409ebe58, static green =
@0x409ebe60,
      static blue = @0x409ebe68, static cyan =
@0x409ebe70,
      static magenta = @0x409ebe78, static yellow =
@0x409ebe80,
      static darkRed = @0x409ebe88, static darkGreen =
@0x409ebe90,
      static darkBlue = @0x409ebe98, static darkCyan =
@0x409ebea0,
      static darkMagenta = @0x409ebea8, static
darkYellow = 
@0x409ebeb0,
      static arrowCursor = @0x409ea800,
      static upArrowCursor = @0x409ea804,
      static crossCursor = @0x409ea808, static
waitCursor = 
@0x409ea80c,
      static ibeamCursor = @0x409ea810,
      static sizeVerCursor = @0x409ea814,
      static sizeHorCursor = @0x409ea818,
      static sizeBDiagCursor = @0x409ea81c,
      static sizeFDiagCursor = @0x409ea820,
      static sizeAllCursor = @0x409ea824,
      static blankCursor = @0x409ea828, static
splitVCursor = 
@0x409ea830,
      static splitHCursor = @0x409ea82c,
---Type <return> to continue, or q <return> to quit---
      static pointingHandCursor = @0x409ea834,
      static forbiddenCursor = @0x409ea838,
      static whatsThisCursor = @0x409ea83c}, data =
0x8464198},
  cbrush = {<Qt> = {static color0 = @0x409ebe20,
      static color1 = @0x409ebe28, static black =
@0x409ebe30,
      static white = @0x409ebe38, static darkGray =
@0x409ebe40,
      static gray = @0x409ebe48, static lightGray =
@0x409ebe50,
      static red = @0x409ebe58, static green =
@0x409ebe60,
      static blue = @0x409ebe68, static cyan =
@0x409ebe70,
      static magenta = @0x409ebe78, static yellow =
@0x409ebe80,
      static darkRed = @0x409ebe88, static darkGreen =
@0x409ebe90,
      static darkBlue = @0x409ebe98, static darkCyan =
@0x409ebea0,
      static darkMagenta = @0x409ebea8, static
darkYellow = 
@0x409ebeb0,
      static arrowCursor = @0x409ea800,
      static upArrowCursor = @0x409ea804,
      static crossCursor = @0x409ea808, static
waitCursor = 
@0x409ea80c,
      static ibeamCursor = @0x409ea810,
      static sizeVerCursor = @0x409ea814,
      static sizeHorCursor = @0x409ea818,
      static sizeBDiagCursor = @0x409ea81c,
      static sizeFDiagCursor = @0x409ea820,
      static sizeAllCursor = @0x409ea824,
      static blankCursor = @0x409ea828, static
splitVCursor = 
@0x409ea830,
---Type <return> to continue, or q <return> to quit---
      static splitHCursor = @0x409ea82c,
      static pointingHandCursor = @0x409ea834,
      static forbiddenCursor = @0x409ea838,
      static whatsThisCursor = @0x409ea83c}, data =
0x83ff698}, crgn = 
{
    data = 0x8462030}, tabstops = 0, tabarray = 0x0,
tabarraylen = 0,
  block_ext = false, wx = 0, wy = 0, ww = 640, wh =
480, vx = 0, vy = 
0,
  vw = 640, vh = 480, wxmat = {_m11 = 1, _m12 = 0,
_m21 = 0, _m22 = 1,
    _dx = 0, _dy = 0}, xmat = {_m11 = 1, _m12 = 0,
_m21 = 0, _m22 = 1,
    _dx = 0, _dy = 0}, ixmat = {_m11 = 1, _m12 = 0,
_m21 = 0, _m22 = 1,
    _dx = 0, _dy = 0}, txop = 0, txinv = false, penRef
= 0x8397dd8,
  brushRef = 0x8397d78, ps_stack = 0x0, wm_stack =
0x0, dpy = 
0x838e890,
  scrn = 0, hd = 35651600, rendhd = 0, gc = 0x8463a88,
  gc_brush = 0x8464060, curPt = {xp = 0, yp = 0},
clip_serial = 2}
#10 0x4061413d in QWidget::event(QEvent*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
No symbol table info available.
#11 0x40581f24 in
QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
No symbol table info available.
#12 0x40581b19 in QApplication::notify(QObject*,
QEvent*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
No symbol table info available.
#13 0x4052a75e in
QETWidget::translatePaintEvent(_XEvent const*) ()
---Type <return> to continue, or q <return> to quit---
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
No symbol table info available.
#14 0x4052619c in
QApplication::x11ProcessEvent(_XEvent*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
No symbol table info available.
#15 0x4053abda in QEventLoop::processEvents(unsigned)
()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
No symbol table info available.
#16 0x40595cf6 in QEventLoop::enterLoop() ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
No symbol table info available.
#17 0x405821b1 in QApplication::enter_loop() ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
No symbol table info available.
#18 0x4012d2f5 in MythDialog::exec() (this=0x842d380)
    at mythdialogs.cpp:280
        res = 1074975354
#19 0x08067af0 in RunProgramGuide(QString, bool, TV*)
(startchannel=
      {static null = {static null = <same as static
member of an 
already seen type>, d = 0x838a2c8, static shared_null
= 0x838a2c8}, d = 
0x8414a50, static shared_null = 0x838a2c8},
thread=false, player=0x0) at 
guidegrid.cpp:54
        chanstr = {static null = {
    static null = <same as static member of an already
seen type>,
---Type <return> to continue, or q <return> to quit---
    d = 0x838a2c8, static shared_null = 0x838a2c8}, d
= 0xbfffdb90,
  static shared_null = 0x838a2c8}
        gg = (class GuideGrid *) 0x842d380
#20 0x0806775c in main (argc=1, argv=0xbfffdc74) at
main.cpp:40
        a = <incomplete type>
        db = (struct QSqlDatabase *) 0x840b5c0
        startchannel = {static null = {
    static null = <same as static member of an already
seen type>,
    d = 0x838a2c8, static shared_null = 0x838a2c8}, d
= 0x8414a50,
  static shared_null = 0x838a2c8}
        mainWindow = (class MythMainWindow *)
0x8415420
        chanstr = {static null = {
    static null = <same as static member of an already
seen type>,
    d = 0x838a2c8, static shared_null = 0x838a2c8}, d
= 0x838a2c8,
  static shared_null = 0x838a2c8}
        chan = 1094713344
#21 0x420156a4 in __libc_start_main () from
/lib/tls/libc.so.6
No symbol table info available.


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com


More information about the mythtv-users mailing list