do-release-upgrade crashed with SIGSEGV under wayland
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-release-upgrader (Ubuntu) |
Fix Released
|
Critical
|
Balint Reczey | ||
Artful |
Fix Released
|
Undecided
|
Balint Reczey | ||
update-manager (Ubuntu) |
Fix Released
|
Critical
|
Balint Reczey | ||
Artful |
Fix Released
|
Critical
|
Balint Reczey |
Bug Description
[Impact]
Users can't upgrade to next Ubuntu release running the upgrade GUI under Wayland.
The backport is needed to let Artful users to upgrade to Bionic without applying workarounds manually.
[Test Case (for update-manager)]
1. Install 17.10 and all the updates available
2. Start a wayland session (Ubuntu in GDM)
3. open a terminal and run the following command:
$ update-manager -cd
4. When you're prompted to upgrade to 18.04, accept and proceed.
Expected result on fixed version: Upgrade starts.
Result on unfixed version: The GUI crashes.
[Test Case (for ubuntu-
1. Install 17.10 and all the updates available
2. Start a wayland session (Ubuntu in GDM)
3. Check that root is not listed in xhost output:
$ xhost
access control enabled, only authorized clients can connect
SI:localuser:
4. If root is present, remove it:
$ xhost -si:localuser:root
localuser:root being removed from access control list
$ xhost
access control enabled, only authorized clients can connect
SI:localuser:
4. open a terminal and run one of the following commands (alternatives):
$ do-release-upgrade --frontend=
$ /usr/lib/
5. When you're prompted to upgrade to 18.04, accept and proceed.
Expected result on fixed version: Upgrade starts.
Result on unfixed version: The GUI crashes.
[Test Case (for regressions)]
Repeat the test cases running under X.org (Ubuntu on Xorg in GDM) and check that:
a. Upgrade still works
b. xhost output is not modified
[Regression Potential]
The upgrade GUI may crash in a different way when applying the workaround fails.
Do-release-upgrade may fail to detect development or versions to upgrade to.
The workaround "xhost +si:localuser:root" may be added under Xorg as well
[Original Bug Text]
Test Case:
1. Install 17.10 and all the updates available
2. Start a wayland session (Ubuntu in GDM)
3. open a terminal and run the following command:
$ update-manager -cd
4. When you're prompted to upgrade to 18.04, accept and proceed.
OR run this command in a terminal:
$ pkexec /usr/bin/python3 /usr/bin/
(note that it's expected to fail under wayland cf bug 1713313)
Expected result
Upgrade starts
Actual result
This crash.
ProblemType: Crash
DistroRelease: Ubuntu 17.10
Package: ubuntu-
ProcVersionSign
Uname: Linux 4.13.0-16-generic x86_64
ApportVersion: 2.20.7-0ubuntu3.1
Architecture: amd64
CrashDB: ubuntu
Date: Tue Nov 14 14:27:30 2017
ExecutablePath: /usr/bin/
ExecutableTimes
InstallationDate: Installed on 2017-11-14 (0 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Release amd64 (20171018)
InterpreterPath: /usr/bin/python3.6
PackageArchitec
ProcCmdline: /usr/bin/python3 /usr/bin/
ProcCwd: /root
Python3Details: /usr/bin/python3.6, Python 3.6.3, python3-minimal, 3.6.3-0ubuntu2
PythonDetails: /usr/bin/python2.7, Python 2.7.14, python-minimal, 2.7.14-2ubuntu1
SegvAnalysis: Skipped: missing required field "Disassembly"
Signal: 11
SourcePackage: ubuntu-
StacktraceTop:
?? () from /usr/lib/
?? () from /usr/lib/
?? () from /usr/lib/
?? () from /usr/lib/
?? () from /usr/lib/
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:
description: | updated |
Changed in ubuntu-release-upgrader (Ubuntu): | |
status: | New → Triaged |
Changed in update-manager (Ubuntu): | |
assignee: | nobody → Balint Reczey (rbalint) |
Changed in update-manager (Ubuntu Artful): | |
importance: | Undecided → Critical |
status: | New → Triaged |
status: | Triaged → In Progress |
Changed in update-manager (Ubuntu): | |
status: | Triaged → Fix Committed |
description: | updated |
Changed in ubuntu-release-upgrader (Ubuntu): | |
assignee: | Jean-Baptiste Lallement (jibel) → Balint Reczey (rbalint) |
status: | Triaged → In Progress |
Changed in ubuntu-release-upgrader (Ubuntu Artful): | |
status: | New → In Progress |
assignee: | nobody → Balint Reczey (rbalint) |
description: | updated |
Changed in update-manager (Ubuntu Artful): | |
assignee: | nobody → Balint Reczey (rbalint) |
Changed in ubuntu-release-upgrader (Ubuntu): | |
status: | In Progress → Fix Committed |
description: | updated |
tags: | added: id-5a145e478569e8e8505fce45 |
StacktraceTop: class_init (klass=0x0) at ././gtk/ gtkswitch. c:875 class_intern_ init (klass=0x0) at ././gtk/ gtkswitch. c:129 icon_theme_ value () from /tmp/apport_ sandbox_ urPSiG/ usr/lib/ x86_64- linux-gnu/ libgtk- 3.so.0
gtk_switch_
gtk_switch_
default_
?? ()
?? ()