mattmower
Error: corrupt atom table using 1.19.3/OTP28 vs 27
I’ve just updated an escript based application of mine from Elixir 1.17 to 1.19.
At the same time I attempted to update from OTP 27.2.2 to 28.1.1
After switching to 1.19.3-otp28, nuking the _build folder, and recompiling, the escript binary gives the following error:
=ERROR REPORT==== 20-Nov-2025::14:32:27.189484 ===
beam/beam_load.c(150): Error loading module rez_escript:
corrupt atom table
escript: exception error: undefined function rez_escript:main/1
in function escript:run/2 (escript.erl, line 904)
in call from escript:start/1 (escript.erl, line 418)
in call from init:start_it/1
in call from init:start_em/1
in call from init:do_boot/3
Going back to 1.19.3-otp27 with 27.3.4.6 and the escript binary works fine.
I couldn’t find anything much sensible via Google and errors in beam_load.c is a bit above my pay grade so I thought I would report it here.
Most Liked
josevalim
This will happen if you compile a escript for Erlang/OTP 28 and then attempt to run it on Erlang/OTP 27 and earlier.
LostKobrakai
escripts do not include otp. They expect the system running the escript to have an the otp installation.
mattmower
Yep okay the solution was to put a matching asdf config where I am using the escript binary. I don’t think this complicates my burrito distribution as that will include the matching OTP.
Thanks @josevalim and @LostKobrakai .
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









