Re:Why would you still want to use strace in 2023? [video]
by hawski on Monday January 08, 2024 @04:46AM
(#38909934)
I often use it to see what configuration files the thing reads, it is much more reliable than documentation.
[ Parent
| on HN ]
Re:Why would you still want to use strace in 2023? [video]
by bboozzoo on Monday January 08, 2024 @05:05AM
(#38910054)
Since you almost always need to open a file in order to do anything useful `strace -vf -e openat` helped solve a lot of issues from simple configuration file lookup to ld.so library loading problems.
Re:Why would you still want to use strace in 2023? [video]
by thequux on Monday January 08, 2024 @06:19AM
(#38910537)
It is often useful to also watch for calls to the stat family of syscalls; some applications stat files that they wish to open rather than depending on the return code from open, so just looking for open will miss files that don't exist.
Re:Why would you still want to use strace in 2023? [video]
by agumonkey on Monday January 08, 2024 @06:48AM
(#38910706)
same, and I'm often surprised how many files are touched / read, and also how many times (trying to load local configs from dozens of places)..
some unix practices seems very inefficient