From owner-freebsd-current@FreeBSD.ORG Mon Jul 1 05:26:02 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 5EDA670B; Mon, 1 Jul 2013 05:26:02 +0000 (UTC) (envelope-from gleb.kurtsou@gmail.com) Received: from mail-pd0-x232.google.com (mail-pd0-x232.google.com [IPv6:2607:f8b0:400e:c02::232]) by mx1.freebsd.org (Postfix) with ESMTP id 378201E2D; Mon, 1 Jul 2013 05:26:02 +0000 (UTC) Received: by mail-pd0-f178.google.com with SMTP id w11so2322142pde.9 for ; Sun, 30 Jun 2013 22:26:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=ONyWIZ7/VOMY0/VwySaDDGO4DQ7hqPshlLBEO8mwY8Y=; b=vPA5pkcb+QeGqLE+kSwZ3evQEz1hdw9DbpJnONSFf678Kbl5BjER9SzYTT29xIy9UY t4FGCQjnxosaV0ief6AwsPXqCe8ANkpRoF9XojPaubm3FvzOnjeqAdSWcp7z+VG4/SJe lUKNUTtwSlocEBCsk5yEXA/oNCqA1ow+sJnucy5nURyZaQIlxWTfcSw2+YpwuXJKe+rO cAAnOae9UE/38snpzVx+lLU5K+yXiwLKJ2/GAY14i076GqcySDl3Kwcm5Iqjfre9davl lEBe5pAmpHAdmsXxp2avewM7+fDIMbS6aRj3bp8dt2aivf0o7frvYaxL63JmHxvJrwFz 74LA== X-Received: by 10.66.190.3 with SMTP id gm3mr11663302pac.72.1372656362009; Sun, 30 Jun 2013 22:26:02 -0700 (PDT) Received: from localhost (c-67-188-139-74.hsd1.ca.comcast.net. [67.188.139.74]) by mx.google.com with ESMTPSA id hu6sm14166694pbc.28.2013.06.30.22.26.00 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 30 Jun 2013 22:26:01 -0700 (PDT) Sender: Gleb Kurtsou Date: Sun, 30 Jun 2013 22:26:21 -0700 From: Gleb Kurtsou To: Mateusz Guzik , koobs@FreeBSD.org, freebsd-current@FreeBSD.org Subject: Re: r248583 Kernel panic: negative refcount 0xfffffe0031b59168 Message-ID: <20130701052621.GA1349@reks> References: <51CFDC86.2040506@FreeBSD.org> <20130630111836.GB22492@dft-labs.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20130630111836.GB22492@dft-labs.eu> User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Mon, 01 Jul 2013 05:26:02 -0000 On (30/06/2013 13:18), Mateusz Guzik wrote: > On Sun, Jun 30, 2013 at 05:21:42PM +1000, Kubilay Kocak wrote: > > I'm seeing what I believe is related panic, reliably being generated by > > the Python regression test suite on a newly created FreeBSD 10-CURRENT > > buildbot. > > > > Symptoms first seen in an freebsd.org FTP snapshot dated "Thu May 30 > > 20:01:46 UTC 2013" and also reproducible on a freshly updated r252400 > > > > It is additionally reproducible after checking out pure upstream python > > sources, using the following steps: > > > > hg clone http://hg.python.org/cpython > > cd cpython && configure && make buildbottest > > > > An interesting possible correlation is that it seems to drop out > > during/around "test_socket" > > > > Turns out the bug is quite funny ;) Patch fixes chrome for me. Thanks! > > Try this: > diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c > index 5d8e814..7a4db04 100644 > --- a/sys/kern/uipc_usrreq.c > +++ b/sys/kern/uipc_usrreq.c > @@ -1764,8 +1764,8 @@ unp_externalize(struct mbuf *control, struct mbuf **controlp, int flags) > } > for (i = 0; i < newfds; i++, fdp++) { > fde = &fdesc->fd_ofiles[*fdp]; > - fde->fde_file = fdep[0]->fde_file; > - filecaps_move(&fdep[0]->fde_caps, > + fde->fde_file = fdep[i]->fde_file; > + filecaps_move(&fdep[i]->fde_caps, > &fde->fde_caps); > if ((flags & MSG_CMSG_CLOEXEC) != 0) > fde->fde_flags |= UF_EXCLOSE; > -- > Mateusz Guzik > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"