Skip to content

Fixed cf-agent assertion failure when reading /proc/<pid>/stat (3.24.x) - #6378

Merged
larsewi merged 1 commit into
cfengine:3.24.xfrom
larsewi:getprocessstat-errno-3.24.x
Oct 6, 2026
Merged

larsewi merged 1 commit into
cfengine:3.24.xfrom
larsewi:getprocessstat-errno-3.24.x

Conversation

@larsewi

@larsewi larsewi commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Backported from #6374

GetProcessStat() asserted on unexpected open() errors, e.g. when the
process exited in the meantime. Release builds would loop forever
instead. Now logs the error and returns false.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ticket: CFE-4285
Changelog: Title
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
(cherry picked from commit 59bf332)
@larsewi

larsewi commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

@cf-bottom Jenkins with exotics please :)

@cf-bottom

Copy link
Copy Markdown

@larsewi
larsewi merged commit 63d88f4 into cfengine:3.24.x Oct 6, 2026
43 of 46 checks passed
@larsewi
larsewi deleted the getprocessstat-errno-3.24.x branch October 6, 2026 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants