[erlang-questions] log_mf_h and rb do not handle terms over 65k
Jesper Louis Andersen
jesper.louis.andersen@REDACTED
Tue May 18 12:39:33 CEST 2010
On Mon, May 17, 2010 at 8:15 PM, Garret Smith <garret.smith@REDACTED> wrote:
> I was logging a couple very large terms using
> error_logger:info_report and log_mf_h during application start,
> and was always unable to read most of the first log file
> generated. This was mystifying me for a while until I finally
> traced the source.
>
> log_mf_h and rb use a 2-byte length indicator for the term they
> are about to read/write, therefore they cannot handle terms
> over 65,536 bytes in length. See handle_event/2 in log_mf_h
> and read_report/1 in rb
Yes, etorrent has the same problem for some of its processes. I
reported this little problem a couple of years ago, and even did the
backwards-incompatible patch against R11b-5 to fix it:
http://www.erlang.org/cgi-bin/ezmlm-cgi/3/187
--
J.
More information about the erlang-questions
mailing list