[mythtv] segfault of mythfrontend and mythtv-setup under Xvnc

mythtv at proberto.com mythtv at proberto.com
Sat Jun 30 06:58:32 UTC 2007


 hi Daniel,

  is the appended info sufficient, or should i do the whole "
./configure --compile-type=debug ;  ... " thing?

# MYTHCONFDIR=~/.mythtv-nolirc LD_LIBRARY_PATH=/usr/local/myth13773/lib
DISPLAY=:1 gdb /usr/local/myth13773/bin/mythfrontend &
... selected a recording to watch and pressed ENTER ...
...
shortened version: (see end of msg for full version)

[Thread -1343280224 (LWP 13405) exited]
[Thread -1323361376 (LWP 13404) exited]
[New Thread -1343280224 (LWP 13407)]
[New Thread -1332139104 (LWP 13408)]
0: start_time: -9223372036854.775 duration: -9223372036854.775
1: start_time: -9223372036854.775 duration: -9223372036854.775
stream: start_time: -9223372036854.775 duration: -9223372036854.775
bitrate=6192 kb/s
0: start_time: 0.036 duration: 151.348
1: start_time: 0.026 duration: 151.330
stream: start_time: 0.289 duration: 1681.758 bitrate=4995 kb/s
2007-06-30 02:07:58.652 AFD: Opened codec 0x85b6240, id(MPEG2VIDEO)
type(Video)
2007-06-30 02:07:58.652 AFD: Opened codec 0x85b5a20, id(MP2) type(Audio)
2007-06-30 02:07:58.655 Opening ALSA audio device 'default'.
ALSA lib confmisc.c:769:(parse_card) cannot find card ''
ALSA lib conf.c:3500:(_snd_config_evaluate) function
snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_concat
returned error: No such device
ALSA lib confmisc.c:1247:(snd_func_refer) error evaluating name
ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_refer
returned error: No such device
ALSA lib conf.c:3972:(snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM default
2007-06-30 02:07:58.681 AudioOutput Error: snd_pcm_open(default): No
such device
2007-06-30 02:07:58.682 NVP: Disabling Audio, reason is:
snd_pcm_open(default): No such device
2007-06-30 02:07:58.717 VideoOutputXv Error: Could not find suitable
XVideo surface.
2007-06-30 02:07:58.718 VideoOutputXv: Falling back to X shared memory
video output.
                              *** May be slow ***
2007-06-30 02:07:58.718 VideoOutputXv Error: CreateXvShmImages():
XShmCreateImage() failed to create image of the requested size.
2007-06-30 02:07:58.718 VideoOutputXv Error: CreateXvShmImages():
XvShmCreateImage() failed to create image.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1343280224 (LWP 13407)]
0xb7acb472 in VideoOutputXv::CreateBuffers () from
/usr/local/myth13773/lib/libmythtv-0.20.so.0

backtrace
#0  0xb7acb472 in VideoOutputXv::CreateBuffers () from
/usr/local/myth13773/lib/libmythtv-0.20.so.0
#1  0xb7acd811 in VideoOutputXv::InitXShm () from
/usr/local/myth13773/lib/libmythtv-0.20.so.0
#2  0xb7ad9a5f in VideoOutputXv::InitVideoBuffers () from
/usr/local/myth13773/lib/libmythtv-0.20.so.0
#3  0xb7adba0e in VideoOutputXv::InitSetupBuffers () from
/usr/local/myth13773/lib/libmythtv-0.20.so.0
#4  0xb7add6f0 in VideoOutputXv::Init () from
/usr/local/myth13773/lib/libmythtv-0.20.so.0
#5  0xb79c972d in NuppelVideoPlayer::InitVideo () from
/usr/local/myth13773/lib/libmythtv-0.20.so.0
#6  0xb79ecf12 in NuppelVideoPlayer::StartPlaying () from
/usr/local/myth13773/lib/libmythtv-0.20.so.0
#7  0xb793ace2 in SpawnDecode () from
/usr/local/myth13773/lib/libmythtv-0.20.so.0
#8  0xb5ed6192 in start_thread () from /lib/i686/libpthread.so.0
#9  0xb5d5390e in clone () from /lib/i686/libc.so.6


 to start the Xvnc, i tried both a simple:
Xvnc -br -deferglyphs 16 -nolisten tcp :1 -ac &
 and also:
Xvnc -br -deferglyphs 16 -nolisten tcp :1 -ac  +extension XVideo &
 and even:
Xvnc -br -deferglyphs 16 -nolisten tcp :1 -ac +extension BIG-REQUESTS
+extension DPMS +extension Extended-Visual-Information +extension GLX
+extension MIT-SCREEN-SAVER +extension MIT-SHM +extension
MIT-SUNDRY-NONSTANDARD +extension Multi-Buffering +extension RENDER
+extension SHAPE +extension SECURITY +extension SYNC +extension TOG-CUP
+extension X-Resource +extension XC-APPGROUP +extension XC-MISC
+extension XEVIE +extension XFree86-Bigfont +extension XINERAMA
+extension XInputExtension +extension XKEYBOARD +extension XTEST
+extension XVideo &
   (These are all the extensions that are supposedly available)


on 06/27/07 16:36 Daniel Kristjansson said the following:
> On Wed, 2007-06-27 at 16:19 -0400, mythtv at proberto.com wrote:
>   
>> hi all, i'm getting segfaults with mythfrontend and mythtv-setup when
>> run inside a VNC x server (see below). Under real X (remote or local
>>     
> <snip>
>
> Please try SVN trunk, there have been at least two segfault
> fixes for X servers that are missing some previously assumed
> functionality. If this doesn't fix the problem for you please
> capture a backtrace using the instructions in the MythTV
> manual and create a ticket with that backtrace attached.
> The backtrace will tell us where the problem is so that we
> can fix it.
>
> -- Daniel
>   


ALSA lib confmisc.c:769:(parse_card) cannot find card 'P8'
ALSA lib conf.c:3500:(_snd_config_evaluate) function
snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_concat
returned error: No such device
ALSA lib confmisc.c:1247:(snd_func_refer) error evaluating name
ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_refer
returned error: No such device
ALSA lib conf.c:3972:(snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM default
2007-06-30 02:38:44.885 AudioOutput Error: snd_pcm_open(default): No
such device
2007-06-30 02:38:44.885 AO, ERROR: Aborting reconfigure
2007-06-30 02:38:44.900 NVP: Disabling Audio, reason is:
snd_pcm_open(default): No such device
2007-06-30 02:38:44.900 AO: Killing AudioOutputDSP
2007-06-30 02:38:44.900 Dec: Trying to select track (w/lang)
2007-06-30 02:38:44.901 Dec: Selecting first track
2007-06-30 02:38:44.901 Dec: Selected track #1 in the Unknown language(0)
2007-06-30 02:38:44.901 Resyncing position map. posmapStarted = 0
livetv(0) watchingRec(0)
2007-06-30 02:38:44.902 MSqlQuery: SELECT mark, offset FROM recordedseek
WHERE chanid = '1602' AND starttime = '2007-06-30T00:30:00' AND type = 9 ;
2007-06-30 02:38:44.912 MSqlQuery: SELECT mark, offset FROM recordedseek
WHERE chanid = '1602' AND starttime = '2007-06-30T00:30:00' AND type = 6 ;
2007-06-30 02:38:44.932 Position map filled from DB to: 3357
2007-06-30 02:38:44.932 SyncPositionMap prerecorded, from DB: 3357 entries
2007-06-30 02:38:44.933 SyncPositionMap, new totframes: 50355, new
length: 1680, posMap size: 3357
Input #0, mpeg, from '/var/lib/mythtv/recordings/1602_20070630003000.mpg':
  Duration: 00:28:01.7, start: 0.289467, bitrate: 4995 kb/s
  Stream #0.0[0x1e0], 1/90000: Video: mpeg2video, yuv420p, 480x480,
1001/30000, 6000 kb/s, 29.97 fps(r)
  Stream #0.1[0x1c0], 1/90000: Audio: mp2, 48000 Hz, stereo, 192 kb/s
2007-06-30 02:38:44.934 AFD: Position map found
2007-06-30 02:38:44.934 AFD: Successfully opened decoder for file:
"/var/lib/mythtv/recordings/1602_20070630003000.mpg". novideo(0)
2007-06-30 02:38:44.935 MSqlQuery: SELECT mark, type FROM recordedmarkup
WHERE chanid = '1602' AND starttime = '2007-06-30T00:30:00' AND type = 1
ORDER BY mark;
2007-06-30 02:38:44.937 MSqlQuery: SELECT mark, type FROM recordedmarkup
WHERE chanid = '1602' AND starttime = '2007-06-30T00:30:00' AND type = 0
ORDER BY mark;
2007-06-30 02:38:44.938 MSqlQuery: SELECT mark, type FROM recordedmarkup
WHERE chanid = '1602' AND starttime = '2007-06-30T00:30:00' AND type = 2
ORDER BY mark;
2007-06-30 02:38:44.938 VideoOutputXv: ctor
2007-06-30 02:38:44.939 Over/underscan. V: 0, H: 0, XOff: 0, YOff: 0
2007-06-30 02:38:44.940 Snapping height to avoid scaling: height: 480,
top: 0
2007-06-30 02:38:44.940 Display Rect  left: 0, top: 0, width: 640,
height: 480, aspect: 1.33333
2007-06-30 02:38:44.940 Video Rect    left: 0, top: 0, width: 480,
height: 480, aspect: 1.33333
2007-06-30 02:38:44.940 VideoOutputXv: Pixel dimensions: Screen 640x480,
window 640x480
2007-06-30 02:38:44.941 VideoOutputXv: Estimated display dimensions:
217x163 mm  Aspect: 1.33129
2007-06-30 02:38:44.941 VideoOutputXv: Estimated window dimensions:
217x163 mm  Aspect: 1.33129
2007-06-30 02:38:44.942 MSqlQuery: SELECT data FROM settings WHERE value
= 'UseChromaKeyOSD' AND hostname = 'myth-fe-ot3' ;
2007-06-30 02:38:44.943 VideoOutputXv: @ j=3 Looking for flag[s]:
XvInputMask XvImageMask
2007-06-30 02:38:44.949 Avg read interval was 181 msec. 128K block size
2007-06-30 02:38:44.951 VideoOutputXv: No suitable XVideo port found
2007-06-30 02:38:44.952 VideoOutputXv Error: Could not find suitable
XVideo surface.
2007-06-30 02:38:44.952 VideoOutputXv: Falling back to X shared memory
video output.
                              *** May be slow ***
2007-06-30 02:38:44.952 VideoOutputXv: CreateShmImages(1): video_dim:
480x480
2007-06-30 02:38:44.953 VideoOutputXv Error: CreateXvShmImages():
XShmCreateImage() failed to create image of the requested size.
2007-06-30 02:38:44.953 VideoOutputXv Error: CreateXvShmImages():
XvShmCreateImage() failed to create image.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1360671840 (LWP 14523)]
0xb7b8f472 in VideoOutputXv::CreateBuffers () from
/usr/local/myth13773/lib/libmythtv-0.20.so.0
(gdb) thread apply all bt full
    [[[ "No symbol table info available" lines removed ]]]
Thread 12 (Thread -1341138016 (LWP 14524)):
#0  0xbfffe410 in __kernel_vsyscall ()
#1  0xb5dd9826 in nanosleep () from /lib/i686/libc.so.6
#2  0xb5e10f3c in usleep () from /lib/i686/libc.so.6
#3  0xb77ce0f4 in RingBuffer::ReadAheadThread () from
/usr/local/myth13773/lib/libmythtv-0.20.so.0
#4  0xb77cecdb in RingBuffer::StartReader () from
/usr/local/myth13773/lib/libmythtv-0.20.so.0
#5  0xb5f9a192 in start_thread () from /lib/i686/libpthread.so.0
#6  0xb5e1790e in clone () from /lib/i686/libc.so.6

Thread 11 (Thread -1360671840 (LWP 14523)):
#0  0xb7b8f472 in VideoOutputXv::CreateBuffers () from
/usr/local/myth13773/lib/libmythtv-0.20.so.0
#1  0xb7b91811 in VideoOutputXv::InitXShm () from
/usr/local/myth13773/lib/libmythtv-0.20.so.0
#2  0xb7b9da5f in VideoOutputXv::InitVideoBuffers () from
/usr/local/myth13773/lib/libmythtv-0.20.so.0
#3  0xb7b9fa0e in VideoOutputXv::InitSetupBuffers () from
/usr/local/myth13773/lib/libmythtv-0.20.so.0
#4  0xb7ba16f0 in VideoOutputXv::Init () from
/usr/local/myth13773/lib/libmythtv-0.20.so.0
#5  0xb7a8d72d in NuppelVideoPlayer::InitVideo () from
/usr/local/myth13773/lib/libmythtv-0.20.so.0
#6  0xb7ab0f12 in NuppelVideoPlayer::StartPlaying () from
/usr/local/myth13773/lib/libmythtv-0.20.so.0
#7  0xb79fece2 in SpawnDecode () from
/usr/local/myth13773/lib/libmythtv-0.20.so.0
#8  0xb5f9a192 in start_thread () from /lib/i686/libpthread.so.0
#9  0xb5e1790e in clone () from /lib/i686/libc.so.6

Thread 9 (Thread -1332745312 (LWP 14521)):
#0  0xbfffe410 in __kernel_vsyscall ()
#1  0xb5dd9826 in nanosleep () from /lib/i686/libc.so.6
#2  0xb5e10f3c in usleep () from /lib/i686/libc.so.6
#3  0xb7a19505 in TV::StartPlayer () from
/usr/local/myth13773/lib/libmythtv-0.20.so.0
#4  0xb7a683e5 in TV::HandleStateChange () from
/usr/local/myth13773/lib/libmythtv-0.20.so.0
#5  0xb7a69aa6 in TV::RunTV () from
/usr/local/myth13773/lib/libmythtv-0.20.so.0
#6  0xb7a6c60b in TV::EventThread () from
/usr/local/myth13773/lib/libmythtv-0.20.so.0
#7  0xb5f9a192 in start_thread () from /lib/i686/libpthread.so.0
#8  0xb5e1790e in clone () from /lib/i686/libc.so.6

Thread 7 (Thread -1314157664 (LWP 14518)):
#0  0xbfffe410 in __kernel_vsyscall ()
#1  0xb5e10651 in select () from /lib/i686/libc.so.6
#2  0xb6e07153 in MythSocket::readyReadThread () from
/usr/local/myth13773/lib/libmyth-0.20.so.0
#3  0xb5f9a192 in start_thread () from /lib/i686/libpthread.so.0
#4  0xb5e1790e in clone () from /lib/i686/libc.so.6

Thread 6 (Thread -1269859424 (LWP 14514)):
#0  0xbfffe410 in __kernel_vsyscall ()
#1  0xb5f9d4b6 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/i686/libpthread.so.0
#2  0xb66c2235 in QWaitCondition::wait () from
/usr/lib/qt3/lib/libqt-mt.so.3
#3  0xb2e0ea6a in vxmlParser::vxmlThreadWorker () from
/usr/local/myth13773//lib/mythtv/plugins/libmythphone.so
#4  0xb2e0eb1b in vxmlParser::vxmlThread () from
/usr/local/myth13773//lib/mythtv/plugins/libmythphone.so
#5  0xb5f9a192 in start_thread () from /lib/i686/libpthread.so.0
#6  0xb5e1790e in clone () from /lib/i686/libc.so.6

Thread 5 (Thread -1278252128 (LWP 14513)):
#0  0xbfffe410 in __kernel_vsyscall ()
#1  0xb5e10651 in select () from /lib/i686/libc.so.6
#2  0xb6623123 in QSocketDevice::waitForMore () from
/usr/lib/qt3/lib/libqt-mt.so.3
#3  0xb2de91cd in SipFsm::CheckRxEvent () from
/usr/local/myth13773//lib/mythtv/plugins/libmythphone.so
#4  0xb2de94c2 in SipThread::CheckNetworkEvents () from
/usr/local/myth13773//lib/mythtv/plugins/libmythphone.so
#5  0xb2def935 in SipThread::SipThreadWorker () from
/usr/local/myth13773//lib/mythtv/plugins/libmythphone.so
#6  0xb2defddb in SipThread::run () from
/usr/local/myth13773//lib/mythtv/plugins/libmythphone.so
#7  0xb63c7cf5 in QThreadInstance::start () from
/usr/lib/qt3/lib/libqt-mt.so.3
#8  0xb5f9a192 in start_thread () from /lib/i686/libpthread.so.0
#9  0xb5e1790e in clone () from /lib/i686/libc.so.6

Thread 2 (Thread -1251841120 (LWP 14510)):
#0  0xbfffe410 in __kernel_vsyscall ()
#1  0xb5f9d4b6 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/i686/libpthread.so.0
#2  0xb66c2235 in QWaitCondition::wait () from
/usr/lib/qt3/lib/libqt-mt.so.3
#3  0xb6cbb799 in MythContext::waitPrivRequest () from
/usr/local/myth13773/lib/libmyth-0.20.so.0
#4  0x0805bef8 in QWidget::setUpdatesEnabled ()
#5  0xb5f9a192 in start_thread () from /lib/i686/libpthread.so.0
#6  0xb5e1790e in clone () from /lib/i686/libc.so.6

Thread 1 (Thread -1247532144 (LWP 14504)):
#0  0xbfffe410 in __kernel_vsyscall ()
#1  0xb5dd9826 in nanosleep () from /lib/i686/libc.so.6
#2  0xb5e10f3c in usleep () from /lib/i686/libc.so.6
#3  0xb7a20fc1 in TV::StartTV () from
/usr/local/myth13773/lib/libmythtv-0.20.so.0
#4  0x08098575 in ?? ()
#5  0x08098d4a in ?? ()
#6  0x080a2098 in ?? ()
#7  0xb6463fd6 in QWidget::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#8  0xb63ced87 in QApplication::internalNotify () from
/usr/lib/qt3/lib/libqt-mt.so.3
#9  0xb63d0098 in QApplication::notify () from
/usr/lib/qt3/lib/libqt-mt.so.3
#10 0xb636ef98 in QETWidget::translateKeyEvent () from
/usr/lib/qt3/lib/libqt-mt.so.3
#11 0xb636fdc5 in QApplication::x11ProcessEvent () from
/usr/lib/qt3/lib/libqt-mt.so.3
#12 0xb637ffaa in QEventLoop::processEvents () from
/usr/lib/qt3/lib/libqt-mt.so.3
#13 0xb63e4762 in QEventLoop::enterLoop () from
/usr/lib/qt3/lib/libqt-mt.so.3
#14 0xb63ce6af in QApplication::enter_loop () from
/usr/lib/qt3/lib/libqt-mt.so.3
#15 0xb6d87bed in MythDialog::exec () from
/usr/local/myth13773/lib/libmyth-0.20.so.0
#16 0x08096d78 in ?? ()
#17 0x0805b588 in QWidget::setUpdatesEnabled ()
#18 0x0806122b in QWidget::setUpdatesEnabled ()
#19 0xb6c100df in MythThemedMenuPrivate::handleAction (this=0x8396070,
action=@0x839d008) at myththemedmenu.cpp:2212
No locals.
#20 0xb6c105f8 in MythThemedMenuPrivate::keyHandler (this=0x8396070,
actions=@0xbfff0dc8, fullexit=true) at myththemedmenu.cpp:1960
        it = {node = 0x839d000}
        action = {static null = {static null = <same as static member of
an already seen type>, d = 0x8188010, static shared_null = 0x8188010}, d
= 0x82d5ca0, static shared_null = 0x8188010}
        i = 0
        lastbutton = (ThemedButton *) 0x83929a8
        oldrow = 0
        oldcolumn = 0
        handled = true
#21 0xb6c10d73 in MythThemedMenuPrivate::keyPressHandler
(this=0x8396070, e=0xbfff12fc) at myththemedmenu.cpp:1869
        actions = {<QValueList<QString>> = {sh = 0x83b74c8}, <No data
fields>}
#22 0xb6c10e05 in MythThemedMenu::keyPressEvent (this=0x83712d8,
e=0xbfff12fc) at myththemedmenu.cpp:2385
        ret = true
#23 0xb6bc20e2 in MythMainWindow::eventFilter (this=0x82d1898,
e=0xbfff12fc) at mythmainwindow.cpp:1114
        top = (class MythScreenType *) 0x83712d8
        it = (class MythScreenStack **) 0x8320e04
        ge = (MythGestureEvent *) 0x0
#24 0xb642bb7c in QObject::activate_filters () from
/usr/lib/qt3/lib/libqt-mt.so.3
#25 0xb642bbeb in QObject::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#26 0xb6463cbc in QWidget::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#27 0xb63ced87 in QApplication::internalNotify () from
/usr/lib/qt3/lib/libqt-mt.so.3
#28 0xb63d0098 in QApplication::notify () from
/usr/lib/qt3/lib/libqt-mt.so.3
#29 0xb636ef98 in QETWidget::translateKeyEvent () from
/usr/lib/qt3/lib/libqt-mt.so.3
#30 0xb636fdc5 in QApplication::x11ProcessEvent () from
/usr/lib/qt3/lib/libqt-mt.so.3
#31 0xb637ffaa in QEventLoop::processEvents () from
/usr/lib/qt3/lib/libqt-mt.so.3
#32 0xb63e4762 in QEventLoop::enterLoop () from
/usr/lib/qt3/lib/libqt-mt.so.3
#33 0xb63e4626 in QEventLoop::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#34 0xb63ce73f in QApplication::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#35 0x08065951 in QWidget::setUpdatesEnabled ()
#36 0xb5d62d8c in __libc_start_main () from /lib/i686/libc.so.6
#37 0x0805afa1 in QWidget::setUpdatesEnabled ()
#0  0xb7b8f472 in VideoOutputXv::CreateBuffers () from
/usr/local/myth13773/lib/libmythtv-0.20.so.0
(gdb) set logging off

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20070630/7db09c6c/attachment.htm 


More information about the mythtv-dev mailing list