Skip to content

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

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

larsewi merged 1 commit into
cfengine:3.27.xfrom
larsewi:getprocessstat-errno-3.27.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 please :)

@cf-bottom

Copy link
Copy Markdown

@larsewi
larsewi merged commit 3a2d66f into cfengine:3.27.x Oct 6, 2026
42 checks passed
@larsewi
larsewi deleted the getprocessstat-errno-3.27.x branch October 6, 2026 09:15
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