From owner-freebsd-current Sun Aug 4 19:28:50 2002 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 1324237B400 for ; Sun, 4 Aug 2002 19:28:48 -0700 (PDT) Received: from web11407.mail.yahoo.com (web11407.mail.yahoo.com [216.136.131.237]) by mx1.FreeBSD.org (Postfix) with SMTP id B689643E65 for ; Sun, 4 Aug 2002 19:28:47 -0700 (PDT) (envelope-from shizukakudo_99@yahoo.com) Message-ID: <20020805022847.14698.qmail@web11407.mail.yahoo.com> Received: from [202.167.61.228] by web11407.mail.yahoo.com via HTTP; Sun, 04 Aug 2002 19:28:47 PDT Date: Sun, 4 Aug 2002 19:28:47 -0700 (PDT) From: Shizuka Kudo Subject: Re: current panic on apache2 after sys/kern/subr_mbuf.c commit To: Shizuka Kudo , freebsd-current@freebsd.org In-Reply-To: <20020804174428.16847.qmail@web11404.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --- Shizuka Kudo wrote: > Dear all, > > I have been experiencing panic with Apache2 since Jul 31. The system boot, but panic when > someone > access the apache2 service. After trace back, the subr_mbuf.c commit at around Jul 30 21:30 GMT > is > the candidate for this panic. Does anyone see the same problem as me? > I think I find the problem which is the missing of assignment on one of the malloc call. Here's the patch that seems to fix the problem. --- usr/src/sys/kern/subr_mbuf.c Thu Aug 1 22:24:41 2002 +++ /usr/src/sys/kern/subr_mbuf.c Mon Aug 5 10:20:14 2002 @@ -1051,7 +1051,7 @@ #define _mext_init_ref(m, ref) do { \ if ((ref) == NULL) \ - malloc(sizeof(u_int), M_MBUF, M_NOWAIT); \ + (m)->m_ext.ref_cnt = malloc(sizeof(u_int), M_MBUF, M_NOWAIT); \ else \ (m)->m_ext.ref_cnt = (u_int *)(ref); \ if ((m)->m_ext.ref_cnt != NULL) { \ __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message