`stage-snaps: mir-kiosk-x11` segfaults on `base: core18`

Bug #1918705 reported by Michał Sawicz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
In Progress
Medium
Claudio Matsuoka

Bug Description

Given this yaml:

```
name: try-kiosk-x11
adopt-info: mir-kiosk
summary: Segfault on stage-snaps
description: |
  This shows snapcraft segfaulting on stage-snaps
confinement: strict
base: core18

architectures:
  - build-on: amd64

parts:
  mir-kiosk:
    plugin: nil
    stage-snaps:
      - mir-kiosk-x11/latest/beta
```

Snapcraft segfaults in `snapcraftcl pull`. The snap in `stable` channel is a `base: core20` one, which was suspect, but the `beta` channel is `core18`. Both cause a segfault.

Tags: craft-416
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

I did a "s/adopt-info: mir-kiosk/version: test/g" change and built the snap successfully with "snapcraft --use-lxd"

sergiusens@imladris:~/repositorios/snaps/mir-kiosk$ snapcraft --use-lxd
Launching a container.
Waiting for container to be ready
Waiting for network to be ready...
snapd is not logged in, snap install commands will use sudo
snap "core18" has no updates available
Downloading snap 'mir-kiosk-x11'
Pulling mir-kiosk
+ snapcraftctl pull
Building mir-kiosk
+ snapcraftctl build
Staging mir-kiosk
+ snapcraftctl stage
Priming mir-kiosk
+ snapcraftctl prime
'grade' property not specified: defaulting to 'stable'.
Snapping |
Snapped try-kiosk-x11_test_amd64.snap

Same results when using multipass. Any more details to add the how to reproduce?

Changed in snapcraft:
status: New → Incomplete
Revision history for this message
Michał Sawicz (saviq) wrote :

Hmm I wonder if it kept the older revision around?

Will try again tomorrow and report back.

Revision history for this message
Michał Sawicz (saviq) wrote :

OK so trying this:

```
name: try-kiosk-x11
version: none
summary: Segfault on stage-snaps
description: |
  This shows snapcraft segfaulting on stage-snaps
confinement: strict
base: core18

parts:
  mir-kiosk:
    plugin: nil
    stage-snaps:
      - mir-kiosk-x11
```

Fails as expected, because mir-kiosk-x11 is core20-based. But changing it to `/latest/beta` and rebuilding without cleaning will segfault again. After clean, it works correctly.

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

We should check the stage-snap change and cleanup and warn when the build-base used does not match that of the stage-snap

Changed in snapcraft:
status: Incomplete → Confirmed
importance: Undecided → Medium
assignee: nobody → Claudio Matsuoka (cmatsuoka)
tags: added: craft-416
Revision history for this message
Claudio Matsuoka (cmatsuoka) wrote :

I can't reproduce the segfault with current snapcraft and packages in any if the described scenarios. Is this still a concern? If so, could you provide new information on how to reproduce?

Changed in snapcraft:
status: Confirmed → Incomplete
Revision history for this message
Michał Sawicz (saviq) wrote :

@cmatsuoka you'd need a snap with one channel based `core18`, another `core20`, and switch between them without cleaning.

We don't currently have such a situation, so don't have an easy reproducer today.

Revision history for this message
Claudio Matsuoka (cmatsuoka) wrote :

Thanks, I'll prepare a couple of test snaps to reproduce this scenario.

Changed in snapcraft:
status: Incomplete → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.