Bug in hipe?

Per Gustafsson <>
Thu Apr 14 14:43:54 CEST 2005


Hi

This is a bug in HiPE. I believe that it is due to a use of a signed 
comparison that is used instead of an unsigned comparison. If this is 
the case I will post a patch soon.

Javier París Fernández wrote:

>Hi,
>
>When working with very big binaries (something like 256MB) the bit
>syntax seems to fail when compiling with hipe:
>
>-module(foo).
>
>-export([start/0]).
>
>start() ->
>        {ok, B} = file:read_file("256Mb_File"),
>	<<Start:1500/binary,Rem/binary>> = B.
>
>Compiling this with beam works, but with hipe it fails during
>execution with the following error:
>
>1> foo:start().
>** exited:{{badmatch,<<97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,...>>},
>           []} **
>
>=ERROR REPORT==== 14-Apr-2005::13:59:28 ===
>Error in process <0.30.0> with exit value: {{badmatch,<<268435456 bytes>>},[]}
>
>Is this a known bug or limitation when working with binaries and hipe?
>
>Regards.
>
>  
>




More information about the erlang-questions mailing list