atop is broken on Ubuntu 16.04 (version 1.26): trap divide error

Table of Contents

Recently a few of my Ubuntu 16.04 machines had issues and I was troubleshooting them, noticing atop logs missing. atop is a very handy tool which can be setup to record system state every X minutes, and we set it up to run every 5 minutes. You can then at a later moment see what the server was doing, even sorting by disk, memory, cpu or network usage.

There is a debian bug report where they state this bug is solved in the 2.x release (debian experimental). Ubuntu 16.04 sadly still ships 1.x, and due to policy will never update to 2.x. The bug is solved in December 2016, but the ubuntu changelog still shows that the last update was in January 2016: