ntpd crashed with SIGABRT (was: ntp crashes everytime the network goes up or down.)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NTP |
Fix Released
|
High
|
|||
ntp (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Xenial |
Fix Released
|
High
|
Christian Ehrhardt |
Bug Description
[Impact]
* In NTP 4.2.8p4 there are several races that can cause a crash on
startup or on a bit later but still on startup by DNS querying a
peer.
* The crash obviously affects users, especially as it seems - due to
its racy nature - not appear on most, but severely hamstring some
other users.
* The details are a bit blurred, but overall there were four fixes
upstream that address just this "kind of issue" that seemed to
surface post 4.2.8p4.
[Test Case]
* Start NTP (service)
* Expectation: work
* Failure: Crash
* Constraints: this is a race, it seems to appear at <0.1% chance to
all systems I have (or lower - as I just can say it didn't trigger in
1000 tests). But that matches other reports. OTOH for some systems it
seems to trigger >50% which also matches the high amount of crash
reports (close to 20k now) as referred in comment 43
[Regression Potential]
* Eventually the change is rather invasive as it changes the locking
scheme of parts of the code - so there surely is some regression
potential.
* Fortunately all of this change is upstream and tested there
quite heavily. Most of it for a few months already.
* I tested as good as I could and could neither in code nor in test
find an obvious weakness, and looking at all the crash reports it is
about time.
[Other Info]
* While all study of bugs, upstream changes and tests suggest we
haven't broken anything, still I have to admit that "on my own" I
can't confirm that it fixed the bug. So we are really dependent on
the reporters here that seem to have the kind of hardware where it
"crashes reliably".
--------
ntp crashes every time the network goes up or down while the system is running and also crashes after booting up without network.
---
ApportVersion: 2.20.1-0ubuntu1
Architecture: amd64
CurrentDesktop: XFCE
DistroRelease: Ubuntu 16.04
InstallationDate: Installed on 2016-03-12 (26 days ago)
InstallationMedia: Xubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160224)
NtpStatus: ntpq: read: Connection refused
Package: ntp 1:4.2.8p4+
PackageArchitec
ProcCmdline: BOOT_IMAGE=
ProcVersionSign
Tags: xenial
Uname: Linux 4.4.0-17-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
---
ApportVersion: 2.20.1-0ubuntu1
Architecture: amd64
CurrentDesktop: XFCE
DistroRelease: Ubuntu 16.04
InstallationDate: Installed on 2016-03-12 (31 days ago)
InstallationMedia: Xubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160224)
NtpStatus: ntpq: read: Connection refused
Package: ntp 1:4.2.8p4+
PackageArchitec
ProcCmdline: BOOT_IMAGE=
ProcVersionSign
Tags: xenial
Uname: Linux 4.4.0-18-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
---
ApportVersion: 2.20.1-0ubuntu1
Architecture: amd64
CurrentDesktop: XFCE
DistroRelease: Ubuntu 16.04
InstallationDate: Installed on 2016-04-13 (0 days ago)
InstallationMedia: Xubuntu 16.04 LTS "Xenial Xerus" - Beta amd64 (20160412)
NtpStatus: ntpq: read: Connection refused
Package: ntp 1:4.2.8p4+
PackageArchitec
ProcCmdline: BOOT_IMAGE=
ProcVersionSign
Tags: xenial
Uname: Linux 4.4.0-18-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
---
ApportVersion: 2.20.1-0ubuntu1
Architecture: amd64
CurrentDesktop: XFCE
DistroRelease: Ubuntu 16.04
InstallationDate: Installed on 2016-04-13 (0 days ago)
InstallationMedia: Xubuntu 16.04 LTS "Xenial Xerus" - Beta amd64 (20160412)
NtpStatus: ntpq: read: Connection refused
Package: ntp 1:4.2.8p4+
PackageArchitec
ProcCmdline: BOOT_IMAGE=
ProcVersionSign
Tags: xenial
Uname: Linux 4.4.0-18-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
---
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
CurrentDesktop: XFCE
DistroRelease: Ubuntu 16.04
InstallationDate: Installed on 2016-04-14 (3 days ago)
InstallationMedia: Xubuntu 16.04 LTS "Xenial Xerus" - Beta amd64 (20160412)
NtpStatus: ntpq: read: Connection refused
Package: ntp 1:4.2.8p4+
PackageArchitec
ProcCmdline: BOOT_IMAGE=
ProcVersionSign
Tags: xenial
Uname: Linux 4.4.0-20-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
---
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
CurrentDesktop: XFCE
DistroRelease: Ubuntu 16.04
InstallationDate: Installed on 2016-04-14 (3 days ago)
InstallationMedia: Xubuntu 16.04 LTS "Xenial Xerus" - Beta amd64 (20160412)
NtpStatus: ntpq: read: Connection refused
Package: ntp 1:4.2.8p4+
PackageArchitec
ProcCmdline: BOOT_IMAGE=
ProcVersionSign
Tags: xenial
Uname: Linux 4.4.0-20-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
---
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CurrentDesktop: XFCE
DistroRelease: Ubuntu 16.04
InstallationDate: Installed on 2016-04-14 (63 days ago)
InstallationMedia: Xubuntu 16.04 LTS "Xenial Xerus" - Beta amd64 (20160412)
NtpStatus: ntpq: read: Connection refused
Package: ntp 1:4.2.8p4+
PackageArchitec
ProcCmdline: BOOT_IMAGE=
ProcVersionSign
Tags: xenial third-party-
Uname: Linux 4.4.0-25-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dialout dip lpadmin mail netdev plugdev sambashare sudo
_MarkForUpload: True
Changed in ntp (Ubuntu): | |
status: | Incomplete → New |
summary: |
- ntp crashes everytime the network goes up or down. + ntpd crashed with SIGABRT (was: ntp crashes everytime the network goes + up or down.) |
Changed in ntp (Ubuntu): | |
status: | Incomplete → Confirmed |
importance: | Undecided → High |
Changed in ntp (Ubuntu): | |
status: | Confirmed → Triaged |
Changed in ntp: | |
importance: | Unknown → High |
status: | Unknown → Fix Released |
Changed in ntp (Ubuntu Xenial): | |
importance: | Undecided → High |
Changed in ntp (Ubuntu): | |
assignee: | nobody → ChristianEhrhardt (paelzer) |
Changed in ntp (Ubuntu): | |
assignee: | ChristianEhrhardt (paelzer) → nobody |
Changed in ntp (Ubuntu Xenial): | |
assignee: | nobody → ChristianEhrhardt (paelzer) |
description: | updated |
Changed in ntp (Ubuntu Xenial): | |
status: | Confirmed → Fix Committed |
description: | updated |
apport information