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

Daniel Goertzen <>
Mon Aug 27 21:26:46 CEST 2012


Sigh.  Never mind.  I was tracing a function that passes the 13 MB binary
and attempting to pretty print that made the VM freeze.

Sorry for the distraction,
Dan.

On Mon, Aug 27, 2012 at 1:08 PM, Daniel Goertzen
<>wrote:

> 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'
>
>
> Thanks,
> Dan.
>
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20120827/56e982fa/attachment.html>


More information about the erlang-bugs mailing list