Building core18 base fails : segfault/exit 139
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
New
|
Undecided
|
Unassigned |
Bug Description
Hallo everybody,
I am trying to build microk8s based on core18.
My host is cosmic and I am using the docker variant of the build:
```
docker run --rm -v "$PWD":/build -w /build snapcore/snapcraft bash \
-c "apt update && snapcraft"
```
The only change I applied was adding a line `base: core18` to `snapcraft.yaml` on master. The build works fine using unmodified sources.
With the change applied, I end up:
```
Preparing to pull libnftnl
Running on 'xenial'
Pulling libnftnl
snapcraft is running as a snap False, SNAP_NAME set to ''
Segmentation fault (core dumped)
Traceback (most recent call last):
File "/usr/bin/
load_
File "/usr/lib/
return self.main(*args, **kwargs)
File "/usr/lib/
rv = self.invoke(ctx)
File "/usr/lib/
return Command.
File "/usr/lib/
return ctx.invoke(
File "/usr/lib/
return callback(*args, **kwargs)
File "/usr/lib/
return f(get_current_
File "/usr/lib/
ctx.
File "/usr/lib/
return self.invoke(cmd, **kwargs)
File "/usr/lib/
return callback(*args, **kwargs)
File "/usr/lib/
project = _execute(
File "/usr/lib/
lifecycle.
File "/usr/lib/
executor.
File "/usr/lib/
self.
File "/usr/lib/
getattr(self, "_run_{
File "/usr/lib/
self.
File "/usr/lib/
getattr(part, step.name)()
File "/usr/lib/
self.
File "/usr/lib/
"override-
File "/usr/lib/
scriptlet_
snapcraft.
```
PS: I am very new to snapcraft so please forgive me in case I am missing something.
Thanks
Andreas
Docker is an advanced mode, we can certainly warn about this situation, but by stating core18 on a docker image that is not based out of bionic you are mixing libc ABI and causing this crash you see here.