A bug.
Pierpaolo BERNARDI
bernardp@REDACTED
Wed Apr 16 13:56:16 CEST 2003
Hello,
this looks like a serious bug.
I'm using OTP R9B on windows.
Given this function:
instr_forms() ->
[{add,
"Add",
[il_UISA],
if_XO,
[field_D,field_A,field_B,field_OE,field_Rc],
%% 1111111111222222222233
%%01234567890123456789012345678901
2#01111100000000000000001000010100
},
...
%%% 347 tuples in total, all similar to the first one.
].
The list returned is corrupted. The last 5 items are not there
and there are random characters:
59> hd(lists:reverse(risk_bug_0:instr_forms())).
115
The same list, if put in a data file and read from there is
read fine, looks like the problem is not in the parser.
The source which reproduces this is available here:
http://space.virgilio.it/romebern/ppcbug.tgz
As a secondary issue, compiling this simple function takes about
10 minutes.
Before someone suggests it: yes, putting the list in a file and reading
it from there would be better. I have already done this.
Cheers
P.
More information about the erlang-questions
mailing list