1 May 2011 13:22
Dialyzer v2.2.0 crash
Peer Stritzinger <peerst <at> gmail.com>
2011-05-01 11:22:50 GMT
2011-05-01 11:22:50 GMT
When running dialyzer like:
$ dialyzer --src -c codec_can.erl
on the file codec_can.erl with the following contents (minimal code
snippet that shows the error):
-module(codec_can).
-compile(export_all).
-record(can_pkt, {id, data, timestamp}).
-spec recv(<<_:64,_:_*8>>,fun((_) -> any()),atom() | pid() |
{atom(),_}) -> any().
recv(Packet, Recv_fun, Chan) ->
P = decode(Packet),
#can_pkt{id=Can_id, data=Can_data}=P,
Recv_fun(P).
-spec decode(<<_:64,_:_*8>>) ->
#can_pkt{id::<<_:11>>,data::binary(),timestamp::char()}.
decode(<<_:12, Len:4, Timestamp:16,
0:3, Id:11/bitstring, 0:18,
Data:Len/binary, _/binary>>) ->
#can_pkt{id=Id, data=Data, timestamp=Timestamp}.
I get the following error:
$ dialyzer --src -c codec_can.erl
Checking whether the PLT /home/peer/.dialyzer_plt is up-to-date... yes
(Continue reading)
RSS Feed