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

José Valim jose.valim@REDACTED
Mon Jul 24 22:23:33 CEST 2017


The error message says the invalid chunk is the "Abst" chunk.

Maybe try checking out if the chunk can be read manually?

beam_lib:chunks("/home/vlad/projects/erlide_kernel/common/
_build/test/lib/erlide_tools/ebin/ttbe.beam", ["Abst"]).


And also:

beam_lib:chunks("/home/vlad/projects/erlide_kernel/common/
_build/test/lib/erlide_tools/ebin/ttbe.beam", [abstract_code]).


And if you are running on OTP 20:

beam_lib:chunks("/home/vlad/projects/erlide_kernel/common/
_build/test/lib/erlide_tools/ebin/ttbe.beam", [debug_info]).



*José Valim*
www.plataformatec.com.br
Skype: jv.ptec
Founder and Director of R&D

On Mon, Jul 24, 2017 at 10:10 PM, Éric Pailleau <eric.pailleau@REDACTED>
wrote:

> Dbgi.  Sorry for typo.
>
>
> Le 24 juil. 2017 10:09 PM, Éric Pailleau <eric.pailleau@REDACTED> a
> écrit :
>
> Hi,
> I found two new chunks in 20.0:
>
> AtU8 and Dbdi.
>
> Regards
>
> Le 24 juil. 2017 10:00 PM, Éric Pailleau <eric.pailleau@REDACTED> a
> écrit :
>
> 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 <vladdu55@REDACTED> 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_v
> ars,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_k
> ernel/common/_build/test/lib/erlide_tools/src/runtime_tools_sup.erl",
> "/home/vlad/projects/erlide_kernel/common/_build/test/lib/er
> lide_tools/src/ttbe.erl",
> ....,
> "/home/vlad/projects/erlide_kernel/common/_build/test/lib/er
> lide_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_ke
> rnel/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"}}},[{cove
> r,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_ke
> rnel/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}]}]}}}
>
>
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170724/1952a4da/attachment.htm>


More information about the erlang-questions mailing list