From owner-freebsd-current@FreeBSD.ORG Sun Dec 25 16:01:41 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 06BDF1065672; Sun, 25 Dec 2011 16:01:41 +0000 (UTC) (envelope-from kes-kes@yandex.ru) Received: from forward10.mail.yandex.net (forward10.mail.yandex.net [IPv6:2a02:6b8:0:202::5]) by mx1.freebsd.org (Postfix) with ESMTP id 17E798FC17; Sun, 25 Dec 2011 16:01:40 +0000 (UTC) Received: from smtp9.mail.yandex.net (smtp9.mail.yandex.net [77.88.61.35]) by forward10.mail.yandex.net (Yandex) with ESMTP id 4118610225DC; Sun, 25 Dec 2011 20:01:38 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1324828898; bh=IlbN3TjqAn+dhOz/gzskEBYjDpZsZpIjNL0B1VDZ/HU=; h=Date:From:Reply-To:Message-ID:To:CC:Subject:In-Reply-To: References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=O1uEpugWBedkPBsX5T4/1yQs0epHDnmjFw984WHU2DcgZWpJpecVU0miv5evnRmd1 ybEIpWgjj62lQoj8JR3RmbDdnT+fvY/LTxej+fYwrHJCY/B+kK7gtEAP6MRxAgaBI2 Q+XPSq4EWhpr3dmlSuNmME70tkaCoEKzzH6n/ewE= Received: from smtp9.mail.yandex.net (localhost [127.0.0.1]) by smtp9.mail.yandex.net (Yandex) with ESMTP id D953715203E1; Sun, 25 Dec 2011 20:01:37 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1324828898; bh=IlbN3TjqAn+dhOz/gzskEBYjDpZsZpIjNL0B1VDZ/HU=; h=Date:From:Reply-To:Message-ID:To:CC:Subject:In-Reply-To: References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=O1uEpugWBedkPBsX5T4/1yQs0epHDnmjFw984WHU2DcgZWpJpecVU0miv5evnRmd1 ybEIpWgjj62lQoj8JR3RmbDdnT+fvY/LTxej+fYwrHJCY/B+kK7gtEAP6MRxAgaBI2 Q+XPSq4EWhpr3dmlSuNmME70tkaCoEKzzH6n/ewE= Received: from unknown (unknown [77.93.52.22]) by smtp9.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 1bBmZVVa-1bBC6wHY; Sun, 25 Dec 2011 20:01:37 +0400 X-Yandex-Spam: 1 Date: Sun, 25 Dec 2011 18:01:33 +0200 From: =?utf-8?B?0JrQvtC90YzQutC+0LIg0JXQstCz0LXQvdC40Lk=?= X-Mailer: The Bat! (v4.0.24) Professional Organization: =?utf-8?B?0KfQnyDQmtC+0L3RjNC60L7QsiwgRnJlZUxpbmU=?= X-Priority: 3 (Normal) Message-ID: <1632420869.20111225180133@yandex.ru> To: John Baldwin In-Reply-To: <201112200952.44690.jhb@freebsd.org> References: <20111022084931.GD1697@garage.freebsd.pl> <201112121100.23567.jhb@freebsd.org> <20111217232125.GA1685@garage.freebsd.pl> <201112200952.44690.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Sun, 25 Dec 2011 16:33:53 +0000 Cc: Andre Oppermann , freebsd-net@freebsd.org, Pawel Jakub Dawidek , freebsd-current@freebsd.org, Kostik Belousov , Lawrence Stewart Subject: Re[2]: 9.0-RC1 panic in tcp_input: negative winow. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: =?utf-8?B?0JrQvtC90YzQutC+0LIg0JXQstCz0LXQvdC40Lk=?= List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Dec 2011 16:01:41 -0000 Здравствуйте, John. Вы писали 20 декабря 2011 г., 16:52:44: JB> On Saturday, December 17, 2011 6:21:27 pm Pawel Jakub Dawidek wrote: >> On Mon, Dec 12, 2011 at 11:00:23AM -0500, John Baldwin wrote: >> > An update. I've sent Pawel a testing patch to see if my hypothesis is correct >> > (www.freebsd.org/~jhb/patches/tcp_negwin_test.patch). If it is then I intend >> > to commit www.freebsd.org/~jhb/patches/tcp_negwin2.patch as the fix. >> >> Unfortunately it paniced today. Take a look at: >> >> http://people.freebsd.org/~pjd/misc/tcp_panic.jpg JB> Ok, the one use case I was worried about is happening regularly before your JB> panic, so that is good. Can you use gdb to figure out which call to JB> tcp_output() is actually panic'ing? I wonder if it is this case: JB> /* JB> * Return any desired output. JB> */ JB> if (needoutput || (tp->t_flags & TF_ACKNOW)) { JB> (void) tcp_output(tp); JB> /* XXX: Debug */ JB> KASSERT(SEQ_GEQ(tp->rcv_adv, tp->rcv_nxt), JB> ("tcp_input: negative window after ACK")); JB> And if 'needoutput' is true, but TF_ACKNOW is not set, and tcp_output() decides JB> to not do anything. I've updated tcp_negwin_test.patch to not panic if that call JB> to tcp_output() doesn't actually send a packet. Please re-test. # uname -a FreeBSD meta-up 9.0-PRERELEASE FreeBSD 9.0-PRERELEASE #4: Sat Dec 24 13:59:20 EET 2011 @:/usr/obj/usr/src/sys/KES_KERN_v10 i386 rebooting once per day. Now I compile kernel with debug options. Can you advice me which and where I find debug info when it will reboting next time? so I can help to debug problem -- С уважением, Коньков mailto:kes-kes@yandex.ru