<div dir="ltr">Thank you Sverker!</div><div class="gmail_extra"><br><div class="gmail_quote">On 20 January 2017 at 14:45, Sverker Eriksson <span dir="ltr"><<a href="mailto:sverker.eriksson@ericsson.com" target="_blank">sverker.eriksson@ericsson.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>Correction: Bug exists since OTP-17.0.
<br>
<br>
(and i tags R16B02_yielding_binary_to_term and
OTP_R16B03_yielding_binary_to_<wbr>term)
<br><span class="HOEnZb"><font color="#888888">
<br>
/Sverker
<br>
</font></span></p><div><div class="h5">
<br>
<div class="m_2699683712842458509moz-cite-prefix">On 01/20/2017 05:17 PM, Sverker
Eriksson wrote:<br>
</div>
<blockquote type="cite">This is indeed a problem in Erlang VM code (shallow
copy of inflate state)
<br>
that has existed since R16B03, but not caused actual problem until
zlib v1.2.9.
<br>
<br>
Fix coming up. Here is a preliminary patch for the impatient.
<br>
<br>
diff --git a/erts/emulator/beam/external.<wbr>c
b/erts/emulator/beam/external.<wbr>c
<br>
index beed847..1c4fff5 100644
<br>
--- a/erts/emulator/beam/external.<wbr>c
<br>
+++ b/erts/emulator/beam/external.<wbr>c
<br>
@@ -1431,6 +1431,10 @@ static B2TContext*
b2t_export_context(Process* p, B2TContext* src)
<br>
if (ctx->state >= B2TDecode &&
ctx->u.dc.next == &src->u.dc.res) {
<br>
ctx->u.dc.next = &ctx->u.dc.res;
<br>
}
<br>
+ else if (ctx->state == B2TUncompressChunk) {
<br>
+ int cres = inflateCopy(&ctx->u.uc.stream,
&src->u.uc.stream);
<br>
+ ASSERT(cres == Z_OK); (void)cres;
<br>
+ }
<br>
hp = HAlloc(p, PROC_BIN_SIZE);
<br>
ctx->trap_bin = erts_mk_magic_binary_term(&hp,
&MSO(p), context_b);
<br>
return ctx;
<br>
<br>
<br>
/Sverker, Erlang/OTP
<br>
<br>
<br>
On 01/19/2017 04:14 AM, Michel Boaventura wrote:
<br>
<blockquote type="cite">Hi all,
<br>
<br>
I've build erlang 19 from scratch on my gentoo machine but can't
use
<br>
dialyzer, because it complains my beam files weren't compiled
with
<br>
debug_info.
<br>
<br>
I've read and debugged a log of dialyzer and erlang code and
find out the
<br>
issue is that for some reason erlang can't parse the abstract
part of the
<br>
files.
<br>
<br>
To check this I save the abstract part on a file and tried to
parse it on
<br>
my gentoo machine and on a Ubuntu server I have access. For some
reason I
<br>
don't know it reads with no problem Ubuntu but gives me an
invalid arg on
<br>
gentoo.
<br>
<br>
I'm very new to erlang and have no clue of how to debug further.
The binary
<br>
is attached and I'm reading it like:
<br>
<br>
{ok, [Binary]} = <a class="m_2699683712842458509moz-txt-link-freetext">file:consult(</a>"Abstr").
<br>
Term = binary_to_term(Binary).
<br>
<br>
ps: I've sent a message similar to this one on this list, but
since it was
<br>
my first one I think it wasn't accepted (and I do apologize for
the double
<br>
post if you received it). But after it I've discovered the
problem with
<br>
binary_to_term, so that message isn't so useful anyway.
<br>
<br>
<br>
<br>
______________________________<wbr>_________________
<br>
erlang-questions mailing list
<br>
<a class="m_2699683712842458509moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a>
<br>
<a class="m_2699683712842458509moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a>
<br>
</blockquote>
<br>
<br>
<br>
<fieldset class="m_2699683712842458509mimeAttachmentHeader"></fieldset>
<br>
<pre>______________________________<wbr>_________________
erlang-questions mailing list
<a class="m_2699683712842458509moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a>
<a class="m_2699683712842458509moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a>
</pre>
</blockquote>
<br>
</div></div></div>
<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><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Michel Almada de Castro Boaventura<br>Analista de Sistemas<br>Laboratório de Software Livre - LSL</div>
</div>