From owner-freebsd-stable@FreeBSD.ORG Thu Jun 14 04:11:19 2007 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DA99416A46B for ; Thu, 14 Jun 2007 04:11:18 +0000 (UTC) (envelope-from biancalana@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.233]) by mx1.freebsd.org (Postfix) with ESMTP id 7F90513C469 for ; Thu, 14 Jun 2007 04:11:18 +0000 (UTC) (envelope-from biancalana@gmail.com) Received: by wx-out-0506.google.com with SMTP id h28so354144wxd for ; Wed, 13 Jun 2007 21:11:17 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=U2t7u+VN3kKkIV7w+ONjldLqtcm9fUpAAWDPzPye5XQQViyDv1Z3J4R1NDwQVbNk6ec3pgfjiTNjCJHRWQ4bG6Ebrd0FfDGnaS7EzAxPsKQMy3hFJFPuqM98bqzvFDevnYH+wz8qsjQ7LdXp5rtxgb6Cml7WvlovUJygCbL7tno= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=klZrmMc6cp27rAtWD/0owuEZ4wvnJibg93ezbsTX6qzGStwaM/eQl32IRzqpVcbPbI2YY56ijwtECeJ5WiwkYRSaXPr4RdcsQvWtTh+lRdhJ0utoo+LodMLU/Cu4/1Zf9SylcZxnSsvNoVy55F3x1cgX2T2ZLrELFxLVHAopoSs= Received: by 10.70.17.1 with SMTP id 1mr1652886wxq.1181794276658; Wed, 13 Jun 2007 21:11:16 -0700 (PDT) Received: by 10.70.63.4 with HTTP; Wed, 13 Jun 2007 21:11:16 -0700 (PDT) Message-ID: <8e10486b0706132111l34f3e7cayfbf408014a4c5516@mail.gmail.com> Date: Thu, 14 Jun 2007 01:11:16 -0300 From: "Alexandre Biancalana" To: "Alfred Perlstein" In-Reply-To: <20070613235850.GM96936@elvis.mu.org> MIME-Version: 1.0 References: <7ad7ddd90706130722t6731afa7j5fa9a78a3e87f9e5@mail.gmail.com> <8e10486b0706131214m9e04f36rbaf9db859e9e65da@mail.gmail.com> <20070613235850.GM96936@elvis.mu.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: stable@freebsd.org, rwatson@freebsd.org Subject: Re: Unix domain socket leak in 6-STABLE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jun 2007 04:11:19 -0000 On 6/13/07, Alfred Perlstein wrote: > > I would advise running "truss" or ktrace against the process > to see if it's actually attempting to close the descriptor. > > this would explain if the leak is in the application, or > maybe libc/kernel. > > -- > - Alfred Perlstein > Hi ! I change nss_ldap.conf again to access OpenLDAP via unix domain socket. Here is the connection counter before the change: Wed Jun 13 22:35:55 BRT 2007 unix sockets: 99 tcp sockets: 12 Here is the connection counter rigth before change connection method back to TCP socket: Wed Jun 13 22:56:01 BRT 2007 unix sockets: 2902 tcp sockets: 13 Follow the link to the 500k lines kdump file from a ktrace of an smbd process that leaked more than 1000 unix domain sockets connections during this time. http://www.seudns.net/~ale/smbd.kdump.bz2 ps: I removed some lines from the file that shows socket read returns, because they showed usernames e other informations that I don't want to expose. Regards, Alexandre