Xorg crash

Bug #1284134 reported by Barry Warsaw
30
This bug affects 3 people
Affects Status Importance Assigned to Milestone
xserver-xorg-video-vmware (Ubuntu)
Fix Released
High
Unassigned

Bug Description

I use the Nouveau theme of Gnome-Do, and I bind its invocation to Alt-Ctrl-Space. Invoking Gnome-Do crashes X and leaves me back at the login screen.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: xorg 1:7.7+1ubuntu8
ProcVersionSignature: Ubuntu 3.13.0-12.32-generic 3.13.4
Uname: Linux 3.13.0-12-generic x86_64
.tmp.unity.support.test.0:

ApportVersion: 2.13.2-0ubuntu5
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
CurrentDesktop: Unity
CurrentDmesg:
 [ 13.651845] init: plymouth-stop pre-start process (1605) terminated with status 1
 [ 13.678625] dm-0: WRITE SAME failed. Manually zeroing.
Date: Mon Feb 24 09:11:37 2014
DistUpgraded: Fresh install
DistroCodename: trusty
DistroVariant: ubuntu
EcryptfsInUse: Yes
ExtraDebuggingInterest: Yes
GraphicsCard:
 VMware SVGA II Adapter [15ad:0405] (prog-if 00 [VGA controller])
   Subsystem: VMware SVGA II Adapter [15ad:0405]
InstallationDate: Installed on 2013-12-06 (79 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
Lsusb:
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 002 Device 004: ID 0e0f:0008 VMware, Inc.
 Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
 Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: VMware, Inc. VMware Virtual Platform
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.13.0-12-generic root=UUID=94d2915e-fb19-4acc-a25c-72a220adc614 ro
SourcePackage: xorg
Symptom: display
Title: Xorg crash
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 07/31/2013
dmi.bios.vendor: Phoenix Technologies LTD
dmi.bios.version: 6.00
dmi.board.name: 440BX Desktop Reference Platform
dmi.board.vendor: Intel Corporation
dmi.board.version: None
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 1
dmi.chassis.vendor: No Enclosure
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnPhoenixTechnologiesLTD:bvr6.00:bd07/31/2013:svnVMware,Inc.:pnVMwareVirtualPlatform:pvrNone:rvnIntelCorporation:rn440BXDesktopReferencePlatform:rvrNone:cvnNoEnclosure:ct1:cvrN/A:
dmi.product.name: VMware Virtual Platform
dmi.product.version: None
dmi.sys.vendor: VMware, Inc.
version.compiz: compiz 1:0.9.11+14.04.20140218-0ubuntu1
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.52-1
version.libgl1-mesa-dri: libgl1-mesa-dri 10.1.0~rc1-1ubuntu4
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 10.1.0~rc1-1ubuntu4
version.xserver-xorg-core: xserver-xorg-core 2:1.15.0-1ubuntu6
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.8.2-1ubuntu2
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:7.3.0-1ubuntu3
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.910-0ubuntu1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.10-1ubuntu2
xserver.bootTime: Mon Feb 24 09:10:52 2014
xserver.configfile: default
xserver.devices:
 input Power Button KEYBOARD, id 6
 input VMware VMware Virtual USB Mouse MOUSE, id 7
 input AT Translated Set 2 keyboard KEYBOARD, id 8
 input ImPS/2 Generic Wheel Mouse MOUSE, id 9
xserver.errors: No surface to present from.
xserver.logfile: /var/log/Xorg.0.log
xserver.outputs: Output Virtual2 Virtual3 Virtual4 Virtual5 Virtual6 Virtual7 Virtual8
xserver.version: 2:1.15.0-1ubuntu6
xserver.video_driver: vmware

Related branches

Revision history for this message
Barry Warsaw (barry) wrote :
Revision history for this message
Barry Warsaw (barry) wrote :

Any thoughts on this bug? It's making my laptop environment unusable. :(

Revision history for this message
Maarten Lankhorst (mlankhorst) wrote :

I don't see a backtrace here.

Revision history for this message
Barry Warsaw (barry) wrote : Re: [Bug 1284134] Re: Xorg crash

On Mar 06, 2014, at 11:37 AM, Maarten Lankhorst wrote:

>I don't see a backtrace here.

I have an /etc/X11/core file, but I can't seem to get a backtrace out of it.
ubuntu-bug refuses to file the bug because vmware is involved. Tell me what
you need and I'll happily provide it.

Revision history for this message
Barry Warsaw (barry) wrote :

I've narrowed it down to some interaction between Terminal and Emacs 24. You can discount Claws and Gnome Do.

I can reproduce this every time with this recipe:

* reboot
* login
* hit Alt to bring up the launcher
* start up a Terminal
* In the Terminal, enter "emacs -q" to bring up a vanilla Emacs 24
* Go back to the Terminal and maximize it (i.e. hit the third button from the left in the menu bar, the square)
* Go to the global menu bar and double click as if de-maximizing the Terminal
* X crashes

Revision history for this message
Barry Warsaw (barry) wrote :

FWIW, neither gnome-terminal nor emacs24 have been updated in a long while, so this is clearly a regression in the X stack somewhere.

Revision history for this message
Barry Warsaw (barry) wrote :

More fun facts:

If, after you start up emacs -q, you immediate quit it, the recipe in #5 still crashes X.

Starting non-X emacs (e.g. `emacs -nw` in a terminal) does not crash X.

Starting multiple terminals does not crash X.

I'm going to try to rebuild Emacs against the current Trusty package set and see if that can provoke the problem.

Revision history for this message
Barry Warsaw (barry) wrote :

Problem still exhibits with a rebuild of emacs24. I'm still going to upload a new Debian merge of emacs24 even though it doesn't fix this problem. Makes some sense though: it should never be possible for an application to crash X (or cause some data corruption just by running that allows some other application to crash X ;).

Changed in xorg (Ubuntu):
assignee: nobody → Maarten Lankhorst (mlankhorst)
Revision history for this message
Maarten Lankhorst (mlankhorst) wrote :

What version of vmware are you using?

Changed in xorg (Ubuntu):
status: New → Incomplete
Revision history for this message
Maarten Lankhorst (mlankhorst) wrote :

I've created a clean vm with the trusty daily image using vmware workstation.
I've installed emacs24.3+1-2ubuntu1 and tried running it with emacs -q. It opens a separate X window which doesn't crash.

In one of my attempts I managed to make it crash, but I can't reproduce it in any reliable way.

Can you post the steps that get you a reliable crash?

Revision history for this message
Brad Crittenden (bac) wrote :

At Barry's request I've tried to reproduce the steps given in comment #5.

Caveat: If I type 'alt' and enter 'terminal' I get no completion to launch the terminal, so for the test I launched it using the sidebar.

Having done so, launching 'emacs -q &' from the terminal and doing the maximize and minimize steps as stated do not crash X.

I'm running VMWare Version 6.0.2 (1398658) on the latest Mavericks.

My version of Trusty is up-to-date but 'apt-get upgrade' shows held-back packages. I'm running:

Linux trusty64 3.13.0-8-generic #28-Ubuntu SMP Tue Feb 11 17:55:27 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

ii xserver-xorg 1:7.7+1ubuntu8 amd64 X.Org X server
ii emacs24 24.3+1-2ubuntu1 amd64 GNU Emacs editor (with GTK+ user interface)
ii xserver-xorg-video-vmware 1:13.0.1.git.20140115.8da9817-0ubuntu2 amd64 X.Org X server -- VMware display driver

Revision history for this message
Barry Warsaw (barry) wrote :

VMware Fusion 6.0.2 (1398658) on OS X 10.9.2.

Revision history for this message
Barry Warsaw (barry) wrote :

It's quite easy and reproducible to crash. Here are the steps:

* Log in
* Hit Alt to bring up the launcher
* Start up gnome-terminal
* In the terminal, type `emacs -q`
* In Emacs 24, hit `Ctrl-x Ctrl-c RET` to quit Emacs.
* Go back to the terminal and double click on its menu bar to globally maximize the window
* Go to the global menu bar and double click on it to de-maximize the terminal

At this point, X crashes every time.

Revision history for this message
Barry Warsaw (barry) wrote :

One other note: I am fully dist-upgraded on Trusty (no held back packages), but I cannot run the 3.13.0-16-generic #36 kernel because that exhibits the log in freeze of LP: #1289410. So at grub select "Advanced options for Ubuntu" and boot the 3.13.0-15.generic kernel. This allows me to log in and reproduce the bug.

@Brad thanks for trying to reproduce. Note that when I hit Alt to bring up the launcher, just type enough of "Terminal" to see it in Applications. Then I use the arrow keys to select the Terminal. I actually don't think it matters *how* gnome-terminal is started though. Same thing happens if you start it with Gnome Do. I just wanted to eliminate one non-standard package from the mix.

The problem clearly is that even just starting Emacs 24 corrupts something in X. Emacs doesn't even have to be running when you crash X, hence the suggestion to start it and then immediately kill it before triggering the bug.

Also @Brad: you could take a disk snapshot, then dist-upgrade away your held packages. It would then be easy to restore the disk snapshot if things break for you.

Revision history for this message
Barry Warsaw (barry) wrote :

Note too that there are certainly other surprising ways to crash X, it's just that the recipe in #13 is completely reproducible every time.

Revision history for this message
Barry Warsaw (barry) wrote :

% dpkg-query -W xserver-xorg emacs24 xserver-xorg-video-vmware
emacs24 24.3+1-2ubuntu1
xserver-xorg 1:7.7+1ubuntu8
xserver-xorg-video-vmware 1:13.0.1.git.20140115.8da9817-0ubuntu2

Changed in xorg (Ubuntu):
status: Incomplete → New
Revision history for this message
Maarten Lankhorst (mlankhorst) wrote :

(gdb) bt
#0 0x00007f8d7fb3ff79 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007f8d7fb43388 in __GI_abort () at abort.c:89
#2 0x00007f8d7fb38e36 in __assert_fail_base (fmt=0x7f8d7fc8a4b8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x7f8d7c2f58fd "svga->curr.sampler[i]",
    file=file@entry=0x7f8d7c2f5898 "../../../../../../src/gallium/drivers/svga/svga_state_fs.c", line=line@entry=246, function=function@entry=0x7f8d7c2f595d "make_fs_key")
    at assert.c:92
#3 0x00007f8d7fb38ee2 in __GI___assert_fail (assertion=0x7f8d7c2f58fd "svga->curr.sampler[i]",
    file=0x7f8d7c2f5898 "../../../../../../src/gallium/drivers/svga/svga_state_fs.c", line=246, function=0x7f8d7c2f595d "make_fs_key") at assert.c:101
#4 0x00007f8d7c2d0f12 in ?? () from /usr/lib/x86_64-linux-gnu/libxatracker.so.2
#5 0x00007f8d7c2cd64b in ?? () from /usr/lib/x86_64-linux-gnu/libxatracker.so.2
#6 0x00007f8d7c2c9be6 in ?? () from /usr/lib/x86_64-linux-gnu/libxatracker.so.2
#7 0x00007f8d7bd87924 in u_vbuf_draw_vbo () from /usr/lib/x86_64-linux-gnu/libgallium.so.0
#8 0x00007f8d7bd0d4e4 in cso_draw_arrays () from /usr/lib/x86_64-linux-gnu/libgallium.so.0
#9 0x00007f8d7bd612ec in util_draw_user_vertex_buffer () from /usr/lib/x86_64-linux-gnu/libgallium.so.0
#10 0x00007f8d7c2a7b08 in ?? () from /usr/lib/x86_64-linux-gnu/libxatracker.so.2
#11 0x00007f8d7c2ba949 in xa_composite_done () from /usr/lib/x86_64-linux-gnu/libxatracker.so.2
#12 0x00007f8d7c52a6b0 in vmwgfx_composite_done (driver=0x7f8d82bb6650) at ../../vmwgfx/vmwgfx_saa.c:1239
#13 0x00007f8d7c532260 in saa_driver_composite (width=<optimized out>, height=<optimized out>, dst_reg=0x7fff3fab2e90, mask_reg=0x0, src_reg=0x7f8d82bb6a70,
    yDst=<optimized out>, xDst=<optimized out>, yMask=<optimized out>, xMask=<optimized out>, ySrc=14, xSrc=-10, pDst=<optimized out>, pMask=0x0, pSrc=<optimized out>,
    op=1 '\001') at ../../saa/saa_render.c:285
#14 saa_composite (op=<optimized out>, pSrc=<optimized out>, pMask=0x0, pDst=<optimized out>, xSrc=<optimized out>, ySrc=<optimized out>, xMask=0, yMask=0, xDst=0, yDst=0,
    width=1462, height=925) at ../../saa/saa_render.c:383
#15 0x00007f8d82120f84 in ?? ()
#16 0x00007f8d820d0b37 in ?? ()
#17 0x00007f8d820d1d6d in ?? ()
#18 0x00007f8d820cf2dc in ?? ()
#19 0x00007f8d8211b6a3 in ?? ()
#20 0x00007f8d8206e77f in ConfigureWindow ()
#21 0x00007f8d8203ec9b in ?? ()
#22 0x00007f8d82043a9e in ?? ()
#23 0x00007f8d8204789a in ?? ()
#24 0x00007f8d7fb2aec5 in __libc_start_main (main=0x7f8d82032e50, argc=11, argv=0x7fff3fab3408, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>,
    stack_end=0x7fff3fab33f8) at libc-start.c:285
#25 0x00007f8d82032e7e in _start ()

no longer affects: xorg (Ubuntu)
no longer affects: xorg-server (Ubuntu)
Changed in xserver-xorg-video-vmware (Ubuntu):
status: New → Confirmed
Revision history for this message
Jakob Bornecrantz (jakob-vmware) wrote :

I'm no longer able to reproduce this bug Barry, Maarten can you?

Revision history for this message
Barry Warsaw (barry) wrote :

On Mar 20, 2014, at 05:42 PM, Jakob Bornecrantz wrote:

>I'm no longer able to reproduce this bug Barry, Maarten can you?

Oh yes, it's definitely still happening.

Revision history for this message
Jakob Bornecrantz (jakob-vmware) wrote :

Did you fully upgrade the VM?

Tho I no longer need to press enter to close emacs,
could this have something to do with it?

Revision history for this message
Barry Warsaw (barry) wrote :

On Mar 21, 2014, at 11:43 AM, Jakob Bornecrantz wrote:

>Did you fully upgrade the VM?

Yes.

>Tho I no longer need to press enter to close emacs, could this have something
>to do with it?

I'm not sure what this means. Did you try the recipe in comment #5 and #7?

Revision history for this message
Jakob Bornecrantz (jakob-vmware) wrote :

Oh I got it crashing again...

I was trying the steps in update #13 and that did not repro,
trying #5 caused it to crash once, then after several tries it
crashed again for me. Okay sorry for the noise, it looks like
it is there just hard to repro. Thanks again for the info.

Revision history for this message
Alberto Salvia Novella (es20490446e) wrote :

It affects an essential hardware component (disk controller, built-in networking, video card, keyboard, mouse).

Changed in xserver-xorg-video-vmware (Ubuntu):
importance: Undecided → High
Revision history for this message
Barry Warsaw (barry) wrote :

Hi Jakob. Is there anything else I can do to help push this issue along? It's so painful ;)

Revision history for this message
Barry Warsaw (barry) wrote :

With today's dist-upgrade, this problem seems to have gone away. At least, I can no longer reproduce it with the last given known recipe. I'll mark this as Incomplete for now and reopen later if necessary.

Changed in xserver-xorg-video-vmware (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Jakob Bornecrantz (jakob-vmware) wrote :

This should have been fixed in libgl1-mesa-dri 10.1.0-4ubuntu4, I can't see it either, please comfirm.

Changed in xserver-xorg-video-vmware (Ubuntu):
status: Incomplete → Fix Released
Revision history for this message
Barry Warsaw (barry) wrote :

On Apr 15, 2014, at 06:37 PM, Jakob Bornecrantz wrote:

>This should have been fixed in libgl1-mesa-dri 10.1.0-4ubuntu4, I can't
>see it either, please comfirm.

I'm currently running

libgl1-mesa-dri:amd64 10.1.0-4ubuntu2

and haven't seen it in a while. I'll check again after my next opportunity to
upgrade.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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