Bug 15622

Summary: [2.2.X] mplayer crash X
Product: xorg Reporter: Lasse Riittola <chomber>
Component: Driver/intelAssignee: Hong Liu <hong.liu>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: major    
Priority: medium CC: marian, remi
Version: 7.3 (2007.09)Keywords: regression
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Xorg.0.log
none
xorg.conf
none
dmesg
none
driver_ebuild_versions.txt
none
lspci
none
xrandr_--verbose.txt
none
uname -a
none
gdb-output.txt
none
fix mplayer crash
none
fix mplayer crashing X server none

Description Lasse Riittola 2008-04-20 13:40:33 UTC
Created attachment 16062 [details]
Xorg.0.log

I will get following backtrace and X will crash if I open some graphical application after login to gnome desktop eg. from terminal gmplayer.

Backtrace:
0: X(xf86SigHandler+0x6a) [0x486f22]
1: /lib/libc.so.6 [0x7f653357f1f0]
2: X(VidModeGetCurrentModeline+0x38) [0x47cc35]
3: /usr/lib64/xorg/modules/extensions//libextmod.so [0x7f6532753473]
4: X(Dispatch+0x2f5) [0x44c58f]
5: X(main+0x478) [0x435fce]
6: /lib/libc.so.6(__libc_start_main+0xf4) [0x7f653356c1f4]
7: X(FontFileCompleteXLFD+0x279) [0x435399]

I have tried most of the versions 2.2.X and crash is 100% reproducible.
Version 2.1.1 works fine without known issues.

Attached files are collected from driver version 2.2.99.903-r1 from Gentoo Linux dvr 2.6.25-gentoo #2 SMP Sun Apr 20 01:17:14 EEST 2008 x86_64 Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz GenuineIntel GNU/Linux
Comment 1 Lasse Riittola 2008-04-20 13:41:02 UTC
Created attachment 16063 [details]
xorg.conf
Comment 2 Lasse Riittola 2008-04-20 13:41:21 UTC
Created attachment 16064 [details]
dmesg
Comment 3 Lasse Riittola 2008-04-20 13:41:40 UTC
Created attachment 16065 [details]
driver_ebuild_versions.txt
Comment 4 Lasse Riittola 2008-04-20 13:41:59 UTC
Created attachment 16066 [details]
lspci
Comment 5 Lasse Riittola 2008-04-20 13:42:20 UTC
Created attachment 16067 [details]
xrandr_--verbose.txt
Comment 6 Lasse Riittola 2008-04-20 13:43:09 UTC
Created attachment 16068 [details]
uname -a
Comment 7 Lasse Riittola 2008-04-20 14:03:29 UTC
I am using SVDO card DVI output to hdmi in my Panasonic PTAE-700 projector and goal is to use native resolution 1280x720 where I had to use Virtual     1280 720 to gain.
Comment 8 Hong Liu 2008-04-20 18:28:43 UTC
Would you please remove the following line from your xorg.conf?
HorizSync	28-51
VertRefresh	43-60

The 1024x768 mode is filtered out by these two config options, and also currently we can detect these info from EDID data. So no need to specify horiz and vertical refresh rate manually.

If it still doesn't work, please attach xorg log with option modedebug turned on?


Thanks,
Hong

Comment 9 Hong Liu 2008-04-20 18:30:33 UTC
Sorry for typing in the wrong bug.
Comment 10 Hong Liu 2008-04-20 18:56:23 UTC
Would you please elaborate how to reproduce the problem? Is the gmplayer from http://sourceforge.net/projects/gmplayer/ ? I saw it is a window application.

Any other applications crash the X server?

Would you please start X server within GDB and get a full backtrace log?
There are some info about how to GDB X server (http://www.x.org/wiki/Development/Documentation/ServerDebugging).

Thanks,
Hong
Comment 11 Lasse Riittola 2008-04-21 14:12:47 UTC
(In reply to comment #10)
> Would you please elaborate how to reproduce the problem? Is the gmplayer from
> http://sourceforge.net/projects/gmplayer/ ? I saw it is a window application.
> 
> Any other applications crash the X server?
> 
> Would you please start X server within GDB and get a full backtrace log?
> There are some info about how to GDB X server
> (http://www.x.org/wiki/Development/Documentation/ServerDebugging).
> 
> Thanks,
> Hong
> 

- gmplayer is a GUI for mplayer www.mplayerhq.hu

I made a GDB but not sure if it's anymore useful as I think I don't have debugging on in X? How should I enable it in Gentoo distribution? I guess I have to re-compile Xorg server with debug flag but how about intel driver?

Actual I tried to use some other graphical applications and they seems to be running fine so this might be a related to mplayer as they same is reproducible by "mplayer something.avi" command just trying to play a video.
Comment 12 Lasse Riittola 2008-04-21 14:13:37 UTC
Created attachment 16087 [details]
gdb-output.txt
Comment 13 Hong Liu 2008-04-21 23:36:53 UTC
Created attachment 16094 [details] [review]
fix mplayer crash

Please try this patch (it's against Xorg server).

Thanks,
Hong
Comment 14 Hong Liu 2008-04-22 01:24:02 UTC
Created attachment 16095 [details] [review]
fix mplayer crashing X server

Sorry for attaching the wrong patch.
Comment 15 Lasse Riittola 2008-04-22 11:19:05 UTC
(In reply to comment #14)
> Created an attachment (id=16095) [details]
> fix mplayer crashing X server
> 
> Sorry for attaching the wrong patch.
> 

Hi,

This patch seems to be working and mplayer don't crash X window anymore. I will report any issues if found but for me it's ok to close this bug.

Big Thanks!

Lasse
Comment 16 Marian Neagul 2008-05-24 06:03:10 UTC
This crash occurs only with mplayer ? I have a similar issue but with some players.

I have created a bug report on Ubuntu launchpad, https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/232275 but I don't seem to  get any reply.


Comment 17 Hong Liu 2008-05-25 17:52:14 UTC
(In reply to comment #16)
> This crash occurs only with mplayer ? I have a similar issue but with some
> players.
>

This bug may happen on X client who use VidMode Extension (used mostly by video applications) for mode probe. Would you please try the latest Xserver git tip to see if the problem is fixed.
Comment 18 Hong Liu 2008-06-04 19:02:42 UTC
Adam Jackson has committed a patch (96111c154713600dd534dd82104ac18b91466202) which  should fix this problem.

Mark this bug as fixed now.

Thanks,
Hong

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.