A hard-to-reproduce EPollSelector bug...
Alan Bateman
Alan.Bateman at oracle.com
Thu Mar 15 15:46:29 UTC 2018
On 15/03/2018 15:30, David Lloyd wrote:
> :
> Well my naive hope that I could create a quick & dirty fix has been
> dashed so far. But, looking at the original bug report that sent me
> down this chase, I see that it was perhaps not limited to just EPoll;
> KQueue on Mac also suffers (or suffered) from a similar problem, and I
> understand it happened on Windows as well. So my hypothesis that it
> is due to epoll weirdness is probably an "overthink" of the problem;
> maybe it is in fact just a question of ordering the bind correctly as
> you say. The bug report is publicly viewable and can be found at [1]
> (the stack traces are the interesting part).
I think all it needs is one thread calling bind at around the same time
that another thread attempts to closes the channel. It doesn't need any
Selectors in the picture.
-Alan
More information about the nio-dev
mailing list