From owner-freebsd-current@FreeBSD.ORG Thu Aug 10 16:35:32 2006 Return-Path: X-Original-To: freebsd-current@FreeBSD.org 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 7DA8816A4DF; Thu, 10 Aug 2006 16:35:32 +0000 (UTC) (envelope-from gkozyrev@ukr.net) Received: from computer.ukrsat.com (computer.ukrsat.com [212.35.160.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id D0D3F43D55; Thu, 10 Aug 2006 16:35:31 +0000 (GMT) (envelope-from gkozyrev@ukr.net) Received: from gleb.kozyrev.name (juli.slnet.kiev.ua [195.49.149.86]) by computer.ukrsat.com (8.12.8/8.12.8) with SMTP id k7AHJHsb008275; Thu, 10 Aug 2006 20:19:24 +0300 Received: from Gleb ([127.0.0.1]) by Gleb (10.8.33.3) with smtp ; Thu, 10 Aug 2006 19:35:16 +0300 Message-ID: <003201c6bc9a$f42c0970$0321080a@Gleb> From: "Gleb Kozyrev" To: "Robert Watson" References: <000301c6bc58$d678e930$0321080a@Gleb> <20060810113709.P45647@fledge.watson.org> Date: Thu, 10 Aug 2006 19:35:12 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-u" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 FL-Build: Fidolook 2002 (SL) 6.0.2800.94 - 5/4/2005 11:39:16 Cc: freebsd-current@FreeBSD.org Subject: Re: panic: sodealloc(): so_count 1 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: Thu, 10 Aug 2006 16:35:32 -0000 Robert Watson wrote to "Gleb Kozyrev" on Thu, 10 Aug 2006 11:40:03 +0100 (BST): >> i386 7.0-CURRENT #0: Sun Aug 6 repeatedly panics when doing some default >> periodic jobs at 3 AM. RW> Could you file a PR for this, and forward me the PR receipt? I'd be RW> happy to investigate this problem. I've seen one or two other reports RW> of so_count 1, but not in a way that's reproduceable. The output of the RW> following DDB commands would be most helpful: RW> show pcpu RW> show allpcpu RW> alltrace RW> show alllocks Here you are: kern/101763 RW> It may also be useful to set up serial GDB, in order to do things like RW> print the contents of *so in sodealloc(). I didn't manage to do it. It looks like kernel switches to remote gdb mode successfully but kgdb fails to communicate. This place in socreate() looks weird to me: =========Beginning of the citation============== so->so_count = 1; error = (*prp->pr_usrreqs->pru_attach)(so, proto, td); if (error) { sodealloc(so); return (error); } =========The end of the citation================ It will panic on error. Wasn't the intent here to return the error code? -- With best regards, Gleb Kozyrev.