[Bug 1732185] Re: do-release-upgrade crashed with SIGSEGV under wayland

Balint Reczey balint.reczey at canonical.com
Tue Jan 16 11:51:22 UTC 2018


** Description changed:

  [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
+   $ 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.
  
- Expected result on fixed version: Upgrade starts.
- Result on unfixed version: The GUI crashes.
+ [Test Case (for ubuntu-release-upgrader)]
+ 
+ 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:rbalint
+ 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:rbalint 
+ 4. open a terminal and run one of the following commands (alternatives):
+   $ do-release-upgrade --frontend=DistUpgradeViewGtk3 -d
+   $ /usr/lib/ubuntu-release-upgrader/check-new-release-gtk -d
+ 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
+ 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/do-release-upgrade \
          --frontend=DistUpgradeViewGtk3 -d
  
  (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-release-upgrader-core 1:17.10.8
  ProcVersionSignature: Ubuntu 4.13.0-16.19-generic 4.13.4
  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/do-release-upgrade
  ExecutableTimestamp: 1508803676
  InstallationDate: Installed on 2017-11-14 (0 days ago)
  InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Release amd64 (20171018)
  InterpreterPath: /usr/bin/python3.6
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python3 /usr/bin/do-release-upgrade --frontend=DistUpgradeViewGtk3 -d
  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-release-upgrader
  StacktraceTop:
   ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
   ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
   ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
   ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
   ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups:

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1732185

Title:
  do-release-upgrade crashed with SIGSEGV under wayland

Status in ubuntu-release-upgrader package in Ubuntu:
  Fix Committed
Status in update-manager package in Ubuntu:
  Fix Committed
Status in ubuntu-release-upgrader source package in Artful:
  In Progress
Status in update-manager source package in Artful:
  Fix Committed

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-release-upgrader)]

  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:rbalint
  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:rbalint 
  4. open a terminal and run one of the following commands (alternatives):
    $ do-release-upgrade --frontend=DistUpgradeViewGtk3 -d
    $ /usr/lib/ubuntu-release-upgrader/check-new-release-gtk -d
  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/do-release-upgrade \
          --frontend=DistUpgradeViewGtk3 -d

  (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-release-upgrader-core 1:17.10.8
  ProcVersionSignature: Ubuntu 4.13.0-16.19-generic 4.13.4
  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/do-release-upgrade
  ExecutableTimestamp: 1508803676
  InstallationDate: Installed on 2017-11-14 (0 days ago)
  InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Release amd64 (20171018)
  InterpreterPath: /usr/bin/python3.6
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python3 /usr/bin/do-release-upgrade --frontend=DistUpgradeViewGtk3 -d
  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-release-upgrader
  StacktraceTop:
   ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
   ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
   ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
   ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
   ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups:

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1732185/+subscriptions



More information about the Ubuntu-sponsors mailing list