Debian Bug report logs - #835904
tail --retry doesn't

version graph

Package: coreutils; Maintainer for coreutils is Michael Stone <[email protected]>; Source for coreutils is src:coreutils (PTS, buildd, popcon).

Reported by: Harald Dunkel <[email protected]>

Date: Mon, 29 Aug 2016 08:09:02 UTC

Severity: normal

Found in version coreutils/8.23-4

Full log


🔗 View this message in rfc822 format

X-Loop: [email protected]
Subject: Bug#835904: tail --retry doesn't
Reply-To: Harald Dunkel <[email protected]>, [email protected]
Resent-From: Harald Dunkel <[email protected]>
Resent-To: [email protected]
Resent-CC: Michael Stone <[email protected]>
X-Loop: [email protected]
Resent-Date: Mon, 29 Aug 2016 08:09:02 +0000
Resent-Message-ID: <[email protected]>
Resent-Sender: [email protected]
X-Debian-PR-Message: report 835904
X-Debian-PR-Package: coreutils
X-Debian-PR-Keywords: 
X-Debian-PR-Source: coreutils
Received: via spool by [email protected] id=B.147245731831689
          (code B); Mon, 29 Aug 2016 08:09:02 +0000
Received: (at submit) by bugs.debian.org; 29 Aug 2016 07:55:18 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.0-bugs.debian.org_2005_01_02
	(2014-02-07) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-11.3 required=4.0 tests=BAYES_00,FOURLA,HAS_PACKAGE,
	RP_MATCHES_RCVD autolearn=ham autolearn_force=no
	version=3.4.0-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 10; hammy, 146; neutral, 83; spammy,
	4. spammytokens:0.987-1--Aug15, 0.987-1--H*M:d897, 0.987-1--H*MI:d897,
	0.987-1--aug15 hammytokens:0.000-+--H*UA:45.0, 0.000-+--H*u:45.0,
	0.000-+--afaict, 0.000-+--AFAICT, 0.000-+--sk:x86_64
Received: from mail.aixigo.de ([5.145.142.10])
	by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.84_2)
	(envelope-from <[email protected]>)
	id 1beHPa-0008En-0k
	for [email protected]; Mon, 29 Aug 2016 07:55:18 +0000
Received: from srvvm01.ac.aixigo.de (mail.ac.aixigo.de [172.19.96.11])
	by gate5a.ac.aixigo.de (OpenSMTPD) with ESMTPS id e11d607d
	TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO
	for <[email protected]>;
	Mon, 29 Aug 2016 09:55:14 +0200 (CEST)
Received: from dpcl082.ac.aixigo.de (dpcl082.ac.aixigo.de [172.19.97.128])
	by srvvm01.ac.aixigo.de (8.14.4/8.14.4/Debian-8) with ESMTP id u7T7tD0S023956;
	Mon, 29 Aug 2016 09:55:13 +0200
To: [email protected]
From: Harald Dunkel <[email protected]>
Message-ID: <[email protected]>
Date: Mon, 29 Aug 2016 09:55:13 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.2.0
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: clamav-milter 0.99.2 at srvvm01.ac.aixigo.de
X-Virus-Status: Clean
Delivered-To: [email protected]
Package: coreutils
Version: 8.23-4

I am running tail in a dedicated window for some days now:

% ps -ef | grep tai[l]
hdunkel   2928  2915  0 Aug15 pts/1    00:00:00 tail --retry --max-unchanged-stats=5 -f /var/log/messages

Problem: It's frozen. /var/log/messages is changing all the
time, but tail doesn't recognize.

lsof -p shows:

% lsof -p 2928
lsof: WARNING: can't stat() tracefs file system /sys/kernel/debug/tracing
      Output information may be incomplete.
COMMAND  PID    USER   FD   TYPE DEVICE SIZE/OFF      NODE NAME
tail    2928 hdunkel  cwd    DIR   0,40    20480 189573782 /home/hdunkel (nfs-data:/space/home)
tail    2928 hdunkel  rtd    DIR  259,0     4096         2 /
tail    2928 hdunkel  txt    REG  259,0    64232    657851 /usr/bin/tail
tail    2928 hdunkel  mem    REG  259,0  1738176   1724334 /lib/x86_64-linux-gnu/libc-2.19.so
tail    2928 hdunkel  mem    REG  259,0   140928   1724331 /lib/x86_64-linux-gnu/ld-2.19.so
tail    2928 hdunkel    0u   CHR  136,1      0t0         4 /dev/pts/1
tail    2928 hdunkel    1u   CHR  136,1      0t0         4 /dev/pts/1
tail    2928 hdunkel    2u   CHR  136,1      0t0         4 /dev/pts/1
tail    2928 hdunkel    3r   REG  259,0   100176    263640 /var/log/messages.1 (deleted)
tail    2928 hdunkel    4r  0000   0,11        0      8294 anon_inode


AFAICT this is not supposed to happen. According to the man
page "tail --retry --max-unchanged-stats=5" should reopen
/var/log/messages.


Regards
Harri

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 11:24:55 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.