From owner-freebsd-stable@FreeBSD.ORG Tue Apr 15 14:04:46 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E9077D67 for ; Tue, 15 Apr 2014 14:04:46 +0000 (UTC) Received: from mail.bsdinfo.com.br (mail.bsdinfo.com.br [67.212.89.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AFB161FBA for ; Tue, 15 Apr 2014 14:04:46 +0000 (UTC) Received: from mail.bsdinfo.com.br (mail.bsdinfo.com.br [127.0.0.1]) by mail.bsdinfo.com.br (Postfix) with ESMTP id 5F32A139C4 for ; Tue, 15 Apr 2014 13:57:49 -0300 (BRT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bsdinfo.com.br; h=content-type:content-type:in-reply-to:references:subject :subject:to:mime-version:user-agent:from:from:date:date :message-id; s=dkim; t=1397581065; x=1398445066; bh=0CV5xFqnotZX FVTxHKX6j5cdz/b19jscYlNC/6qAcTg=; b=GSoNco5zEXqwlBVcpNyUmBk2tAio nuFY64L8TffJGVLLL/yy4kD6j3Al2qdqbqRr8AHz4MD5gLuYT1pCB5yajOObFJEe yTzZzxawOoUjpiFrXGx07ht4g213fgvub3RWGmTUfTf9l+DhBWGCZaOPtE1Vi5mP iJK1btwf5yjv3Vw= X-Virus-Scanned: amavisd-new at mail.bsdinfo.com.br Received: from mail.bsdinfo.com.br ([127.0.0.1]) by mail.bsdinfo.com.br (mail.bsdinfo.com.br [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xHTwmFCSmB3p for ; Tue, 15 Apr 2014 13:57:45 -0300 (BRT) Received: from MacBook-de-Gondim-2.local (unknown [186.193.48.8]) by mail.bsdinfo.com.br (Postfix) with ESMTPSA id 60094139C3 for ; Tue, 15 Apr 2014 13:57:44 -0300 (BRT) Message-ID: <534D3A25.4020605@bsdinfo.com.br> Date: Tue, 15 Apr 2014 10:54:45 -0300 From: Marcelo Gondim User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: FreeBSD Stable Mailing List Subject: Re: sshd with zombie process on FreeBSD 10.0-STABLE - RESOLVED References: <53016D97.5030909@bsdinfo.com.br> <53066B59.5000709@yandex.ru> <531A6C66.2010101@bsdinfo.com.br> <53298445.90706@bsdinfo.com.br> In-Reply-To: <53298445.90706@bsdinfo.com.br> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Apr 2014 14:04:47 -0000 Em 19/03/14 08:49, Marcelo Gondim escreveu: > Em 11/03/14 05:45, Alexander Yerenkow escreveu: >> Could you try to change shell to simple "sh" and see if this helps? >> This could be due to non-atomic work with history file when multiple >> clients log off, causing csh produce large broken history files. >> This is not 100% your case, but you could at least try :) > Changed to shand the problem happened again. > Definitely something changed in sshd since version 10.0that is causing > this problem. > My server never had zombie processes and now they sprout out of > nowhere. :( >> >> >> 2014-03-08 3:03 GMT+02:00 Marcelo Gondim > >: >> >> Em 20/02/14 17:53, Andrey V. Elsukov escreveu: >> >> On 17.02.2014 06:01, Marcelo Gondim wrote: >> >> Hi all, >> >> I have noticed zombie processes on the system after a few >> lost >> connections on ssh. >> >> # ps afx >> [...] >> 8045 - Is 0:00.01 sshd: unknown [priv] (sshd) >> 8046 - Z 0:00.01 >> 8054 - IW 0:00.00 sshd: unknown [pam] (sshd) >> 28146 - Is 0:00.01 sshd: unknown [priv] (sshd) >> 28147 - Z 0:00.01 >> 28155 - IW 0:00.00 sshd: unknown [pam] (sshd) >> 43320 - Is 0:00.01 sshd: unknown [priv] (sshd) >> 43321 - Z 0:00.01 >> 43322 - IW 0:00.00 sshd: unknown [pam] (sshd) >> 73413 - Is 0:00.01 sshd: unknown [priv] (sshd) >> 73414 - Z 0:00.01 >> 73430 - IW 0:00.00 sshd: unknown [pam] (sshd) >> [...] >> >> Processes do not die with kill-9. >> Anyone else noticed this? >> >> Hi, >> >> I use autossh and usually my system has several tens of >> sshd's zombies >> after few days uptime. >> >> 11.0-CURRENT #6 r262183 >> >> New system update and the problem with zombie sshd processes >> continue. >> I noticed that this happens more often when the system has many >> remote access via ssh. This problem has been happening to me >> since the FreeBSD 10.0R. >> >> # uname -a >> FreeBSD bart.xxxxx.com.br 10.0-STABLE >> FreeBSD 10.0-STABLE #5 r262657: Tue Mar 4 14:53:08 BRT 2014 >> root@bart.xxxxx.com.br:/usr/obj/usr/src/sys/GONDIM10 amd64 >> > My problem was resolved by applying this patch: http://lists.freebsd.org/pipermail/freebsd-hackers/2014-April/044910.html Cheers, Gondim