From owner-freebsd-stable@FreeBSD.ORG Fri Feb 24 22:54:36 2012 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F31F106564A for ; Fri, 24 Feb 2012 22:54:36 +0000 (UTC) (envelope-from dudu@dudu.ro) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8161F8FC0C for ; Fri, 24 Feb 2012 22:54:35 +0000 (UTC) Received: by eekd17 with SMTP id d17so460912eek.13 for ; Fri, 24 Feb 2012 14:54:34 -0800 (PST) Received-SPF: pass (google.com: domain of dudu@dudu.ro designates 10.213.33.145 as permitted sender) client-ip=10.213.33.145; Authentication-Results: mr.google.com; spf=pass (google.com: domain of dudu@dudu.ro designates 10.213.33.145 as permitted sender) smtp.mail=dudu@dudu.ro; dkim=pass header.i=dudu@dudu.ro Received: from mr.google.com ([10.213.33.145]) by 10.213.33.145 with SMTP id h17mr1316564ebd.89.1330124074469 (num_hops = 1); Fri, 24 Feb 2012 14:54:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dudu.ro; s=google; h=date:from:to:cc:message-id:in-reply-to:references:subject:x-mailer :mime-version:content-type:content-transfer-encoding :content-disposition; bh=eg9pagqXri4nGNa1s9ZzM2otDw+MoebszyzMITf6scA=; b=kemME1CqYTqDLHIQGUUwdS0pWXQVOw6KVHD6JO6lP4zGNcV5Hx0njOJ51twNvkxYB9 QkjOFnjF48AFGL2ssch2e7siTgVhrtp4Axf1Oqa/RxJJ/9U8XevEc1zy1OH3rMECW2qp +h4RIw5DbfMggQRTXNj10yig52dhjrXc13QMw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=gamma; h=date:from:to:cc:message-id:in-reply-to:references:subject:x-mailer :mime-version:content-type:content-transfer-encoding :content-disposition:x-gm-message-state; bh=eg9pagqXri4nGNa1s9ZzM2otDw+MoebszyzMITf6scA=; b=oT8kUrKhnx9+M3GEg8J124pva0v9GhOWI454Z3h2nSSK6MvwNXRcjMqIm3Uy6Sl+Ue sYg2b4jqYF/yaY3MuepdqAABXSgX97N1CKMMtlHhTPxbrTROjaxLJj+ugYOFFQ59tsFk m73ZayNyCWMDF2yaFLitziCKA9XWF6R+MDH4U= Received: by 10.213.33.145 with SMTP id h17mr976390ebd.89.1330124074276; Fri, 24 Feb 2012 14:54:34 -0800 (PST) Received: from LesPaul.local ([82.76.253.74]) by mx.google.com with ESMTPS id y14sm23467623eef.10.2012.02.24.14.54.32 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 24 Feb 2012 14:54:33 -0800 (PST) Date: Fri, 24 Feb 2012 22:54:29 +0000 From: Vlad Galu To: Ed Schouten Message-ID: <9DAEF77AE05F4151AD561D26DF5D69F1@dudu.ro> In-Reply-To: <20120224224016.GI32748@hoeg.nl> References: <20120224221526.GH32748@hoeg.nl> <350DE43596674E608581BB2536231611@dudu.ro> <20120224224016.GI32748@hoeg.nl> X-Mailer: sparrow 1.5 (build 1043.1) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Gm-Message-State: ALoCoQm0IIS3mA8rpC119LIubVvPpJOE3Z5G05IFRYM6ymy0Vq+/xO/GUnbhmkM6XTIplplwGPwR Cc: stable@freebsd.org Subject: Re: Inconsistent utx.active? 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, 24 Feb 2012 22:54:36 -0000 On Friday, February 24, 2012 at 10:40 PM, Ed Schouten wrote: > Hi Vlad, > > * Vlad Galu , 20120224 23:35: > > Yes, sorry about that. I'm seeing stale (which sometimes turn into > > duplicate) entries when I log off and on again. The symptom seems to > > be exacerbated by unclean logouts (such as when my stateful corporate > > firewall kills my SSH sessions - I don't have keepalives active at > > either end). > > > > In the example below, I'm actually logged on from IP address X.Y.Z.T, > > the first two entries belong to earlier sessions that have been long > > gone. The pts is the same, and the command displayed under WHAT is > > mirrored for all 3 entries. > > > > Would you mind pasting the output of `getent utmpx active'? > Not at all, here it is: -- cut here -- [1330014380.652067 -- Thu Feb 23 17:26:20 2012] user process: id="4f86d023f250d3c9" pid="39012" user="dudu" line="pts/0" host="A.B.C.D" [1330014398.177818 -- Thu Feb 23 17:26:38 2012] user process: id="269d75b37f295346" pid="39221" user="dudu" line="pts/1" host="A.B.C.D" [1330085459.796787 -- Fri Feb 24 13:10:59 2012] user process: id="d026e8e5c0648ec2" pid="38093" user="dudu" line="pts/0" host="A.B.C.D" [1330122640.813570 -- Fri Feb 24 23:30:40 2012] user process: id="dd8d3dff2f3002a0" pid="82959" user="dudu" line="pts/0" host="X.Y.Z.T" [1330122493.638088 -- Fri Feb 24 23:28:13 2012] user process: id="92b73279a543d99f" pid="73085" user="dudu" line="pts/1" host="X.Y.Z.T" [1330122498.444614 -- Fri Feb 24 23:28:18 2012] user process: id="c0f3c404a3ca8565" pid="73573" user="dudu" line="pts/2" host="X.Y.Z.T" [1330122634.538515 -- Fri Feb 24 23:30:34 2012] dead process: id="fea56df5dde26e4d" pid="76338" -- and here -- The local time is UTC+1. The current (and only) bash PID (82986) is not even on that list.