Bug 691234

Summary: X server crashes on Terminal window resize (Thinkpad T60p)
Product: [openSUSE] openSUSE 11.4 Reporter: Dejan Muhamedagic <dmuhamedagic>
Component: X.OrgAssignee: Stefan Dirsch <sndirsch>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <xorg-maintainer-bugs>
Severity: Major    
Priority: P3 - Medium    
Version: Final   
Target Milestone: ---   
Hardware: i586   
OS: openSUSE 11.4   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: xserver backtrace
xserver log

Description Dejan Muhamedagic 2011-05-02 13:52:50 UTC
Created attachment 427539 [details]
xserver backtrace

After the system update today, which included update to the latest kernel kernel-desktop-2.6.37.6-0.5.1.i586, the X server could not start (will file a separate bug report). Disabling dri and dri2 as suggested in another bug report for the radeonhd driver helped, but now X server segfaults after resizing the Terminal application. Resizing xterm, for instance, works fine.

The backtrace footprint is identical to https://bugs.freedesktop.org/show_bug.cgi?id=30032

There is obviously a runaway recursion:

rondo:/home/dejan # wc xorg.resize-crash.bt.txt
  217365  1209086 11101656 xorg.resize-crash.bt.txt

====================== start backtrace ======================
-rw------- 1 root root 53125120 May  2 14:27 /core
[New Thread 1869]
Core was generated by `/usr/bin/Xorg :0 -br -verbose -auth /var/run/gdm/auth-for-gdm3380GZ/database -'.
Program terminated with signal 11, Segmentation fault.
#0  RecordFlushReplyBuffer (pContext=0x87b5ea8, data1=0x0, len1=0, data2=0x0, len2=0) at record.c:247
	in record.c

Thread 1 (Thread 1869):
#0  RecordFlushReplyBuffer (pContext=0x87b5ea8, data1=0x0, len1=0, data2=0x0, len2=0) at record.c:247
... (first thousand lines of the backtrace attached)

This is on a Thinkpad T60p with the radeon driver:

[0]rondo:~ > hwinfo --gfx
24: PCI 100.0: 0300 VGA compatible controller (VGA)             
  [Created at pci.318]
  Unique ID: VCu0.3af0kJKwHZ9
  Parent ID: vSkL.auMtoROVJ9A
  SysFS ID: /devices/pci0000:00/0000:00:01.0/0000:01:00.0
  SysFS BusID: 0000:01:00.0
  Hardware Class: graphics card
  Model: "ATI M56GL [Mobility FireGL V5250]"
  Vendor: pci 0x1002 "ATI Technologies Inc"
  Device: pci 0x71d4 "M56GL [Mobility FireGL V5250]"
  SubVendor: pci 0x17aa "Lenovo"
  SubDevice: pci 0x20a4 
  Memory Range: 0xd0000000-0xdfffffff (ro,non-prefetchable)
  I/O Ports: 0x2000-0x2fff (rw)
  Memory Range: 0xee100000-0xee10ffff (rw,non-prefetchable)
  Memory Range: 0xee120000-0xee13ffff (ro,non-prefetchable,disabled)
  IRQ: 16 (35199 events)
  I/O Ports: 0x3c0-0x3df (rw)
  Module Alias: "pci:v00001002d000071D4sv000017AAsd000020A4bc03sc00i00"
  Driver Info #0:
    Driver Status: radeon is active
    Driver Activation Cmd: "modprobe radeon"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #8 (PCI bridge)

Primary display adapter: #24

[0]rondo:~ > rpm -q xorg-x11-server kernel-desktop
xorg-x11-server-7.6_1.9.3-15.18.4.i586
kernel-desktop-2.6.37.6-0.5.1.i586

The X server worked (mostly) fine until the today's update which included the new kernel.
Comment 1 Dejan Muhamedagic 2011-05-02 13:53:25 UTC
Created attachment 427540 [details]
xserver log
Comment 2 Dejan Muhamedagic 2011-05-02 14:06:56 UTC
Using the failsafe boot option makes X server usable again. This is the command line:

rondo:~ # cat /proc/cmdline
root=/dev/disk/by-id/ata-HTS721010G9SA00_MPDZN7Y0HNE9JL-part1 apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe

The standard kernel parameters:

root=/dev/disk/by-id/ata-HTS721010G9SA00_MPDZN7Y0HNE9JL-part1 resume=/dev/rootvg/swap splash=silent nomodeset quiet showopts

Forgot to mention that with the standard kernel boot, the console font doesn't change, i.e. it remains the same big and ugly as at the beginning of boot.
Comment 3 Stefan Dirsch 2011-05-02 14:44:32 UTC
Apparently a kernel regression (radeon DRM module).
Comment 4 Stefan Dirsch 2011-05-02 14:58:43 UTC
> The standard kernel parameters:
>
> root=/dev/disk/by-id/ata-HTS721010G9SA00_MPDZN7Y0HNE9JL-part1
> resume=/dev/rootvg/swap splash=silent nomodeset quiet showopts

Please remove again "nomodeset" in /boot/grub/menu.lst. No idea who added it. 

I don't think we really are interested in supporting X configurations with DRI/DRI2 disabled. It's just a workaround. Hence I'm going to close this one as duplicate of bnc #678264.
Comment 5 Stefan Dirsch 2011-05-02 14:59:37 UTC
Closing as dup.

*** This bug has been marked as a duplicate of bug 678264 ***