You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original reporter: weisslj
Affected version: Not Specified
Fixed in version: OTP-19.2
Component: dialyzer
Migrated from: https://bugs.erlang.org/browse/ERL-294
See my original report in http://erlang.org/pipermail/erlang-questions/2016-November/090753.html
GCC 6.2 with {{--enable-default-pie}}, which is enabled e.g. in the Debian Testing package, breaks HiPE (and Dialyzer, if it uses HiPE):
{code:erlang}
{'EXIT',{badarg,[{hipe_bifs,patch_call,
[1103888528,94502719669968,[]],
[]},
{hipe_unified_loader,patch_call_insn,3,
[{file,"hipe_unified_loader.erl"},{line,508}]},
{hipe_unified_loader,patch_bif_call_list,4,
[{file,"hipe_unified_loader.erl"},{line,494}]},
{hipe_unified_loader,patch_call,5,
[{file,"hipe_unified_loader.erl"},{line,485}]},
{hipe_unified_loader,patch,5,
[{file,"hipe_unified_loader.erl"},{line,462}]},
{hipe_unified_loader,load_common,4,
[{file,"hipe_unified_loader.erl"},{line,215}]},
{hipe_unified_loader,load_native_code,3,
[{file,"hipe_unified_loader.erl"},{line,111}]},
{code_server,try_load_module_2,6,
[{file,"code_server.erl"},{line,1131}]}]}}
{code}
Compiling Erlang/OTP with CFLAGS and LDFLAGS set to "-no-pie -fno-pie" solves the problem. The bug affects current stable version 19.1.5 and the current master branch ([214aba4|https://github.com/erlang/otp/commit/214aba4]).
The text was updated successfully, but these errors were encountered:
Actually, it affects all versions.
As replied in the erlang-questions mailing list, adding {{no-pie}} in the flags is probably the easiest and safest solution to this problem.
If there are no objections, can somebody from the OTP team (Sverker?) please do that?
Maybe it would be good to add it in the maint-19 branch, as some distributions are already affected:
* https://bugzilla.redhat.com/show_bug.cgi?id=1295663
* https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=842998
Original reporter:
weisslj
Affected version:
Not Specified
Fixed in version:
OTP-19.2
Component:
dialyzer
Migrated from: https://bugs.erlang.org/browse/ERL-294
The text was updated successfully, but these errors were encountered: