[erlang-questions] Incorrect Beam Comparison
Prakash Parmar
prakashkumar_parmar@REDACTED
Thu Mar 22 05:31:38 CET 2018
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.
-----Original Message-----
From: "Vladimir Gordeev" <gordeev.vladimir.v@REDACTED>
Sent: Thursday, March 22, 2018 12:44am
To: "Prakash Parmar" <prakashkumar_parmar@REDACTED>, erlang-questions@REDACTED
Subject: Re: [erlang-questions] Incorrect Beam Comparison
> both files are Identical.
Indentical in the sense that content of *.beam files produce exactly same hashsum?
On Wed, Mar 21, 2018 at 1:13 PM, Prakash Parmar <[ prakashkumar_parmar@REDACTED ]( mailto:prakashkumar_parmar@REDACTED )> wrote:
Hello Everyone,
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 .
beam_lib:cmp("./erl_experiment-0.1.0/ebin/mynew_server.beam","./erl_experiment-0.2.0/ebin/mynew_server.beam").
{error,beam_lib,{chunks_different,"Abst"}}
Though both files are Identical. Still beam_lib:cmp/2 is giving difference in 'Abst' chunk.
Does anyone have idea what's going wrong or reason ?
Here is a svn diff of between both branch for reference.
user@REDACTED:~/svn/erl_experiment/branches/rel_v0_2_0$ svn diff -r18
Index: lib/erl_experiment/src/erl_experiment.app.src
_===================================================================_
--- lib/erl_experiment/src/erl_experiment.app.src (.../rel_v0_1_0) (revision 18)
+++ lib/erl_experiment/src/erl_experiment.app.src (.../rel_v0_2_0) (working copy)
@@ -1,6 +1,6 @@
{application, erl_experiment,
[{description, "An OTP application"},
- {vsn, "0.1.0"},
+ {vsn, "0.2.0"},
{registered, []},
{mod, { erl_experiment_app, []}},
{applications,
Index: rebar.config
===================================================================
--- rebar.config (.../rel_v0_1_0) (revision 18)
+++ rebar.config (.../rel_v0_2_0) (working copy)
@@ -5,7 +5,7 @@
{ base_dir, "../_build"}.
{ out_dir, "../_build/default/lib/"}.
-{relx, [{release, {erl_experiment, "0.1.0"}, [ erl_experiment, kernel, stdlib, sasl ]},
+{relx, [{release, {erl_experiment, "0.2.0"}, [ erl_experiment, kernel, stdlib, sasl ]},
{dev_mode, false},
{include_erts, true},
Cheers,
Prakash
******* 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********
******* 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.********
_______________________________________________
erlang-questions mailing list
[ erlang-questions@REDACTED ]( mailto:erlang-questions@REDACTED )
[ http://erlang.org/mailman/listinfo/erlang-questions ]( http://erlang..org/mailman/listinfo/erlang-questions )
******* 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********
******* 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.********
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180322/b7e4461b/attachment.htm>
More information about the erlang-questions
mailing list