Public bug reported:

When running autopkgtest in a lxc container against postfix 3.6.4, it
does something that causes the host's ntp service to segfault and to
reset the system time to an earlier time.  I haven't determined if the
former causes the latter, or vice versa.

  sudo autopkgtest ../postfix_3.6.4-1ubuntu1.dsc -- null

Restarting ntp on the host is sufficient to get things back in order.
Then re-running autopkgtest reproduces the failure exactly - the time is
set again to the same time that it did before.

  sudo systemctl restart ntp

Interestingly, if I rebuild the package, then run autopkgtest, it resets
to a different time (but always that specific time).  I suspect there is
something in the build setting the system time to a date related to
either the changelog date, or the date of some artifact produced during
the build (the .dsc file?)

From watching the log and the clock, the time reset appears to occur not
during the actual test case runs but rather during the packaging,
specifically somewhere between dh_prep and dh_compress.

I have not yet been able to reproduce this behavior using postfix 3.6.3
built from .dsc, nor postfix 3.6.3 using binaries from the main archive.

Comparing the build log from 3.6.3 with the autopkgtest log for 3.6.4,
these lines jump out at me:

### 3.6.3 ###

  install -m644 debian/postfix.insserv.conf 
debian/postfix/etc/insserv.conf.d/postfix
txt2man -t postfix-collate -r postfix-3.6.3 -d  -s 1 auxiliary/collate/README > 
debian/postfix/usr/share/man/man1/postfix-collate.1
  expand: 1: No such file or directory
  install man/man1/*.1 debian/postfix/usr/share/man/man1

### 3.6.4 ###

  install -m644 debian/postfix.insserv.conf 
debian/postfix/etc/insserv.conf.d/postfix
  txt2man -t postfix-collate -r postfix-3.6.4 -d 'Mon Jan 31 09:42:30 PM UTC 
2022' -s 1 auxiliary/collate/README > 
debian/postfix/usr/share/man/man1/postfix-collate.1
  install man/man1/*.1 debian/postfix/usr/share/man/man1


The date shown in the latter log snippet is the incorrect date.

The clock running (on the host) during the build showed the following:

  $ while : ; do date; sleep 1; done
  ...
  Mon 31 Jan 2022 06:40:48 PM PST
  Mon 31 Jan 2022 06:40:49 PM PST
  Mon 31 Jan 2022 06:40:50 PM PST
  Mon 31 Jan 2022 06:40:51 PM PST
  Mon 31 Jan 2022 01:42:30 PM PST
  Mon 31 Jan 2022 01:42:31 PM PST
  Mon 31 Jan 2022 01:42:32 PM PST
  Mon 31 Jan 2022 01:42:33 PM PST
  Mon 31 Jan 2022 01:42:34 PM PST

** Affects: postfix (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1959639

Title:
  Running autopkgtest in lxc crashes host's ntp

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/1959639/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to