Xorg crashed with SIGABRT in fbBltOne()

Bug #1443456 reported by calcatinge
94
This bug affects 9 people
Affects Status Importance Assigned to Milestone
X.Org X server
Fix Released
Critical
xorg-server (Ubuntu)
Fix Released
High
Timo Aaltonen
Vivid
Invalid
Medium
Unassigned
Wily
Fix Released
High
Timo Aaltonen
xorg-server-lts-vivid (Ubuntu)
Won't Fix
Medium
Unassigned

Bug Description

system restarts when trying to open libreoffice writer, just after the installation of the latest updates (after a fresh install)

ProblemType: Crash
DistroRelease: Ubuntu 15.04
Package: xserver-xorg-core 2:1.17.1-0ubuntu3
ProcVersionSignature: Ubuntu 3.19.0-13.13-generic 3.19.3
Uname: Linux 3.19.0-13-generic x86_64
.tmp.unity.support.test.0:

ApportVersion: 2.17-0ubuntu2
Architecture: amd64
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CompositorRunning: compiz
CompositorUnredirectDriverBlacklist: '(nouveau|Intel).*Mesa 8.0'
CompositorUnredirectFSW: true
CrashCounter: 1
Date: Mon Apr 13 16:32:19 2015
DistUpgraded: Fresh install
DistroCodename: vivid
DistroVariant: ubuntu
ExecutablePath: /usr/bin/Xorg
GraphicsCard:
 Advanced Micro Devices, Inc. [AMD/ATI] Kaveri [Radeon R6/R7 Graphics] [1002:1309] (prog-if 00 [VGA controller])
   Subsystem: Lenovo Device [17aa:3830]
InstallationDate: Installed on 2015-04-13 (0 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Beta amd64 (20150326)
MachineType: LENOVO 80EC
ProcCmdline: /usr/bin/X -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
ProcEnviron:

ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.19.0-13-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash vt.handoff=7
Signal: 6
SourcePackage: xorg-server
StacktraceTop:
 fbBltOne () from /usr/lib/xorg/modules/libfb.so
 fbCopy1toN () from /usr/lib/xorg/modules/libfb.so
 ?? () from /usr/lib/xorg/modules/libglamoregl.so
 miCopyRegion ()
 miDoCopy ()
Title: Xorg crashed with SIGABRT in fbBltOne()
UdevLog: Error: [Errno 2] No such file or directory: '/var/log/udev'
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

dmi.bios.date: 09/11/2014
dmi.bios.vendor: LENOVO
dmi.bios.version: A4CN32WW (V 2.01)
dmi.board.asset.tag: No Asset Tag
dmi.board.name: Lancer 5B3
dmi.board.vendor: LENOVO
dmi.board.version: NO DPK
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Lenovo Z50-75
dmi.modalias: dmi:bvnLENOVO:bvrA4CN32WW(V2.01):bd09/11/2014:svnLENOVO:pn80EC:pvrLenovoZ50-75:rvnLENOVO:rnLancer5B3:rvrNODPK:cvnLENOVO:ct10:cvrLenovoZ50-75:
dmi.product.name: 80EC
dmi.product.version: Lenovo Z50-75
dmi.sys.vendor: LENOVO
version.compiz: compiz 1:0.9.12.1+15.04.20150330-0ubuntu1
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.60-2
version.libgl1-mesa-dri: libgl1-mesa-dri 10.5.2-0ubuntu1
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 10.5.2-0ubuntu1
version.xserver-xorg-core: xserver-xorg-core 2:1.17.1-0ubuntu3
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.9.0-1ubuntu2
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:7.5.0-1ubuntu2
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917-1~exp1ubuntu2build1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.11-1ubuntu2build1
xserver.bootTime: Mon Apr 13 16:32:28 2015
xserver.configfile: default
xserver.errors: RADEON(G0): [XvMC] Failed to initialize extension.
xserver.logfile: /var/log/Xorg.0.log
xserver.version: 2:1.17.1-0ubuntu3
xserver.video_driver: radeon

Revision history for this message
calcatinge (calcatinge) wrote :
Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : StacktraceSource.txt
Revision history for this message
Apport retracing service (apport) wrote : StacktraceTop.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in xorg-server (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
Revision history for this message
Seth Arnold (seth-arnold) wrote : Bug is not a security issue

Thanks for taking the time to report this bug and helping to make Ubuntu better. We appreciate the difficulties you are facing, but this appears to be a "regular" (non-security) bug. I have unmarked it as a security issue since this bug does not show evidence of allowing attackers to cross privilege boundaries nor directly cause loss of data/privacy. Please feel free to report any other bugs you may find.

information type: Private Security → Public
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xorg-server (Ubuntu):
status: New → Confirmed
Revision history for this message
mrl586 (mrl586) wrote :

Same bug also occurred with Kubuntu 15.04. You can also reproduce this bug with other LibreOffice component like localc.

Revision history for this message
penalvch (penalvch) wrote :

Marking Triaged as per errors.ubuntu.com.

tags: added: bios-outdated-a4cn37ww
Changed in xorg-server (Ubuntu):
status: Confirmed → Triaged
importance: Medium → High
Revision history for this message
mrl586 (mrl586) wrote :

It seems that this crash always occurred with open source radeon driver but not with fglrx driver.

Revision history for this message
In , M-kaffanke (m-kaffanke) wrote :

Created attachment 116056
backtrace of the crash

Hello there,

I hope you can help me.

I have the same crash backtrace again and again but from different reasons. Sometimes its emacs, than its libreoffice, but it can also be chromium browser or firefox. Mostly - I'm not sure its when i resize the windows - but that is just a guess, because it does not happen systematically from my point of view. (its the same with awesome windowmanager or enlightenment)

It just coredumps....

I will add the core dump and also the X log file and the .xsession-error (which differs a bit)

Revision history for this message
In , M-kaffanke (m-kaffanke) wrote :

Created attachment 116058
Xorg.0.log - the xorg logfile

Revision history for this message
In , M-kaffanke (m-kaffanke) wrote :

Created attachment 116059
.xsession-errors

Revision history for this message
In , M-kaffanke (m-kaffanke) wrote :

Please help me soon, I will try also patches for you...

Thanks very much.

Revision history for this message
In , M-kaffanke (m-kaffanke) wrote :

As I mentioned allready, the bug comes from different applications, because I work most with emacs, so I will give you the emacs core dump too, maybe you can help me now... :(

Revision history for this message
In , M-kaffanke (m-kaffanke) wrote :

Created attachment 116125
emacs core dump

But I think emacs core dumps just because of the xorg coredump which comes first.

Revision history for this message
In , Freedesktop-4 (freedesktop-4) wrote :

Created attachment 116170
Xorg log

Revision history for this message
In , Freedesktop-4 (freedesktop-4) wrote :

Created attachment 116171
gdb backtrace

Revision history for this message
In , Freedesktop-4 (freedesktop-4) wrote :

I have the same problem. It seems to mostly happen when I resize frames in certain programs.

I can more or less reproduce it by resizing the frames in 'git gui' but it also occurs in LibreOffice and Emacs.

I'm running on an Intel i5-2500k and use a Radeon R9 290 graphics card with xf86-video-radeon.

I added my own log file and backtraces.

Revision history for this message
In , Michel Dänzer (michel-daenzer) wrote :

(In reply to André from comment #8)
> I can more or less reproduce it by resizing the frames in 'git gui' but it
> also occurs in LibreOffice and Emacs.

Which window manager(s) does it happen with for you?

Do you guys use any special window manager configuration, e.g. non-opaque window resizes?

Revision history for this message
In , M-kaffanke (m-kaffanke) wrote :

I also had the Idea about window resizing, until today it also crashed while using mu4e for my mails, just switching from one mail to another. That worked for 20 emails, but now it crashed with the same Xorg backtrace.

I use awesome windowmanager, and will add my rc.lua for you. I don't think there are special configurations.

Here is my xorg config:

------ begin .xinitrc ------
#!/bin/bash

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
    for f in /etc/X11/xinit/xinitrc.d/?* ; do
        [ -x "$f" ] && . "$f"
    done
    unset f
fi

[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources

exec awesome
------ end .xinitrc -----

------ begin .Xresources ------
! This is a comment placed above some Xft settings
!Xft.dpi: 115 ! this is an inline comment
Xft.dpi: 122
Xft.antialias: true
Xft.hinting: true
Xft.hintstyle: hintslight
------ end .Xresources ------

having 2 files in my /etc/X11/xinit/xinitrc.d:

------ begin 30-dbus.sh -----
#!/bin/bash

# launches a session dbus instance
if [ -z "${DBUS_SESSION_BUS_ADDRESS-}" ] && type dbus-launch >/dev/null; then
  eval $(dbus-launch --sh-syntax --exit-with-session)
fi
------ end 30-dbus.sh -------
------ begin 40-libcanberra-gtk-module.sh ------
#!/bin/bash

case "${DESKTOP_SESSION-}" in
  gnome) # Done by gnome-settings-daemon
  ;;
  *)
    # Extra check in case DESKTOP_SESSION is not set correctly
    if [[ -z ${GNOME_DESKTOP_SESSION_ID-} ]]; then
      if [[ -z ${GTK_MODULES-} ]]; then
        GTK_MODULES="canberra-gtk-module"
      else
        GTK_MODULES="$GTK_MODULES:canberra-gtk-module"
      fi
      export GTK_MODULES
    fi
  ;;
esac
--------- end 40-libcaberra-gtk-module.sh ------

ok and then i have no xorg.conf in my /etc/X11 directory but a /etc/X11/xorg.conf.d dirctory, having one file:
------ begin 20-tastatur.conf -----
# Deutsches Layout
Section "InputClass"
 Identifier "keyboard"
 MatchIsKeyboard "yes"
 Option "XkbLayout" "de,se"
 Option "XkbVariant" "nodeadkeys"
 Option "XkbOptions" "grp:alt_space_toggle"
EndSection
------- end 20-tastatur.conf ----

I will send my rc.lua via attachment.

Any hints about that configuration?

Thanks,
Martin

Revision history for this message
In , M-kaffanke (m-kaffanke) wrote :

Created attachment 116238
rc.lua for my awesome windowmanager

Revision history for this message
In , M-kaffanke (m-kaffanke) wrote :

could you tell me where you would start to fix that problem?

I know some C, but I don't know where to start with that problem. Just tell me your thoughts what you as a developer would try, and I try to test that.

thanks.

Revision history for this message
mrl586 (mrl586) wrote :

Same bug also occurred with UEFI version A4CN37WW.

Revision history for this message
In , Michel Dänzer (michel-daenzer) wrote :

I've been unable to reproduce the crash with xserver Git master, although I've confirmed I'm hitting the same code path with git gui.

After reproducing the crash with gdb attached, please run the following commands at the gdb prompt and post their output:

frame 2
p *(PixmapPtr)dst
p *(glamor_pixmap_private*)dixLookupPrivate(&((PixmapPtr)dst)->devPrivates, &glamor_pixmap_private_key)

Revision history for this message
mrl586 (mrl586) wrote :

I have tested LibreOffice 4.4 with Debian and I have noticed following:

Xorg 1.17.1 with radeon driver - not work
Xorg 1.17.1 with fglrx - it works!
Xorg 1.16.4 with radeon driver - it works!

Revision history for this message
mrl586 (mrl586) wrote :

Same bug seems also recently published Xorg 1.17.2 according to my test on Manjaro.

Revision history for this message
In , M-kaffanke (m-kaffanke) wrote :

Hi Michael,

I get:

(gdb) frame 2
#2 0x0000000000598d2e in OsAbort () at utils.c:1342
1342 utils.c: File or direcotry not found.
(gdb) p *(PixmapPtr)dst
No symbol "dst" in current context.
(gdb) p *(glamor_pixmap_private*)dixLookupPrivate(&((PixmapPtr)dst)->devPrivates, &glamor_pixmap_private_key)
No symbol "dst" in current context.

so I think I have to install or do something before doing that?

Thanks,
Martin

Revision history for this message
In , Freedesktop-4 (freedesktop-4) wrote :

Created attachment 116628
GDB output emacs

Revision history for this message
In , Freedesktop-4 (freedesktop-4) wrote :

Created attachment 116629
GDB output git gui

Revision history for this message
In , Freedesktop-4 (freedesktop-4) wrote :

Created attachment 116630
GDB output LibreOffice

Revision history for this message
In , Freedesktop-4 (freedesktop-4) wrote :

I added three stacktraces from different programs with the output of the commands you have given.

LibreOffice crashes when I add a frame (Insert -> Frame) and then resize it with the handles. Sometimes it takes two or three resize operations before the crash occurs.

git gui crashes when I move the splitter seperating the different parts of the window. It also take several move operations before the crash. It seems that in this case the dst argument for fbBltOne is not 0x0.

Emacs crashes when I resize the window. It occurs less often and I have to resize the window 10 times or so. It has a different stacktrace than the others so I tried to get the right variable for your commands.

If you need any other output or things to try out just tell me.

Revision history for this message
In , Freedesktop-4 (freedesktop-4) wrote :

I'm running Arch Linx with xfce4.

xfwm4 (4.12.3-1)
xorg-server (1.17.2-1)
xf86-video-ati (1:7.5.0-2)

As mentioned before I have a Radeon R9 290 graphics card with 2 monitors on DVI and one on HDMI. But the crashes occur even if I connect only one monitor.

Revision history for this message
In , Michel Dänzer (michel-daenzer) wrote :

(In reply to André from comment #18)
> I added three stacktraces from different programs with the output of the
> commands you have given.

Thanks. Can you also print *glamor_priv?

So far, the only way I could see this happen is if glMapBuffer() fails.

Or, maybe there's memory corruption going on. Any chance one of you could run Xorg in valgrind, try reproducing a crash and see if valgrind finds anything wrong?

Revision history for this message
In , Freedesktop-4 (freedesktop-4) wrote :

Created attachment 116650
Valgrind output from Xorg

Revision history for this message
In , Freedesktop-4 (freedesktop-4) wrote :

Created attachment 116651
GDB output LibreOffice

Revision history for this message
In , Freedesktop-4 (freedesktop-4) wrote :

Created attachment 116652
GDB output git gui

Revision history for this message
In , Freedesktop-4 (freedesktop-4) wrote :

I updated the gdb output to include glamor_priv.

I also tried to run valgrind. I've run a bare Xorg without my usual xfce4 environment. I disabled the leak checks because after the crash I got around 40MB of leak output.

Do you have any clue what component could cause the corruption, then I could try to change it.

(In reply to m.kaffanke from comment #10)
> I use awesome windowmanager, and will add my rc.lua for you. I don't think
> there are special configurations.

What graphics card and driver are you using?

Revision history for this message
In , Michel Dänzer (michel-daenzer) wrote :

Created attachment 116666
Assert that glMapBuffer returns non-NULL

Thanks for the valgrind output, but unfortunately, it doesn't shed any more light on this mystery for me.

Can you try applying this xserver patch and reproducing the problem with gdb attached to Xorg? Does it fail the added assertion before it crashes?

Revision history for this message
In , Michel Dänzer (michel-daenzer) wrote :

BTW, has one of you tried if this also happens with xserver 1.16.y?

Revision history for this message
Patrik B. (inoki-deactivatedaccount) wrote :

Happening in all *ubuntu flavours, other distros are affected as well.

My bug report: https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1473435

Revision history for this message
In , Airlied-freedesktop (airlied-freedesktop) wrote :

Created attachment 117133
X server patch to make current in some fallback paths

this X server patch should fix this.

Revision history for this message
In , Michel Dänzer (michel-daenzer) wrote :

*** Bug 90941 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Freedesktop-4 (freedesktop-4) wrote :

I'm now running xorg-server-1.17.2-4 on Arch (which includes the patch) and didn't had a crash with the programs I tested.

Revision history for this message
In , Michel Dänzer (michel-daenzer) wrote :

commit db5337afb248edf81087cf8d74006fc496d70589
Author: Dave Airlie <email address hidden>
Date: Wed Jul 15 17:56:11 2015 +1000

    glamor: make current in prepare paths

Revision history for this message
mrl586 (mrl586) wrote :

This bug is possible patched on Manjaro. I think that we should also add this patch to Ubuntu (and Debian).

Revision history for this message
mrl586 (mrl586) wrote :
Changed in xorg-server:
importance: Unknown → Critical
status: Unknown → Fix Released
Revision history for this message
Sebastian Geiger (lanoxx) wrote :

Will this patch appear in Ubuntu 15.04?

Revision history for this message
mrl586 (mrl586) wrote :

When this fix will land to Ubuntu?

mrl586 (mrl586)
tags: added: wily
Revision history for this message
In , Michel Dänzer (michel-daenzer) wrote :

*** Bug 91923 has been marked as a duplicate of this bug. ***

Timo Aaltonen (tjaalton)
Changed in xorg-server (Ubuntu Wily):
assignee: nobody → Timo Aaltonen (tjaalton)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xorg-server - 2:1.17.2-1ubuntu7

---------------
xorg-server (2:1.17.2-1ubuntu7) wily; urgency=medium

  * glamor-make-current-in-prepare-paths.diff: Fix LO crashing the
    server. (LP: #1443456)

 -- Timo Aaltonen <email address hidden> Thu, 17 Sep 2015 12:04:08 +0300

Changed in xorg-server (Ubuntu Wily):
status: Triaged → Fix Released
Revision history for this message
Sebastian Geiger (lanoxx) wrote :

What are users who are getting this bug supposed to do? If users are unable to use LibreOffice this makes Ubuntu quite unusable for people who mainly use their computer for editing documents.

Revision history for this message
Patrik B. (inoki-deactivatedaccount) wrote :

@Lanoxx: I had to switch to an LTS because of this. Not even proprietary Radeon drivers could be installed. I think it's related.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xorg-server (Ubuntu Vivid):
status: New → Confirmed
Revision history for this message
RussianNeuroMancer (russianneuromancer) wrote :

Thank you for fix in Wily! :)

Revision history for this message
Sebastian Geiger (lanoxx) wrote :

@Patrik
I bought a AMD based laptop for my mother and the LTS version was unable to run on it, it kept crashing, had display errors, the mouse did not work and many other problems. So I had no choice then to install 14.10 at that time. When the support ended I upgraded to 15.04 recently and then this bug started to surface.

In general I would expect canonical to improve their policy for backporting bugs. Really, how useful is a release (with supposed support), when bugs are not fixed and fixes only make it into the development version that is still weeks out until a release.

Revision history for this message
penalvch (penalvch) wrote :

Lanoxx:
>"when bugs are not fixed and fixes only make it into the development version that is still weeks out until a release."

I'm not sure how you came to this conclusion when as per https://wiki.ubuntu.com/Kernel/LTSEnablementStack for ~ two years now fixes in both the kernel and xorg have been, are now, and continue to be backported to LTS releases.

Revision history for this message
Patrik B. (inoki-deactivatedaccount) wrote :

I hope Vivid, although EOL in January AFAIK, could get the fix. Users of Ubuntu GNOME like myself would particularly benefit from it, since I wouldn't have to be stuck at 3.10 on the LTS.

Revision history for this message
Amr Ibrahim (amribrahim1987) wrote :

Please backport the fix to xserver-xorg-core-lts-vivid LP: #1543638

Revision history for this message
penalvch (penalvch) wrote :

Vivid EOL.

Changed in xorg-server (Ubuntu Vivid):
importance: Undecided → Medium
status: Confirmed → Triaged
status: Triaged → Invalid
Revision history for this message
Amr Ibrahim (amribrahim1987) wrote :

I mean the xserver-xorg-core-lts-vivid package in 14.04 LTS. The fix hasn't landed there.

tags: added: lts-vivid trusty
Revision history for this message
Amr Ibrahim (amribrahim1987) wrote :

LP: #1543638 is private.

penalvch (penalvch)
no longer affects: xorg-server-lts-vivid (Ubuntu Wily)
no longer affects: xorg-server-lts-vivid (Ubuntu Vivid)
Changed in xorg-server-lts-vivid (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Brian Murray (brian-murray) wrote :

xorg-server-lts-vivid is no longer receiving updates and hwe-support-status recommends that people switch to the Xenial HWE stack, so I'm setting the xorg-server-lts-vivid task as Won't Fix.

Changed in xorg-server-lts-vivid (Ubuntu):
status: Triaged → Won't Fix
Revision history for this message
In , Ajax-a (ajax-a) wrote :

*** Bug 90299 has been marked as a duplicate of this bug. ***

To post a comment you must log in.