[erlang-questions] Trouble with abstract code, cover and rebar3

Vlad Dumitrescu <>
Mon Jul 24 22:22:37 CEST 2017


Hi,

Yes, that would be a possible answer, but I should be compiling with v17.
Will check the beams, just in case.

regards,
Vlad


On Mon, Jul 24, 2017 at 10:00 PM, Éric Pailleau <>
wrote:

> Hi,
> invalid_chunk is maybe related to UTF8 atom chunk added in beam format
> starting 20.0.
>
> I needed to change match clauses myself for my geas project.
>
> Regards
>
>
> Le 24 juil. 2017 8:42 PM, Vlad Dumitrescu <> a écrit :
>
> Hi!
>
> I have a project that gives me headache: on one machine, running "rebar3
> test" results in an error like below. Same code on another machine compiles
> fine, but as far as I can tell the machines should be configured the same
> way. Obviously, they aren't. Anyone has a suggestion how to find what is
> going on? The code is compiled with OTP 17, so it shouldn't be related to
> the recent beam chunk changes in v20...
>
> best regards,
> Vlad
>
> ===> erlopts [debug_info,
>                          {d,'EUNIT'},
>                          nowarn_missing_spec,warn_deprecated_function,
>                          warn_export_all,warn_export_
> vars,warn_obsolete_guard,
>                          warn_shadow_vars,warn_unused_function,
>                          warn_unused_import,warn_unused_record,
>                          warn_unused_vars,warnings_as_errors,
>                          {d,'TEST'}]
> ===> files to compile ["/home/vlad/projects/erlide_
> kernel/common/_build/test/lib/erlide_tools/src/runtime_tools_sup.erl",
> "/home/vlad/projects/erlide_kernel/common/_build/test/lib/
> erlide_tools/src/ttbe.erl",
> ....,
> "/home/vlad/projects/erlide_kernel/common/_build/test/lib/
> erlide_tools/src/erlide_tools_app.erl"]
> ===>      Compiled runtime_tools_sup.erl
> ===>      Compiled ttbe.erl
> ===>      Compiled erlide_tools_app.erl
> ===> cover compiling "/home/vlad/projects/erlide_
> kernel/common/_build/test/lib/erlide_tools/ebin"
>
> =ERROR REPORT==== 24-Jul-2017::19:32:04 ===
> Error in process <0.395.0> with exit value: {{case_clause,{error,beam_lib,
> {invalid_chunk,"/home/vlad/projects/erlide_kernel/common/
> _build/test/lib/erlide_tools/ebin/ttbe.beam","Abst"}}},[{
> cover,do_compile_beam,3,[{file,"cover.erl"},{line,1355}]
> },{cover,main_process_loop...
>
> ===> Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace or
> consult rebar3.crashdump
> ===> Uncaught error: {case_clause,
>                                  {'EXIT',
>                                   {{case_clause,
>                                     {error,beam_lib,
>                                      {invalid_chunk,
>                                       "/home/vlad/projects/erlide_
> kernel/common/_build/test/lib/erlide_tools/ebin/ttbe.beam",
>                                       "Abst"}}},
>                                    [{cover,do_compile_beam,3,
>                                      [{file,"cover.erl"},{line,1355}]},
>                                     {cover,main_process_loop,1,
>                                      [{file,"cover.erl"},{line,600}]}]}}}
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170724/f8fab360/attachment.html>


More information about the erlang-questions mailing list