Xorg crashed with SIGABRT in sna_crtc_set_mode_major()

Bug #1212065 reported by Chris Gagnon
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xorg-server (Ubuntu)
Fix Released
Critical
Chris Halse Rogers

Bug Description

description: xmir crashes to greeter when running nexuiz phoronix test

steps:
1. sudo apt-get update
2. sudo apt-get install unity-system-compositor
3. sudo reboot
4. sudo apt-get install phoronix-test suite
5. phoronix-test-suite install nexuiz
6. phoronix-test-suite benchmark pts/nexuiz

expected results:
nexuiz test runs

actual results:
nexuiz test fails to run, xmir crashes to greeter

Additional info:
nexuiz benchmark runs without crashing, withou unity-system-compositor installed.

ProblemType: Crash
DistroRelease: Ubuntu 13.10
Package: xserver-xorg-core 2:1.14.2-0ubuntu9
ProcVersionSignature: Ubuntu 3.11.0-1.4-generic 3.11.0-rc4
Uname: Linux 3.11.0-1-generic x86_64
ApportVersion: 2.12-0ubuntu3
Architecture: amd64
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CurrentDmesg:
 [ 12.247108] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
 [ 12.247438] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
 [ 15.361232] e1000e: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
 [ 15.361268] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
 [ 886.272269] init: plymouth-stop pre-start process (12585) terminated with status 1
Date: Wed Aug 14 01:42:03 2013
DistUpgraded: Fresh install
DistroCodename: saucy
DistroVariant: ubuntu
ExecutablePath: /usr/bin/Xorg
ExtraDebuggingInterest: Yes, including running git bisection searches
GraphicsCard:
 Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0122] (rev 09) (prog-if 00 [VGA controller])
   Subsystem: Lenovo Device [17aa:3084]
InstallationDate: Installed on 2013-08-14 (0 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha amd64 (20130813)
MachineType: LENOVO 3302F3U
MarkForUpload: True
ProcCmdline: /usr/bin/X -core :0 -auth /var/run/lightdm/root/:0 -mir 2 -mirSocket /tmp/mir_socket -nolisten tcp
ProcEnviron:

ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.11.0-1-generic root=UUID=fc6bb71b-79d2-4987-9a18-24f120afee8d ro quiet splash vt.handoff=7
Signal: 6
SourcePackage: xorg-server
StacktraceTop:
 ?? () from /usr/lib/xorg/modules/drivers/intel_drv.so
 ?? () from /usr/lib/xorg/modules/drivers/intel_drv.so
 VidModeSetViewPort ()
 ?? ()
 ?? ()
Title: Xorg crashed with SIGABRT in VidModeSetViewPort()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: utah
dmi.bios.date: 05/17/2013
dmi.bios.vendor: LENOVO
dmi.bios.version: 9SKT69AUS
dmi.board.name: MAHOBAY
dmi.board.vendor: LENOVO
dmi.board.version: 0B98401 PRO
dmi.chassis.type: 3
dmi.chassis.vendor: To Be Filled By O.E.M.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnLENOVO:bvr9SKT69AUS:bd05/17/2013:svnLENOVO:pn3302F3U:pvrThinkCentreM82:rvnLENOVO:rnMAHOBAY:rvr0B98401PRO:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:
dmi.product.name: 3302F3U
dmi.product.version: ThinkCentre M82
dmi.sys.vendor: LENOVO
version.compiz: compiz 1:0.9.9~daily13.04.18.1~13.04-0ubuntu4
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.46-1
version.libgl1-mesa-dri: libgl1-mesa-dri 9.1.6-2ubuntu2
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 9.1.6-2ubuntu2
version.xserver-xorg-core: xserver-xorg-core 2:1.14.2-0ubuntu9
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.7.3-0ubuntu3.1
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:7.2.0-0ubuntu2
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.21.12-1ubuntu1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.8-0ubuntu3
xserver.bootTime: Wed Aug 14 01:42:05 2013
xserver.configfile: default
xserver.devices:
 input Power Button KEYBOARD, id 6
 input Video Bus KEYBOARD, id 7
 input Power Button KEYBOARD, id 8
 input Raritan D2CIM-VUSB KEYBOARD, id 9
 input Raritan D2CIM-VUSB MOUSE, id 10
xserver.errors:

xserver.logfile: /var/log/Xorg.0.log
xserver.outputs:

xserver.version: 2:1.14.2-0ubuntu9

Revision history for this message
Chris Gagnon (chris.gagnon) wrote :
information type: Private → Public
affects: xorg-server (Ubuntu) → xmir
Changed in xmir:
status: New → Confirmed
importance: Undecided → Critical
tags: added: needed-xmir-automation
Revision history for this message
Chris Halse Rogers (raof) wrote :

Moving back to xorg-server, tagging with xmir. It's a crash in the archive, and I'm not sure if the apport retracer will retrace bugs targeted at the XMir pseudo-project.

affects: xmir → xorg-server (Ubuntu)
tags: added: xmir
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 sna_crtc_set_mode_major (crtc=0x7f812a5bd590, mode=0x7f812a5bd5a8, rotation=<optimized out>, x=<optimized out>, y=<optimized out>) at ../../../src/sna/sna_display.c:1400
 sna_mode_adjust_frame (sna=0x0, x=2147483641, y=6) at ../../../src/sna/sna_display.c:1501
 VidModeSetViewPort (scrnIndex=0, x=0, y=0) at ../../../../hw/xfree86/common/xf86VidMode.c:306
 ProcXF86VidModeSetViewPort (client=<optimized out>, client=<optimized out>) at ../../../../hw/xfree86/common/xf86vmode.c:1338
 Dispatch () at ../../dix/dispatch.c:432

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 : ThreadStacktrace.txt
summary: - Xorg crashed with SIGABRT in VidModeSetViewPort()
+ Xorg crashed with SIGABRT in sna_crtc_set_mode_major()
tags: removed: need-amd64-retrace
Revision history for this message
Chris Halse Rogers (raof) wrote :

Aha. Yeah, need to disable that codepath under nested :)

Changed in xorg-server (Ubuntu):
status: Confirmed → In Progress
assignee: nobody → Chris Halse Rogers (raof)
Revision history for this message
Chris Wilson (ickle) wrote :

Something like:

diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c
index 7f2c0ac..93843d1 100644
--- a/src/sna/sna_driver.c
+++ b/src/sna/sna_driver.c
@@ -1110,13 +1110,15 @@ Bool sna_init_scrn(ScrnInfoPtr scrn, int entity_num)

        scrn->PreInit = sna_pre_init;
        scrn->ScreenInit = sna_screen_init;
- scrn->SwitchMode = sna_switch_mode;
- scrn->AdjustFrame = sna_adjust_frame;
- scrn->EnterVT = sna_enter_vt;
- scrn->LeaveVT = sna_leave_vt;
+ if (!hosted()) {
+ scrn->SwitchMode = sna_switch_mode;
+ scrn->AdjustFrame = sna_adjust_frame;
+ scrn->EnterVT = sna_enter_vt;
+ scrn->LeaveVT = sna_leave_vt;
+ scrn->ValidMode = sna_valid_mode;
+ scrn->PMEvent = sna_pm_event;
+ }
        scrn->FreeScreen = sna_free_screen;
- scrn->ValidMode = sna_valid_mode;
- scrn->PMEvent = sna_pm_event;

        xf86SetEntitySharable(entity_num);
        xf86SetEntityInstanceForScreen(scrn, entity_num,

Need to check that we can forgo declaring some of those and that XMir wraps the ones it requires for itself.

Revision history for this message
Chris Wilson (ickle) wrote :

Enter/LeaveVT must be defined.

Upstream and branches fixed.

Revision history for this message
Chris Halse Rogers (raof) wrote :

This should have been fixed in the last couple of xserver-xorg-video-intel uploads. I'm not sure why the bug closing magic hasn't kicked in.

Changed in xorg-server (Ubuntu):
status: In Progress → Fix Released
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.