Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 106865 - media-tv/mythtv-0.18.2 - mythfrontend seg faults when 'watch tv' is selected
Summary: media-tv/mythtv-0.18.2 - mythfrontend seg faults when 'watch tv' is selected
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-22 00:23 UTC by Darren Faulke
Modified: 2005-12-26 00:40 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darren Faulke 2005-09-22 00:23:35 UTC
All other aspects of mythtv seem fine, but live tv is not possible.  I have
reinstalled gentoo from scratch (2.6.12-gentoo-r10) but the problem persists. 
Ironically, my first installation worked for a while.  It also worked with a
2.6.12-gentoo-r6 kernel, but I couldn't get unichrome to install at the time.



Reproducible: Always
Steps to Reproduce:
1.  start mythfrontend
2.  select 'watch tv'
3.

Actual Results:  
output from mythfrontend:

2005-09-21 21:28:44.466 New DB connection, total: 1
Total desktop width=1280, height=1024, numscreens=1
2005-09-21 21:28:44.495 Using screen 0, 1280x1024 at 0,0
2005-09-21 21:28:44.550 mythfrontend version: 0.18.1.20050510-1 www.mythtv.org
2005-09-21 21:28:44.551 Enabled verbose msgs : important general
2005-09-21 21:28:44.963 Switching to square mode (G.A.N.T.)
2005-09-21 21:28:47.301 Joystick disabled.
2005-09-21 21:28:47.545 Registering Internal as a media playback plugin.
2005-09-21 21:28:47.730 Registering MythDVD DVD Media Handler as a media handler
2005-09-21 21:28:47.732 Registering MythDVD VCD Media Handler as a media handler
2005-09-21 21:28:48.784 Registering MythMusic Media Handler as a media handler
2005-09-21 21:29:11.940 New DB connection, total: 2
2005-09-21 21:29:12.057 Connecting to backend server: 192.168.7.2:6543 (try 1 of 5)
2005-09-21 21:29:12.098 Using protocol version 15
2005-09-21 21:29:12.788 Using protocol version 15
2005-09-21 21:29:15.291 Opening audio device '/dev/dsp'.
2005-09-21 21:29:15.291 Opening OSS audio device '/dev/dsp'.
2005-09-21 21:29:15.391 Using XV port 68
2005-09-21 21:29:16.286 Changing from None to WatchingLiveTV
2005-09-21 21:29:16.307 Using realtime priority.

and then segmentation fault.

gdb backtrace:

Starting program: /usr/bin/mythfrontend 
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 12781)]
[New Thread 32769 (LWP 12784)]
[New Thread 16386 (LWP 12785)]
[New Thread 32771 (LWP 12786)]
[New Thread 49156 (LWP 12787)]
[Thread 32771 (LWP 12786) exited]
[Thread 49156 (LWP 12787) exited]
[New Thread 65539 (LWP 12789)]
[New Thread 81924 (LWP 12793)]
[New Thread 98309 (LWP 12794)]
[New Thread 114694 (LWP 12795)]
[New Thread 131079 (LWP 12796)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 98309 (LWP 12794)]
0xb6533271 in select () from /lib/libc.so.6
#0  0xb6533271 in select () from /lib/libc.so.6
No symbol table info available.
#1  0xb6f8dbc0 in ?? () from /usr/qt/3/lib/libqt-mt.so.3
No symbol table info available.
#2  0xae88cd00 in ?? ()
No symbol table info available.
#3  0xae88cc30 in ?? ()
No symbol table info available.
#4  0x00000000 in ?? ()
No symbol table info available.
#5  0xb6bffe01 in QSocketDevice::waitForMore (this=0x82e6fc0, msecs=200, 
    timeout=0x0) at qsocketdevice_unix.cpp:727
	fds = {fds_bits = {1048576, 0 <repeats 31 times>}}
	tv = {tv_sec = 0, tv_usec = 200000}
	rv = -1366766544
#6  0xb74d1eae in RemoteFile::Read (this=0x8273130, data=0xadf34c08, 
    size=128000) at remotefile.cpp:263
	recv = 44888
	sent = 128000
	zerocnt = 1
	error = false
	response = false
	strlist = {<QValueList<QString>> = {sh = 0x84f4960}, <No data fields>}
#7  0xb7c4aea7 in RingBuffer::safe_read (this=0x82b7f48, rf=0x8273130, 
    data=0xadf34c08, sz=128000) at RingBuffer.cpp:634
	ret = 0
#8  0xb7c4b979 in RingBuffer::ReadAheadThread (this=0x82b7f48)
    at RingBuffer.cpp:853
	totfree = 128000
	ret = 128000
	used = 687105
#9  0xb7c4b6bd in RingBuffer::startReader (type=0x82b7f48)
    at RingBuffer.cpp:792
	rbuffer = (RingBuffer *) 0x82b7f48
#10 0xb71e413d in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#11 0xb71e42e2 in pthread_start_thread_event () from /lib/libpthread.so.0
No symbol table info available.
#12 0xb65399da in clone () from /lib/libc.so.6
No symbol table info available.

I have reemerged qt with debug but this has not filled in the ??.  Is there
anything else I could do before reemerging the entire system with debug.


Expected Results:  
Live tv.

I have an epia M10000 mobo with the unichrome drivers and dri from masked portage.
mplayer and xine work with unichrome drivers.
My backend is a seperate machine running FC3.
Mythtv version is 0.18.2.

I'll have to supply the emerge info, because I emailed all the stuff I thought
would be useful to work, and unfortunately didn't send my USE flags or any other
info.  Let me know what you need and how to get it.

Thanks
Comment 1 Darren Faulke 2005-09-22 10:28:11 UTC
emerge info:

Gentoo Base System version 1.6.13
Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r1,
2.6.12-gentoo-r10 i686)
=================================================================
System uname: 2.6.12-gentoo-r10 i686 VIA Nehemiah
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-mcpu=i686 -msse -mmmx -mfpmath=sse -Os -pipe -fomit-frame-pointer -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=i686 -msse -mmmx -mfpmath=sse -Os -pipe -fomit-frame-pointer -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi berkdb bitmap-fonts cle266 crypt cups curl dvd eds
emboss encode esd fam flac foomaticdb fortran frontendonly gdbm gif gnome gpm
gstreamer gtk gtk2 imagemagick imlib ipv6 joystick jpeg kde libg++ libwww lirc
mad mikmod mmx mmx2 motif mp3 mpeg mysql mythtv ncurses nls ogg oggvorbis opengl
oss pam pdflib perl png python qt quicktime readline sdl spell sse ssl tcpd tiff
transcode truetype truetype-fonts type1-fonts unichrome usb vorbis xine xml2
xmms xv xvmc zlib video_cards_via userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

Comment 2 Maurice van der Pot (RETIRED) gentoo-dev 2005-10-05 11:37:27 UTC
To improve debugging:
- include "nostrip" in FEATURES
- don't put -fomit-frame-pointer in CFLAGS
- put -g in CFLAGS
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2005-12-02 22:03:47 UTC
Right now based on your backtrace without doing what Maurice said, you're having
a crash from a QT function calling something in glibc. My guess is going to be
your CFLAGS are flawed. Lots of issues disappear with using -O2 rather then -Os
and not using sse for fpmath.

But right now it looks like a system issue rather then MythTV issue.
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2005-12-26 00:40:09 UTC
Need the requested info.