-
Notifications
You must be signed in to change notification settings - Fork 1
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
pipeBytes'1
Property test fails with native implementation
#51
Comments
Different test failures are related to a common issue with closing file descriptors. Below are logs or a failed run and a successful run. Failed
Passed
All cases are failing in the child process at the output action step where the stdout pipe's (from child to parent) parent fd is failing to close. |
After discussion, the current cause of the bug appears to be how the process is being cloned in the ghc runtime. It is likely that ghc RTS threads implemented using pthreads, is using clone call with flags that do not copy over the file descriptors. With this assumption the sequence of steps that leads to the error are these -
This is an intermittent issue because sometimes step 4 does not happen. This error also does not occur on using the |
pipeBytes'1
Property test failspipeBytes'1
Property test fails with native implementation
For commit id 63060b9. However test is flaky and fails only occasionally.
The text was updated successfully, but these errors were encountered: