From owner-freebsd-bugs Wed Mar 20 6:37:23 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from D00015.dialonly.kemerovo.su (www2.svzserv.kemerovo.su [213.184.65.86]) by hub.freebsd.org (Postfix) with ESMTP id 4959037B41D; Wed, 20 Mar 2002 06:36:43 -0800 (PST) Received: (from eugen@localhost) by D00015.dialonly.kemerovo.su (8.11.6/8.11.6) id g2KEZ3e00428; Wed, 20 Mar 2002 21:35:03 +0700 (KRAT) (envelope-from eugen) Date: Wed, 20 Mar 2002 21:35:03 +0700 From: Eugene Grosbein To: Matthew Dillon Cc: FreeBSD-gnats-submit@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG, Kirk McKusick Subject: Re: kern/35969: kernel option PPP_DEFLATE often procudes kernel panics; PPP_BSDCOMP sometimes procudes stalled connections Message-ID: <20020320213503.A344@grosbein.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > Plese bring your tree back to the latest -stable and apply the > patch I include below, then tell me if it fixes your crashes. My dialin server is revived now. It works as expected. I thank Matthes Dillon, Kirk McKusic and other people of stable@freebsd.org for their help. It seems, that commit affected src/lib/libz/infblock.c and it's possible it still contatins the bug that is fixed now in the kernel. I talk about this: Index: infblock.c =================================================================== RCS file: /home/ncvs/src/lib/libz/infblock.c,v retrieving revision 1.1.1.4 retrieving revision 1.1.1.4.6.1 diff -u -r1.1.1.4 -r1.1.1.4.6.1 --- infblock.c 10 Jan 1999 09:46:55 -0000 1.1.1.4 +++ infblock.c 22 Feb 2002 02:48:40 -0000 1.1.1.4.6.1 @@ -3,6 +3,9 @@ * For conditions of distribution and use, see copyright notice in zlib.h */ +#include +__FBSDID("$FreeBSD: src/lib/libz/infblock.c,v 1.1.1.4.6.1 2002/02/22 02:48:40 jedgar Exp $"); + #include "zutil.h" #include "infblock.h" #include "inftrees.h" @@ -249,10 +252,11 @@ &s->sub.trees.tb, s->hufts, z); if (t != Z_OK) { - ZFREE(z, s->sub.trees.blens); r = t; - if (r == Z_DATA_ERROR) + if (r == Z_DATA_ERROR) { + ZFREE(z, s->sub.trees.blens); s->mode = BAD; + } LEAVE } s->sub.trees.index = 0; @@ -313,11 +317,12 @@ t = inflate_trees_dynamic(257 + (t & 0x1f), 1 + ((t >> 5) & 0x1f), s->sub.trees.blens, &bl, &bd, &tl, &td, s->hufts, z); - ZFREE(z, s->sub.trees.blens); if (t != Z_OK) { - if (t == (uInt)Z_DATA_ERROR) + if (t == (uInt)Z_DATA_ERROR) { + ZFREE(z, s->sub.trees.blens); s->mode = BAD; + } r = t; LEAVE } @@ -329,6 +334,7 @@ } s->sub.decode.codes = c; } + ZFREE(z, s->sub.trees.blens); s->mode = CODES; case CODES: UPDATE Eugene Grosbein To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message