From owner-freebsd-stable@freebsd.org Thu Aug 27 12:04:13 2015 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AF0769C4973 for ; Thu, 27 Aug 2015 12:04:13 +0000 (UTC) (envelope-from Mark.Martinec+freebsd@ijs.si) Received: from mail.ijs.si (mail.ijs.si [IPv6:2001:1470:ff80::25]) (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 647651C1A for ; Thu, 27 Aug 2015 12:04:13 +0000 (UTC) (envelope-from Mark.Martinec+freebsd@ijs.si) Received: from amavis-ori.ijs.si (localhost [IPv6:::1]) by mail.ijs.si (Postfix) with ESMTP id 3n22lr4zYCzLp for ; Thu, 27 Aug 2015 14:04:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ijs.si; h= user-agent:message-id:references:in-reply-to:organization :subject:subject:from:from:date:date:content-transfer-encoding :content-type:content-type:mime-version:received:received :received:received; s=jakla4; t=1440677046; x=1443269047; bh=/oV Qn0u+d/4AsGMFpG2KE7Tx1FLHsvOe+0wxmzkzlqI=; b=Yz0BOHwW/AqN8ZQ06Is mt1LVCpOJeMLWl6AYr89YrH+ouYhqXt4gzS+OqjVTktTqQ68POqHxA+CGL/msKWX 1PVCrphF3J6Ooy7Da+LX0f4mjZVVICpwYLzjHA2LHbNeIpIMTy/NTpdeY5V7YIRg xSL7Wc2vYVcUp4EqBUi1JGDU= X-Virus-Scanned: amavisd-new at ijs.si Received: from mail.ijs.si ([IPv6:::1]) by amavis-ori.ijs.si (mail.ijs.si [IPv6:::1]) (amavisd-new, port 10026) with LMTP id QZLW72L_a9Bf for ; Thu, 27 Aug 2015 14:04:06 +0200 (CEST) Received: from mildred.ijs.si (mailbox.ijs.si [IPv6:2001:1470:ff80::143:1]) by mail.ijs.si (Postfix) with ESMTP id 3n22lp0mXpzLm for ; Thu, 27 Aug 2015 14:04:05 +0200 (CEST) Received: from nabiralnik.ijs.si (mailbox.ijs.si [IPv6:2001:1470:ff80::143:1]) by mildred.ijs.si (Postfix) with ESMTP id 3n22ln54hWz1TP for ; Thu, 27 Aug 2015 14:04:05 +0200 (CEST) Received: from neli.ijs.si ([2001:1470:ff80:88:21c:c0ff:feb1:8c91]) by nabiralnik.ijs.si with HTTP (HTTP/1.1 POST); Thu, 27 Aug 2015 14:04:05 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 27 Aug 2015 14:04:05 +0200 From: Mark Martinec To: freebsd-stable@freebsd.org Subject: Re: Latest stable (r287104) bash leaves zombies on exit Organization: Jozef Stefan Institute In-Reply-To: References: Message-ID: <63a84f64baf8768a551fc6464e8e9526@mailbox.ijs.si> X-Sender: Mark.Martinec+freebsd@ijs.si User-Agent: Roundcube Webmail/1.1.2 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 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, 27 Aug 2015 12:04:13 -0000 Pete French wrote: > I updated to stable yesterday, plus updated all my porst to > the latest pecompiled packages, but I am now seeing odd problems > with bash on exit. Sometimes it quits, but leaves a zombie > process... e.g > > PID TT STAT TIME COMMAND > 44308 v0 IW 0:00.00 -bash (bash) > 44312 v0 IW+ 0:00.00 /bin/sh /usr/local/bin/startx -listen_tcp > 44325 v0 IW+ 0:00.00 xinit xterm -listen_tcp -- /usr/local/bin/X :0 > -auth /ho > 44328 v0 IW 0:00.00 /usr/local/bin/wmaker > 44340 v0 S 0:03.35 /usr/local/bin/wmaker --for-real > 49101 0- Z+ 0:02.73 > 49314 1- Z+ 0:00.17 > 56068 2 Ss 0:00.01 bash > 56498 2 R+ 0:00.00 ps > 56074 3 Is 0:00.01 bash > 56076 3 S+ 0:00.00 mail freebsd-stable@freebsd.org > 56308 4 Is+ 0:00.01 bash > > Thats the current 'ps' on this machine. The bash processes are running > inside an xterm, so am not sure if the issue is with bash or the > terminal. Kind of puzzled! I can reproduce this easily, although not every time. Running 10.2 under KDE, with bash as a default shell: start xterm from a KDE 'konsole', then move to within the xterm and try closing it (^D or exit). More often than not the xterm will block and stay open, the bash process within goes . A normal kill of xterm has no effect, although a kill -9 to the xterm blows away the xterm and the init process then clears the bash zombie leftover. Seems like running a simple command like 'date' in xterm before trying to close it does increase the likelihood that xterm will block on exit. > Currently I have to reboot the machine periodicly once I have > accumulated > enough zombies to be annoying. Its not really a long term solution > though. There is no need to reboot, just kill -9 the hanging xterm processes and the init will clear the zombies. Mark