From owner-freebsd-current@FreeBSD.ORG Tue Dec 4 05:27:40 2007 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1B09E16A418 for ; Tue, 4 Dec 2007 05:27:40 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outD.internet-mail-service.net (outD.internet-mail-service.net [216.240.47.227]) by mx1.freebsd.org (Postfix) with ESMTP id D72A513C4E8 for ; Tue, 4 Dec 2007 05:27:39 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.40) with ESMTP; Mon, 03 Dec 2007 21:27:38 -0800 X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (home.elischer.org [216.240.48.38]) by idiom.com (Postfix) with ESMTP id C853F126B8F; Mon, 3 Dec 2007 21:27:37 -0800 (PST) Message-ID: <4754E54C.20104@elischer.org> Date: Mon, 03 Dec 2007 21:27:40 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Marcel Moolenaar References: <4754D411.6060608@elischer.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Current Subject: Re: remote gdb failures in recent builds (last 6 months or so.) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 04 Dec 2007 05:27:40 -0000 Marcel Moolenaar wrote: > > On Dec 3, 2007, at 8:14 PM, Julian Elischer wrote: > >> >> Here's a trace of kgdb attempting to sync with a kernel over the >> serial port.. >> >> note that: >> 1/ gdb CAN read the damned data.. this is obtained from ktrace. >> 2/ it prints out the packet in the error message. >> 3/ teh kernel is sending each message twice, in pairs. >> 4/ after kgdb finally sends a '-' (NAK) teh kernel sends ONE MORE >> which seems to be accepted >> >> Anyone have any clues? > > Works just fine for me on all platforms, but I always use uart(4). > > What platform are you using and what gdb? > How's the serial connection; through a comm-server? > What's the line setting, which driver? sio driver on Dell 2650 running new x86 kernel.. standard com1-com2 type ports. Both systems as installed from source. (-current plus or minus a month) null-modem seraial cable between the ports. port on target is sio1. flags are 0xc0 (reserve for gdb and use for gdb). trace in previous mail is extracted from gdb via ktrace, so it is getting all the bytes but somehow failing to process them. It's slowly been getting worse (across many pairs of machines) over the last few years. finally today it just doesn't work at all. I've used this pair of machines many times before. usually it takes "luck" to get synced up but once it's synced, it's solid. >