Skip to content

Instantly share code, notes, and snippets.

@danmack
Last active April 18, 2019 14:06
Show Gist options
  • Save danmack/6d2b3df2921bae74f717bdbbe49e121b to your computer and use it in GitHub Desktop.
Save danmack/6d2b3df2921bae74f717bdbbe49e121b to your computer and use it in GitHub Desktop.
fedora:30 container not cannot run yum or dnf without SEGV
$ c=$(buildah from fedora:30)
Getting image source signatures
Copying blob 160e9aefb317: 85.15 MiB / 86.30 MiB [=============================]
Copying blob 160e9aefb317: 86.30 MiB / 86.30 MiB [==========================] 7s
Copying config ad0d3c0bf762: 1.99 KiB / 1.99 KiB [==========================] 0s
Writing manifest to image destination
Storing signatures
fano:~/src/cont$
fano:~/src/cont$ buildah run $c -- dnf update -y
Fedora Modular 30 - x86_64 1.6 MB/s | 2.1 MB 00:01
Fedora Modular 30 - x86_64 - Updates 610 B/s | 257 B 00:00
Fedora Modular 30 - x86_64 - Test Updates 2.1 MB/s | 2.9 MB 00:01
Fedora 30 - x86_64 - Test Updates 7.9 MB/s | 15 MB 00:01
Fedora 30 - x86_64 - Updates 641 B/s | 257 B 00:00
container exited on segmentation fault === ] --- B/s | 0 B --:-- ETA
error while running runtime: exit status 1
ERRO[0010] exit status 1
my system:
$ uname -a
Linux fano 5.0.7-300.fc30.x86_64 #1 SMP Mon Apr 8 18:28:09 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
$ id
uid=1000(mack) gid=1000(mack) groups=1000(mack),10(wheel) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
$ buildah version
Version: 1.7-dev
Go Version: go1.12beta2
Image Spec: 1.0.0
Runtime Spec: 1.0.0
CNI Spec: 0.4.0
libcni Version:
Git Commit:
Built: Wed Dec 31 18:00:00 1969
OS/Arch: linux/amd64
$ skopeo inspect docker://docker.io/fedora:30
{
"Name": "docker.io/library/fedora",
"Digest": "sha256:1f2bd2ada777e9a049aeaa78d1b870e2a25ce26b70f060dedd40b8f6db31b8f7",
"RepoTags": [
"20",
"21",
"22",
"23",
"24",
"25",
"26-modular",
"26",
"27",
"28",
"29",
"30",
"31",
"branched",
"heisenbug",
"latest",
"modular",
"rawhide"
],
"Created": "2019-04-03T22:20:36.07932126Z",
"DockerVersion": "18.06.1-ce",
"Labels": {
"maintainer": "Clement Verna \[email protected]\u003e"
},
"Architecture": "amd64",
"Os": "linux",
"Layers": [
"sha256:160e9aefb3171eb995f1d55d00981dabc33cd93686eb1cc0e40a8f4b92678fb1"
]
}
# logs
# jounralctl -f saw this:
Apr 17 09:41:39 fano audit[12796]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=3 subj=unconfined_u:system_r:container_runtime_t:s0-s0:c0.c1023 pid=12796 comm="dnf" exe="/usr/bin/python3.7" sig=11 res=1
Apr 17 09:41:39 fano kernel: traps: dnf[12796] general protection fault ip:7ff95c96cad0 sp:7fff627a1650 error:0 in libcurl.so.4.5.0[7ff95c939000+64000]
Apr 17 09:41:39 fano systemd[1]: Started Process Core Dump (PID 12876/UID 0).
Apr 17 09:41:39 fano audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@11-12876-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Apr 17 09:41:40 fano systemd-coredump[12877]: Process 12796 (dnf) of user 1000 dumped core.
Stack trace of thread 1:
#0 0x00007ff95c96cad0 n/a (libcurl.so.4)
#1 0x00007ff95c96cd86 n/a (libcurl.so.4)
#2 0x00007ff95c965ae2 n/a (libcurl.so.4)
#3 0x00007ff95c95047b n/a (libcurl.so.4)
#4 0x00007ff95c95e091 curl_easy_cleanup (libcurl.so.4)
#5 0x00007ff95d233a1b n/a (/usr/lib64/librepo.so.0)
#6 0x00007ff95d235a2a n/a (/usr/lib64/librepo.so.0)
#7 0x00007ff95d237590 n/a (/usr/lib64/librepo.so.0)
#8 0x00007ff95d2468a0 n/a (/usr/lib64/librepo.so.0)
Apr 17 09:41:40 fano systemd[1]: [email protected]: Succeeded.
Apr 17 09:41:40 fano audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@11-12876-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Apr 17 09:41:40 fano abrt-server[12913]: Deleting problem directory ccpp-2019-04-17-09:41:40.360643-12796 (dup of ccpp-2019-04-17-09:14:49.110593-387)
Using the fedora:29 or centos container works fine.
Something appears to be broken with the fedora:30 container in the registry.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment