From owner-freebsd-stable@FreeBSD.ORG Tue Mar 11 08:45:20 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 521A1B9B for ; Tue, 11 Mar 2014 08:45:20 +0000 (UTC) Received: from mail-ve0-x22f.google.com (mail-ve0-x22f.google.com [IPv6:2607:f8b0:400c:c01::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0C4417B3 for ; Tue, 11 Mar 2014 08:45:19 +0000 (UTC) Received: by mail-ve0-f175.google.com with SMTP id oz11so8160036veb.6 for ; Tue, 11 Mar 2014 01:45:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=JEjQtOao3sZUV/W6zhd/f0jnU1DbsE3+z+0vRvygzXA=; b=MoeEpjTmcItqLsDHljvwmSdhv8iplHR6eDHTTVSEIt7xZJd/JoyA58AwwjSerqhIiY 5qFiA8rk08FezMVzqUaYSNXF7AsEJai4lTIikSdb8A8rQxBPVAvECKJK6hfqKtzGj6hu p+XIIGLtC/PwWCCzxFJ1orLObjlJXRSNMpQtjvKFrDejMu/fIeD90ijY9xga2M70+29B Sk7eM9JcTeCu9iYk3RIBbhHA6BosTEMtfCeXk9ADz3Ny7O1raVDkSmYG8Czx6ZkaDUtg lV6Jyz93P9PhvLaNZbT64L2ZxpCiEq+50nUPU0o0lD350FP107/oglhMYzleAI9HL+aa sRbg== MIME-Version: 1.0 X-Received: by 10.52.188.41 with SMTP id fx9mr25738229vdc.19.1394527518268; Tue, 11 Mar 2014 01:45:18 -0700 (PDT) Received: by 10.52.34.46 with HTTP; Tue, 11 Mar 2014 01:45:18 -0700 (PDT) In-Reply-To: <531A6C66.2010101@bsdinfo.com.br> References: <53016D97.5030909@bsdinfo.com.br> <53066B59.5000709@yandex.ru> <531A6C66.2010101@bsdinfo.com.br> Date: Tue, 11 Mar 2014 10:45:18 +0200 Message-ID: Subject: Re: sshd with zombie process on FreeBSD 10.0-STABLE From: Alexander Yerenkow To: Marcelo Gondim Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: FreeBSD Stable Mailing List 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, 11 Mar 2014 08:45:20 -0000 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 :) 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 > > Thanks and best regards, > > Gondim > > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -- Regards, Alexander Yerenkow