main/busybox: touch -h gives Segmentation fault
I am unable to touch any file with -h
flag enabled on Alpine Linux 3.12.1 (both aarch64
and armv7
). I'm getting a Segmentation fault. Without -h
flag everything is OK.
$ touch file123
$ touch -h file123
Segmentation fault
$ strace touch file123
execve("/bin/touch", ["touch", "file123"], 0x7fe563a478 /* 13 vars */) = 0
set_tid_address(0x7fac0820bc) = 267
mprotect(0x556e759000, 16384, PROT_READ) = 0
getuid() = 0
utimensat(AT_FDCWD, "file123", NULL, 0) = 0
exit_group(0) = ?
+++ exited with 0 +++
$ strace touch -h file123
execve("/bin/touch", ["touch", "-h", "file123"], 0x7fd13526a0 /* 13 vars */) = 0
set_tid_address(0x7faaddb0bc) = 272
mprotect(0x5581764000, 16384, PROT_READ) = 0
getuid() = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} ---
+++ killed by SIGSEGV +++
Segmentation fault