** Description changed:

- Ubuntu version: Ubuntu Artful Aardvark (development branch), Release: 17.10
- gnome-software package version: 3.26.0-0ubuntu2
+ [Impact]
+ GNOME Software crashes if a broken snap is installed.
  
- Expected: To be able to use the application.
+ [Test Case]
  
- What happened instead: The application crashes after several seconds.
- Bug replicated every time the application is opened, rending it entirely
- unusable.
+ 1. Create and install a local snap:
+ $ mkdir -p /tmp/broken-snap/meta
+ $ printf "name: broken-snap\nversion: 1\n" > /tmp/broken-snap/meta/snap.yaml
+ $ sudo snap try /tmp/broken-snap
  
- Journald shows a segfault, as per attached snippet.
+ 2. Break the snap
+ $ rm /tmp/broken-snap/meta/snap.yaml
  
- ProblemType: Bug
- DistroRelease: Ubuntu 17.10
- Package: gnome-software 3.26.0-0ubuntu2
- ProcVersionSignature: Ubuntu 4.13.0-12.13-generic 4.13.3
- Uname: Linux 4.13.0-12-generic x86_64
- ApportVersion: 2.20.7-0ubuntu1
- Architecture: amd64
- CurrentDesktop: ubuntu:GNOME
- Date: Fri Sep 29 21:01:06 2017
- EcryptfsInUse: Yes
- InstallationDate: Installed on 2017-09-14 (15 days ago)
- InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Alpha amd64 (20170912)
- InstalledPlugins:
-  gnome-software-plugin-flatpak N/A
-  gnome-software-plugin-limba   N/A
-  gnome-software-plugin-snap    3.26.0-0ubuntu2
- SourcePackage: gnome-software
- UpgradeStatus: No upgrade log present (probably fresh install)
+ 3. Confirm the snap is broken:
+ $ snap list
+ Name         Version    Rev   Developer  Notes
+ broken-snap             x1               try,broken
+ 
+ 4. Restart gnome-software
+ $ killall gnome-software
+ 
+ 5. Open GNOME Software and go to installed tab. Wait for items to load.
+ 
+ Expected result:
+ Installed snaps are shown
+ 
+ Observed result:
+ GNOME Software crashes.
+ 
+ [Regression Potential]
+ Fix is to handle fields missing in broken snaps. Some risk of breaking 
related code.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-software in Ubuntu.
https://bugs.launchpad.net/bugs/1720442

Title:
  Crashes if broken snaps installed

Status in gnome-software package in Ubuntu:
  Fix Released
Status in gnome-software source package in Artful:
  Fix Committed
Status in gnome-software source package in Bionic:
  Fix Released

Bug description:
  [Impact]
  GNOME Software crashes if a broken snap is installed.

  [Test Case]

  1. Create and install a local snap:
  $ mkdir -p /tmp/broken-snap/meta
  $ printf "name: broken-snap\nversion: 1\n" > /tmp/broken-snap/meta/snap.yaml
  $ sudo snap try /tmp/broken-snap

  2. Break the snap
  $ rm /tmp/broken-snap/meta/snap.yaml

  3. Confirm the snap is broken:
  $ snap list
  Name         Version    Rev   Developer  Notes
  broken-snap             x1               try,broken

  4. Restart gnome-software
  $ killall gnome-software

  5. Open GNOME Software and go to installed tab. Wait for items to
  load.

  Expected result:
  Installed snaps are shown

  Observed result:
  GNOME Software crashes.

  [Regression Potential]
  Fix is to handle fields missing in broken snaps. Some risk of breaking 
related code.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-software/+bug/1720442/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to