View previous topic :: View next topic |
Author |
Message |
skwang Tux's lil' helper
Joined: 12 May 2004 Posts: 149 Location: Chicago, IL
|
Posted: Tue Apr 14, 2009 4:18 am Post subject: mythfrontend segmentation fault, problem with video |
|
|
My problem is with mythfrontend (I think this not a problem for the Multimedia section) and any mythtv application (including mythtv-setup). Any time I try to start the executable it crashes and returns a segmentation fault. I've have a strace, the output of 'strace mythfrontend', and a gdb backtrace (with no debugging symbols though), the output of 'gdb mythfrontend -x gdbcommand', and can post them if requested.
Here is the strange part. I can ssh into the mythfrontend system with X forwarding, and start mythfrontend without problem through ssh. This leads me to think that the problem I have is with the video drivers. Specifically this problem showed up after upgrading to xorg-server-1.5.3-r5. The machine is an Asus-Pundit-S, with an sis chipset (SiS 650). So I am using xf86-video-sis-0.10.0 as my video driver.
What I have tried:
1. Since gcc was upgraded I went ahead and recompile the entire system (emerge -e system and emerge -e world) including the kernel.
2. revdep-rebuild, as usual.
3. recompiled xf86-video-sis-0-10.0
4. upgraded to xf86-video-sis-0.10.1 (downgraded after this failed)
I should point other other multimedia applications work as xine runs without problem. I believe opengl works too as glxgears runs.
If you have any suggestions, please let me know.
Here is my emerge --info:
Code: |
Portage 2.1.6.7 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.27-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.27-gentoo-r8-i686-Intel-R-_Pentium-R-_4_CPU_2.80GHz-with-glibc2.0
Timestamp of tree: Fri, 10 Apr 2009 22:45:02 +0000
app-shells/bash: 3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python: 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake: 2.6.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.13, 2.63
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils: 2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.26
virtual/os-headers: 2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=i686 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.mcs.anl.gov/pub/gentoo/ http://prometheus.cs.wmich.edu/gentoo http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.mirrors.tds.net/gentoo http://ftp.romnet.org/gentoo/ "
LANG="en_US"
LC_ALL="en_US"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
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://achilles/gentoo-portage"
USE="X aac acl alsa arts berkdb bzip2 cdparanoia cli cracklib crypt cups divx dri dvd dvdread emacs ffmpeg fftw flac fortran gdbm gif gpm hal iconv ieee1394 ipv6 isdnlog jpeg lirc logrotate mad matroska midi mmx mp3 mpeg mudflap mysql mythtv ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png pppd python qt3 quicktime readline reflection sensord session spl sse sse2 ssl sysfs tcpd theora tiff transcode unicode v4l vorbis win32codecs x86 xine xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIRC_DEVICES="serial" USERLAND="GNU" VIDEO_CARDS="sis vesa fbdev"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
|
Here is my /etc/X11/xorg.conf, comments removed:
Code: |
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
EndSection
Section "ServerFlags"
Option "AutoAddDevices" "on"
Option "AutoEnableDevices" "on"
Option "AllowEmptyInput" "on"
EndSection
Section "Files"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/TTF/"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/CID/"
FontPath "/usr/share/fonts/75dpi/"
FontPath "/usr/share/fonts/100dpi/"
EndSection
Section "Module"
Load "glx"
Load "extmod"
Load "xtrap"
Load "record"
Load "dbe"
Load "dri"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mouse0"
Option "ZAxisMapping" "4 5"
EndSection
Section "Monitor"
#DisplaySize 710 400 # mm
Identifier "Monitor0"
VendorName "NIK"
ModelName "OTP-3211W"
HorizSync 30.0 - 80.0
VertRefresh 50.0 - 85.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Card0"
Driver "sis"
VendorName "Silicon Integrated Systems [SiS]"
BoardName "SiS650/651/M650/740 PCI/AGP VGA Display Adapter"
BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 1
Modes "1360x768"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
Modes "1360x768"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
Modes "1360x768"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
Modes "1360x768"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
Modes "1360x768"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1360x768"
EndSubSection
EndSection
Section "DRI"
Group "video"
Mode 0666
EndSection
|
Update: I've removed the "SOLVED" tag from this post because, well... see below. Basically the problem is more complicated. PraetorZero has made some progress with removing "module glx" from his /etc/X11/xorg.conf.
Last edited by skwang on Sun Apr 19, 2009 9:18 pm; edited 2 times in total |
|
Back to top |
|
|
PraetorZero Apprentice
Joined: 11 Dec 2004 Posts: 239 Location: /home
|
Posted: Tue Apr 14, 2009 11:02 am Post subject: |
|
|
This is actually kind of funny, I just did all of this myself (including SSHing to the box) trying to troubleshoot this problem. I'm running across the same problem. I'm on a brand new build using x11-drivers/xf86-video-radeonhd-1.2.5 x11-base/xorg-server-1.5.3-r5 x86_64-pc-linux-gnu-4.3.2 media-libs/mesa-7.4.
I was actually thinking this might be a mesa bug since I found this bug on their bugzilla. But I believe I need mesa-7.4 to get acceleration for my particular card.
SO, my question is, what version of mesa do you have installed? _________________ What's the worst that can happen? |
|
Back to top |
|
|
skwang Tux's lil' helper
Joined: 12 May 2004 Posts: 149 Location: Chicago, IL
|
Posted: Tue Apr 14, 2009 1:51 pm Post subject: |
|
|
I am using media-libs/mesa-7.3-r1, which is the latest stable version on x86.
Am I to gather from your post that you are using mesa-7.4? That doesn't mean mesa isn't the culprit, as we have two different systems. I'll try playing around with the mesa versions (downgrading to 7.3, upgrading to 7.4) and see if that makes any difference. (I am at work). |
|
Back to top |
|
|
skwang Tux's lil' helper
Joined: 12 May 2004 Posts: 149 Location: Chicago, IL
|
Posted: Tue Apr 14, 2009 10:54 pm Post subject: |
|
|
PraetorZero-
I upgraded to mesa-7.4 and that actually solved my problem. Now mythfrontend starts! So the solution (for me was):
1 Add keyword ~x86 to mesa.
2 upgrade to media-libs/mesa-7.4
3 recompile xorg-server and mythtv.
4 revdep-rebuild
5 reboot
I don't know if recompiling, revdep-rebuild, and rebooting mattered at all.
Finally, the version of mythtv on my system is media-tv/mythtv-0.21_p19961-r1. |
|
Back to top |
|
|
PraetorZero Apprentice
Joined: 11 Dec 2004 Posts: 239 Location: /home
|
Posted: Wed Apr 15, 2009 12:36 am Post subject: |
|
|
Shoot. I was hoping that wouldn't fix your problem, because mine still exists.
I'm going to recompile myth with the debug use flag and see what I can get with a trace of the segfault. I'm glad it worked for you though! _________________ What's the worst that can happen? |
|
Back to top |
|
|
colp n00b
Joined: 19 Apr 2009 Posts: 11
|
Posted: Sun Apr 19, 2009 12:36 am Post subject: |
|
|
I had the same problems.
Heres my new xorg.conf
Code: |
Section "Module"
Disable "glx"
EndSection
|
|
|
Back to top |
|
|
PraetorZero Apprentice
Joined: 11 Dec 2004 Posts: 239 Location: /home
|
Posted: Sun Apr 19, 2009 2:30 am Post subject: |
|
|
colp wrote: | I had the same problems.
Heres my new xorg.conf
Code: |
Section "Module"
Disable "glx"
EndSection
|
|
That's it! Mythfrontend finally starts without segfaulting immediately. I've been able to quit and restart multiple times without any errors.
Thanks for the pointer. _________________ What's the worst that can happen? |
|
Back to top |
|
|
PraetorZero Apprentice
Joined: 11 Dec 2004 Posts: 239 Location: /home
|
Posted: Sun Apr 19, 2009 9:13 pm Post subject: |
|
|
PraetorZero wrote: | colp wrote: | I had the same problems.
Heres my new xorg.conf
Code: |
Section "Module"
Disable "glx"
EndSection
|
|
That's it! Mythfrontend finally starts without segfaulting immediately. I've been able to quit and restart multiple times without any errors.
Thanks for the pointer. |
I found that I lose xv acceleration by disabling this. Looks like I'm back to the drawing board..... _________________ What's the worst that can happen? |
|
Back to top |
|
|
PraetorZero Apprentice
Joined: 11 Dec 2004 Posts: 239 Location: /home
|
Posted: Wed Apr 22, 2009 3:49 am Post subject: |
|
|
Okay, I finally got it working without issues. The problem is with media-libs/mesa-7.4
I applied this patch from their bugzilla this evening.
I now have xv acceleration with glx enabled using the radeonhd-1.2.5 driver. The bug doesn't specifically mention it only affecting a single card, but it's well worth the try. _________________ What's the worst that can happen? |
|
Back to top |
|
|
mitchd123 n00b
Joined: 13 Jan 2004 Posts: 40
|
Posted: Thu Apr 23, 2009 3:36 am Post subject: |
|
|
I was having the same problem with the segmentation fault when I tried to open mythfrontend, and it would come and go at random times.
The solution for me was to re-compile the nvidia-drivers and set opengl to nvidia
eselect opengl set nvidia
exit out of x
reload the nvidia modules: modprobe -r nvidia
restart x |
|
Back to top |
|
|
skwang Tux's lil' helper
Joined: 12 May 2004 Posts: 149 Location: Chicago, IL
|
Posted: Thu Apr 23, 2009 11:57 pm Post subject: |
|
|
It seems that while there are multiple "solutions" to the problem, the cause is the same, some bug in OpenGL that causes mythtv to seg. fault. I suspect the real "solution" will be to wait for the next version of mesa, which hopefully will have the patch PraetorZero mentioned.
Or if you have an nvidia card and use nvidia drivers, and use their OpenGL libraries which doesn't seem to have this problem. I'm reluctant to mark this as truly "solved" though, because the bug in mesa remains. |
|
Back to top |
|
|
|