Bug#805974: xserver-xorg-core: X server crash after corruption seen in rxvt-unicode under kde4

2015-11-24 Thread Michel Dänzer
On 24.11.2015 21:41, Zoran Dželajlija wrote:
> Package: xserver-xorg-core
> Version: 2:1.16.4-1
> Severity: important
> 
> Hi,
> 
> X server with a KDE4 session running on a Radeon HD 7450, single DP screen
> connected, just crashed.  Last few actions done before the crash was
> maximizing a urxvt (rxvt-unicode 9.20-1+b1) window that started to show
> corruption at that point, refreshing just the last line (~16 pixels
> vertical) instead of the whole window.  X crashed a second or two after
> that.
> 
> This is a recently upgraded and migrated hardware system with an ivy bridge
> board and cpu.  Kernel and xserver-org-video-intel are from
> jessie-backports, but there's also a discrete ati card which I've been using
> just to see how it works.  X has been running for a couple weeks without
> issues, apart from my own accidental zap with Ctrl-Alt-Backspace.
> 
> Not sure whether to file against video-radeon or X server itself.  The
> stack trace (see below for Xorg.0.log.old) does not look like anything
> radeon specific, so xserver-xorg-core it is.

[...]

> [2836461.796] failed to map pixmap: -12

This means that radeon_bo_map() returned -12 (-ENOMEM) in
EVERGREENDownloadFromScreen().


> [2836461.798] (EE) 
> [2836461.798] (EE) Backtrace:
> [2836461.808] (EE) 0: /usr/bin/X (xorg_backtrace+0x52) [0x56785552]
> [2836461.808] (EE) 1: /usr/bin/X (0x565df000+0x1aa7f2) [0x567897f2]
> [2836461.808] (EE) 2: linux-gate.so.1 (__kernel_rt_sigreturn+0x0) [0xf779db50]
> [2836461.808] (EE) 3: /lib/i386-linux-gnu/i686/cmov/libc.so.6 
> (0xf733a000+0x12ff40) [0xf7469f40]
> [2836461.808] (EE) 4: /usr/lib/xorg/modules/libexa.so (0xf53c4000+0x48de) 
> [0xf53c88de]
> [2836461.808] (EE) 5: /usr/lib/xorg/modules/libexa.so (0xf53c4000+0x4e27) 
> [0xf53c8e27]
> [2836461.808] (EE) 6: /usr/lib/xorg/modules/libexa.so (0xf53c4000+0x5043) 
> [0xf53c9043]
> [2836461.808] (EE) 7: /usr/lib/xorg/modules/libexa.so (0xf53c4000+0x748b) 
> [0xf53cb48b]
> [2836461.808] (EE) 8: /usr/lib/xorg/modules/libexa.so (0xf53c4000+0x3d83) 
> [0xf53c7d83]
> [2836461.808] (EE) 9: /usr/lib/xorg/modules/libexa.so (0xf53c4000+0x10013) 
> [0xf53d4013]
> [2836461.808] (EE) 10: /usr/lib/xorg/modules/libexa.so (0xf53c4000+0x7707) 
> [0xf53cb707]
> [2836461.808] (EE) 11: /usr/bin/X (0x565df000+0x12ab24) [0x56709b24]
> [2836461.808] (EE) 12: /usr/bin/X (0x565df000+0x39346) [0x56618346]
> [2836461.808] (EE) 13: /usr/bin/X (0x565df000+0x3d086) [0x5661c086]
> [2836461.808] (EE) 14: /usr/bin/X (0x565df000+0x4126a) [0x5662026a]
> [2836461.808] (EE) 15: /usr/bin/X (0x565df000+0x2af2a) [0x56609f2a]
> [2836461.808] (EE) 16: /lib/i386-linux-gnu/i686/cmov/libc.so.6 
> (__libc_start_main+0xf3) [0xf7353a63]
> [2836461.808] (EE) 17: /usr/bin/X (0x565df000+0x2af68) [0x56609f68]
> [2836461.808] (EE) 
> [2836461.808] (EE) Segmentation fault at address 0x0
> [2836461.808] (EE) 
> Fatal server error:
> [2836461.808] (EE) Caught signal 11 (Segmentation fault). Server aborting

This immediate crash is an EXA bug. glamor might handle this more
gracefully.

However, since there seems to be some kind of out of memory situation,
even if a crash can be avoided, correct rendering probably cannot be
maintained. Maybe you can try running Xorg in valgrind --leak-check=full
to see if there's a memory leak somewhere. When you do so, please make
sure the xserver-xorg-core-dbg and xserver-xorg-video-radeon-dbg
packages are installed.


-- 
Earthling Michel Dänzer   |   http://www.amd.com
Libre software enthusiast | Mesa and X developer



Bug#805974: xserver-xorg-core: X server crash after corruption seen in rxvt-unicode under kde4

2015-11-24 Thread Zoran Dželajlija
Package: xserver-xorg-core
Version: 2:1.16.4-1
Severity: important

Hi,

X server with a KDE4 session running on a Radeon HD 7450, single DP screen
connected, just crashed.  Last few actions done before the crash was
maximizing a urxvt (rxvt-unicode 9.20-1+b1) window that started to show
corruption at that point, refreshing just the last line (~16 pixels
vertical) instead of the whole window.  X crashed a second or two after
that.

This is a recently upgraded and migrated hardware system with an ivy bridge
board and cpu.  Kernel and xserver-org-video-intel are from
jessie-backports, but there's also a discrete ati card which I've been using
just to see how it works.  X has been running for a couple weeks without
issues, apart from my own accidental zap with Ctrl-Alt-Backspace.

Not sure whether to file against video-radeon or X server itself.  The
stack trace (see below for Xorg.0.log.old) does not look like anything
radeon specific, so xserver-xorg-core it is.

Regards,
Zoran

-- Package-specific info:
X server symlink status:

lrwxrwxrwx 1 root root 13 Sep 14  2006 /etc/X11/X -> /usr/bin/Xorg
-rwxr-xr-x 1 root root 2564976 Feb 11  2015 /usr/bin/Xorg

VGA-compatible devices on PCI bus:
--
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. 
[AMD/ATI] Caicos PRO [Radeon HD 7450] [1002:677b]

/etc/X11/xorg.conf does not exist.

Contents of /etc/X11/xorg.conf.d:
-
total 4
-rw-r--r-- 1 root root 66 Mar 11  2011 20-nvidia.conf.disabled

KMS configuration files:

/etc/modprobe.d/i915-kms.conf:
  options i915 modeset=1
/etc/modprobe.d/radeon-kms.conf:
  options radeon modeset=1

Kernel version (/proc/version):
---
Linux version 4.2.0-0.bpo.1-amd64 (debian-ker...@lists.debian.org) (gcc version 
4.9.2 (Debian 4.9.2-10) ) #1 SMP Debian 4.2.1-2~bpo8+1 (2015-10-09)

Xorg X server log files on system:
--
-rw-r--r-- 1 root root 47284 Nov  9  2006 /var/log/Xorg.2.log
-rw-r--r-- 1 root root 38696 Mar 12  2009 /var/log/Xorg.20.log
-rw-r--r-- 1 root root 34918 Jun  7  2013 /var/log/Xorg.1.log
-rw-r--r-- 1 root root 50317 Nov 24 13:00 /var/log/Xorg.0.log

Contents of previous Xorg X server log file showing the crash 
(/var/log/Xorg.0.log.old):
-
[2748513.226] 
X.Org X Server 1.16.4
Release Date: 2014-12-20
[2748513.226] X Protocol Version 11, Revision 0
[2748513.226] Build Operating System: Linux 3.2.0-4-amd64 i686 Debian
[2748513.226] Current Operating System: Linux burek 4.2.0-0.bpo.1-amd64 #1 SMP 
Debian 4.2.1-2~bpo8+1 (2015-10-09) x86_64
[2748513.226] Kernel command line: root=/dev/mapper/vg0-root acpi_osi="!Windows 
2012" resume=/dev/vg0/swap0 debug-shell.service
[2748513.226] Build Date: 11 February 2015  01:14:26AM
[2748513.226] xorg-server 2:1.16.4-1 (http://www.debian.org/support) 
[2748513.226] Current version of pixman: 0.32.6
[2748513.226]   Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[2748513.226] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[2748513.226] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Nov 23 12:35:02 
2015
[2748513.231] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[2748513.232] (==) No Layout section.  Using the first Screen section.
[2748513.232] (==) No screen section available. Using defaults.
[2748513.232] (**) |-->Screen "Default Screen Section" (0)
[2748513.232] (**) |   |-->Monitor ""
[2748513.232] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[2748513.232] (==) Automatically adding devices
[2748513.232] (==) Automatically enabling devices
[2748513.232] (==) Automatically adding GPU devices
[2748513.239] (==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/cyrillic,
/usr/share/fonts/X11/100dpi/:unscaled,
/usr/share/fonts/X11/75dpi/:unscaled,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
/usr/share/fonts/X11/75dpi,
built-ins
[2748513.239] (==) ModulePath set to "/usr/lib/xorg/modules"
[2748513.239] (II) The server relies on udev to provide the list of input 
devices.
If no devices become available, reconfigure udev or disable 
AutoAddDevices.
[2748513.239] (II) Loader magic: 0x5684b700
[2748513.239] (II) Module ABI versions:
[2748513.239]   X.Org ANSI C Emulation: 0.4
[2748513.239]   X.Org Video Driver: 18.0
[2748513.239]   X.Org XInput driver : 21.0
[2748513.239]   X.Org Server Extension : 8.0
[2748513.239] (II) xfree86: Adding drm device (/dev/dri/card1)
[2748513.239] (II) xfree86: Adding drm device (/dev/dri/card0)
[2748513.240] (--)