Unrecoverable crash when suspending from inside a virtual machine

Bug #994888 reported by Robert Hooker
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xserver-xorg-video-vmware (Ubuntu)
Fix Released
Medium
Robert Hooker
Precise
Fix Released
Medium
Robert Hooker
Quantal
Fix Released
Medium
Robert Hooker

Bug Description

[Impact]
Low to medium, when using the virtual machines I believe it would be more common to suspend the VM from the host instead of leaving the machine running in S3, but it is 100% reproducible and requires a hard power off to fix if an S3 is triggered from inside the VM so loss of data can occur.

[Development Fix]
Installing a modprobe.d conf file containing "options vmwgfx enable_fbdev=1"

[Stable Fix]
Backport the above fix to 12.04

[Test Case]
1) Install the VMware Player, Fusion, or Workstation products
2) Install Ubuntu 12.04 in a new virtual machine
3) Suspend from inside of the virtual machine, not from the host.

If the display recovers normally on mouse movement it is fixed. If it goes black and never recovers without a hard power off it is broken.

[Regression Potential]
Low, this fix only adds a modprobe.d conf file enabling the enable_fbdev module option by default. It only affects VMware platforms and has been QAed by them to be sure its the proper fix. xserver-xorg-video-vmware is also used for KVM, but the vmwgfx KMS driver in the kernel is not so the option will have no effect.

Original Report:
When suspending from inside the virtual machine (not from vmware player/fusion/workstation) I get a crash in dmesg and the display doesn't come back.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: xserver-xorg-video-vmware 1:12.0.1-1ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14
Uname: Linux 3.2.0-23-generic x86_64
.tmp.unity.support.test.0:

ApportVersion: 2.0.1-0ubuntu5
Architecture: amd64
CompizPlugins: [core,composite,opengl,compiztoolbox,decor,vpswitch,snap,mousepoll,resize,place,move,wall,grid,regex,imgpng,session,gnomecompat,animation,fade,unitymtgrabhandles,workarounds,scale,expo,ezoom,unityshell]
CompositorRunning: compiz
Date: Fri May 4 18:55:09 2012
DistUpgraded: Fresh install
DistroCodename: precise
DistroVariant: ubuntu
GraphicsCard:
 VMware SVGA II Adapter [15ad:0405] (prog-if 00 [VGA controller])
   Subsystem: VMware SVGA II Adapter [15ad:0405]
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
Lsusb:
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
 Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
MachineType: VMware, Inc. VMware Virtual Platform
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-23-generic root=UUID=a1e61a9f-f0db-4ee8-b30f-686861462ef3 ro quiet splash
SourcePackage: xserver-xorg-video-vmware
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 06/02/2011
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:bd06/02/2011: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.7.6-0ubuntu1
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.32-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 8.0.2-0ubuntu3
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 8.0.2-0ubuntu3
version.xserver-xorg-core: xserver-xorg-core 2:1.11.4-0ubuntu10
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.7.0-0ubuntu1
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.14.99~git20111219.aacbd629-0ubuntu2
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.17.0-1ubuntu4
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20111201+b5534a1-1build2

Revision history for this message
Robert Hooker (sarvatt) wrote :
Revision history for this message
Robert Hooker (sarvatt) wrote :

Historical log of the crash that occurs

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

This was found by VMware QA team, Robert kindly reproduced and filed the bug. I pointed out the fix and Robert implemented it. The fix has been tested by VMware QA and me.

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

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

Changed in xserver-xorg-video-vmware (Ubuntu):
status: New → Confirmed
Robert Hooker (sarvatt)
description: updated
Revision history for this message
Robert Hooker (sarvatt) wrote :

Debdiff containing the fix for quantal

Changed in xserver-xorg-video-vmware (Ubuntu):
importance: Undecided → Medium
assignee: nobody → Robert Hooker (sarvatt)
Revision history for this message
Robert Hooker (sarvatt) wrote :

debdiff containing the fix for precise

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "quantal debdiff" of this bug report has been identified as being a patch in the form of a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-sponsors team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

ACK on the debdiffs. Looks reasonable.
Uploaded to Quantal. Will upload to precise-proposed once built.
Thanks!

Changed in xserver-xorg-video-vmware (Ubuntu Precise):
status: New → Confirmed
importance: Undecided → Medium
Changed in xserver-xorg-video-vmware (Ubuntu Quantal):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xserver-xorg-video-vmware - 1:12.0.1-1ubuntu2

---------------
xserver-xorg-video-vmware (1:12.0.1-1ubuntu2) quantal; urgency=low

  * Install vmwgfx-fbdev.conf into /etc/modprobe.d/ to pass
    enable_fbdev=1 to the vmwgfx module at load time fixing a crash on
    suspend from inside of the guest in VMware hosts. (LP: #994888)
 -- Robert Hooker <email address hidden> Wed, 11 Apr 2012 14:29:10 -0400

Changed in xserver-xorg-video-vmware (Ubuntu Quantal):
status: Fix Committed → Fix Released
Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Uploaded to precise-proposed, and subscribed ubuntu-sru team for processing.

Changed in xserver-xorg-video-vmware (Ubuntu Precise):
status: Confirmed → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Hello Robert, or anyone else affected,

Accepted xserver-xorg-video-vmware into precise-proposed. The package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

tags: added: verification-needed
Revision history for this message
Robert Hooker (sarvatt) wrote :

I installed xserver-xorg-video-vmware_12.0.1-1ubuntu1.1_amd64.deb from precise-proposed in a VM and ran the test case, suspend works and the display comes back.

tags: added: verification-done
removed: verification-needed
Changed in xserver-xorg-video-vmware (Ubuntu Precise):
assignee: nobody → Robert Hooker (sarvatt)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xserver-xorg-video-vmware - 1:12.0.1-1ubuntu1.1

---------------
xserver-xorg-video-vmware (1:12.0.1-1ubuntu1.1) precise-proposed; urgency=low

  * Install vmwgfx-fbdev.conf into /etc/modprobe.d/ to pass
    enable_fbdev=1 to the vmwgfx module at load time fixing a crash on
    suspend from inside of the guest in VMware hosts. (LP: #994888)
 -- Robert Hooker <email address hidden> Wed, 11 Apr 2012 14:29:10 -0400

Changed in xserver-xorg-video-vmware (Ubuntu Precise):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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