[erlang-questions] Big band playing

Matthias Lang matthias@REDACTED
Fri Dec 21 00:26:38 CET 2018


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

Matthias



More information about the erlang-questions mailing list