Devuan bug report logs - #847
util-linux: flock under i386 causes delay in /etc/init.d/ntpsec roughly equal to timeout value

Package: ntpsec-ntpdate; Maintainer for ntpsec-ntpdate is (unknown); Source for ntpsec-ntpdate is src:ntpsec.

Reported by: Arthur Marsh <arthur.marsh@internode.on.net>

Date: Thu, 11 Apr 2024 03:24:01 UTC

Severity: normal

Tags: debian

Forwarded to https://bugs.debian.org/1068804

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to devuan-bugs@lists.dyne.org, Devuan Developers <devuan-dev@lists.dyne.org>:
bug#847; Package util-linux. (Thu, 11 Apr 2024 03:24:02 GMT) (full text, mbox, link).


Acknowledgement sent to Arthur Marsh <arthur.marsh@internode.on.net>:
New bug report received and forwarded. Copy sent to Devuan Developers <devuan-dev@lists.dyne.org>. (Thu, 11 Apr 2024 03:24:03 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.devuan.org (full text, mbox, reply):

From: Arthur Marsh <arthur.marsh@internode.on.net>
To: Devuan Bug Tracking System <submit@bugs.devuan.org>
Subject: util-linux: flock under i386 causes delay in /etc/init.d/ntpsec roughly equal to timeout value
Date: Thu, 11 Apr 2024 12:51:26 +0930
Package: util-linux
Version: 2.39.3-6devuan1
Severity: normal

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?

Found delay in /etc/init.d/ntpsec startup script recently


   * What exactly did you do (or not do) that was effective (or
     ineffective)?

Tried ntp related settings then notice flock(1) used with a timeout of 180 
used in /etc/init.d/ntpsec start-up script, changing timeout to 10 reduced
start-up delay.

Changed time-out back to 180 and downgraded util-linux:

downgrading util-linux from 2.40-5devuan1 to 2.39.3-6devuan1

which fixed the problem.

   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***


-- System Information:
Distributor ID:	Devuan
Description:	Devuan GNU/Linux 6 (excalibur/ceres)
Release:	6
Codename:	excalibur ceres
Architecture: i686

Kernel: Linux 6.9.0-rc3 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages util-linux depends on:
ii  libblkid1              2.40-5devuan1
ii  libc6                  2.38-6
ii  libcap-ng0             0.8.4-2
ii  libcrypt1              1:4.4.36-4
ii  libeudev1              3.2.14-2
ii  libmount1              2.40-5devuan1
ii  libpam0t64 [libpam0g]  1.5.3-4
ii  libselinux1            3.5-2+b2
ii  libsmartcols1          2.40-5devuan1
ii  libtinfo6              6.4+20240113-1
ii  libuuid1               2.40-5devuan1
ii  zlib1g                 1:1.3.dfsg-3.1

Versions of packages util-linux recommends:
ii  sensible-utils  0.0.22

Versions of packages util-linux suggests:
ii  dosfstools          4.2-1.1
ii  kbd                 2.6.4-2
ii  util-linux-extra    2.39.3-6devuan1
ii  util-linux-locales  2.39.3-6devuan1

-- debconf-show failed

Information forwarded to devuan-bugs@lists.dyne.org, Devuan Developers <devuan-dev@lists.dyne.org>:
bug#847; Package util-linux. (Thu, 11 Apr 2024 06:38:01 GMT) (full text, mbox, link).


Acknowledgement sent to Arthur Marsh <arthur.marsh@internode.on.net>:
Extra info received and forwarded to list. Copy sent to Devuan Developers <devuan-dev@lists.dyne.org>. (Thu, 11 Apr 2024 06:38:02 GMT) (full text, mbox, link).


Message #10 received at 847@bugs.devuan.org (full text, mbox, reply):

From: Arthur Marsh <arthur.marsh@internode.on.net>
To: 847@bugs.devuan.org
Subject: flock -w
Date: Thu, 11 Apr 2024 16:07:06 +0930
When using as per default 

flock -w 180 9

in /etc/init.d/ntpsec
I was geeting 170 seconds delay before ntpsec completed

When using

flock -w 10 9

I was getting zero delay

When using

flock -w 20 9 

I was getting 10 seconds delay


-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Information forwarded to devuan-bugs@lists.dyne.org, Devuan Developers <devuan-dev@lists.dyne.org>:
bug#847; Package util-linux. (Thu, 11 Apr 2024 06:46:01 GMT) (full text, mbox, link).


Message #13 received at 847@bugs.devuan.org (full text, mbox, reply):

From: Mark Hindley <mark@hindley.org.uk>
To: Arthur Marsh <arthur.marsh@internode.on.net>, 847@bugs.devuan.org
Subject: Re: [devuan-dev] bug#847: flock -w
Date: Thu, 11 Apr 2024 07:43:54 +0100
Since you said this was arch:i386, I wonder if it is 64 time_t transition related.

Mark

Information forwarded to devuan-bugs@lists.dyne.org, Devuan Developers <devuan-dev@lists.dyne.org>:
bug#847; Package util-linux. (Thu, 11 Apr 2024 07:58:02 GMT) (full text, mbox, link).


Acknowledgement sent to Arthur Marsh <arthur.marsh@internode.on.net>:
Extra info received and forwarded to list. Copy sent to Devuan Developers <devuan-dev@lists.dyne.org>. (Thu, 11 Apr 2024 07:58:03 GMT) (full text, mbox, link).


Message #18 received at 847@bugs.devuan.org (full text, mbox, reply):

From: Arthur Marsh <arthur.marsh@internode.on.net>
To: 847@bugs.devuan.org
Subject: flock -w and ntpsec
Date: Thu, 11 Apr 2024 17:26:53 +0930
Hi, it appears that ifupdown package calls

/etc/network/if-up.d/ntpsec-ntpdate

when the network interface is brought up, which happens before /etc/init.d/ntpsec start is called. 

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Marked as found in versions util-linux/2.40-5devuan1. Request was from Mark Hindley <leepen@debian.org> to control@bugs.devuan.org. (Thu, 11 Apr 2024 08:15:08 GMT) (full text, mbox, link).


No longer marked as found in versions util-linux/2.39.3-6devuan1. Request was from Mark Hindley <leepen@debian.org> to control@bugs.devuan.org. (Thu, 11 Apr 2024 08:15:08 GMT) (full text, mbox, link).


Information forwarded to devuan-bugs@lists.dyne.org, Devuan Developers <devuan-dev@lists.dyne.org>:
bug#847; Package util-linux. (Thu, 11 Apr 2024 20:36:02 GMT) (full text, mbox, link).


Acknowledgement sent to Lorenzo <plorenzo@disroot.org>:
Extra info received and forwarded to list. Copy sent to Devuan Developers <devuan-dev@lists.dyne.org>. (Thu, 11 Apr 2024 20:36:02 GMT) (full text, mbox, link).


Message #27 received at 847@bugs.devuan.org (full text, mbox, reply):

From: Lorenzo <plorenzo@disroot.org>
To: 847@bugs.devuan.org
Cc: devuan developers internal list <devuan-dev@lists.dyne.org>
Subject: Re: [devuan-dev] bug#847: flock -w and ntpsec
Date: Thu, 11 Apr 2024 22:32:58 +0200
Hi,

On Thu, 11 Apr 2024 17:26:53 +0930
Arthur Marsh <arthur.marsh@internode.on.net> wrote:

> Hi, it appears that ifupdown package calls
> 
> /etc/network/if-up.d/ntpsec-ntpdate
> 
> when the network interface is brought up, which happens before
> /etc/init.d/ntpsec start is called. 
> 

It looks there is already a report of this in Debian #1068796

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1068804

Information forwarded to devuan-bugs@lists.dyne.org, Devuan Developers <devuan-dev@lists.dyne.org>:
bug#847; Package util-linux. (Fri, 12 Apr 2024 17:54:01 GMT) (full text, mbox, link).


Acknowledgement sent to Mark Hindley <mark@hindley.org.uk>:
Extra info received and forwarded to list. Copy sent to Devuan Developers <devuan-dev@lists.dyne.org>. (Fri, 12 Apr 2024 17:54:02 GMT) (full text, mbox, link).


Message #32 received at 847@bugs.devuan.org (full text, mbox, reply):

From: Mark Hindley <mark@hindley.org.uk>
To: 847@bugs.devuan.org
Cc: Lorenzo <plorenzo@disroot.org>, Arthur Marsh <arthur.marsh@internode.on.net>
Subject: Re: bug#847: flock -w and ntpsec
Date: Fri, 12 Apr 2024 18:51:57 +0100
Control: reassign -1 ntpsec-ntpdate
Control: tags -1 debian
Control: forwarded -1  https://bugs.debian.org/1068804

On Thu, Apr 11, 2024 at 10:32:58PM +0200, Lorenzo wrote:
>
> It looks there is already a report of this in Debian #1068796

Thanks.

Mark

bug reassigned from package 'util-linux' to 'ntpsec-ntpdate'. Request was from Mark Hindley <mark@hindley.org.uk> to 847-submit@bugs.devuan.org. (Fri, 12 Apr 2024 17:54:03 GMT) (full text, mbox, link).


No longer marked as found in versions util-linux/2.40-5devuan1. Request was from Mark Hindley <mark@hindley.org.uk> to 847-submit@bugs.devuan.org. (Fri, 12 Apr 2024 17:54:03 GMT) (full text, mbox, link).


Added tag(s) debian. Request was from Mark Hindley <mark@hindley.org.uk> to 847-submit@bugs.devuan.org. (Fri, 12 Apr 2024 17:54:03 GMT) (full text, mbox, link).


Set bug forwarded-to-address to 'https://bugs.debian.org/1068804'. Request was from Mark Hindley <mark@hindley.org.uk> to 847-submit@bugs.devuan.org. (Fri, 12 Apr 2024 17:54:03 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Fri May 17 08:25:04 2024;