Uploaded image for project: 'Erlang/OTP'
  1. Erlang/OTP
  2. ERL-1443

Compilation error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 24.0
    • Fix Version/s: 24.0
    • Component/s: compiler
    • Labels:
      None

      Description

      Compilation error when compiling couchdb-erlfdb project.

       

      ===> Compiling _build/default/lib/erlfdb/src/erlfdb_tuple.erl failed                  
      erlfdb_tuple: function dec_float/1+13:                                                  
        Internal consistency check failed - please report this bug. 
        Instruction: {put_tuple2,{x,0},{list,[{atom,bad_generator},{x,0}]}} 
        Error:       {match_context,{x,0}}: 
       
      escript: exception error: undefined function erlang:get_stacktrace/0 
        in function  rebar3:main/1 (/home/runner/work/rebar3/rebar3/src/rebar3.erl, line 72) 
        in call from escript:run/2 (escript.erl, line 749) 
        in call from escript:start/1 (escript.erl, line 277) 
        in call from init:start_em/1  
        in call from init:do_boot/3 

       

      I extracted the code which is causing the error.

      Issue can be isolated to following code:

       

      -module(tc). 
       
      -export([dec_float/1]). 
       
      dec_float(<<0:1, _:7, _/binary>> = Bin) -> 
          ret(<< <<(B bxor 16#FF)>> || <<B>> <= Bin >>); 
      dec_float(<<Byte:8/integer, Rest/binary>>) -> 
          ret(<<(Byte bxor 16#80):8/integer, Rest/binary>>). 
       
      ret(Bin) -> 
        {ok, Bin}.
       
      Erlang/OTP 24 [DEVELOPMENT] [erts-11.1.3] [source-508ccbf509] [64-bit] [smp:6:6] [ds:6:6:10] [async-threads:1] [jit]
      
      
      tc: function dec_float/1+13:
        Internal consistency check failed - please report this bug.
        Instruction: {put_tuple2,{x,0},{list,[{atom,bad_generator},{x,1}]}}
        Error:       {match_context,{x,1}}: 
      

        Attachments

          Activity

            People

            Assignee:
            bjorn Björn Gustavsson
            Reporter:
            leonardb1 leonardb
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: