[erlang-questions] code:load_file/1

Torbjorn Tornkvist <>
Sun Jul 1 18:29:11 CEST 2007


In R11B-4 it seems like code:load_file/1 doesn't like to get
a string as input. I guess I have myself to blame since the
man-page says it wants an atom. However, I think it is a little
too harsh to crash somewhere down deep in the hipe code:
---------------------
Native loading of 
/home/tobbe/junk/../eblog/lib/site/ebin/eblog_SUITE.beam failed: {'EXIT',
  {function_clause,
   [{hipe_unified_loader,
     load_native_code,
     ["eblog_SUITE",
      <<70,79,.....the whole binary comes here...
----------------------

In R11B-2, the following works nicely:

  code:load_file("eblog_SUITE").  % crash in R11B-4
  code:load_file(eblog_SUITE).

Cheers, Tobbe




More information about the erlang-questions mailing list