Bug 282256 - "intel" xserver crashes randomly after adding / removing the external monitor.
Summary: "intel" xserver crashes randomly after adding / removing the external monitor.
Status: RESOLVED FIXED
Alias: None
Product: openSUSE 10.3
Classification: openSUSE
Component: X.Org (show other bugs)
Version: RC 1
Hardware: i386 Other
: P2 - High : Critical (vote)
Target Milestone: ---
Assignee: Matthias Hopf
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 327064
  Show dependency treegraph
 
Reported: 2007-06-08 12:52 UTC by Forgotten User ZhJd0F0L3x
Modified: 2007-09-21 10:04 UTC (History)
4 users (show)

See Also:
Found By: Component Test
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---
coolo: SHIP_STOPPER-


Attachments
/var/log/Xorg.0.log.old after the latest crash (qemu in this case) (618.29 KB, text/plain)
2007-06-08 12:53 UTC, Forgotten User ZhJd0F0L3x
Details
another log, this time from mplayer start (IIRC) (1.53 MB, text/plain)
2007-06-08 12:55 UTC, Forgotten User ZhJd0F0L3x
Details
xorg.conf (4.52 KB, text/plain)
2007-06-08 12:56 UTC, Forgotten User ZhJd0F0L3x
Details
logfile, crash with "mplayer -vo x11" (1.45 MB, text/plain)
2007-06-23 08:27 UTC, Forgotten User ZhJd0F0L3x
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Forgotten User ZhJd0F0L3x 2007-06-08 12:52:24 UTC
The intel xserver crashes randomly after resume from suspend to RAM.
This problem is an old one, but it got worse over the last few days.
Former versions seemed to only crash on mplayer initializing the Xv output, but recent ones are also crashing on "mplayer -vo gl" or when trying to run qemu.
This is on recent stable:
xorg-x11-fonts-devel-7.2-30
xorg-x11-libXpm-7.2-39
xorg-x11-libXext-devel-7.2-40
xorg-x11-libXpm-devel-7.2-39
xorg-x11-server-sdk-7.2-92
xorg-x11-libX11-7.2-48
xorg-x11-libXext-7.2-40
xorg-x11-libSM-devel-7.2-35
xorg-x11-libxkbfile-devel-7.2-39
xorg-x11-libs-7.2-67
xorg-x11-libX11-ccache-7.2-50
xorg-x11-libSM-7.2-35
xorg-x11-util-devel-7.2-31
xorg-x11-libXdmcp-devel-7.2-30
xorg-x11-libXmu-7.2-40
xorg-x11-7.2-80
xorg-x11-devel-7.2-67
xorg-x11-libXt-7.2-41
xorg-x11-libxcb-devel-7.2-26
xorg-x11-libX11-devel-7.2-48
xorg-x11-server-extra-7.2-92
xorg-x11-libXmu-devel-7.2-40
xorg-x11-driver-video-7.2-112
xorg-x11-libfontenc-7.2-36
xorg-x11-proto-devel-7.2-39
xorg-x11-libXau-devel-7.2-31
xorg-x11-libXrender-7.2-39
xorg-x11-driver-input-7.2-67
xorg-x11-libXau-7.2-31
xorg-x11-libxkbfile-7.2-39
xorg-x11-libICE-devel-7.2-37
xorg-x11-libXv-7.2-36
xorg-x11-libXprintUtil-7.2-35
xorg-x11-libXrender-devel-7.2-39
xorg-x11-Xvnc-7.1-63
xorg-x11-libXp-devel-7.2-35
xorg-x11-libXdmcp-7.2-30
xorg-x11-libXfixes-7.2-40
xorg-x11-fonts-core-7.2-48
xorg-x11-fonts-7.2-48
xorg-x11-libXt-devel-7.2-41
xorg-x11-libICE-7.2-37
xorg-x11-libxcb-7.2-26
xorg-x11-xtrans-devel-7.2-32
xorg-x11-libfontenc-devel-7.2-36
xorg-x11-libXp-7.2-35
xorg-x11-libXfixes-devel-7.2-40
xorg-x11-server-7.2-92
xorg-x11-libXv-devel-7.2-36
xorg-x11-libXprintUtil-devel-7.2-35
Comment 1 Forgotten User ZhJd0F0L3x 2007-06-08 12:53:56 UTC
Created attachment 145013 [details]
/var/log/Xorg.0.log.old after the latest crash (qemu in this case)
Comment 2 Forgotten User ZhJd0F0L3x 2007-06-08 12:55:35 UTC
Created attachment 145014 [details]
another log, this time from mplayer start (IIRC)
Comment 3 Forgotten User ZhJd0F0L3x 2007-06-08 12:56:02 UTC
Created attachment 145015 [details]
xorg.conf
Comment 4 Stefan Dirsch 2007-06-09 16:26:08 UTC
first crash (resume) seems to be vidmode related.
Comment 5 Stefan Dirsch 2007-06-13 08:29:13 UTC
I can see, that you enabled 3D support. Does this also happen with 3D disabled? Ok, it probably doesn't make much sense to use the mplayer GL backend in this case, I know.
Comment 6 Forgotten User ZhJd0F0L3x 2007-06-23 08:27:25 UTC
Created attachment 148066 [details]
logfile, crash with "mplayer -vo x11"

This time it crashed with plain "mplayer -vo x11"

i disabled 3d acceleration (commented out "load dri") and will try if it happens again.
Comment 7 Stefan Dirsch 2007-07-04 07:39:18 UTC
Did you already try intel driver release 2.1.0? Currently in /work/src/done/STABLE/xorg-x11-driver-video.
Comment 8 Forgotten User ZhJd0F0L3x 2007-07-04 17:25:05 UTC
(In reply to comment #7 from Stefan Dirsch)
> Did you already try intel driver release 2.1.0? Currently in
> /work/src/done/STABLE/xorg-x11-driver-video.

Yes, does not help at all.

It still crashed with "mplayer -vo x11". It did, however, not crash for quite some time when i had dri disabled (i enabled it again yesterday when i switched to the new 2.1.0 driver). This might be a hint that it has something to do with 3d.
Comment 9 Forgotten User ZhJd0F0L3x 2007-07-05 10:02:52 UTC
It is not about suspend, and not about 3d.

How to reproduce:
2 scripts:
#!/bin/sh
# internaldisplay.sh
        xrandr -s 1024x768
        xrandr --dpi 85
        xrandr --auto

#!/bin/sh
# widescreen.sh
        xrandr --auto
        xrandr -s 1680x1050
        xrandr --dpi 100

The following scenario:
- boot the laptop without external display. The default(?) configuration enables clone mode.
- mplayer -vo x11 foo.avi => works
- plug in the external monitor
- widescreen.sh # external display works with 1680x1050
- mplayer -vo x11 foo.avi => works
- internaldisplay.sh => internal display works with 1024x768
- mplayer -vo x11 foo.avi => works
- unplug external monitor
- internaldisplay.sh # or plain "xrandr --auto"
- mplayer -vo x11 foo.avi => BOOM

This is 100% reproducible. Famous last words:

Backtrace:
0: /usr/bin/Xorg(xf86SigHandler+0x81) [0x80d5481]
1: [0xffffe420]
2: /usr/lib/xorg/modules//extensions/libextmod.so [0xb7c64a12]
3: /usr/bin/Xorg [0x81548ce]
4: /usr/bin/Xorg(Dispatch+0x1af) [0x808ef5f]
5: /usr/bin/Xorg(main+0x47e) [0x8076a4e]
6: /lib/libc.so.6(__libc_start_main+0xe0) [0xb7d25fe0]
7: /usr/bin/Xorg(FontFileCompleteXLFD+0x1e1) [0x8075dd1]

Fatal server error:
Caught signal 11.  Server aborting

Comment 10 Forgotten User ZhJd0F0L3x 2007-07-05 10:05:47 UTC
If i change internaldisplay.sh to 

#!/bin/sh
# internaldisplay.sh
        xrandr --auto
        xrandr -s 1024x768
        xrandr --dpi 85

(put the xrandr --auto to the top instead of putting it at the bottom), then it works (does not crash). I need to unplug the external monitor before doing this because the xrandr -s xxx always disables the internal monitor if there is anything attached to the external VGA output
Comment 11 Stefan Dirsch 2007-07-05 10:24:22 UTC
Thanks! This will make investigations much more easier. :-) 

BTW, I suggest to no longer use the RandR 1.1 options and switch completely to the new 1.2 options.

#!/bin/sh
# internaldisplay.sh
        xrandr --output <internal_output> --mode 1024x768
        xrandr --output <external_output> --off
        xrandr --dpi 85

#!/bin/sh
# widescreen.sh
        xrandr --output <external_output> --mode 1680x1050
        xrandr --dpi 100

Check the names for internal_output/external_output by running xrandr without
any arguments. 

It might even be easier by using simply --auto for each output after connecting/disconnecting the external monitor.
Comment 12 Matthias Hopf 2007-07-05 12:34:02 UTC
Seife, could you please install the -debuginfo packages, and try getting a good backtrace? Run X inside gdb for that, or attach gdb to a running X. X itself will never produce a good backtrace with line numbers.
Comment 13 Forgotten User ZhJd0F0L3x 2007-07-19 15:07:31 UTC
To be honest: i have changed my scripts to not trigger the bug anymore. I think i have provided the info that you need to reproduce the bug, and you are much better at creating a backtrace than i am. I even supplied exactly the same machine as mine to make reproducing this bug easier. So i think you can get this information easily by yourself, and much faster than i am capable of providing it.
Comment 14 Matthias Hopf 2007-07-19 19:16:46 UTC
Ok.
Comment 15 Matthias Hopf 2007-08-16 17:35:31 UTC
Note to myself:
I had several Xserver crashes on SigGraph with my 915 - even when I didn't use mplayer at all. So this will hopefully help me to reproduce this issue.
Comment 16 Forgotten User ZhJd0F0L3x 2007-08-20 10:52:00 UTC
comment #9 is a plain easy "how to reproduce". If you did not use mplayer or anything that does xvidmode querying on SIGGRAPH, then you probably hit another bug. (Just wild, uneducated guesses from my side, as always ;-)
Comment 17 Matthias Hopf 2007-08-20 14:00:00 UTC
When I run KDE, krandrtray is always running. I could imagine, that this has something to do with it ;-)
But the other bug option is always possible :-(
Comment 18 Dirk Mueller 2007-09-05 12:52:21 UTC
it does not have to do anything to do with krandrtray though, it happens without as well
Comment 22 Luc Verhaegen 2007-09-19 16:37:08 UTC
I was able to reproduce this with xorg-x11-server 7.2-101 and with the 2.0.0 intel driver. I am no longer able to reproduce this with xorg-x11-server 7.2-138 and the 2.1.1 intel driver.

Closing...
Comment 23 Dirk Mueller 2007-09-19 20:44:39 UTC
still reproduceable with RC1
Comment 24 Stefan Dirsch 2007-09-21 08:54:41 UTC
This bug has been fixed. Dirk, please open a seperate bugreport for the VT switch crashes on your Samsung X20. Thanks.