X crashes when changing down resolution (Intrepid)

Bug #279568 reported by junior
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xf86-video-intel
Fix Released
High
mesa (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: xserver-xorg-video-intel

Connecting external monitor using screen resolution applet is causing x to restart after hitting apply. One should at least get an warning that "x is about to restart for new settings to take affect" so programs ect could be closed.

Revision history for this message
junior (olav-ekkje) wrote :
Revision history for this message
John Leach (johnleach) wrote :

This happens to me too, with Intrepid If I change resolution with the resolution applet, or change to external display and back again, X seems to crash and kick me back out to the gdm login screen. This happens every time for me (though not switching to external display, only when switching back to internal).

This is on a Lenovo Thinkpad R61 with the default package basic skeleton xorg.conf. Worked fine in Hardy.

00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c)

Changed in xserver-xorg-video-intel:
status: New → Confirmed
Revision history for this message
John Leach (johnleach) wrote :
Revision history for this message
In , John Leach (johnleach) wrote :

Hi, I'm forwarding this bug reported against Ubuntu Intrepid on Launchpad.

Bug: 279568

https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/279568

Changing down resolution causes Xorg to crash with a SIGABRT. I got a backtrace from gdm of the crash (attached to Launchpad bug): https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/279568/comments/4

PCI ID: 00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller [8086:2a02] (rev 0c)

Xorg.0.log: http://launchpadlibrarian.net/18896382/Xorg.0.log

xorg.conf: http://launchpadlibrarian.net/19310672/xorg.conf

Thanks,
John.

Revision history for this message
In , Haihao-xiang (haihao-xiang) wrote :

Created an attachment (id=20029)
reset cliprect_mode even if used is 0

Does this patch work for you?

Revision history for this message
John Leach (johnleach) wrote :

On further investigation, this is happening when changing down resolution. Changing up is fine (other than compiz not re-adjusting, but that is for another bug report). Changing down causes Xorg to crash. I got a backtrace from gdm of the crash:

Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb7a816b0 (LWP 7909)]
0xb7f2b430 in __kernel_vsyscall ()
(gdb) bt
#0 0xb7f2b430 in __kernel_vsyscall ()
#1 0xb7b3a880 in raise () from /lib/tls/i686/cmov/libc.so.6
#2 0xb7b3c248 in abort () from /lib/tls/i686/cmov/libc.so.6
#3 0xb7b3372e in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
#4 0xa74e242e in UNLOCK_HARDWARE () from /usr/lib/dri/i965_dri.so
#5 0xa74dee5b in intelCopyBuffer () from /usr/lib/dri/i965_dri.so
#6 0xa74e1487 in intelCopySubBuffer () from /usr/lib/dri/i965_dri.so
#7 0xa74d75e7 in ?? () from /usr/lib/dri/i965_dri.so
#8 0xb7a4da84 in __glXDRIdrawableCopySubBuffer (basePrivate=0x68, x=0, y=748, w=104, h=52) at ../../glx/glxdri.c:287
#9 0xb7a4001a in __glXDisp_CopySubBufferMESA (cl=0x8ce2c94, pc=<value optimized out>) at ../../glx/glxcmds.c:1632
#10 0xb7a3f0a7 in __glXDisp_VendorPrivate (cl=0x8ce2c94, pc=0x931f530 "\235\020\b") at ../../glx/glxcmds.c:2256
#11 0xb7a43c0a in __glXDispatch (client=0x8ce89c0) at ../../glx/glxext.c:512
#12 0x0808c89f in Dispatch () at ../../dix/dispatch.c:454
#13 0x08071d1d in main (argc=10, argv=0xbff2d4d4, envp=Cannot access memory at address 0x1eed
) at ../../dix/main.c:441

Revision history for this message
John Leach (johnleach) wrote :
Revision history for this message
John Leach (johnleach) wrote :

Further info as per the X reporting wiki page (sorry for all the separate posts)

lspci -nn | grep VGA

00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller [8086:2a02] (rev 0c)

xrandr

Screen 0: minimum 320 x 200, current 1280 x 800, maximum 2680 x 1050
VGA disconnected (normal left inverted right x axis y axis)
LVDS connected 1280x800+0+0 (normal left inverted right x axis y axis) 303mm x 190mm
   1280x800 60.0*+ 50.0
   1024x768 60.0
   800x600 60.3 56.2
   640x480 59.9
TMDS-1 disconnected (normal left inverted right x axis y axis)

Changed in xserver-xorg-video-intel:
status: Unknown → Confirmed
Revision history for this message
In , Haihao-xiang (haihao-xiang) wrote :

Hi, John
    Does the patch work for you?

Thanks
Haihao

Revision history for this message
In , John Leach (johnleach) wrote :

Hi, Haihao

sorry, this took me a while to figure out where to apply it and build the package.

I'm happy to say that it fixes the problem. Thanks!

I've built some packages with the patch for Ubuntu Intrepid:

https://launchpad.net/~johnleach/+archive

John.

(In reply to comment #2)
> Hi, John
> Does the patch work for you?
>
> Thanks
> Haihao
>

Revision history for this message
John Leach (johnleach) wrote :

Haihao Xiang wrote a patch to fix this crash (it's actually in mesa). I've tested it and confirmed it works.

I built packages with the fix included and uploaded them to my ppa:

https://launchpad.net/~johnleach/+archive

Including a debdiff here of the changes too.

Revision history for this message
In , Haihao-xiang (haihao-xiang) wrote :

fixed with mesa_7_2_branch commit 36c3e889d0cfbb040f7b860279987cd6ff5951f4.

Changed in xserver-xorg-video-intel:
status: Confirmed → Fix Released
Revision history for this message
John Leach (johnleach) wrote :

Hi, anyone know what we have to do to get some "official" attention on this? The fix seem pretty trivial so I'd expect it could be released as an update to Intrepid, though I'm not certain of the policy.

Revision history for this message
kelvie (kelvie) wrote :

I can confirm that I had this problem, and now it is completely fixed with John's packages above.

This is a fairly critical bug (it completely cripples the ability to change resolution/orientation on my laptop).

Revision history for this message
kelvie (kelvie) wrote :

Also, forgot to mention, that this only happens for me when I run KWin versions over 4.1. Having compositing on or off makes no difference, and my backtrace is identical to the one above.

Revision history for this message
Pasha (pashash) wrote :

I also may confirm that John's package resolve this problem. Is it any plan to make the "fix" official ? It is pretty annoying bug...

Some "global" comment - 8.10 looks so crappy :( . X does not work as expected. Keyboard switcher is also broken and no one is going to fix it.... It was huge mistake to upgdate from 8.04 :(

Geir Ove Myhr (gomyhr)
tags: added: dual-head
removed: external
Revision history for this message
Bryce Harrington (bryce) wrote :

Looks like this has been fixed for some time (fix is present in 7.4.1 which we have in Karmic).

Changed in mesa (Ubuntu):
status: Confirmed → Fix Released
Changed in xserver-xorg-video-intel:
importance: Unknown → High
Changed in xserver-xorg-video-intel:
importance: High → Unknown
Changed in xserver-xorg-video-intel:
importance: Unknown → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.