Re: EPIPE returned by kevent(2)

2023-05-06 Thread Greg Steuck
Visa Hankala writes: > The EPIPE error relates to the situation where a kevent(2) EVFILT_WRITE > call on a pipe races with the closing of the pipe's other end. > If the close(2) happens before the kevent registration, kevent(2) > returns EPIPE. If the close(2) happens after the kevent(2) call, >

Re: EPIPE returned by kevent(2)

2023-05-06 Thread Visa Hankala
On Thu, May 04, 2023 at 08:07:44PM -0700, Greg Steuck wrote: > I'm debugging a non-trivial multithreaded unit test in the current > version of lang/ghc. It runs into some kind of unexpected condition not > handled well by GHC. I suspect we do something non-standard to cause > this behavior. These

EPIPE returned by kevent(2)

2023-05-04 Thread Greg Steuck
I'm debugging a non-trivial multithreaded unit test in the current version of lang/ghc. It runs into some kind of unexpected condition not handled well by GHC. I suspect we do something non-standard to cause this behavior. These two ktrace items illustrate the issue: 12550/209588 T21651 CALL