R12 emulator crashes with zero-length port_control binary

Simon Cornish <>
Wed May 26 02:56:30 CEST 2010


If a linked-in driver returns 0 to a port_control call and
PORT_CONTROL_FLAG_BINARY is set then the beam emulator will probably
crash or otherwise misbehave.

Attached is a patch for those who are stuck on R12 and might get
bitten by this. Tested on R12B-3, applies also to R12B-5.

It's already fixed (in a different way) in R13+

/Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: io.c.patch
Type: application/octet-stream
Size: 571 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20100525/aea2ad6f/attachment.obj>


More information about the erlang-bugs mailing list