Merge ~vpa1977/ubuntu/+source/atop:armfh_fail into ubuntu/+source/atop:ubuntu/devel
Status: | Needs review | ||||
---|---|---|---|---|---|
Proposed branch: | ~vpa1977/ubuntu/+source/atop:armfh_fail | ||||
Merge into: | ubuntu/+source/atop:ubuntu/devel | ||||
Diff against target: |
75 lines (+41/-1) 4 files modified
debian/changelog (+7/-0) debian/control (+2/-1) debian/patches/atopacctd_return_error.patch (+31/-0) debian/patches/series (+1/-0) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Dave Jones (community) | Approve | ||
git-ubuntu import | Pending | ||
Review via email: mp+452863@code.launchpad.net |
Description of the change
Changes:
- avoid sigfpe due to the truncated shadow file
When the atopacctd service crashes on startup (that is the case for armhf containers), it may leave a 0-length shadow file.
atopacctd() routine tries to read it and fails. It returns 1 (success)
and sets maxshadowrec size to the size from the 'current' file. The rest
of the code assumes that the shadow file read was successful and tries
to use an empty acct structure, causing a division by zero.
PPA: ppa:vpa1977/
Testing:
- autopkgtest:
- atop/2.
+ ✅ atop on mantic for amd64 @ 05.10.23 03:37:41 Log️ 🗒️
+ ✅ atop on mantic for arm64 @ 05.10.23 03:36:38 Log️ 🗒️
+ ✅ atop on mantic for armhf @ 05.10.23 03:36:10 Log️ 🗒️
+ ✅ atop on mantic for ppc64el @ 05.10.23 03:33:14 Log️ 🗒️
+ ✅ atop on mantic for s390x @ 05.10.23 03:32:36 Log️ 🗒️
- piuparts test[2]
1m39.4s INFO: PASS: All tests.
1m39.4s INFO: piuparts run ends.
[1]https:/
[2] https:/
This is the upstream commit now:
https:/ /github. com/Atoptool/ atop/commit/ f72f7c06278ec9a d2209975eca67c2 e3c0b3a44b
They closed the bug[1], but not your PR[2].
This is ready for sponsoring after you update this PR.
1. https:/ /github. com/Atoptool/ atop/issues/ 277 /github. com/Atoptool/ atop/pull/ 278
2. https:/