Skip to content
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

Crash when mocking Elixir 1.8-rc.0 compiled module #201

Closed
lukaszsamson opened this issue Dec 27, 2018 · 1 comment
Closed

Crash when mocking Elixir 1.8-rc.0 compiled module #201

lukaszsamson opened this issue Dec 27, 2018 · 1 comment
Labels

Comments

@lukaszsamson
Copy link

{:compile_forms, {:error, [{[], [{:none, :compile, {:crash, :sys_core_fold, {{:case_clause, {:EXIT, {:function_clause, [{:sys_core_fold, :module, [[{:attribute, 1, :file, {'lib/simple.ex', 1}}, {:attribute, 1, :module, Simple_meck_original}, {:attribute, 1, :compile, [:no_auto_import]}, {:attribute, 1, :export, [__info__: 1, test: 0]}, {:attribute, 1, :spec, {{:__info__, 1}, [{:type, 1, :fun, [{:type, 1, :product, [{:type, ...}]}, {:type, 1, :any, []}]}]}}, {:function, 0, :__info__, 1, [{:clause, 0, [{:atom, 0, :module}], [], [{:atom, 0, Simple}]}, {:clause, 0, [{:atom, 0, :functions}], [], [{:cons, 0, {:tuple, ...}, {...}}]}, {:clause, 0, [{:atom, 0, :macros}], [], [nil: 0]}, {:clause, 0, [{:match, 0, {:var, ...}, {...}}], [], [{:call, 0, ...}]}, {:clause, 0, [{:match, 0, {...}, ...}], [], [{:call, ...}]}, {:clause, 0, [{:match, 0, ...}], [], [{...}]}, {:clause, 0, [{:atom, ...}], [], [...]}]}, {:function, 2, :test, 0, [{:clause, 2, [], [], [{:bin, 0, [{...}]}]}]}], [:binary, :return_errors, :debug_info, :dialyzer, :no_spawn_compiler_process, :from_core, :no_auto_import]], [file: 'sys_core_fold.erl', line: 109]}, {:compile, :"-select_passes/2-anonymous-2-", 3, [file: 'compile.erl', line: 585]}, {:compile, :"-internal_comp/5-anonymous-1-", 3, [file: 'compile.erl', line: 349]}, {:compile, :fold_comp, 4, [file: 'compile.erl', line: 376]}, {:compile, :internal_comp, 5, [file: 'compile.erl', line: 360]}, {:compile, :"-do_compile/2-anonymous-0-", 2, [file: 'compile.erl', line: 177]}, {:meck_code, :compile_and_load_forms, 2, [file: '/Users/lukaszsamson/mock/deps/meck/src/meck_code.erl', line: 71]}, {:meck_proc, :backup_original, 3, [file: '/Users/lukaszsamson/mock/deps/meck/src/meck_proc.erl', line: 363]}, {:meck_proc, :init, 1, [file: '/Users/lukaszsamson/mock/deps/meck/src/meck_proc.erl', line: 206]}, {:gen_server, :init_it, 2, [file: 'gen_server.erl', line: 374]}, {:gen_server, :init_it, 6, [file: 'gen_server.erl', line: 342]}, {:proc_lib, :init_p_do_apply, 3, [file: 'proc_lib.erl', line: 249]}]}}}, [{:compile, :"-select_passes/2-anonymous-2-", 3, [file: 'compile.erl', line: 585]}, {:compile, :"-internal_comp/5-anonymous-1-", 3, [file: 'compile.erl', line: 349]}, {:compile, :fold_comp, 4, [file: 'compile.erl', line: 376]}, {:compile, :internal_comp, 5, [file: 'compile.erl', line: 360]}, {:compile, :"-do_compile/2-anonymous-0-", 2, [file: 'compile.erl', line: 177]}, {:meck_code, :compile_and_load_forms, 2, [file: '/Users/lukaszsamson/mock/deps/meck/src/meck_code.erl', line: 71]}, {:meck_proc, :backup_original, 3, [file: '/Users/lukaszsamson/mock/deps/meck/src/meck_proc.erl', line: 363]}, {:meck_proc, :init, 1, [file: '/Users/lukaszsamson/mock/deps/meck/src/meck_proc.erl', line: 206]}, {:gen_server, :init_it, 2, [file: 'gen_server.erl', line: 374]}, {:gen_server, :init_it, 6, [file: 'gen_server.erl', line: 342]}, {:proc_lib, :init_p_do_apply, 3, [file: 'proc_lib.erl', line: 249]}]}}}]}], []}}

Reproduction Steps

  1. clone https://github.com/jjh42/mock
  2. install Elixir 1.8.-rc.0
  3. run tests 'mix test'

Versions

  • Meck version: 0.8.8
  • Erlang version: Erlang/OTP 21 [erts-10.2.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe] [dtrace]
  • Elixir version: 1.8-rc.0
@lukaszsamson lukaszsamson changed the title Crash when mocking Elixir 1.8-rc.0 compiled modle Crash when mocking Elixir 1.8-rc.0 compiled module Dec 27, 2018
@eproxus eproxus added the bug label Dec 30, 2018
@eproxus
Copy link
Owner

eproxus commented Jan 8, 2019

Fixed in 0.8.13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants