Error reported when using pmap

Bengt Kleberg <>
Wed Aug 30 10:52:47 CEST 2006


On 2006-08-30 10:22, Arbow wrote:
...deleted
> In file testmain.erl:
> -module(testmain).
> -export([test3/0]).
> 
> test3() ->
>     MyList = [1,2,3,4,5,6,7,8,9,10],
>     lists:map(fun(I) -> I*2 end, MyList).
> 
> when I execute " testmain:test3(). ", I get errors:
> 
> =ERROR REPORT==== 30-Aug-2006::16:21:51 ===
> Error in process <0.36.0> on node '' with exit 
> value: 
> {undef,[{testmain,test3,[]},{erl_eval,do_apply,5},{shell,exprs,6},{shell,eval_loop,3}]}
> 
> ** exited: {undef,[{testmain,test3,[]},
>                    {erl_eval,do_apply,5},
>                    {shell,exprs,6},
>                    {shell,eval_loop,3}]} **
> 
> Anyone could help me? Thanks.

this might narrow the search field a little:

1> c(testmain).
{ok,testmain}

2> l(testmain).

=ERROR REPORT==== 30-Aug-2006::10:46:24 ===
beam/beam_load.c(1097): Error loading module testmain:
   use of opcode 125; this emulator supports only up to 115

{error,badfile}
=ERROR REPORT==== 30-Aug-2006::10:46:24 ===
Loading of /home/eleberg/testmain.beam failed: badfile


ie, the problem seems to be unrelated to pmap and erlc.


bengt
-- 
    EPO guidelines 1978: "If the contribution to the known art resides
    solely in a computer program then the subject matter is not
    patentable in whatever manner it may be presented in the claims."



More information about the erlang-questions mailing list