erlang / docker-erlang-otp

the Official Erlang OTP image on Docker Hub

Home Page:https://hub.docker.com/_/erlang/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Erlang 26.2.3 crashes on apple M1

fbbergamo opened this issue · comments

After we merged this PR https://github.com/erlang/docker-erlang-otp/pull/464/files#diff-10ac1b77f722cf4dba43389a3a74c461ec92c2f5b3e4a72365324b0281d5152eL3

I noticed the build was breaking in the M1

4.611 eheap_alloc: Cannot allocate 976733209832459912 bytes of memory (of type "heap_frag").
4.614
4.614 Crash dump is being written to: erl_crash.dump...beam/erl_term.h:1492:tag_val_def() Assertion failed: tag_val_def error
4.743 Aborted

Looks like the issue is related with this:

https://elixirforum.com/t/crash-dump-when-installing-phoenix-on-mac-m2-eheap-alloc-cannot-allocate-x-bytes-of-memory-of-type-heap-frag/62154

erlang/otp#8238

I'm seeing the same issue in the Elixir docker image, which I believe, is built with the erlang image as a base.
Works fine on x86-64, but in a build pipeline running on arm64 I have the same crash.

With the release of OTP 26.2.4 now the image shouldn't have this issue