[erlang-questions] Big band playing

Sverker Eriksson sverker@REDACTED
Fri Dec 21 12:22:24 CET 2018


On fre, 2018-12-21 at 00:26 +0100, Matthias Lang wrote:
> On 15. December 2018, Kostis Sagonas wrote:
> 
> > 
> > I was able to reproduce this on an old R12 version that I still have around:
> > 
> > Erlang (BEAM) emulator version 5.6.5 [source] [64-bit] [smp:64]
> > [async-threads:0] [hipe] [kernel-poll:false]
> > 
> > Eshell V5.6.5  (abort with ^G)
> > 1> (-1299341865233935136534120785510400) band (-1).
> > -1299341865233953583278194495062016
> > 
> > I would not be surprised if this bug existed even before Erlang/OTP became
> > open source.
> I can't go back that far, but I can get closer.
> 
> We have a rack with a reference system for every model we've sold.
> The oldest is a big-endian 50 MHz PPC from 2002. Re-flashing that with
> the oldest firmware I can easily install:
> 
>   Eshell V5.1.2  (abort with ^G)
>   1> init:script_id().
>   {"OTP  APN 181 01","R8B"}
>   2> (-1299341865233935136534120785510400) band (-1).
>   -1299341865233935136534120785575936
>   % -0x4010000000000000000000010000
> 
> On newer (relatively) hardware (a little-endian 32-bit ARM):
> 
>   Erlang R14B03 (erts-5.8.4) [source] [rq:1] [async-threads:0] [kernel-
> poll:false]
>   1> (-1299341865233935136534120785510400) band (-1).
>   -1299341865233935136534125080477696
>   % -0x4010000000000000000100000000
> 
> Same Erlang version but on 64-bit Intel hardware:
> 
>   Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:16:16] [rq:16] [async-
> threads:0] [hipe] [kernel-poll:false]
> 
>   Eshell V5.8.4  (abort with ^G)
>   1> (-1299341865233935136534120785510400) band (-1).
>   -1299341865233953583278194495062016
>   % -0x4010000000010000000000000000
> 

And now the Big Buggy Band finally gone silent in OTP-21.2.1:

Erlang/OTP 21 [erts-10.2.1] [source] [64-bit] [smp:24:24] [ds:24:24:10] [async-
threads:1] [hipe]

Eshell V10.2.1  (abort with ^G)
1> (-1299341865233935136534120785510400) band (-1).
-1299341865233935136534120785510400


/Sverker




More information about the erlang-questions mailing list