Xorg crashed with SIGABRT in OsAbort()

Bug #1237904 reported by Donn Morrison on 2013-10-10
This bug affects 157 people
Affects Status Importance Assigned to Milestone
Ubuntu GNOME
xorg-server (Ubuntu)
Timo Aaltonen

Bug Description

  This crash is ranking #2 on errors.u.c[1], it is caused by a recursive call to xf86CloseConsole() after a failed VT switch. Since it is happening on shutdown, its not causing any real issues with the user session, however it is spamming the users (and errors.u.c) with crash logs.

[Test Case]
1. Running under a gdm/gnome-shell session select 'power off' from the user menu (it doesn't get triggered on a restart)
2. On next login you will receive a crash report

[Regression Potential]
Very Low, its an upstream patch, that just changes the error logging, so that the a warning is logged rather than crashing the server.

[1] https://errors.ubuntu.com/problem/27941445d596fb71be692b9008c0847d2ce6c428

Donn Morrison (donn-morrison) wrote :

 OsAbort () at ../../os/utils.c:1299
 FatalError (f=f@entry=0x7f4741d9ab18 "%s: VT_ACTIVATE failed: %s\n") at ../../os/log.c:911
 switch_to (vt=7, from=from@entry=0x7f4741d9aba1 "xf86CloseConsole") at ../../../../../hw/xfree86/os-support/linux/lnx_init.c:72
 xf86CloseConsole () at ../../../../../hw/xfree86/os-support/linux/lnx_init.c:308
 ddxGiveUp (error=error@entry=EXIT_ERR_ABORT) at ../../../../hw/xfree86/common/xf86Init.c:1106

Changed in xorg-server (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
Launchpad Janitor (janitor) wrote :

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

Changed in xorg-server (Ubuntu):
status: New → Confirmed
information type: Private → Public

Donn Morrison, this bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? If so, could you please test for this with the latest development release of Ubuntu? ISO images are available from http://cdimage.ubuntu.com/daily-live/current/ .

If it remains an issue, could you please run the following command in the development release from a Terminal (Applications->Accessories->Terminal), as it will automatically gather and attach updated debug information to this report:

apport-collect -p xorg-server REPLACE-WITH-BUG-NUMBER

Please note, given that the information from the prior release is already available, doing this on a release prior to the development one would not be helpful.

Thank you for your understanding.

Helpful bug reporting tips:

Changed in xorg-server (Ubuntu):
importance: Medium → Low
status: Confirmed → Incomplete
tags: added: trusty
Launchpad Janitor (janitor) wrote :

[Expired for xorg-server (Ubuntu) because there has been no activity for 60 days.]

Changed in xorg-server (Ubuntu):
status: Incomplete → Expired
Changed in xorg-server (Ubuntu):
importance: Low → Medium
status: Expired → Confirmed
tags: added: utopic
tags: added: vivid
tags: added: wily
tags: added: bugpattern-needed
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:

tags: added: iso-testing
Александр (sanek7-7) wrote :

this bug issue in ubuntu 15.10 for this time

Changed in xorg-server (Ubuntu):
status: Confirmed → Incomplete

I understand that this is marked as invalid, but it affects many people and is triggered by seemingly nothing by other than restart.

I do not understand why this is marked as invalid. It affects >100 people and I cannot see any questions not answered by the people affected.

Benoit C. Barret (benbugohit) wrote :

Found 2 VTs used by Xorg (vt2 & vt7):

:~$ ps -aef |grep dm |grep X
root 1491 1484 4 22:43 tty7 00:00:04 /usr/bin/X vt7 -displayfd 3 -auth /run/user/116/gdm/Xauthority -nolisten tcp -background none -noreset -keeptty -verbose 3
root 1865 1861 3 22:43 tty2 00:00:02 /usr/bin/X vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -nolisten tcp -background none -noreset -keeptty -verbose 3

tty7 reserved by gdm (user 116) ;
:~$ id 116
uid=116(gdm) gid=124(gdm) groupes=124(gdm)

I will check with lightdm

Anders Kaseorg (andersk) on 2015-10-15
Changed in xorg-server (Ubuntu):
status: Incomplete → Confirmed
TJ (tj) wrote :

The report in /var/log/Xorg.0.log:

"_XSERVTransMakeAllCOTSServerListeners: server already running"

suggests the system (user: gdm, uid: 116) display manager X server on VT7 owns/uses the socket in "/tmp/.X11-unix/" which prevents the user (uid:1000) display manager on VT2 from using the same socket.

TJ (tj) on 2015-10-21
tags: added: apport-request-retrace

Package: xserver-xorg-core 2:1.17.2-1ubuntu9
ProcCmdline: /usr/bin/X vt7 -displayfd 3 -auth /run/user/120/gdm/Xauthority -nolisten tcp -background none -noreset -keeptty -verbose 3

tags: removed: apport-request-retrace
Tim Lunn (darkxst) wrote :
Tim Lunn (darkxst) wrote :
description: updated
Changed in xorg-server (Ubuntu):
status: Confirmed → Triaged
Launchpad Janitor (janitor) wrote :

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

xorg-server (2:1.17.2-1ubuntu10) xenial; urgency=medium

  * debian/patches:
    - linux-Do-not-call-FatalError-from-xf86CloseConsole.patch: Fix crashers
      often occuring on shutdown (LP: #1237904)
    - xmir.patch: Fix typo causing FTBFS

 -- Tim Lunn <email address hidden> Mon, 26 Oct 2015 12:24:30 +1100

Changed in xorg-server (Ubuntu):
status: Triaged → Fix Released
Tim Lunn (darkxst) on 2015-11-03
Changed in xorg-server (Ubuntu):
milestone: none → wily-updates
milestone: wily-updates → none
Changed in ubuntu-gnome:
milestone: none → wily
Timo Aaltonen (tjaalton) wrote :

uploaded to the queue

Changed in xorg-server (Ubuntu Wily):
assignee: nobody → Timo Aaltonen (tjaalton)
status: New → In Progress

Hello Donn, or anyone else affected,

Accepted xorg-server into wily-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/xorg-server/2:1.17.2-1ubuntu9.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in xorg-server (Ubuntu Wily):
status: In Progress → Fix Committed
tags: added: verification-needed
Mathew Hodson (mhodson) on 2015-11-12
Changed in xorg-server (Ubuntu Wily):
importance: Undecided → Medium
Mathew Hodson (mhodson) on 2015-11-13
affects: xorg-server → ubuntu-translations
no longer affects: ubuntu-translations
Tim Lunn (darkxst) wrote :

tested as per testcase, did not encounter any crashed, tagging verification-done

tags: added: verification-done
removed: verification-needed
Tim Lunn (darkxst) on 2015-11-25
Changed in ubuntu-gnome:
status: New → Fix Committed
Launchpad Janitor (janitor) wrote :

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

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

  * debian/patches:
    - linux-Do-not-call-FatalError-from-xf86CloseConsole.patch: Fix crashers
      often occuring on shutdown (LP: #1237904)
    - xmir.patch: Fix typo causing FTBFS (LP: #1509005)

 -- Tim Lunn <email address hidden> Mon, 26 Oct 2015 12:24:30 +1100

Changed in xorg-server (Ubuntu Wily):
status: Fix Committed → Fix Released

The verification of the Stable Release Update for xorg-server has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Changed in ubuntu-gnome:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
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.