Skip to content

Conversation

@bneradt
Copy link
Contributor

@bneradt bneradt commented Jan 6, 2026

The poll() check from #12783 relied on POLLIN to detect crash data, but
this is unreliable - on some systems poll() sets POLLIN for EOF (socket
closed without data). This tweak adds reading on the socket to make sure
that there is data being sent to verify that there was indeed a crash.
This actually (as opposed to the previous patch) distinguishes a real
crash (data written then pipe closed) from a normal exit (pipe just
closed).

@bneradt bneradt added this to the 10.2.0 milestone Jan 6, 2026
@bneradt bneradt self-assigned this Jan 6, 2026
@bneradt bneradt force-pushed the fix_crashlog_generation branch 2 times, most recently from 9edd4df to 49d8702 Compare January 7, 2026 19:58
The poll() check from apache#12783 relied on POLLIN to detect crash data, but
this is unreliable - on some systems poll() sets POLLIN for EOF (socket
closed without data). This tweak adds reading on the socket to make sure
that there is data being sent to verify that there was indeed a crash.
This actually (as opposed to the previous patch) distinguishes a real
crash (data written then pipe closed) from a normal exit (pipe just
closed).
@bneradt bneradt force-pushed the fix_crashlog_generation branch from 49d8702 to e6b9a62 Compare January 7, 2026 20:04
@bneradt bneradt changed the title Fix crashlog poll() to not ignore data with POLLHUP Fix crash logs: verify crash data was received Jan 7, 2026
@bneradt bneradt requested a review from serrislew January 7, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant