internal error in core_fold_module

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

internal error in core_fold_module

Russell Brown-3
Hi,
I’ve never seen this error before:

Function: maybe_new_key_epoch/4
Compiling /Users/russell/dev/e/bet365/riak/deps/riak_kv/src/riak_kv_vnode.erl failed:
/Users/russell/dev/e/bet365/riak/deps/riak_kv/src/riak_kv_vnode.erl:none: internal error in core_fold_module;
crash reason: {function_clause,
                  [{sys_core_fold,will_match_list,
                       [[],
                        [{c_var,
                             [2621,{file,"src/riak_kv_vnode.erl"}],
                             'LocalEpoch'},
                         {c_var,
                             [2621,{file,"src/riak_kv_vnode.erl"}],
                             'LocalCntr'}],
                        yes],
                       [{file,"sys_core_fold.erl"},{line,1656}]},
                   {sys_core_fold,will_match_list,3,
                       [{file,"sys_core_fold.erl"},{line,1657}]},
                   {sys_core_fold,clauses_1,4,
                       [{file,"sys_core_fold.erl"},{line,1598}]},
                   {sys_core_fold,clauses_1,4,
                       [{file,"sys_core_fold.erl"},{line,1617}]},
                   {sys_core_fold,clauses,5,
        ERROR: compile failed while processing /Users/russell/dev/e/bet365/riak/deps/riak_kv: rebar_abort
               [{file,"sys_core_fold.erl"},{line,1575}]},
                   {sys_core_fold,expr,3,
                       [{file,"sys_core_fold.erl"},{line,309}]},
                   {sys_core_fold,opt_simple_let_1,4,
                       [{file,"sys_core_fold.erl"},{line,2380}]},
                   {sys_core_fold,clause,4,
                       [{file,"sys_core_fold.erl"},{line,1413}]}]}
make: *** [compile] Error 1

Googling comes up with http://erlang.org/pipermail/erlang-bugs/2014-March/004241.html

I’m on r16b02. Is the above output a result of the above bug report?

Case statement in question is

 {true, {undefined, 0, 0}} -> %% Not present locally
            %% Never acted on this object before and coordindating:
            %% new epoch.
            new_key_epoch(State);
 {_Coord, {LocalId, LocalEpoch, LocalCntr}} ->
          %% either not coordinating or coordinating and locally present

Many thanks in advance. I guess I could just write a less horrid case statement, but I’m curious now.

Cheers

Russell
_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions