Skip to content

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

Open
larsewi wants to merge 1 commit into
cfengine:masterfrom
larsewi:getprocessstat-errno
Open

larsewi wants to merge 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>
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