From owner-freebsd-stable Thu Aug 29 2:14:32 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD9EA37B400 for ; Thu, 29 Aug 2002 02:14:28 -0700 (PDT) Received: from nixpbe.pdb.sbs.de (nixpbe.pdb.siemens.de [192.109.2.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A16643E65 for ; Thu, 29 Aug 2002 02:14:27 -0700 (PDT) (envelope-from Martin.Kraemer@Fujitsu-Siemens.com) Received: from trulli.pdb.fsc.net (ThisAddressDoesNotExist [172.25.96.20] (may be forged)) by nixpbe.pdb.sbs.de (8.11.6/8.11.2) with ESMTP id g7T9EPY14165; Thu, 29 Aug 2002 11:14:25 +0200 Received: from deejai2.mch.fsc.net (deejai2.mch.fsc.net [172.25.124.236]) by trulli.pdb.fsc.net (8.11.6/8.11.6) with ESMTP id g7T9ENA16428; Thu, 29 Aug 2002 11:14:24 +0200 Received: (from root@localhost) by deejai2.mch.fsc.net (8.12.5/8.12.4) id g7T9EOhl056325; Thu, 29 Aug 2002 11:14:24 +0200 (CEST) (envelope-from martin@deejai2.mch.fsc.net) Received: from deejai2.mch.fsc.net (localhost [127.0.0.1]) by deejai2.mch.fsc.net (8.12.5/8.12.5) with ESMTP id g7T9EFru056318; Thu, 29 Aug 2002 11:14:15 +0200 (CEST) (envelope-from martin@deejai2.mch.fsc.net) Received: (from martin@localhost) by deejai2.mch.fsc.net (8.12.5/8.12.5/Submit) id g7T9EEe5056317; Thu, 29 Aug 2002 11:14:14 +0200 (CEST) Date: Thu, 29 Aug 2002 11:14:14 +0200 From: Martin Kraemer To: FreeBSD-stable@freebsd.org, tcsh@mx.gw.com Subject: Strange bug: tcsh stops reading .tcshrc after 4kB Message-ID: <20020829111414.A54912@deejai2.mch.fsc.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i X-Operating-System: FreeBSD 4.6-STABLE FreeBSD 4.6-STABLE X-Organization: Fujitsu Siemens Computers (Muenchen, Germany) X-Disclaimer: THE COMMENTS CONTAINED IN THIS MESSAGE REFLECT THE VIEWS OF THE WRITER AND ARE NOT NECESSARILY THE VIEWS OF FUJITSU-SIEMENS COMPUTERS X-No-Junk-Mail: I do not want to get *any* junk mail. X-Virus-Scanned: by AMaViS perl-11 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On FreeBSD (I assume this is related to the bug) I "often" experience a very strange bug which was not there in the past. It manifests by tcsh not finishing reading all of .tcshrc (or/and .login). Especially strange is the fact that it does not always happen, but only when tcsh is started from the x11 window manager directly, not (or at least, not always) when started from another tcsh. The exact trigger is still unknown to me. To visualize what happens, I added this in my .tcshrc around the magic 4kB boundary: ... set autolist = ambiguous if ( $?prompt ) echo -n '117 ' set addsuffix # (set by dflt) if ( $?prompt ) echo -n '119 ' set autocorrect if ( $?prompt ) echo -n '121 ' set autoexpand if ( $?prompt ) echo -n '123 ' if ( ! $?DISPLAY ) set autologout = 60 if ( $?prompt ) echo -n '125 ' set backslash_quote if ( $?prompt ) echo -n '127 ' set complete = enhance # if ( $?prompt ) echo -n '129 ' set correct = cmd # all | complete | cmd if ( $?prompt ) echo -n '131 ' set echo_style = both # bsd | sysv | both | none if ( $?prompt ) echo '133' unset dextract # pushd +n extracts instead of rotating? ... or as a hex dump around 0x1000: 00000fc0 74 20 29 20 65 63 68 6f 20 2d 6e 20 27 31 31 37 |t ) echo -n '117| 00000fd0 20 27 0a 20 20 20 20 73 65 74 20 61 64 64 73 75 | '. set addsu| 00000fe0 66 66 69 78 20 20 20 20 20 20 20 20 20 20 20 23 |ffix #| 00000ff0 20 28 73 65 74 20 62 79 20 64 66 6c 74 29 0a 69 | (set by dflt).i| 00001000 66 20 28 20 24 3f 70 72 6f 6d 70 74 20 29 20 65 |f ( $?prompt ) e| 00001010 63 68 6f 20 2d 6e 20 27 31 31 39 20 27 0a 20 20 |cho -n '119 '. | Now I can see where tcsh stops reading. When starting tcsh from fvwm, I see: 117 but when doing an "exec tcsh -l" in this newly opened tcsh window, I see all instrumented numbers: 117 119 121 123 125 127 129 131 133 I already tried to instrument the sources to see WHY tcsh would stop reading in the middle of a file, but I find no clues. So my question is: has anybody else observed the same strange problem? This happens both in 6.12.00 and also in 6.11.04 for me, at least (and I had been using 6.11.04 for a long time without noticing this problem), so I assume it is a FreeBSD specific problem. Martin -- | Fujitsu Siemens Fon: +49-89-636-46021, FAX: +49-89-636-47655 | 81730 Munich, Germany To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message