[erlang-bugs] Unclosed ports causing memory leak

Sverker Eriksson <>
Thu Oct 23 11:54:13 CEST 2008

Bjorn Gustavsson wrote:
> 2008/10/14 Malcolm Dowse <>
>> Hello,
>> We have been having some issues with Erlang ports not being closed
>> properly. Instead, the ports remain in a strange "half closed" state. In
>> this state, some aspects of the runtime system act as if the port exists
>> (erlang:ports/1) but others act as if it does not (erlang:port_info/1,
>> erlang:port_close/1). For example:
> Thanks!
> I was able to reproduce the problem. We will investigate.
> /Bjorn

Bug found in inet_drv.c. The output queue was not cleared causing the 
port to linger without being able to close properly.
Fix done and scheduled for R12B-5.

/Sverker, Erlang/OTP

More information about the erlang-bugs mailing list