From owner-freebsd-stable@FreeBSD.ORG Fri Nov 18 20:07:51 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id DCB351065673; Fri, 18 Nov 2011 20:07:51 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from 172-17-198-245.globalsuite.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 5E157160720; Fri, 18 Nov 2011 20:07:51 +0000 (UTC) Message-ID: <4EC6BB17.20706@FreeBSD.org> Date: Fri, 18 Nov 2011 12:07:51 -0800 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:8.0) Gecko/20111110 Thunderbird/8.0 MIME-Version: 1.0 To: Kostik Belousov References: <4EC17F57.5030008@FreeBSD.org> <20111115090745.GO50300@deviant.kiev.zoral.com.ua> <20111115100904.GA92795@icarus.home.lan> <4EC4ADC3.2060604@FreeBSD.org> <20111117074909.GL50300@deviant.kiev.zoral.com.ua> <4EC4BECA.5040705@FreeBSD.org> <20111117081210.GN50300@deviant.kiev.zoral.com.ua> <4EC4D359.4040406@FreeBSD.org> <20111117105744.GS50300@deviant.kiev.zoral.com.ua> <4EC610B9.8080406@FreeBSD.org> <20111118091937.GA50300@deviant.kiev.zoral.com.ua> In-Reply-To: <20111118091937.GA50300@deviant.kiev.zoral.com.ua> X-Enigmail-Version: undefined OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Daniil Cherednik , freebsd-apache@freebsd.org, freebsd-stable@freebsd.org, Jeremy Chadwick Subject: Re: 8.2 + apache == a LOT of sigprocmask 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: Fri, 18 Nov 2011 20:07:52 -0000 On 11/18/2011 01:19, Kostik Belousov wrote: > On Fri, Nov 18, 2011 at 12:00:57AM -0800, Doug Barton wrote: >> On 11/17/2011 02:57, Kostik Belousov wrote: >>>>> It's not catching there though: >>>>> >>>>> Reading symbols from /libexec/ld-elf.so.1...done. >>>>> Loaded symbols for /libexec/ld-elf.so.1 >>>>> 0x28183b2d in accept () at accept.S:3 >>>>> 3 RSYSCALL(accept) >>>>> (gdb) c >>>>> Continuing. >>>>> no thread to satisfy query >>>>> 0x28183b2d in accept () at accept.S:3 >>>>> 3 RSYSCALL(accept) >>>>> (gdb) info threads >>>>> Cannot get thread info: invalid key >>>>> (gdb) >>> Err, the other part of my message was that you shall set the breakpoint >>> on sigprocmask. >> >> I'm sorry I'm not making myself clear. We are setting the breakpoint on >> sigprocmask. But, maybe I'm doing it wrong. Can you give precise >> instructions as to what you want me to do, from the beginning? Sorry to >> be so dense. > Find the pid of the process issuing excessive number of sigprocmask > calls. Do > $ gdb /usr/local/bin/httpd > (gdb) attach > (gdb) b _sigprocmask > (gdb) c > Bah ! Breakpoint fired. > (gdb) bt > (gdb) c > <... Repeat ... > Right, so we're on the same page at least. I've been abbreviating the output of gdb to make it easier to see the problem, but here is a (nearly) complete transcript: gdb /usr/local/bin/httpd Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd"... (gdb) attach 1380 Attaching to program: /usr/local/bin/httpd, process 1380 Reading symbols from .... (lots of symbol-reading snipped) 3 RSYSCALL(accept) Current language: auto; currently asm (gdb) b _sigprocmask Breakpoint 1 at 0x282d9055: file /usr/src/lib/libthr/thread/thr_sig.c, line 210. (gdb) c Continuing. no thread to satisfy query 0x28183b2d in accept () at accept.S:3 3 RSYSCALL(accept) (gdb) c Continuing. no thread to satisfy query 0x28183b2d in accept () at accept.S:3 3 RSYSCALL(accept) (gdb) c Continuing. no thread to satisfy query 0x28183b2d in accept () at accept.S:3 3 RSYSCALL(accept) .... etc. -- "We could put the whole Internet into a book." "Too practical." Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/