Date: Wed, 27 Mar 2024 13:00:07 +0100 From: Mateusz Guzik <mjguzik@gmail.com> To: Konstantin Belousov <kib@freebsd.org> Cc: FreeBSD Current <freebsd-current@freebsd.org> Subject: truss -f timeout 2 sleep 10 causes breakage Message-ID: <CAGudoHGCQsAPOQpHbb4TTon49K5BDh24af-VCN6LroOEcivPzA@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Top of main, but I reproduced it on stable/14-e64d827d3 as well. Mere "timeout 2 sleep 10" correctly times out. Running "truss -f timeout 2 sleep 10" prevents timeout from killing sleep and the entire thing refuses to exit, truss has to be killed off with SIGKILL. Here is the best part: after doing the above, going back to mere "timeout 2 sleep 10" (without truss!) no longer works -- timeout gets stuck in the kernel: mi_switch sleepq_catch_signals sleepq_wait_sig _sx_xlock_hard stop_all_proc_block kern_procctl sys_procctl amd64_syscall fast_syscall_common It does react to -9 though. -- Mateusz Guzik <mjguzik gmail.com>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGudoHGCQsAPOQpHbb4TTon49K5BDh24af-VCN6LroOEcivPzA>