Xorg crashed with SIGABRT in OsAbort()

Bug #1237904 reported by Donn Morrison
This bug affects 157 people
Affects Status Importance Assigned to Milestone
Ubuntu GNOME
Fix Released
Undecided
Unassigned
xorg-server (Ubuntu)
Fix Released
Medium
Unassigned
Wily
Fix Released
Medium
Timo Aaltonen

Bug Description

[Impact]
  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

Revision history for this message
Donn Morrison (donn-morrison) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 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

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
Changed in xorg-server (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
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
information type: Private → Public
Revision history for this message
penalvch (penalvch) wrote :

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:
https://wiki.ubuntu.com/ReportingBugs

Changed in xorg-server (Ubuntu):
importance: Medium → Low
status: Confirmed → Incomplete
tags: added: trusty
Revision history for this message
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
penalvch (penalvch)
Changed in xorg-server (Ubuntu):
importance: Low → Medium
status: Expired → Confirmed
tags: added: utopic
tags: added: vivid
tags: added: wily
tags: added: bugpattern-needed
Revision history for this message
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:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/1237904

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

this bug issue in ubuntu 15.10 for this time

Changed in xorg-server (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Jonathan Alfonso (alfonsojon1997) wrote :

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

Revision history for this message
Christian Kirbach (christian-kirbach-e) wrote :

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.

Revision history for this message
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)
Changed in xorg-server (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
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)
tags: added: apport-request-retrace
Revision history for this message
Apport retracing service (apport) wrote : Updated stack trace from duplicate bug 1508229

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

Revision history for this message
Apport retracing service (apport) wrote : Dependencies.txt
Revision history for this message
Apport retracing service (apport) wrote : ProcMaps.txt
Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
tags: removed: apport-request-retrace
Revision history for this message
Tim Lunn (darkxst) wrote :
Revision history for this message
Tim Lunn (darkxst) wrote :
description: updated
Changed in xorg-server (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
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)
Changed in xorg-server (Ubuntu):
milestone: none → wily-updates
milestone: wily-updates → none
Changed in ubuntu-gnome:
milestone: none → wily
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

uploaded to the queue

Changed in xorg-server (Ubuntu Wily):
assignee: nobody → Timo Aaltonen (tjaalton)
status: New → In Progress
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

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)
Changed in xorg-server (Ubuntu Wily):
importance: Undecided → Medium
Mathew Hodson (mhodson)
affects: xorg-server → ubuntu-translations
no longer affects: ubuntu-translations
Revision history for this message
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)
Changed in ubuntu-gnome:
status: New → Fix Committed
Revision history for this message
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
Revision history for this message
Chris Halse Rogers (raof) wrote : Update 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  
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.