Closed kforner closed 1 year ago
cross-posted from https://gitlab.alpinelinux.org/alpine/aports/-/issues/13281
▶ docker run --rm -ti --privileged alpine:3.16.2 / # apk update fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz v3.16.2-41-g8d6de99bbd [https://dl-cdn.alpinelinux.org/alpine/v3.16/main] v3.16.2-38-ga761a9fe9d [https://dl-cdn.alpinelinux.org/alpine/v3.16/community] OK: 17024 distinct packages available / # apk add autofs (1/8) Installing libtirpc-conf (1.3.2-r1) (2/8) Installing krb5-conf (1.0-r2) (3/8) Installing libcom_err (1.46.5-r0) (4/8) Installing keyutils-libs (1.6.3-r1) (5/8) Installing libverto (0.3.2-r0) (6/8) Installing krb5-libs (1.19.3-r0) (7/8) Installing libtirpc (1.3.2-r1) (8/8) Installing autofs (5.1.8-r0) Executing busybox-1.35.0-r17.trigger OK: 9 MiB in 22 packages / # automount -fv failed to open config /etc/autofs/autofs.conf failed to open old config /etc/conf.d/autofs Segmentation fault (core dumped) / # touch /etc/autofs/autofs.conf / # automount -fv Segmentation fault (core dumped)
strace last lines:
open("/run/autofs-running.22", O_WRONLY|O_CREAT|O_LARGEFILE|O_CLOEXEC, 0644) = 3 fcntl(3, F_SETFD, FD_CLOEXEC) = 0 close(3) = 0 link("/run/autofs-running.22", "/run/autofs-running") = 0 unlink("/run/autofs-running.22") = 0 open("/run/autofs-running", O_RDWR|O_LARGEFILE|O_CLOEXEC) = 3 fcntl(3, F_SETFD, FD_CLOEXEC) = 0 getpid() = 22 write(3, "22\n", 3) = 3 close(3) = 0 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} --- +++ killed by SIGSEGV (core dumped) +++ Segmentation fault (core dumped)
the gdb backtrace:
(gdb) bt #0 0x00007ffff7fba96e in tss_get () from /lib/ld-musl-x86_64.so.1 #1 0x00007ffff7f4ef9c in ?? () from /usr/lib/libautofs.so #2 0x00007ffff7f4f0ff in log_info () from /usr/lib/libautofs.so #3 0x000055555555cca1 in main ()
fixed upstream: https://gitlab.alpinelinux.org/alpine/aports/-/issues/13281#note_62426934e9d08d9257e3ac2a6970e2de5cc2fc78
cross-posted from https://gitlab.alpinelinux.org/alpine/aports/-/issues/13281
strace last lines:
the gdb backtrace: