[erlang-bugs] Crash running R12B-0 code in R12B-2

Robert Virding rvirding@REDACTED
Mon Apr 21 22:47:34 CEST 2008


I compile my LFE compiler written in straight Erlang on R12B-0 where it runs
as expected. However when I then run it on R12B-2 without recompiling it I
get the following error:

=ERROR REPORT==== 21-Apr-2008::22:41:23 ===
beam/beam_load.c(1897): Error loading function
sys_core_fold:bsm_could_match_binary/1: op bif1_body: bsd:
  not a BIF: import table index 56


=ERROR REPORT==== 21-Apr-2008::22:41:23 ===
Loading of c:/Documents and Settings/GameStudio/My Documents/Erlang/Lisp
Flavoured Erlang/sys_core_fold.beam failed: badfile
** exception error: no match of right hand side value
                    {error,
                     [{".",
                       [{none,compile,
                         {crash,core_fold_module,
                          {undef,
                           [{sys_core_fold,module,
                             [{c_module,[],
                               {c_literal,[1],test_let},
                               [{c_fname,[1],a,2},
                                {c_fname,[1],b,2},
                                {c_fname,[1],c,...},
                                {c_fname,[...],...},
                                {c_fname,...},
                                {...}|...],
                               [],
                               [{{c_fname,[...],...},{c_fun,...}},
                                {{c_fname,...},{...}},
                                {{...},...},
                                {...}|...]},
                              [binary,from_core,return_errors]]},
                            {compile,core_fold_module,1},
                            {compile,'-internal_comp/4-anonymous-1-',2},
                            {compile,fold_comp,3},
                            {compile,internal_comp,4},
                            {compile,internal,3}]}}}]}],
                     []}
     in function  lfe_comp:do_return/3

The second error report comes from my compiler because I don't check for
error returns. :-) My LFE compiler generates Core Erlang code.

Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20080421/404f6c7f/attachment.htm>


More information about the erlang-bugs mailing list