Skip to content

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

Closed

Description

@BanzaiMan

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

Activity

  1. josevalim commented on Sep 30, 2017

    @josevalim
    Member

    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.

  2. ericmj commented on Oct 1, 2017

    @ericmj
    Member

    @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.

  3. josevalim commented on Oct 1, 2017

    @josevalim
    Member

    @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!

  4. BanzaiMan commented on Oct 1, 2017

    @BanzaiMan
    Author

    @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.

  5. ericmj commented on Oct 1, 2017

    @ericmj
    Member

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions