New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The current "1.5" archive crashes on launch on OTP/Release 18.0 #6618

Closed
BanzaiMan opened this Issue Sep 30, 2017 · 5 comments

Comments

Projects
None yet
3 participants
@BanzaiMan
Copy link

BanzaiMan commented Sep 30, 2017

Precheck

  • Do not use the issues tracker for help or support (try Elixir Forum, Stack Overflow, IRC, etc.)
  • For proposing a new feature, please start a discussion on the Elixir Core mailing list
  • For bugs, do a quick search and make sure the bug has not yet been reported
  • Finally, be nice and have fun!

Environment

Current behavior

Include code samples, errors and stacktraces if appropriate.

With OTP/Release 18.0, https://repo.hex.pm/builds/elixir/v1.5.zip contains elixir that crashes upon launch.

See https://travis-ci.org/BanzaiMan/travis_production_test/jobs/281688370#L511 for comparison with 1.5.1 and 1.5.2 archives and different OTP/Release versions. The only combination that the problem manifests is the archive 1.5 and OTP/Release 18.0.

$ wget https://repo.hex.pm/builds/elixir/v1.5.zip
$ echo 'export ELIXIR_VERSION=1.5
export PATH=$HOME/.kiex/elixirs/elixir-1.5/bin:$PATH
export MIX_ARCHIVES=$HOME/.kiex/mix/elixir-1.5' > $HOME/.kiex/elixirs/elixir-1.5.env
$ unzip -d /home/travis/.kiex/elixirs/elixir-1.5 v1.5.zip
$ kiex use 1.5
$ elixir --version
{"init terminating in do_boot",{undef,[{elixir,start_cli,[],[]},{init,start_it,1,[]},{init,start_em,1,[]}]}}
Crash dump is being written to: erl_crash.dump...done
init terminating in do_boot ()

Expected behavior

Assuming that the archive is supposed to be 1.5.2.

Erlang/OTP 18 [erts-7.0] [source] [64-bit] [smp:2:2] [async-threads:10] [hipe] [kernel-poll:false]

Elixir 1.5.2
@josevalim

This comment has been minimized.

Copy link
Member

josevalim commented Sep 30, 2017

Oops, I have built the precompiled using Erlang 19 and it should have been 18.0.

@ericmj how did you build v1.5? It seems we both made the same mistake.

@ericmj

This comment has been minimized.

Copy link
Member

ericmj commented Oct 1, 2017

@josevalim What's the difference between 19 and 19.0?

@BanzaiMan I would recommend not using the v1.5 zip since it tracks a maintenance branch which is not guaranteed to be stable. The issue here is something else though.

I build with oldest support major version and the latest so since Elixir 1.5 supports Erlang 18 and 18.3 is the latest version I build with that according to https://github.com/hexpm/bob/blob/master/scripts/elixir_to_otp.exs#L19. This seems to not have worked correctly so I will investigate.

@josevalim

This comment has been minimized.

Copy link
Member

josevalim commented Oct 1, 2017

@josevalim What's the difference between 19 and 19.0?

Sorry, I meant to say we should have compiled with 18.0 and not 19. I have amended my comment above, thanks!

@BanzaiMan

This comment has been minimized.

Copy link

BanzaiMan commented Oct 1, 2017

@ericmj In general, we read the user input 1.5 and use that to request the archive. While I can add the note for avoiding such a release specification, it is mostly out of our hands.

@ericmj

This comment has been minimized.

Copy link
Member

ericmj commented Oct 1, 2017

@BanzaiMan A note for users would be great!

Should be fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment