[erlang-bugs] delete_module in appup

Paul Guyot pguyot@REDACTED
Mon Mar 16 17:07:09 CET 2009


Hello,

There seems to be a bug in the appup handling. delete_module appup  
instructions fail if the module was not previously loaded (with an  
interactive code server). The stack trace is as follows:

{error,{'EXIT',{{badmatch,{error,beam_lib,
                                   
{file_error,"non_existing.beam",enoent}}},
                 [{release_handler_1,get_vsn,1},
                  {release_handler_1,add_old_vsn,2},
                  {release_handler_1,eval,2},
                  {lists,foldl,3},
                  {release_handler_1,eval_script,4},
                  {release_handler,eval_script,4},
                  {release_handler,do_install_release,3},
                  {release_handler,handle_call,3}]}}}

(this is with OTP R12B4).

The workaround is to add an apply tuple to the appup recipe to make  
sure the module is loaded (for example by calling module_info).

Regards,

Paul




More information about the erlang-bugs mailing list