<div dir="ltr">Hi,<div><br></div><div><div>2> beam_lib:chunks("/home/vlad/<wbr>projects/erlide_kernel/common/<wbr>_build/test/lib/erlide_tools/<wbr>ebin/ttbe.beam", ["Abst"]).</div><div>{ok,{ttbe,[{"Abst",</div><div>            <<131,80,0,1,222,78,120,156,<wbr>181,125,7,148,84,69,214,</div><div>              240,76,119,207,12,89,69,...>>}<wbr>]}}</div><div><br></div></div><div>So the chunk is there...</div><div><br></div><div>regards,</div><div>Vlad</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 24, 2017 at 10:23 PM, José Valim <span dir="ltr"><<a href="mailto:jose.valim@plataformatec.com.br" target="_blank">jose.valim@plataformatec.com.br</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">The error message says the invalid chunk is the "Abst" chunk.<div><br></div><div>Maybe try checking out if the chunk can be read manually?<div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>beam_lib:chunks("/home/vlad/pr<wbr>ojects/erlide_kernel/common/_<wbr>build/test/lib/erlide_tools/eb<wbr>in/ttbe.beam", ["Abst"]).</div></blockquote><br><div>And also:</div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>beam_lib:chunks("/home/vlad/pr<wbr>ojects/erlide_kernel/common/_<wbr>build/test/lib/erlide_tools/eb<wbr>in/ttbe.beam", [abstract_code]).</div></blockquote><div><br></div>And if you are running on OTP 20:<br><div><br></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>beam_lib:chunks("/home/vlad/pr<wbr>ojects/erlide_kernel/common/_<wbr>build/test/lib/erlide_tools/eb<wbr>in/ttbe.beam", [debug_info]).</div></blockquote><div class="gmail_extra"><div><div class="m_4257286988859487810gmail-m_-3742741488386277013gmail_signature"><div dir="ltr"><div><div><br></div><div><br></div><div><span style="font-size:13px"><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><b>José Valim</b></span></div><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><div><span style="font-family:verdana,sans-serif;font-size:x-small"><a href="http://www.plataformatec.com.br/" style="color:rgb(42,93,176)" target="_blank">www.plataformatec.com.br</a></span></div><div><span style="font-family:verdana,sans-serif;font-size:x-small">Skype: jv.ptec</span></div><div><span style="font-family:verdana,sans-serif;font-size:x-small">Founder and Director of R&D</span></div></span></div></span></div></div></div></div></div>
<br><div class="gmail_quote"><div><div class="h5">On Mon, Jul 24, 2017 at 10:10 PM, Éric Pailleau <span dir="ltr"><<a href="mailto:eric.pailleau@wanadoo.fr" target="_blank">eric.pailleau@wanadoo.fr</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="h5"><div dir="auto">Dbgi.  Sorry for typo. <div dir="auto"><br></div></div><div class="m_4257286988859487810gmail-m_-3742741488386277013HOEnZb"><div class="m_4257286988859487810gmail-m_-3742741488386277013h5"><div class="gmail_extra"><br><div class="gmail_quote">Le 24 juil. 2017 10:09 PM, Éric Pailleau <<a href="mailto:eric.pailleau@wanadoo.fr" target="_blank">eric.pailleau@wanadoo.fr</a>> a écrit :<br type="attribution"><blockquote class="m_4257286988859487810gmail-m_-3742741488386277013m_5201313786606282643quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Hi,<div dir="auto">I found two new chunks in 20.0: </div><div dir="auto"><br></div><div dir="auto"><span style="background-color:rgb(255,255,255)"> </span><span style="background-color:rgb(255,255,255);color:rgb(3,47,98);font-family:consolas,"liberation mono",courier,monospace;font-size:14px;white-space:pre-wrap">AtU8 and Dbdi. </span></div><div dir="auto"><span style="background-color:rgb(255,255,255);color:rgb(3,47,98);font-family:consolas,"liberation mono",courier,monospace;font-size:14px;white-space:pre-wrap"><br></span></div><div dir="auto"><span style="background-color:rgb(255,255,255);color:rgb(3,47,98);font-family:consolas,"liberation mono",courier,monospace;font-size:14px;white-space:pre-wrap">Regards </span></div></div><div><br><div class="m_4257286988859487810gmail-m_-3742741488386277013m_5201313786606282643elided-text">Le 24 juil. 2017 10:00 PM, Éric Pailleau <<a href="mailto:eric.pailleau@wanadoo.fr" target="_blank">eric.pailleau@wanadoo.fr</a>> a écrit :<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Hi,<div dir="auto">invalid_chunk is maybe related to UTF8 atom chunk added in beam format starting 20.0.</div><div dir="auto"><br></div><div dir="auto">I needed to change match clauses myself for my geas project.</div><div dir="auto"><br></div><div dir="auto">Regards </div><div dir="auto"><br></div></div><div><br><div>Le 24 juil. 2017 8:42 PM, Vlad Dumitrescu <<a href="mailto:vladdu55@gmail.com" target="_blank">vladdu55@gmail.com</a>> a écrit :<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi!<div><br></div><div>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...</div><div><br></div><div>best regards,</div><div>Vlad</div><div><br></div><div><div>===> erlopts [debug_info,</div><div>                         {d,'EUNIT'},</div><div>                         nowarn_missing_spec,warn_depr<wbr>ecated_function,</div><div>                         warn_export_all,warn_export_v<wbr>ars,warn_obsolete_guard,</div><div>                         warn_shadow_vars,warn_unused_<wbr>function,</div><div>                         warn_unused_import,warn_unuse<wbr>d_record,</div><div>                         warn_unused_vars,warnings_as_<wbr>errors,</div><div>                         {d,'TEST'}]</div><div>===> files to compile ["/home/vlad/projects/erlide_k<wbr>ernel/common/_build/test/lib/e<wbr>rlide_tools/src/runtime_tools_<wbr>sup.erl",</div><div>"/home/vlad/projects/erlide_ke<wbr>rnel/common/_build/test/lib/er<wbr>lide_tools/src/ttbe.erl",</div><div>....,</div><div>"/home/vlad/projects/erlide_ke<wbr>rnel/common/_build/test/lib/er<wbr>lide_tools/src/erlide_tools_ap<wbr>p.erl"]<br></div><div>===>      Compiled runtime_tools_sup.erl</div><div>===>      Compiled ttbe.erl</div><div>===>      Compiled erlide_tools_app.erl<br></div><div>===> cover compiling "/home/vlad/projects/erlide_ke<wbr>rnel/common/_build/test/lib/er<wbr>lide_tools/ebin"<br></div><div><br></div><div>=ERROR REPORT==== 24-Jul-2017::19:32:04 ===</div><div>Error in process <0.395.0> with exit value: {{case_clause,{error,beam_lib,<wbr>{invalid_chunk,"/home/vlad/pro<wbr>jects/erlide_kernel/common/_bu<wbr>ild/test/lib/erlide_tools/ebin<wbr>/ttbe.beam","Abst"}}},[{cover,<wbr>do_compile_beam,3,[{file,"cove<wbr>r.erl"},{line,1355}]},{cover,<wbr>main_process_loop... </div><div><br></div><div>===> Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace or consult rebar3.crashdump</div><div>===> Uncaught error: {case_clause,</div><div>                                 {'EXIT',</div><div>                                  {{case_clause,</div><div>                                    {error,beam_lib,</div><div>                                     {invalid_chunk,</div><div>                                      "/home/vlad/projects/erlide_ke<wbr>rnel/common/_build/test/lib/er<wbr>lide_tools/ebin/ttbe.beam",</div><div>                                      "Abst"}}},</div><div>                                   [{cover,do_compile_beam,3,</div><div>                                     [{file,"cover.erl"},{line,135<wbr>5}]},</div><div>                                    {cover,main_process_loop,1,</div><div>                                     [{file,"cover.erl"},{line,600<wbr>}]}]}}}</div></div><div><br></div></div>
</blockquote></div><br></div></blockquote></div><br></div></blockquote></div><br></div></div></div><br></div></div>______________________________<wbr>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/list<wbr>info/erlang-questions</a><br>
<br></blockquote></div><br></div></div>
</blockquote></div><br></div>