From owner-freebsd-current@FreeBSD.ORG Sat Feb 21 07:57:17 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B7BE316A4CF for ; Sat, 21 Feb 2004 07:57:17 -0800 (PST) Received: from ussenterprise.ufp.org (ussenterprise.ufp.org [208.185.30.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A95C43D1F for ; Sat, 21 Feb 2004 07:57:17 -0800 (PST) (envelope-from bicknell@ussenterprise.ufp.org) Received: from ussenterprise.ufp.org (bicknell@localhost [127.0.0.1]) by ussenterprise.ufp.org (8.12.9/8.12.9) with ESMTP id i1LFvG1H048835 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 21 Feb 2004 10:57:17 -0500 (EST) Received: (from bicknell@localhost) by ussenterprise.ufp.org (8.12.9/8.12.9/Submit) id i1LFvGCs048834 for freebsd-current@freebsd.org; Sat, 21 Feb 2004 10:57:16 -0500 (EST) Date: Sat, 21 Feb 2004 10:57:16 -0500 From: Leo Bicknell To: freebsd-current@freebsd.org Message-ID: <20040221155716.GA48449@ussenterprise.ufp.org> Mail-Followup-To: freebsd-current@freebsd.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FCuugMFkClbJLl1L" Content-Disposition: inline Organization: United Federation of Planets X-PGP-Key: http://www.ufp.org/~bicknell/ Subject: Strange problem on 5.1, 5.2, -current. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Feb 2004 15:57:17 -0000 --FCuugMFkClbJLl1L Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I've run into a rather interesting problem that I suspect is causing problems for more people. We run "rancid", which is software to pull configs from routers. At the root, it is an expect script using expect + tcl as installed from ports. It spawns a telnet, sends some commands to the remote device, and saves the output to a file. We've run this for years on 3.x and 4.x with no problems. We recently tried to put it on a 5.2 machine (later testing also on sparc, and then on 5.1). What happens is that sometimes a character returned by the remote device is doubled. Indeed, the behavior we see is that on subsequent runs output will cycle like this: ip classless to: ip cclassless back to: ip classless It tends to always happen to the same character for a particular device, so my guess is there is an off by one error somewhere that is repeatedly triggered. The question is, is the problem in FreeBSD, TCL, Expect, or Rancid. I've run a few tests on tcl and expect, I can't trigger the problem. The FreeBSD box is doing a number of other things, without showing a problem. I hate to be this vague, but the only way to repeat it so far is with the actual full blown setup (although I can do it with that on multiple versions on multiple boxes) and I'm a bit stumped how to go further.=20 If anyone has seen something like this before, or has an idea on how to troubleshoot I'm all ears. --=20 Leo Bicknell - bicknell@ufp.org - CCIE 3440 PGP keys at http://www.ufp.org/~bicknell/ Read TMBG List - tmbg-list-request@tmbg.org, www.tmbg.org --FCuugMFkClbJLl1L Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQFAN3/cNh6mMG5yMTYRAg6qAKCCtrqYhszyph6SAugR2ZV4fCT4iwCffDUz e2dGsjI1LdMpzSq+mRUNKBE= =V/Na -----END PGP SIGNATURE----- --FCuugMFkClbJLl1L--