Skip to content

CFE-4285: Fixed cf-agent assertion failure when reading /proc/<pid>/stat - #6374

Merged
larsewi merged 1 commit into
cfengine:masterfrom
larsewi:getprocessstat-errno
Oct 5, 2026
Merged

larsewi merged 1 commit into
cfengine:masterfrom
larsewi:getprocessstat-errno

Conversation

@larsewi

@larsewi larsewi commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

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

Seen in the expireafter.cf acceptance test in the community-3.24.x nightly.

Generated with Claude Code

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>
@larsewi larsewi added the cherry-pick? Fixes which may need to be cherry-picked to LTS branches label Oct 5, 2026
@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 4d1cd8f into cfengine:master Oct 5, 2026
45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-pick? Fixes which may need to be cherry-picked to LTS branches

Development

Successfully merging this pull request may close these issues.

3 participants