[erlang-bugs] erlang:halt bug

Martin Bjorklund <>
Tue May 20 10:36:19 CEST 2008




halts the emulator just as it should.  But


fails with badarg.

The reason of that the halt_1 bif checks if the string is longer than
199 bytes; if it is it returns badarg.

The documentation doesn't mention this at all.

IMO, the bif should truncate the string if necessary.

I noted that the code in init.erl truncates this in one case...


More information about the erlang-bugs mailing list