[erlang-bugs] internal error in lint_module

Andreas Stenius erlang@REDACTED
Wed Aug 17 22:31:59 CEST 2016


Hi,

When compiling attached file, I get an internal error from the lint_module
when using 19.0 (built from source, using kerl).

Compiling the same file using OTP 17.3 and 18.0 works fine.

$ ~/lib/erl/17.3/bin/erlc -v -Werror +debug_info +warn_export_vars
+warn_shadow_vars +warn_obsolete_guard  -o ebin/ -pa ebin/ -I include/
src/ecapnp.erl

$ ~/lib/erl/17.3/bin/erlc -v -Werror +debug_info +warn_export_vars
+warn_shadow_vars +warn_obsolete_guard  -o ebin/ -pa ebin/ -I include/
src/c++_capnp.erl

$ ~/lib/erl/18.0/bin/erlc -v -Werror +debug_info +warn_export_vars
+warn_shadow_vars +warn_obsolete_guard  -o ebin/ -pa ebin/ -I include/
src/c++_capnp.erl

$ ~/lib/erl/19.0/bin/erlc -v -Werror +debug_info +warn_export_vars
+warn_shadow_vars +warn_obsolete_guard  -o ebin/ -pa ebin/ -I include/
src/c++_capnp.erl

src/c++_capnp.erl: internal error in lint_module;

crash reason: badarg


  in function  erl_eval:line/1 (erl_eval.erl, line 1327)

  in call from erl_eval:partial_eval/1 (erl_eval.erl, line 1297)

  in call from erl_lint:check_type/3 (erl_lint.erl, line 2840)

  in call from lists:foldl/3 (lists.erl, line 1263)

  in call from erl_lint:check_type/2 (erl_lint.erl, line 2728)

  in call from lists:foldl/3 (lists.erl, line 1263)

  in call from erl_lint:forms/2 (erl_lint.erl, line 658)

  in call from erl_lint:module/3 (erl_lint.erl, line 506)

Cheers,
Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20160817/647f2cc0/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: c++_capnp.erl
Type: application/octet-stream
Size: 6074 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20160817/647f2cc0/attachment.obj>


More information about the erlang-bugs mailing list