<div dir="ltr">hey Prakash, can you attach the file which you want to decompile? .</div><div class="gmail_extra"><br><div class="gmail_quote">2017-10-30 19:38 GMT+07:00 Prakash Parmar <span dir="ltr"><<a href="mailto:prakashkumar_parmar@thbs.com" target="_blank">prakashkumar_parmar@thbs.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font face="arial" size="2"><p style="margin:0;padding:0;font-family:arial;font-size:10pt">I have Erlang application's beam files which I want to decompile. <br><br>Application is Compiled and build with 'debug_info' options. here is snippet of emake file to which is used to build application :<br><br>    {"apps/my_app/src/*",   [debug_info, nowarn_export_all, {outdir, "apps/my_app/ebin"},{pa, "deps"},{parse_transform, lager_transform}, {parse_transform, events_transform}]}.<br><br>I have tried function from beam_lib module but getting following Error :<br><br>    1>{ok,{_,[{abstract_code,{_,<wbr>AC}}]}} = beam_lib:chunks(abc,[abstract_<wbr>code]).<br>    ** exception error: no match of right hand side value {error,beam_lib,{not_a_beam_<wbr>file,'abc.beam'}}<br><br>I have also tried solution mentioned in<a href="https://reverseengineering.stackexchange.com/questions/8895/decompile-erlang-beam-files-compiled-without-debug-info" target="_blank"> following post</a> but Its not working for me. I'm getting following error :<br><br>    1> file:write_file("/tmp/my_<wbr>module_disasm", io_lib:fwrite("~p.\n", [beam_disasm:file(abc)])).<br>    ok<br><br>/tmp/my_module_disasm file contains :<br><br>    {error,beam_lib,{not_a_beam_<wbr>file,'abc.beam'}}.<br><br>Anyone have Idea ?<br><br></p></font><br><br><br>******* DISCLAIMER: This email and any files transmitted with it are privileged and confidential information and intended solely for the use of the individual or entity to which they are addressed. If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Torry Harris Business Solutions has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail.  The recipient should check this email and any attachments for the presence of viruses. THBS reserves the right to monitor and review the content of all messages sent to or from this e-mail address********<br>

<pre>******* DISCLAIMER: This email and any files transmitted with it are privileged and confidential information and intended solely for the use of the individual or entity to which they are addressed. If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Torry Harris Business Solutions has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail.  The recipient should check this email and any attachments for the presence of viruses. THBS reserves the right to monitor and review the content of all messages sent to or from this e-mail address.********
</pre><br>______________________________<wbr>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>