[erlang-patches] fix erl_interface crash

Wei Cao cyg.cao@REDACTED
Wed Oct 26 10:14:40 CEST 2011


Fix a crash in erl_interface.

erl_interface use linux select() to get notified on socket events, which
works when fd is less than 1024.

however, when fd is larger than 1024, the fd_set structure on stack gets
corrupted and the process crashes soon,

this is possible when there are lots of connections kept or the process
keeps creating new connect and closing it.


git fetch git://github.com/weicao/otp.git erl_interface_replace_select_
with_poll


https://github.com/weicao/otp/compare/erl_interface_replace_select_with_poll

https://github.com/weicao/otp/compare/erl_interface_replace_select_with_poll.patch


-- 

Best,

Wei Cao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20111026/187e2d82/attachment.htm>


More information about the erlang-patches mailing list