On 2022/06/15 10:14:06 +0300, Andrei Borzenkov wrote:
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 ...
Interesting ... currently I do not use awk at login nor setup of the tcsh: /suse/werner> grep awk /etc/csh.* ... only in the complete and .. as expected in gawk.csh an awk is found /suse/werner> grep -l awk /etc/profile.d/*.*csh /etc/profile.d/complete.tcsh /etc/profile.d/gawk.csh /suse/werner> rpm -qf /etc/profile.d/gawk.csh gawk-4.2.1-1.41.x86_64 try to use the -f option tcsh -f script.tcsh and also search for the cause below /etc/profile.d/ in the *.*csh resource scripts ... or in one of your personal (t)csh configuration and/or resource files like ~/.(t)cshrc or ~/.login . Werner -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr