[erlang-bugs] crash dump on large ssh:connection_send()

Daniel Goertzen <>
Mon Aug 27 20:08:04 CEST 2012

When I try to send a large binary (13 MB) through an SSH channel using
"ssh:connection_send()", my VM freezes with a CPU pinned and I am forced to
kill it.  One time it managed to get this message out:

Crash dump was written to: erl_crash.dump
eheap_alloc: Cannot allocate 912262800 bytes of memory (of type "heap").

Abnormal termination

Sending the binary in smaller chunks (4kB) also fails.  I get to send about
50 such chunks before I get {error, channel_closed}, but a few moments
later the VM freezes with pinned CPU.  I am continuing to investigate, but
would happily take hints if anyone can provide them.

I am running R15B01 on Windows.

My use case is to push a firmware image from my Erlang app to a network
appliance running OpenSSH.  Similar to...

cat firmware.bin | ssh   'cat >/temp/firmware.bin'

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20120827/5b710225/attachment.html>

More information about the erlang-bugs mailing list