Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 270636 - mplayer-1.0_rc2_p20090322 causes X to crash if kernel mode setting is enabled (xorg-server-1.6.1.901-r1 + xf86-video-intel-2.7.1 + vanilla-sources-2.6.30_rc6)
Summary: mplayer-1.0_rc2_p20090322 causes X to crash if kernel mode setting is enabled...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-20 20:54 UTC by Rafael
Modified: 2009-07-23 12:19 UTC (History)
1 user (show)

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


Attachments
config file for kernel 2.6.30_rc7 (.config,51.66 KB, text/plain)
2009-05-29 16:35 UTC, Rafael
Details
/var/log/Xorg.0.log (Xorg.0.log,21.96 KB, text/plain)
2009-05-29 17:37 UTC, Rafael
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael 2009-05-20 20:54:09 UTC
After many unsuccessful tries I've been able to get KMS to work with the combination: xorg-server-1.6.1.901-r1 + xf86-video-intel-2.7.1 + vanilla-sources-2.6.30_rc6
However, when I try to play a video with mplayer, it causes the X server to Hang, forcing me to do a hard reboot. If I disable KMS, mplayer works well.
I am using is media-video/mplayer-1.0_rc2_p20090322.




Reproducible: Always




Portage 2.2_rc33 (default/linux/x86/2008.0/desktop, gcc-4.3.3, glibc-2.8_p20080602-r1, 2.6.30-rc6 i686)
=================================================================
System uname: Linux-2.6.30-rc6-i686-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-glibc2.0
Timestamp of tree: Wed, 20 May 2009 17:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.3
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 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.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=prescott -fomit-frame-pointer -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/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://www.las.ic.unicamp.br/pub/gentoo/ http://mirror.datapipe.net/gentoo"
LANG="pt_BR.UTF-8"
LC_ALL="pt_BR.UTF-8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="pt_BR en_US fr"
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"
PORTDIR_OVERLAY="/usr/portage/local/layman/x11"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi aiglx aim alsa apache2 avahi avi background bash-completion berkdb bluetooth branding bzip2 cairo cdr chardet cli compiz-fusion cracklib crypt cups dbus divx4linux dmi dri dvd dvdr dvdread dvi emboss encode escreen fam ffmpeg fortran gcj gdbm gif glitz gnome gnustep gphoto2 gpm gstreamer gtk gtk2 hal i8x0 iconv imlib isdnlog java jikes jpeg kdeenablefinal kdehiddenvisibility kdeprefix latex lcms libnotify lm_sensors logrotate mad matroska midi mmap mmx motif mozilla mp3 mp4 mpeg mpi msn mtp mudflap musepack musicbrainz mysql nautilus ncurses nls nocd nptl nptlonly nsplugin objc ogg opengl openmp pam pcre pdf perl plugin png postscript ppds pppd ps python qt3 qt3support qt4 quicktime readline reflection rtsp sdl session smp spell spl sse sse2 ssl startup-notification stream svg sysfs tagwriting tcpd tetex theora threads tiff trayicon truetype unicode usb utempter vidix vim-pager vim-syntax vim-with-x vorbis wmf x264 x86 xattr xcb xcomposite xine xml xorg xpm xscreensaver xulrunner xv xvid xvmc zlib" ALSA_CARDS="intel8x0" 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 ps2mouse usbmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pt_BR en_US fr" USERLAND="GNU" VIDEO_CARDS="intel i915"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-05-29 11:45:12 UTC
Please attach your xorg.conf and your kernel .config file to this bug.
Comment 2 Rafael 2009-05-29 16:35:07 UTC
Created attachment 192897 [details]
config file for kernel 2.6.30_rc7

I'm not using a xorg.conf.
Comment 3 Rafael 2009-05-29 17:37:43 UTC
Created attachment 192901 [details]
/var/log/Xorg.0.log

I am sending the Xorg.0.log file which may be useful because I don't have a xorg.conf.
Comment 4 Rémi Cardona (RETIRED) gentoo-dev 2009-05-31 08:32:45 UTC
Nothing I can do here to help. Please file a bug in FreeDesktop's bugzilla [1] and please paste the url here so we can keep track of the issue.

Thanks

[1] http://intellinuxgraphics.org/how_to_report_bug.html
Comment 5 Rémi Cardona (RETIRED) gentoo-dev 2009-06-24 22:49:05 UTC
Please get back to us.

Thanks
Comment 6 Robert Bradbury 2009-06-30 06:35:07 UTC
Remi, if you look at Bug #275861, it looks like the bug is still around.

Rafael, it looks like this is pretty much the same as my bug except you are using a kernel version 2.6.30_rc6 (how did you get this?).

I haven't tried a "plain" video file (e.g. mpg, or a TV stream from the Hauppauge), because I'm afraid they will hang the system and I'd like to get some work done (restoration of system "state" probably takes me an hour or more).

I've got the files, X-server, Intel driver, etc "compiled" for debugging so I could probably run GDB from a console tty on an X terminal and then try to run a mplayer video on that terminal, but given the way it seems to hang all of the terminals (no keyboard response X windows or consoles) I'm doubtful that this will be a useful path.  There is a path than involves compiling the kernel with the option to allow handling of "hard" hangs but I've never ventured into that domain.  I suspect to debug this is going to require someone with a system with 2 video systems (one i915 and one add-in (PCI/PCIe?) video card) and 2 monitors with the "consoles" on the non-i915 monitor.  I might be able to configure my system that way but its probably a day or more to make the required hardware & software changes.  I'd be more inclined to see if the bug shows up elsewhere (Ubuntu?), etc.

As far as I known I am running in KMS mode when I am running i915.modeset=1.  I have not tried booting without it and testing video capabilities yet.  I think if I could get it so the driver was loadable (rather than builtin to the kernel) I could flip it back and forth between the modes but haven't figured out how to do that yet either.  Suggestions Remi?
Comment 7 Rafael 2009-06-30 07:11:30 UTC
(In reply to comment #6)
> Remi, if you look at Bug #275861, it looks like the bug is still around.
> 
> Rafael, it looks like this is pretty much the same as my bug except you are
> using a kernel version 2.6.30_rc6 (how did you get this?).

I'm using the vanilla-sources. Actually, I am now using 2.6.30_rc8. I'll try with 2.6.30 tomorrow morning (it's 4 AM here). I can try the gentoo sources also, but I don't think it will make any difference.

> 
> I haven't tried a "plain" video file (e.g. mpg, or a TV stream from the
> Hauppauge), because I'm afraid they will hang the system and I'd like to get
> some work done (restoration of system "state" probably takes me an hour or
> more).
> 
> I've got the files, X-server, Intel driver, etc "compiled" for debugging so I
> could probably run GDB from a console tty on an X terminal and then try to run
> a mplayer video on that terminal, but given the way it seems to hang all of the
> terminals (no keyboard response X windows or consoles) I'm doubtful that this
> will be a useful path.  There is a path than involves compiling the kernel with
> the option to allow handling of "hard" hangs but I've never ventured into that
> domain.  I suspect to debug this is going to require someone with a system with
> 2 video systems (one i915 and one add-in (PCI/PCIe?) video card) and 2 monitors
> with the "consoles" on the non-i915 monitor.  I might be able to configure my
> system that way but its probably a day or more to make the required hardware &
> software changes.  I'd be more inclined to see if the bug shows up elsewhere
> (Ubuntu?), etc.
> 
> As far as I known I am running in KMS mode when I am running i915.modeset=1.  I
> have not tried booting without it and testing video capabilities yet.  I think
> if I could get it so the driver was loadable (rather than builtin to the
> kernel) I could flip it back and forth between the modes but haven't figured
> out how to do that yet either.  Suggestions Remi?
> 
If you have configured Kernel Mode Setting to be enabled as default, then you need  to use i915.modeset=0 in grub.conf to disable it.
I don't know if there's any way to enable/disable KMS without rebooting the machine.
Comment 8 Rafael 2009-06-30 16:54:22 UTC
I confirm the problem persists with xorg-server-1.6.1.901-r5+KMS+vanilla-sources-2.6.30. I'll try to get time collect to all the info requested to fill a bug upstream.
Comment 9 Rafael 2009-07-22 15:27:15 UTC
This is now fixed for me with kernel 2.6.30.2 + xf86-video-intel-2.7.99.902-r1 + media-libs/mesa-7.5-r1.
Reopening to close as fixed.
Comment 10 Rafael 2009-07-22 15:28:01 UTC
Changing to the proper resolution.
Comment 11 Rémi Cardona (RETIRED) gentoo-dev 2009-07-23 12:19:55 UTC
Great, thanks for the follow-up.