Announcement

Collapse
No announcement yet.

[SOLVED/WORK-AROUND] Clicking "Restart" causes X to crash...

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED/WORK-AROUND] Clicking "Restart" causes X to crash...

    (edit: see my self-reply after this message)

    Hi - a relatively smooth upgrade from 10.10 to 11.04 on a Dell Inspiron 6000 laptop.

    When I hit ctrl-alt-delete, the Logout/Turn Off/Reboot dialog pops up.

    When I click "Restart Computer", X seems to crash and I go to the KDM login window. From there I can reboot.

    In kdm.log, I see a segfault, traces, etc (posted below, along with other info). Xorg.0.log shows no errors.

    I am also having some display issues with random regions of the screen be redrawn incorrectly. Not sure if that's related? I have all desktop effects off, and in .kde/share/config/kwinrc I have "Enabled=false" under Compositing.

    I have two monitors going. This was all working fine in 10.10.

    (Here I'm just asking about the X crash, but if anyone has any ideas about the graphics, i'm all ears.)

    Any help is greatly appreciated. It was otherwise a very smooth upgrade.

    I ran though this but it had no effect (I did have fglrx installed, once upon a time, years ago, but haven't had any problems in the intervening years): https://wiki.ubuntu.com/X/Troublesho...from%20scratch

    Thanks!

    ----------------

    kdm.log:

    Code:
    X.Org X Server 1.10.1
    Release Date: 2011-04-15
    X Protocol Version 11, Revision 0
    Build Operating System: Linux 2.6.24-29-server i686 Ubuntu
    Current Operating System: Linux caseylinux 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686
    Kernel command line: root=UUID=d59af270-b410-481c-9dc1-3f40152a88f1 ro ipv6.disable=1 nosplash
    Build Date: 19 April 2011 03:33:17PM
    xorg-server 2:1.10.1-1ubuntu1 (For technical support please see [url]http://www.ubuntu.com/support[/url]) 
    Current version of pixman: 0.20.2
        Before reporting problems, check [url]http://wiki.x.org[/url]
        to make sure that you have the latest version.
    Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    (==) Log file: "/var/log/Xorg.0.log", Time: Sat Apr 30 18:39:33 2011
    (==) Using config file: "/etc/X11/xorg.conf"
    (==) Using system config directory "/usr/share/X11/xorg.conf.d"
    (II) [KMS] Kernel modesetting enabled.
    *** glibc detected *** /usr/bin/X: free(): invalid pointer: 0xb57b6008 ***
    ======= Backtrace: =========
    /lib/i386-linux-gnu/libc.so.6(+0x6b961)[0x8c0961]
    /lib/i386-linux-gnu/libc.so.6(+0x6d28b)[0x8c228b]
    /lib/i386-linux-gnu/libc.so.6(cfree+0x6d)[0x8c541d]
    /usr/lib/xorg/modules/libexa.so(+0x77be)[0x17a7be]
    /usr/bin/X[0x812c18b]
    /usr/lib/xorg/modules/extensions/libextmod.so(+0xa484)[0x331484]
    /usr/bin/X(dixDestroyPixmap+0x15)[0x806b155]
    /usr/bin/X(FreeResource+0x115)[0x8091215]
    /usr/bin/X[0x806b45e]
    /usr/bin/X[0x8070167]
    /usr/bin/X[0x806281c]
    /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x86be37]
    /usr/bin/X[0x8062411]
    ======= Memory map: ========
    00110000-00115000 r-xp 00000000 08:03 42459   /usr/lib/libfontenc.so.1.0.0
    00115000-00116000 r--p 00004000 08:03 42459   /usr/lib/libfontenc.so.1.0.0
    00116000-00117000 rw-p 00005000 08:03 42459   /usr/lib/libfontenc.so.1.0.0
    00117000-00168000 r-xp 00000000 08:03 213990   /usr/lib/xorg/modules/extensions/libglx.so
    00168000-00169000 r--p 00050000 08:03 213990   /usr/lib/xorg/modules/extensions/libglx.so
    00169000-0016c000 rw-p 00051000 08:03 213990   /usr/lib/xorg/modules/extensions/libglx.so
    0016c000-00171000 r-xp 00000000 08:03 146258   /lib/i386-linux-gnu/libdrm_radeon.so.1.0.0
    
    [edit: i'm leaving out a number of these lines...]
    
    08a46000-09c4a000 rw-p 00000000 00:00 0     [heap]
    b4df0000-b5cb7000 rw-p 00000000 00:00 0 
    b728a000-b728c000 rw-p 00000000 00:00 0 
    b7400000-b7421000 rw-p 00000000 00:00 0 
    b7421000-b7500000 ---p 00000000 00:00 0 
    b7578000-b75d8000 rw-s 00000000 00:04 65536   /SYSV00000000 (deleted)
    b75d8000-b7719000 rw-p 00000000 00:00 0 
    b78c1000-b78c6000 rw-p 00000000 00:00 0 
    b78d6000-b78d7000 rw-s 100bf0000 00:05 6719   /dev/dri/card0
    b78d7000-b78db000 rw-s 1008ec000 00:05 6719   /dev/dri/card0
    b78db000-b78df000 rw-s 1008e8000 00:05 6719   /dev/dri/card0
    b78df000-b78e2000 rw-p 00000000 00:00 0 
    bfb3a000-bfb5d000 rw-p 00000000 00:00 0     [stack]
    
    X.Org X Server 1.10.1
    Release Date: 2011-04-15
    X Protocol Version 11, Revision 0
    Build Operating System: Linux 2.6.24-29-server i686 Ubuntu
    Current Operating System: Linux caseylinux 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686
    Kernel command line: root=UUID=d59af270-b410-481c-9dc1-3f40152a88f1 ro ipv6.disable=1 nosplash
    Build Date: 19 April 2011 03:33:17PM
    xorg-server 2:1.10.1-1ubuntu1 (For technical support please see [url]http://www.ubuntu.com/support[/url]) 
    Current version of pixman: 0.20.2
        Before reporting problems, check [url]http://wiki.x.org[/url]
        to make sure that you have the latest version.
    Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    (==) Log file: "/var/log/Xorg.0.log", Time: Sat Apr 30 18:56:59 2011
    (==) Using config file: "/etc/X11/xorg.conf"
    (==) Using system config directory "/usr/share/X11/xorg.conf.d"
    (II) [KMS] Kernel modesetting enabled.
    QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
    QFileSystemWatcher: failed to add paths: /tmp/0655732308/.config/ibus/bus
     ddxSigGiveUp: Closing log
    ------------------


    The trace seems to vary. Here is another I saw:

    Code:
    ...
    (II) [KMS] Kernel modesetting enabled.
    QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
    QFileSystemWatcher: failed to add paths: /tmp/1830709888/.config/ibus/bus
    
    Backtrace:
    0: /usr/bin/X (xorg_backtrace+0x3b) [0x80eab1b]
    1: /usr/bin/X (0x8048000+0x5fac8) [0x80a7ac8]
    2: (vdso) (__kernel_rt_sigreturn+0x0) [0xb9f40c]
    3: /usr/lib/xorg/modules/drivers/radeon_drv.so (0x970000+0xa1c4d) [0xa11c4d]
    4: /usr/lib/xorg/modules/libexa.so (0x19c000+0x5444) [0x1a1444]
    5: /usr/lib/xorg/modules/libexa.so (0x19c000+0x57d9) [0x1a17d9]
    6: /usr/lib/xorg/modules/libexa.so (0x19c000+0x8013) [0x1a4013]
    7: /usr/lib/xorg/modules/libexa.so (0x19c000+0x11747) [0x1ad747]
    8: /usr/lib/xorg/modules/libexa.so (0x19c000+0xa2b6) [0x1a62b6]
    9: /usr/bin/X (miCopyRegion+0x153) [0x81a6073]
    10: /usr/bin/X (miDoCopy+0x398) [0x81a6548]
    11: /usr/lib/xorg/modules/libexa.so (0x19c000+0x949f) [0x1a549f]
    12: /usr/bin/X (0x8048000+0xe264e) [0x812a64e]
    13: /usr/bin/X (0x8048000+0x23b79) [0x806bb79]
    14: /usr/bin/X (0x8048000+0x28167) [0x8070167]
    15: /usr/bin/X (0x8048000+0x1a81c) [0x806281c]
    16: /lib/i386-linux-gnu/libc.so.6 (__libc_start_main+0xe7) [0x367e37]
    17: /usr/bin/X (0x8048000+0x1a411) [0x8062411]
    Segmentation fault at address 0xb574a000
    ------

    lspci:

    Code:
    00:00.0 Host bridge: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller (rev 03)
    00:01.0 PCI bridge: Intel Corporation Mobile 915GM/PM Express PCI Express Root Port (rev 03)
    00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 03)
    00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 03)
    00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 03)
    00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 03)
    00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 03)
    00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev d3)
    00:1e.2 Multimedia audio controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller (rev 03)
    00:1e.3 Modem: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Modem Controller (rev 03)
    00:1f.0 ISA bridge: Intel Corporation 82801FBM (ICH6M) LPC Interface Bridge (rev 03)
    00:1f.2 IDE interface: Intel Corporation 82801FBM (ICH6M) SATA Controller (rev 03)
    01:00.0 VGA compatible controller: ATI Technologies Inc M22 [Mobility Radeon X300]
    03:00.0 Ethernet controller: Broadcom Corporation BCM4401-B0 100Base-TX (rev 02)
    03:01.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev b3)
    03:01.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C552 IEEE 1394 Controller (rev 08)
    03:01.2 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 17)
    03:03.0 Network controller: Intel Corporation PRO/Wireless 2200BG [Calexico2] Network Connection (rev 05)
    ------------

    lsmod:

    Code:
    cryptd         19801 0 
    aes_i586        16956 2 
    aes_generic      38023 1 aes_i586
    lib80211_crypt_ccmp  12785 2 
    snd_hrtimer      12680 1 
    rfcomm         38125 0 
    binfmt_misc      13213 1 
    sco          17779 0 
    bnep          17785 0 
    l2cap         48656 4 rfcomm,bnep
    parport_pc       32111 0 
    dm_crypt        22463 0 
    ppdev         12849 0 
    nls_iso8859_1     12617 2 
    nls_cp437       12751 2 
    vfat          17335 2 
    fat          55505 1 vfat
    joydev         17322 0 
    snd_intel8x0      33213 2 
    snd_ac97_codec    105614 1 snd_intel8x0
    ac97_bus        12642 1 snd_ac97_codec
    snd_pcm        80244 2 snd_intel8x0,snd_ac97_codec
    snd_seq_midi      13132 0 
    snd_rawmidi      25269 1 snd_seq_midi
    snd_seq_midi_event   14475 1 snd_seq_midi
    snd_seq        51291 3 snd_seq_midi,snd_seq_midi_event
    ipw2200        145664 0 
    pcmcia         39671 0 
    snd_timer       28659 3 snd_hrtimer,snd_pcm,snd_seq
    snd_seq_device     14110 3 snd_seq_midi,snd_rawmidi,snd_seq
    libipw         46641 1 ipw2200
    cfg80211       156212 2 ipw2200,libipw
    btusb         18160 0 
    yenta_socket      27230 0 
    dell_laptop      13515 0 
    pcmcia_rsrc      18292 1 yenta_socket
    bluetooth       65565 5 rfcomm,sco,bnep,l2cap,btusb
    snd          55295 12 snd_intel8x0,snd_ac97_codec,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
    psmouse        73312 0 
    dcdbas         14054 1 dell_laptop
    soundcore       12600 1 snd
    lib80211        14570 3 lib80211_crypt_ccmp,ipw2200,libipw
    pcmcia_core      21505 3 pcmcia,yenta_socket,pcmcia_rsrc
    serio_raw       12990 0 
    snd_page_alloc     14073 2 snd_intel8x0,snd_pcm
    firewire_sbp2     18303 0 
    lp           13349 0 
    parport        36746 3 parport_pc,ppdev,lp
    radeon        896428 2 
    usbhid         41704 0 
    ttm          65184 1 radeon
    drm_kms_helper     40745 1 radeon
    b44          35301 0 
    hid          77084 1 usbhid
    firewire_ohci     31504 0 
    drm          180037 4 radeon,ttm,drm_kms_helper
    ssb          45942 1 b44
    firewire_core     56138 2 firewire_sbp2,firewire_ohci
    sdhci_pci       13623 0 
    sdhci         22720 1 sdhci_pci
    video         18951 0 
    crc_itu_t       12627 1 firewire_core
    i2c_algo_bit      13184 1 radeon
    --------

    /etc/X11/xorg.conf:

    Code:
    Section "Monitor"
        Identifier   "Configured Monitor"
    EndSection
    
    Section "Screen"
        Identifier   "Default Screen"
        Monitor     "Configured Monitor"
        Device     "Configured Video Device"
        DefaultDepth  24
    EndSection
    
    Section "Module"
        Load  "glx"
    EndSection
    
    Section "Device"
        Identifier   "Configured Video Device"
        Driver "ati"
    EndSection
    
    Section "ServerFlags"
        Option "DontZap"    "True"
    EndSection
    
    #Option "DRI" "off"
    ------

    Edit: hwinfo entry for video card:

    Code:
    23: PCI 100.0: 0300 VGA compatible controller (VGA)
     [Created at pci.318]
     UDI: /org/freedesktop/Hal/devices/pci_1002_5460
     Unique ID: VCu0.eieHhsil+W9
     Parent ID: vSkL.RA714lUVE7D
     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 Radeon Mobility M300 (M22) 5460 (PCIE)"
     Vendor: pci 0x1002 "ATI Technologies Inc"
     Device: pci 0x5460 "Radeon Mobility M300 (M22) 5460 (PCIE)"
     SubVendor: pci 0x1028 "Dell"
     SubDevice: pci 0x2003 
     Driver: "radeon"
     Driver Modules: "drm"
     Memory Range: 0xd0000000-0xd7ffffff (ro,non-prefetchable)
     I/O Ports: 0xde00-0xdeff (rw)
     Memory Range: 0xdfdf0000-0xdfdfffff (rw,non-prefetchable)
     Memory Range: 0xdfd00000-0xdfd1ffff (ro,non-prefetchable,disabled)
     IRQ: 41 (4478 events)
     I/O Ports: 0x3c0-0x3df (rw)
     Module Alias: "pci:v00001002d00005460sv00001028sd00002003bc03sc00i00"
     Driver Info #0:
      XFree86 v4 Server Module: radeon
      XF86Config Entry: Option "MonitorLayout" "LVDS,AUTO"
     Driver Info #1:
      XFree86 v4 Server Module: radeon
      3D Support: yes
      Extensions: dri
     Config Status: cfg=new, avail=yes, need=no, active=unknown
     Attached to: #12 (PCI bridge)

    #2
    Re: Clicking "Restart" causes X to crash...

    Whelp, got a less-than-awesome workaround together.

    Having done some more basic research, I now know that i'm using the radeon driver with kernel modesetting (KMS).

    I believe the radeon driver is buggy with the dual-monitor setup.

    Setting the monitors to different positions relative each other (via either the GUI in KDE or the xrandr command) causes a lot of random crashing of the X server.

    I discovered that setting my laptop screen to be "below" the VGA-0 (external) monitor seemed to not cause any crashes. "left-of" also worked, but "right-of" crashed. Go figure.

    This also solved the buggy drawing errors I was seeing.

    Basically, it seems like there's some kind of bad memory allocation going on and it's getting exposed at random times. For whatever reason(s), it was more rarely exposed in 10.10 and became more exposed in 11.04 (especially when trying to end the session).

    I did not experiment with turning off KMS and setting the radeon driver options manually in xorg.conf. Anyone think that might be worth the time? (AFAIK you can't leave KMS on and still have xorg.conf apply?)

    Related useful links:
    https://help.ubuntu.com/community/RadeonDriver
    https://wiki.ubuntu.com/X/KernelModeSetting
    http://wiki.x.org/wiki/radeon

    Thanks,
    -c

    Comment

    Working...
    X