8000 Fix a SEGFAULT that was hidden by our waitpid() calls. by dimitri · Pull Request #422 · dimitri/pgcopydb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix a SEGFAULT that was hidden by our waitpid() calls. #422

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 9, 2023

Conversation

dimitri
Copy link
Owner
@dimitri dimitri commented Aug 9, 2023

When a subprocess terminates with a successful return code, it might still have been terminated by a signal, one signal would be SIGSEGV. Arrange our code to report when that happens.

This happened in initialisation of the streaming module when trying to call setvbuf on a un-assigned file descriptor. This is fixed in follow.c when preparing the call.

@dimitri dimitri force-pushed the fix/segfault-by-setvbuf branch from 8d8aa3b to 13c5b0e Compare August 9, 2023 15:01
When a subprocess terminates with a successful return code, it might still
have been terminated by a signal, one signal would be SIGSEGV. Arrange our
code to report when that happens.

This happened in initialisation of the streaming module when trying to call
setvbuf on a un-assigned file descriptor. This is fixed in follow.c when
preparing the call.
@dimitri dimitri force-pushed the fix/segfault-by-setvbuf branch from 13c5b0e to 6d1b8d2 Compare August 9, 2023 15:07
@dimitri dimitri merged commit e83e53b into main Aug 9, 2023
@dimitri dimitri deleted the fix/segfault-by-setvbuf branch August 9, 2023 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0