<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Hello,<div><br></div><div>Compilation process injects various attributes to you module. Check them out to find difference xxx:module_info()</div><div><br></div><div>-Dmitry <br><br><div><br>On 22 Mar 2018, at 6.31, Prakash Parmar <<a href="mailto:prakashkumar_parmar@thbs.com">prakashkumar_parmar@thbs.com</a>> wrote:<br><br></div><blockquote type="cite"><div><font face="arial" size="2"><p style="margin:0;padding:0;font-family: arial; font-size: 10pt; overflow-wrap: break-word;">Source code of Both files are same but both compiled from different Branch. Chksum of both *.erl file are same but *.beam files are different.</p>
<p style="margin:0;padding:0;font-family: arial; font-size: 10pt; overflow-wrap: break-word;"> </p>
<p style="margin:0;padding:0;font-family: arial; font-size: 10pt; overflow-wrap: break-word;"> </p>
<p style="margin:0;padding:0;font-family: arial; font-size: 10pt; overflow-wrap: break-word;">-----Original Message-----<br>From: "Vladimir Gordeev" <<a href="mailto:gordeev.vladimir.v@gmail.com">gordeev.vladimir.v@gmail.com</a>><br>Sent: Thursday, March 22, 2018 12:44am<br>To: "Prakash Parmar" <<a href="mailto:prakashkumar_parmar@thbs.com">prakashkumar_parmar@thbs.com</a>>, <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>Subject: Re: [erlang-questions] Incorrect Beam Comparison<br><br></p>
<div id="SafeStyles1521692735">
<div dir="ltr"><span style="color: #222222; font-family: arial,sans-serif; font-size: 12.8px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; float: none; display: inline;">> </span><span style="color: #222222; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration-style: initial; text-decoration-color: initial; font-family: arial; font-size: 13.3333px; background-color: #ffffff; float: none; display: inline;">both files are Identical.<br><br>Indentical in the sense that content of *.beam files produce exactly same hashsum?</span></div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Mar 21, 2018 at 1:13 PM, Prakash Parmar <span dir="ltr"><<a href="mailto:prakashkumar_parmar@thbs.com" target="_blank">prakashkumar_parmar@thbs.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0 0 0 .8ex; border-left: 1px #ccc solid; padding-left: 1ex;">
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: arial; font-size: 10pt;">Hello Everyone,</p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: arial; font-size: 10pt;"> </p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: arial; font-size: 10pt;">I have a two identical branch in SVN and I'm trying to compare beam file of both branch. For same I'm using beam_lib:cmp/2 .</p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: arial; font-size: 10pt;"> </p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: arial; font-size: 10pt;">beam_lib:cmp("./erl_experiment-0.1.0/ebin/mynew_server.beam","./erl_experiment-0.2.0/ebin/mynew_server.beam").<br>{error,beam_lib,{chunks_different,"Abst"}}</p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: arial; font-size: 10pt;"> </p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: arial; font-size: 10pt;">Though both files are Identical. Still beam_lib:cmp/2 is giving difference in 'Abst' chunk.</p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: arial; font-size: 10pt;"> </p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: arial; font-size: 10pt;">Does anyone have idea what's going wrong or reason ?</p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: arial; font-size: 10pt;"> </p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: arial; font-size: 10pt;">Here is a svn diff of between both branch for reference.</p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: arial; font-size: 10pt;"> </p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: arial; font-size: 10pt;"> user@TH1574U:~/svn/erl_experiment/branches/rel_v0_2_0$ svn diff -r18<br> Index: lib/erl_experiment/src/erl_experiment.app.src<br> _===================================================================_<br> --- lib/erl_experiment/src/erl_experiment.app.src (.../rel_v0_1_0) (revision 18)<br> +++ lib/erl_experiment/src/erl_experiment.app.src (.../rel_v0_2_0) (working copy)<br> @@ -1,6 +1,6 @@<br> {application, erl_experiment,<br> [{description, "An OTP application"},<br> - {vsn, "0.1.0"},<br> + {vsn, "0.2.0"},<br> {registered, []},<br> {mod, { erl_experiment_app, []}},<br> {applications,<br> Index: rebar.config<br> ===================================================================<br> --- rebar.config (.../rel_v0_1_0) (revision 18)<br> +++ rebar.config (.../rel_v0_2_0) (working copy)<br> @@ -5,7 +5,7 @@<br> { base_dir, "../_build"}.<br> { out_dir, "../_build/default/lib/"}.<br> <br> -{relx, [{release, {erl_experiment, "0.1.0"}, [ erl_experiment, kernel, stdlib, sasl ]},<br> +{relx, [{release, {erl_experiment, "0.2.0"}, [ erl_experiment, kernel, stdlib, sasl ]},<br> <br> {dev_mode, false},<br> {include_erts, true},</p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: arial; font-size: 10pt;"> <br>Cheers,</p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: arial; font-size: 10pt;">Prakash</p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: arial; font-size: 10pt;"> </p>
<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>
<p style="margin:0;padding:0;">******* 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>_______________________________________________<br> erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br><a rel="noreferrer" href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br><br></p></blockquote>
</div>
</div>
</div></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></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>erlang-questions mailing list</span><br><span><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a></span><br><span><a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a></span><br></div></blockquote></div></body></html>