From owner-freebsd-net@FreeBSD.ORG Thu Sep 27 18:20:48 2007 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3FECF16A421 for ; Thu, 27 Sep 2007 18:20:48 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.236]) by mx1.freebsd.org (Postfix) with ESMTP id CEFAD13C46E for ; Thu, 27 Sep 2007 18:20:47 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: by nz-out-0506.google.com with SMTP id l8so1635461nzf for ; Thu, 27 Sep 2007 11:20:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=ZT+xDlDiAZ9czmtbozoIkm/fWcY385XooaKdshG8irU=; b=QQ5WMH8dKVcao7UxMVv9wyTHKbPGVxm81VprYlR8QojoWYwPICLYgVJbuEwpwAmizPdtcxGwUOas1Wv295ckENgMZ02dy1sDrX+CwnPRjdz6qh9aZVqHUkbwPVZHGfD+FFp40xfjm6mFXl50EmtJe5UnI2uz6iaB/ADXwvnwVs8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=lCRWENKgYvfSU7cFzdAhPBv5NKsFQpauW0kGLZi25tOcnJIZyyCPiCE9LA/pVoTv1NPf2P6xpPSShlZ3b1ERM7KFIId33TKrpEevU6lkl7K5ysPkf2Cl+3ijqZVneysJ+XnUfjwQlEyGU95PbaCGBJyarEEo6ctohlMLe8yZ+Mc= Received: by 10.141.161.6 with SMTP id n6mr1049490rvo.1190915678095; Thu, 27 Sep 2007 10:54:38 -0700 (PDT) Received: by 10.141.159.3 with HTTP; Thu, 27 Sep 2007 10:54:38 -0700 (PDT) Message-ID: <9bbcef730709271054k5cbda605wcfd44adede05614f@mail.gmail.com> Date: Thu, 27 Sep 2007 19:54:38 +0200 From: "Ivan Voras" Sender: ivoras@gmail.com To: "Kris Kennaway" In-Reply-To: <46FBE818.3020800@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46FBE818.3020800@FreeBSD.org> X-Google-Sender-Auth: 8fcf1908c760b556 Cc: freebsd-net@freebsd.org Subject: Re: Panic in rt_check X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Sep 2007 18:20:48 -0000 On 27/09/2007, Kris Kennaway wrote: > Ivan Voras wrote: > > Hi, > > > > I have a machine that panics almost daily in route.c, in rt_check(). > > This panic has been reported by several users, including Marcel > > Moolenaar for a machine in freebsd.org. > > > > The problem is present in both 6-STABLE and 7-CURRENT, and apparently it > > manifests on SMP machines, both i386 and AMD64. > > > > The panic backtrace looks like this: > > > > panic: mtx_lock() of destroyed mutex @ /usr/src/sys/net/route.c:1305 > > I've asked this before of others without getting an answer: is it > possible that your gateway route is disappearing (e.g. router going > offline, flaky switch, cable unplugged, etc)? I have seen this panic > (only) in that situation. If there is a way to find this out from the machine itself, I can try and look it up, otherwise I don't (and cannot) know. The infrastructure is a bit big but AFAIK it's nothing special. Should I just call mtx_initialized() before the line and bail out if it isn't? OTOH I need a stable patch that will be committed.