## One liner to reproduce on fedora42:
$ f=~/f; echo color: red > $f; foo=$( awk '/^color: / {print $2}' ~/f );set
-x;cat
+ cat
cat: -: input file is output file
## strace
$ strace -e
trace=dup,dup2,dup3,close,close_range,open,openat,openat2,pipe,pipe2,socketpair
-f -o /tmp/awk-fd-bug.strace /bin/bash -c 'f=~/f; echo color: red > "$f";
foo=$(awk '\''/^color: / {print $2}'\'' "$f"); set -x; cat'
+ cat
cat: -: input file is output file
### contents of /tmp/awk-fd-bug.strace
$ true -pr just puts on a header and footer; -pr /tmp/awk-fd-bug.strace
: {{{ /tmp/awk-fd-bug.strace
vvvv... -rw-rw-r--. 1 rodmant crew 38731 2025-12-11 19:39
/tmp/awk-fd-bug.strace ...--vvvv
1252505 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
1252505 close(3) = 0
1252505 openat(AT_FDCWD, "/lib64/libtinfo.so.6", O_RDONLY|O_CLOEXEC) = 3
1252505 close(3) = 0
1252505 openat(AT_FDCWD, "/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
1252505 close(3) = 0
1252505 openat(AT_FDCWD, "/dev/tty", O_RDWR|O_NONBLOCK) = 3
1252505 close(3) = 0
1252505 openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC)
= 3
1252505 close(3) = 0
1252505 openat(AT_FDCWD, "/usr/lib64/gconv/gconv-modules.cache",
O_RDONLY|O_CLOEXEC) = 3
1252505 close(3) = 0
1252505 openat(AT_FDCWD, "/usr/share/lmod/lmod/init/bash", O_RDONLY) = 3
1252505 close(3) = 0
1252505 pipe2([3, 4], 0) = 0
1252505 close(4) = 0
1252506 dup2(4, 1) = 1
1252506 close(4) = 0
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/lib64/liblua-5.4.so", O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/lib64/libreadline.so.8", O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/lib64/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/lib64/libtinfo.so.6", O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lmod/lmod/libexec/addto", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix.lua", O_RDONLY) = -1 ENOENT
(No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/init.lua", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/init.lua", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/_strict.lua", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/_strict.lua", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/std/_debug/init.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/std/_debug/init/init.lua",
O_RDONLY) = -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/std/_debug/init.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/std/_debug/init/init.lua",
O_RDONLY) = -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/std/_debug/init.so", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/loadall.so", O_RDONLY) = -1 ENOENT
(No such file or directory)
1252506 openat(AT_FDCWD, "", O_RDONLY) = -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/std.so", O_RDONLY) = -1 ENOENT (No
such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/loadall.so", O_RDONLY) = -1 ENOENT
(No such file or directory)
1252506 openat(AT_FDCWD, "", O_RDONLY) = -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/glob.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/glob/init.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/glob.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/glob/init.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/glob.so", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/glob.so",
O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/fcntl.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/fcntl/init.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/fcntl.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/fcntl/init.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/fcntl.so", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/fcntl.so",
O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/unistd.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/unistd/init.lua", O_RDONLY)
= -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/unistd.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/unistd/init.lua", O_RDONLY)
= -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/unistd.so", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/unistd.so",
O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/lib64/libcrypt.so.2", O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/_base.lua", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/_base.lua", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/typecheck.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/typecheck/init.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/typecheck.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/typecheck/init.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/typecheck.so", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/loadall.so", O_RDONLY) = -1 ENOENT
(No such file or directory)
1252506 openat(AT_FDCWD, "", O_RDONLY) = -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/_bitwise.lua", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/_bitwise.lua", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/sys/stat.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/sys/stat/init.lua",
O_RDONLY) = -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/stat.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/stat/init.lua",
O_RDONLY) = -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/stat.so", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/stat.so",
O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/errno.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/errno/init.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/errno.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/errno/init.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/errno.so", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/errno.so",
O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/stdlib.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/stdlib/init.lua", O_RDONLY)
= -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/stdlib.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/stdlib/init.lua", O_RDONLY)
= -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/stdlib.so", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/stdlib.so",
O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/sys/wait.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/sys/wait/init.lua",
O_RDONLY) = -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/wait.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/wait/init.lua",
O_RDONLY) = -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/wait.so", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/wait.so",
O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/ctype.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/ctype/init.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/ctype.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/ctype/init.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/ctype.so", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/ctype.so",
O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/dirent.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/dirent/init.lua", O_RDONLY)
= -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/dirent.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/dirent/init.lua", O_RDONLY)
= -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/dirent.so", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/dirent.so",
O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/fnmatch.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/fnmatch/init.lua", O_RDONLY)
= -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/fnmatch.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/fnmatch/init.lua", O_RDONLY)
= -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/fnmatch.so", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/fnmatch.so",
O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/grp.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/grp/init.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/grp.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/grp/init.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/grp.so", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/grp.so", O_RDONLY|O_CLOEXEC)
= 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/libgen.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/libgen/init.lua", O_RDONLY)
= -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/libgen.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/libgen/init.lua", O_RDONLY)
= -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/libgen.so", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/libgen.so",
O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/poll.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/poll/init.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/poll.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/poll/init.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/poll.so", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/poll.so",
O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/pwd.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/pwd/init.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/pwd.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/pwd/init.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/pwd.so", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/pwd.so", O_RDONLY|O_CLOEXEC)
= 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/sched.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/sched/init.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sched.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sched/init.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sched.so", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sched.so",
O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/signal.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/signal/init.lua", O_RDONLY)
= -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/signal.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/signal/init.lua", O_RDONLY)
= -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/signal.so", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/signal.so",
O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/stdio.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/stdio/init.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/stdio.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/stdio/init.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/stdio.so", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/stdio.so",
O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/sys/msg.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/sys/msg/init.lua", O_RDONLY)
= -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/msg.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/msg/init.lua", O_RDONLY)
= -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/msg.so", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/msg.so",
O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/sys/resource.lua", O_RDONLY)
= -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/sys/resource/init.lua",
O_RDONLY) = -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/resource.lua", O_RDONLY)
= -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/resource/init.lua",
O_RDONLY) = -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/resource.so", O_RDONLY)
= 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/resource.so",
O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/sys/socket.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/sys/socket/init.lua",
O_RDONLY) = -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/socket.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/socket/init.lua",
O_RDONLY) = -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/socket.so", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/socket.so",
O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/sys/statvfs.lua", O_RDONLY)
= -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/sys/statvfs/init.lua",
O_RDONLY) = -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/statvfs.lua", O_RDONLY)
= -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/statvfs/init.lua",
O_RDONLY) = -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/statvfs.so", O_RDONLY) =
3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/statvfs.so",
O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/sys/time.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/sys/time/init.lua",
O_RDONLY) = -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/time.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/time/init.lua",
O_RDONLY) = -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/time.so", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/time.so",
O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/sys/times.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/sys/times/init.lua",
O_RDONLY) = -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/times.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/times/init.lua",
O_RDONLY) = -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/times.so", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/times.so",
O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/sys/utsname.lua", O_RDONLY)
= -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/sys/utsname/init.lua",
O_RDONLY) = -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/utsname.lua", O_RDONLY)
= -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/utsname/init.lua",
O_RDONLY) = -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/utsname.so", O_RDONLY) =
3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/sys/utsname.so",
O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/syslog.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/syslog/init.lua", O_RDONLY)
= -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/syslog.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/syslog/init.lua", O_RDONLY)
= -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/syslog.so", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/syslog.so",
O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/termio.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/termio/init.lua", O_RDONLY)
= -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/termio.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/termio/init.lua", O_RDONLY)
= -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/termio.so", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/termio.so",
O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/time.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/time/init.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/time.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/time/init.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/time.so", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/time.so",
O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/utime.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/utime/init.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/utime.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/utime/init.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/utime.so", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/posix/utime.so",
O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/deprecated.lua", O_RDONLY) =
3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/deprecated.lua", O_RDONLY) =
3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/std/_debug.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/std/_debug/init.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/std/_debug.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/std/_debug/init.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/std/_debug.so", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/loadall.so", O_RDONLY) = -1 ENOENT
(No such file or directory)
1252506 openat(AT_FDCWD, "", O_RDONLY) = -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/std.so", O_RDONLY) = -1 ENOENT (No
such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/loadall.so", O_RDONLY) = -1 ENOENT
(No such file or directory)
1252506 openat(AT_FDCWD, "", O_RDONLY) = -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/compat.lua", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/compat.lua", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/version.lua", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/posix/version.lua", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lmod/lmod/libexec/../tools/strict.lua",
O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lmod/lmod/libexec/../tools/strict.lua",
O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD,
"/usr/share/lmod/lmod/libexec/../tools/string_utils.lua", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD,
"/usr/share/lmod/lmod/libexec/../tools/string_utils.lua", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD,
"/usr/share/lmod/lmod/libexec/../tools/pairsByKeys.lua", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD,
"/usr/share/lmod/lmod/libexec/../tools/pairsByKeys.lua", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lmod/lmod/libexec/../tools/Dbg.lua",
O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lmod/lmod/libexec/../tools/Dbg.lua",
O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lmod/lmod/libexec/../tools/lfs.lua",
O_RDONLY) = -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lmod/lmod/libexec/../tools/lfs/init.lua",
O_RDONLY) = -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lmod/lmod/libexec/lfs.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/lfs.lua", O_RDONLY) = -1 ENOENT
(No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/lfs/init.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/lfs.lua", O_RDONLY) = -1 ENOENT
(No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/lfs/init.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lmod/lmod/libexec/../lib/lfs.so",
O_RDONLY) = -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/lfs.so", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/lfs.so", O_RDONLY|O_CLOEXEC) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lmod/lmod/libexec/../tools/Optiks.lua",
O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lmod/lmod/libexec/../tools/Optiks.lua",
O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lmod/lmod/libexec/../tools/TermWidth.lua",
O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lmod/lmod/libexec/../tools/TermWidth.lua",
O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD,
"/usr/share/lmod/lmod/libexec/../tools/haveTermSupport.lua", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD,
"/usr/share/lmod/lmod/libexec/../tools/haveTermSupport.lua", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lmod/lmod/libexec/../tools/term.lua",
O_RDONLY) = -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lmod/lmod/libexec/../tools/term/init.lua",
O_RDONLY) = -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lmod/lmod/libexec/term.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/term.lua", O_RDONLY) = -1 ENOENT
(No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/term/init.lua", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/term/init.lua", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lmod/lmod/libexec/../tools/term/core.lua",
O_RDONLY) = -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD,
"/usr/share/lmod/lmod/libexec/../tools/term/core/init.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lmod/lmod/libexec/term/core.lua",
O_RDONLY) = -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/term/core.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/term/core/init.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/term/core.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/term/core/init.lua", O_RDONLY) =
-1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lmod/lmod/libexec/../lib/term/core.so",
O_RDONLY) = -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/term/core.so", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/lib64/lua/5.4/term/core.so", O_RDONLY|O_CLOEXEC)
= 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD,
"/usr/share/lmod/lmod/libexec/../tools/term/colors.lua", O_RDONLY) = -1 ENOENT
(No such file or directory)
1252506 openat(AT_FDCWD,
"/usr/share/lmod/lmod/libexec/../tools/term/colors/init.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lmod/lmod/libexec/term/colors.lua",
O_RDONLY) = -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/term/colors.lua", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/term/colors.lua", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD,
"/usr/share/lmod/lmod/libexec/../tools/term/cursor.lua", O_RDONLY) = -1 ENOENT
(No such file or directory)
1252506 openat(AT_FDCWD,
"/usr/share/lmod/lmod/libexec/../tools/term/cursor/init.lua", O_RDONLY) = -1
ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lmod/lmod/libexec/term/cursor.lua",
O_RDONLY) = -1 ENOENT (No such file or directory)
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/term/cursor.lua", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lua/5.4/term/cursor.lua", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lmod/lmod/libexec/../tools/capture.lua",
O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lmod/lmod/libexec/../tools/capture.lua",
O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lmod/lmod/libexec/../tools/Cosmic.lua",
O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lmod/lmod/libexec/../tools/Cosmic.lua",
O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lmod/lmod/libexec/../tools/declare.lua",
O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD, "/usr/share/lmod/lmod/libexec/../tools/declare.lua",
O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD,
"/usr/share/lmod/lmod/libexec/../tools/BeautifulTbl.lua", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD,
"/usr/share/lmod/lmod/libexec/../tools/BeautifulTbl.lua", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD,
"/usr/share/lmod/lmod/libexec/../tools/Optiks_Option.lua", O_RDONLY) = 3
1252506 close(3) = 0
1252506 openat(AT_FDCWD,
"/usr/share/lmod/lmod/libexec/../tools/Optiks_Option.lua", O_RDONLY) = 3
1252506 close(3) = 0
1252505 close(3 <unfinished ...>
1252506 +++ exited with 0 +++
1252505 <... close resumed>) = 0
1252505 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=1252506,
si_uid=4187, si_status=0, si_utime=0, si_stime=0} ---
1252505 openat(AT_FDCWD, "/dev/null", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
1252505 dup2(3, 2) = 2
1252505 close(3) = 0
1252505 openat(AT_FDCWD, "/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC)
= 3
1252505 close(3) = 0
1252505 openat(AT_FDCWD, "/usr/share/locale/en_US.utf8/LC_MESSAGES/bash.mo",
O_RDONLY) = -1 ENOENT (No such file or directory)
1252505 openat(AT_FDCWD, "/usr/share/locale/en_US/LC_MESSAGES/bash.mo",
O_RDONLY) = -1 ENOENT (No such file or directory)
1252505 openat(AT_FDCWD, "/usr/share/locale/en.utf8/LC_MESSAGES/bash.mo",
O_RDONLY) = -1 ENOENT (No such file or directory)
1252505 openat(AT_FDCWD, "/usr/share/locale/en/LC_MESSAGES/bash.mo", O_RDONLY)
= -1 ENOENT (No such file or directory)
1252505 dup2(10, 2) = 2
1252505 close(10) = 0
1252505 openat(AT_FDCWD, "/a/rodmant/f", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
1252505 dup2(3, 1) = 1
1252505 close(3) = 0
1252505 dup2(10, 1) = 1
1252505 close(10) = 0
1252505 pipe2([3, 4], 0) = 0
1252505 close(4) = 0
1252507 dup2(4, 1) = 1
1252507 close(4) = 0
1252507 close(3) = 0
1252507 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
1252507 close(3) = 0
1252507 openat(AT_FDCWD, "/lib64/libreadline.so.8", O_RDONLY|O_CLOEXEC) = 3
1252507 close(3) = 0
1252507 openat(AT_FDCWD, "/lib64/libmpfr.so.6", O_RDONLY|O_CLOEXEC) = 3
1252507 close(3) = 0
1252507 openat(AT_FDCWD, "/lib64/libgmp.so.10", O_RDONLY|O_CLOEXEC) = 3
1252507 close(3) = 0
1252507 openat(AT_FDCWD, "/lib64/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
1252507 close(3) = 0
1252507 openat(AT_FDCWD, "/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
1252507 close(3) = 0
1252507 openat(AT_FDCWD, "/lib64/libtinfo.so.6", O_RDONLY|O_CLOEXEC) = 3
1252507 close(3) = 0
1252507 openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC)
= 3
1252507 close(3) = 0
1252507 openat(AT_FDCWD, "/usr/lib64/gconv/gconv-modules.cache",
O_RDONLY|O_CLOEXEC) = 3
1252507 close(3) = 0
1252507 openat(AT_FDCWD, "/a/rodmant/f", O_RDONLY) = 3
1252507 close(3) = 0
1252505 close(3) = 0
1252507 +++ exited with 0 +++
1252505 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=1252507,
si_uid=4187, si_status=0, si_utime=0, si_stime=0} ---
1252505 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
1252505 close(3) = 0
1252505 openat(AT_FDCWD, "/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
1252505 close(3) = 0
1252505 openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC)
= 3
1252505 close(3) = 0
1252505 openat(AT_FDCWD, "/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC)
= 3
1252505 close(3) = 0
1252505 openat(AT_FDCWD,
"/usr/share/locale/en_US.utf8/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT
(No such file or directory)
1252505 openat(AT_FDCWD, "/usr/share/locale/en_US/LC_MESSAGES/coreutils.mo",
O_RDONLY) = -1 ENOENT (No such file or directory)
1252505 openat(AT_FDCWD, "/usr/share/locale/en.utf8/LC_MESSAGES/coreutils.mo",
O_RDONLY) = -1 ENOENT (No such file or directory)
1252505 openat(AT_FDCWD, "/usr/share/locale/en/LC_MESSAGES/coreutils.mo",
O_RDONLY) = -1 ENOENT (No such file or directory)
1252505 close(0) = 0
1252505 close(1) = 0
1252505 close(2) = 0
1252505 +++ exited with 1 +++
: }}} /tmp/awk-fd-bug.strace
$
## federa host with the issue
$ ( set -x;uname -a;rpm -qi bash|grep -E 'Version|Release' )
+ uname -a
Linux epjdn.zq3q.org 6.17.9-200.fc42.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Nov 24
22:28:05 UTC 2025 x86_64 GNU/Linux
+ rpm -qi bash
+ grep -E 'Version|Release'
Version : 5.2.37
Release : 1.fc42
gls has mail
$ ( set -x;uname -a;(rpm -qi bash; rpm -qi gawk ) |grep -E
'Name|Version|Release' )
+ uname -a
Linux epjdn.zq3q.org 6.17.9-200.fc42.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Nov 24
22:28:05 UTC 2025 x86_64 GNU/Linux
+ rpm -qi bash
+ grep -E 'Name|Version|Release'
Name : bash
Version : 5.2.37
Release : 1.fc42
+ rpm -qi gawk
Name : gawk
Version : 5.3.1
Release : 1.fc42
$
## my bug report | https://bugzilla.redhat.com/show_bug.cgi?id=2417885 |
Below is and edited snip from lynx
https://bugzilla.redhat.com/show_bug.cgi?id=2417885. I left out the link
reference section.
@@@ https://bugzilla.redhat.com/show_bug.cgi?id=2417885 @@@
:2025-12-11_Thu:Se6Wgvxa: op{
[34]Bug 2417885 - Regression: Bash command substitution (`$()`) running `gawk`
permanently corrupts shell file descriptors (FD 0/1), even with explicit `<
/dev/null` redirection.
[35]Summary: Regression: Bash command substitution (`$()`) running `gawk`
permanently corr...
[39]Product: Fedora
[40]Classification: Fedora
[41]Component: gawk
[43]Version: 42
[45]OS: Linux
[47]Severity: medium
[49]Assignee: Jakub Martisko
[50]QA Contact: Fedora Extras Quality Assurance
[58]Reported: 2025-11-30 17:19 UTC by Tom R
[59]Modified: 2025-11-30 17:20 UTC ([60]History)
[65]Description Tom R 2025-11-30 17:19:05 UTC
# Fedora Bug Report: gawk/Pipe Corruption (Fedora 42)
1. TITLE (One-Line Summary)
Regression: Bash command substitution (`$()`) running `gawk` permanently
corrupts shell file descriptors (FD 0/1), even with explicit `< /dev/null`
redirection.
2. ENVIRONMENT DETAILS
• OS: Fedora 42 (x86_64)
• Kernel: `6.17.8-200.fc42.x86_64`
• Package: `gawk-5.3.1-1.fc42.x86_64`
• Shell: `bash` (version 5.2 or similar)
• Behavior: When `gawk` is executed in a command substitution (`$()`), the
parent shell's I/O streams are permanently linked (`stdin` == `stdout`),
causing safety checks in other programs like `cat` to fail.
3. STEPS TO REPRODUCE
1. Start a fresh interactive terminal session.
2. Create a simple configuration file: ```bash $ echo "key value" >
test.cfg ```
3. Run the command substitution using `awk`, explicitly redirecting its
Standard Input (FD 0) to `/dev/null`: ```bash $ test_var=$(awk '/^key / {print
$2}' test.cfg < /dev/null) ```
4. Immediately try to run the standard, interactive `cat` command:
```bash $ cat ```
4. ACTUAL RESULTS
The `cat` command fails with the I/O safety error:
``` cat: -: input file is output file ```
5. EXPECTED RESULTS
The command substitution should run silently, and the `cat` command should wait
for keyboard input (the standard interactive behavior).
6. CRITICAL DIAGNOSTIC INFORMATION
The bug is not an `awk` default behavior issue. The corruption occurs despite
the explicit redirection of FD 0 using `< /dev/null`. This implies a deeper
issue in how the Bash pipe mechanism interacts with the `gawk` executable in
this specific Fedora environment.
A functionally similar command using `sed` does NOT cause the error, even when
run inside the same command substitution:
```bash $ test_var=$(sed -n '/^key /p;q' test.cfg) $ cat # This works fine and
does not trigger the error. ```
This suggests an internal conflict within the `gawk` binary itself or how the
operating system handles the file descriptors when `gawk` is initialized inside
a pipeline. The bug is a regression because this behavior did not occur in
previous Fedora versions.
Reproducible: Always
Steps to Reproduce:
3. STEPS TO REPRODUCE
1. Start a fresh interactive terminal session.
2. Create a simple configuration file: ```bash $ echo "key value" >
test.cfg ```
3. Run the command substitution using `awk`, explicitly redirecting its
Standard Input (FD 0) to `/dev/null`: ```bash $ test_var=$(awk '/^key / {print
$2}' test.cfg < /dev/null) ```
4. Immediately try to run the standard, interactive `cat` command:
```bash $ cat ```
4. ACTUAL RESULTS
The `cat` command fails with the I/O safety error:
``` cat: -: input file is output file ```
5. EXPECTED RESULTS
The command substitution should run silently, and the `cat` command should wait
for keyboard input (the standard interactive behavior).
6. CRITICAL DIAGNOSTIC INFORMATION
The bug is not an `awk` default behavior issue. The corruption occurs despite
the explicit redirection of FD 0 using `< /dev/null`. This implies a deeper
issue in how the Bash pipe mechanism interacts with the `gawk` executable in
this specific Fedora environment.
A functionally similar command using `sed` does NOT cause the error, even when
run inside the same command substitution:
3. STEPS TO REPRODUCE
1. Start a fresh interactive terminal session.
2. Create a simple configuration file: ```bash $ echo "key value" >
test.cfg ```
3. Run the command substitution using `awk`, explicitly redirecting its
Standard Input (FD 0) to `/dev/null`: ```bash $ test_var=$(awk '/^key / {print
$2}' test.cfg < /dev/null) ```
4. Immediately try to run the standard, interactive `cat` command:
```bash $ cat ```
4. ACTUAL RESULTS
The `cat` command fails with the I/O safety error:
``` cat: -: input file is output file ```
5. EXPECTED RESULTS
The command substitution should run silently, and the `cat` command should wait
for keyboard input (the standard interactive behavior).
6. CRITICAL DIAGNOSTIC INFORMATION
The bug is not an `awk` default behavior issue. The corruption occurs despite
the explicit redirection of FD 0 using `< /dev/null`. This implies a deeper
issue in how the Bash pipe mechanism interacts with the `gawk` executable in
this specific Fedora environment.
A functionally similar command using `sed` does NOT cause the error, even when
run inside the same command substitution:
-- @@@ https://bugzilla.redhat.com/show_bug.cgi?id=2417885 @@@
:2025-12-11_Thu:Se6Wgvxa: fin}
--
thanks!
Tom