On Wed, Jun 15, 2022 at 9:20 AM Wolfgang Mueller <wm@ariannuccia.de> wrote:
Run strace -f -o /tmp/tcsh.log tcsh script.tcsh
It hangs and has to be killed with ^C. I ran and killed it twice.
and provide resulting /tmp/tcsh.log.
12950 execve("/usr/bin/awk", ["awk", "{if($3==h){while($(++i)!=\"#\")a=$"..., "h=azure", "/etc/hosts.0"], 0x5586df6e4f30 /* 61 vars */) = 0 ... 12950 openat(AT_FDCWD, "/etc/hosts.0", O_RDONLY) = 3 ... 12950 read(3, "# This file describes a number o"..., 3303) = 3303 12950 --- SIGINT {si_signo=SIGINT, si_code=SI_KERNEL} --- So some tcsh startup file executes awk script that probably loops doing something. Find out where this awk is called from and what it is doing. Maybe this file /etc/hosts.0 is corrupted, do not know. Or maybe you do not need this awk call at all ...