Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 272691 - media-tv/mythtv-0.21_p18314-r1 & _p19961-r1 & _p19961-r2: mythtv-setup and mythfrontend crashes every time it's run, before drawing any windows
Summary: media-tv/mythtv-0.21_p18314-r1 & _p19961-r1 & _p19961-r2: mythtv-setup and my...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-04 20:18 UTC by Scriven
Modified: 2009-11-10 15:27 UTC (History)
2 users (show)

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


Attachments
$ mythtv-setup -v all > THIS_FILE (mythtv.all_output,14.37 KB, text/plain)
2009-06-04 20:20 UTC, Scriven
Details
strace of media-tv/mythtv-0.21_p18314-r1 segfault (mythtv.strace,185.46 KB, text/plain)
2009-06-04 21:21 UTC, Scriven
Details
output from $ mythtv-setup -v all > mythtv.all_output (mythtv.all_output,12.18 KB, text/plain)
2009-06-08 17:02 UTC, Scriven
Details
output from $ sudo strace -o mythtv.strace mythtv-setup (mythtv.strace,174.64 KB, text/plain)
2009-06-08 17:03 UTC, Scriven
Details
output from $ mythfrontend -v all > mythfrontend.all_output (mythfrontend.all_output,50.69 KB, text/plain)
2009-06-08 17:04 UTC, Scriven
Details
output from $ sudo strace -o mythfrontend.strace mythfrontend (mythfrontend.strace,348.57 KB, text/plain)
2009-06-08 17:04 UTC, Scriven
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Scriven 2009-06-04 20:18:16 UTC
Fresh install of gentoo, attempting to configure mythtv, but mythtv-setup crashes every time, without drawing any windows.  The hardware has been tested with other Linux distros (Ubuntu) and does work properly.  I initially tried with _p19961-r1, gave segfault, so upon advice from #gentoo-mythtv (beandog mostly) I tried the _p18314-r1 version, which gave the exact same result.  I am on a multi-cpu system, and tried with "taskset -c 0", with no changes in the results.

Reproducible: Always

Steps to Reproduce:
1. emerge mythtv
2. run mythtv-setup
3.

Actual Results:  
Segfault

Expected Results:  
Functioning of the mythtv-setup program.

Running in X with a fresh install of x11-base/xorg-x11-7.2, x11-base/xorg-server-1.5.3-r6, x11-wm/twm-1.0.4, 3 instances of x11-terms/xterm-242.
Using deb-db/mysql-5.0.70-r1 which is working properly for other uses and for manual access of mythtv user to mythconverg database.

$ sudo emerge --info
Password: 
Portage 2.1.6.11 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.28-gentoo-r5 i686)
=================================================================
System uname: Linux-2.6.28-gentoo-r5-i686-Intel-R-_Pentium-R-_4_CPU_2.40GHz-with-glibc2.0
Timestamp of tree: Fri, 29 May 2009 18:45:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.4-r2
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ "
LDFLAGS="-Wl,-O1"
LINGUAS="en ko fr"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="a52 aac acl acpi alsa aotuv bash-completion berkdb bzip2 cddb cdparanoia cdr cgi chardet cjk cli cracklib crypt css ctype cups curl curlwrappers daemon divx dri dv dvb dvd dvdr encode ffmpeg flac fortran gd gdbm gpm gstreamer hddtemp iconv ieee1394 ipv6 isdnlog ivtv latin1 live matroska midi mjpeg mmx mmxext mp3 mp4 mpeg mpeg2 mudflap mysql mysqli mythtv na_dd na_icons ncurses network nls nptl nptlonly nsplugin ntfs ntp nuv nvidia oav odbc offensive ogg ogg123 opengl openmp pam pcre pdo perl php posix pppd pvr python qt3 qt3support qt4 quicktime radio readline reflection reiserfs rss samba screen sdl server session smp spl sqlite sse sse2 sse3 ssl stream subtitles symlink sysfs tcpd theora transcode unicode usb v4l v4l2 vcd vcdinfo vorbis win32codecs winbind wma x264 x86 xcomposite xine xml xmlrpc xorg xv xvid xvmc zlib" ALSA_CARDS="intel8x0 usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ko fr" USERLAND="GNU" VIDEO_CARDS="nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

From /var/log/messages:
Jun  4 13:17:07 <systemname> mythtv-setup[13414]: segfault at 48084807 ip b5ce3175 sp bfb2900c error 6

Will post associated "mythtv-setup -v all" output as an attachment.
Comment 1 Scriven 2009-06-04 20:20:16 UTC
Created attachment 193574 [details]
$ mythtv-setup -v all > THIS_FILE

This is the output of the following command:

$ mythtv-setup -v all > THIS_ATTACHMENT
Segmentation fault
$
Comment 2 Scriven 2009-06-04 21:21:39 UTC
Created attachment 193576 [details]
strace of media-tv/mythtv-0.21_p18314-r1 segfault

This is an strace of the segfault for mythtv-setup, from version 0.21_p18314-r1 of mythtv.
Comment 3 Scriven 2009-06-08 17:01:05 UTC
Have upgraded to the newest version "0.21_p19961-r2" as of this writing.
Had mythtv-setup work the first time, enough to get the backup setup and working.
After that first time, any re-running of mythtv-setup causes a segfault, as well as any attempts to run mythfrontend.
mythbackend is working in the background just file, can use remote frontends just fine and schedule jobs, ETC.

Some of the background information has changed as well.  I switched to nvidia-drivers (version 71.86.09, 71.86.07 package didn't even try and install, it complained about not being able to determine my kernel version) from nv for X, this required (because of the old video card in this server) a downgrade to X version 1.3.0.0-r6.  I got all of this working properly before I attempted to do anything mythtv related again.

Will run the following commands and post their attachments:
$ mythtv-setup -v all > mythtv.all_output 
Segmentation fault
$ sudo strace -o mythtv.strace mythtv-setup
<usual mythtv-setup output follows>
$ mythfrontend -v all > mythfrontend.all_output
Segmentation fault
$ sudo strace -o mythfrontend.strace mythfrontend
<mythfrontend output follows>

Here are the associated entries in /var/log/messages for the above segfaults:
Jun  8 09:43:22 oracle mythtv-setup[13562]: segfault at 75b99538 ip b5d1f17a sp bfe7a39c error 6
Jun  8 09:52:40 oracle mythtv-setup[13608]: segfault at 7579d0b8 ip b5da217a sp bf9faf1c error 4
Jun  8 09:56:24 oracle mythfrontend[13649]: segfault at 5492db03 ip b3e0003f sp bfb9479c error 6

Have been talking to beandog and cardoe in #gentoo-mythtv, and will be happy to run any tests and provide any more information!
TYVM!
Comment 4 Scriven 2009-06-08 17:02:37 UTC
Created attachment 193910 [details]
output from $ mythtv-setup -v all > mythtv.all_output
Comment 5 Scriven 2009-06-08 17:03:30 UTC
Created attachment 193911 [details]
output from $ sudo strace -o mythtv.strace mythtv-setup
Comment 6 Scriven 2009-06-08 17:04:02 UTC
Created attachment 193912 [details]
output from $ mythfrontend -v all > mythfrontend.all_output
Comment 7 Scriven 2009-06-08 17:04:37 UTC
Created attachment 193913 [details]
output from $ sudo strace -o mythfrontend.strace mythfrontend
Comment 8 Doug Goldstein (RETIRED) gentoo-dev 2009-06-08 19:03:05 UTC
looks like something is wrong with the Qt & MySQL integration. I would try rebuilding both of those packages.
Comment 9 Scriven 2009-06-09 01:27:45 UTC
Recompiled:
x11-libs/qt-3.3.8b-r1
dev-db/mysql-5.0.70-r1

and then recompiled mythtv, but the same things happened.
Would you like to see the strace/-v all output for the situation now?

Also, I have emerged gdb but never used it, if you'd like me to use it to provide information please let me know how.
Comment 10 Doug Goldstein (RETIRED) gentoo-dev 2009-08-03 01:15:40 UTC
I'd actually be willing to bet that its the open source nvidia driver you're using. It's known to be pretty feature incomplete and most likely MythTV or Qt is relying on some features that are missing.

Your best bet is to use the binary nvidia drivers. The open source nv driver won't actually be capable of performing any video playback anyway.
Comment 11 nealHogan 2009-09-01 14:34:36 UTC
(In reply to comment #9)
> Recompiled:
> x11-libs/qt-3.3.8b-r1
> dev-db/mysql-5.0.70-r1
> 
> and then recompiled mythtv, but the same things happened.
> Would you like to see the strace/-v all output for the situation now?
> 
> Also, I have emerged gdb but never used it, if you'd like me to use it to
> provide information please let me know how.
> 

I was having the same problem . . . segfault just after the joystick message and after comparing your more verbose output with mine, the similarity was even closer. 

Anyway, I got mythtv going by using a different version of mesa. It was suggested on getnoo-users@ that I use an older version, but I tried a newer one and it worked. I went from media/mesa-7.3-r1 to media-libs/mesa-7.5-r3. I did not try any other versions.

I'm running Linux i686 2.6.30-gentoo-r5
Comment 12 Aidan Thornton 2009-11-05 21:36:17 UTC
neal: Yeah, that pretty much figures. There's a bug in older versions of Mesa that causes MythTV to crash on startup if your setup only supports software OpenGL rendering. (Uninitialised pointer that just happens to be safely NULL, except when it isn't, so it's very dependent on your exact configuration.) See https://bugs.freedesktop.org/show_bug.cgi?id=21053 - not sure exactly which version this bug was fixed in, but that sounds about right.
Comment 13 Doug Goldstein (RETIRED) gentoo-dev 2009-11-10 15:27:11 UTC
Alright well looks like it was a bad mesa.