From owner-freebsd-stable@FreeBSD.ORG Mon Oct 10 20:28:00 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9C9491065674 for ; Mon, 10 Oct 2011 20:28:00 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 7476F8FC14 for ; Mon, 10 Oct 2011 20:28:00 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 2B55446B06; Mon, 10 Oct 2011 16:28:00 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id AF8C58A02E; Mon, 10 Oct 2011 16:27:59 -0400 (EDT) From: John Baldwin To: Larry Rosenman Date: Mon, 10 Oct 2011 16:27:59 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110617; KDE/4.5.5; amd64; ; ) References: <201110101147.30558.jhb@freebsd.org> <4E933BBF.6070209@lerctr.org> In-Reply-To: <4E933BBF.6070209@lerctr.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201110101627.59173.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Mon, 10 Oct 2011 16:27:59 -0400 (EDT) Cc: freebsd-stable@freebsd.org Subject: Re: rsync corrupted MAC X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2011 20:28:00 -0000 On Monday, October 10, 2011 2:38:55 pm Larry Rosenman wrote: > On 10/10/2011 10:47 AM, John Baldwin wrote: > > On Sunday, October 09, 2011 5:06:26 pm Larry Rosenman wrote: > >> Any ideas on which side or what might be broke here? > >> > >> ler/MAIL-ARCHIVE/2008/12/INBOX > >> Corrupted MAC on input. > >> Disconnecting: Packet corrupt > >> rsync: connection unexpectedly closed (33845045 bytes received so far) > > [receiver] > >> rsync error: error in rsync protocol data stream (code 12) at io.c(605) > > [receiver=3.0.9] > >> rsync: connection unexpectedly closed (1450 bytes received so far) > > [generator] > >> rsync error: unexplained error (code 255) at io.c(605) [generator=3.0.9] > > I've had somewhat similar issues (ssh getting corruption in its data stream) > > when a NIC in my netbook was corrupting packet data when it ran at 1G (it > > worked fine at 10/100). Pyun eventually fixed the issue by applying enough > > workarounds (it was likely a hardware bug in the NIC's chipset). However, it > > wasn't easy to debug unfortunately. :( > > > Any ideas on where to start? > > from the 8.2 box (tbh.lerctr.org in the script): > > 8.2->PIX->Provider->Internet->Motorola SBG6580 (Time-Warner)->Trendnet > TEG-160WS Gig switch->9.0 box (borg.lerctr.org). > > So, where do I start? In my case I was seeing other issues with the NIC (it would periodically "freeze" spewing a constant stream of pause frames onto the LAN and refusing to receive more frames), so I already suspected it of being an issue. When I turned off flow control so it wouldn't freeze, it started corrupting the packets instead. Without that kind of smoking gun I would probably have had a hard time figuring out the issue. I would try switching various parts out to see if you can narrow the issue down to a single component. -- John Baldwin