[erlang-bugs] release_handler:downgrade_app/{2,3} bug

Paul Mineiro paul-trapexit@REDACTED
Fri Feb 22 20:46:33 CET 2008


hi.

i found a bug wherein release_handler:downgrade_app/{2,3} dies on a
{ delete_module, M } directive because the module is not loaded.
i'm using r11b-5 (see below).

i've attached a pair of example application directories and an appup
script which reproduces the problem.

cheers,

-- p

pmineiro@REDACTED% erl                        .../erlrc/tests
Erlang (BEAM) emulator version 5.5.5 [source] [async-threads:0] [kernel-poll:false]

Eshell V5.5.5  (abort with ^G)
1> release_handler:module_info ().
[{exports,[{start_link,0},
           {unpack_release,1},
           {check_install_release,1},
           {install_release,1},
           {install_release,2},
           {make_permanent,1},
           {reboot_old_release,1},
           {remove_release,1},
           {set_unpacked,2},
           {set_removed,1},
           {install_file,2},
           {which_releases,0},
           {create_RELEASES,1},
           {create_RELEASES,2},
           {create_RELEASES,4},
           {upgrade_app,2},
           {downgrade_app,2},
           {downgrade_app,3},
           {upgrade_script,2},
           {downgrade_script,3},
           {eval_appup_script,4},
           {init,1},
           {handle_call,3},
           {handle_info,2},
           {terminate,...},
           {...}|...]},
 {imports,[]},
 {attributes,[{vsn,[128272450991370424312712223513989476267]},
              {behaviour,[gen_server]}]},
 {compile,[{options,[{cwd,"/ldisk/daily_build/otp_prebuild_r11b.2007-06-11_19/otp_src_R11B-5/lib/sasl/src"},
                     {outdir,"/ldisk/daily_build/otp_prebuild_r11b.2007-06-11_19/otp_src_R11B-5/lib/sasl/src/../ebin"},
                     {i,"/ldisk/daily_build/otp_prebuild_r11b.2007-06-11_19/otp_src_R11B-5/lib/sasl/src/../../stdlib/include"},
                     warn_obsolete_guard,
                     debug_info]},
           {version,"4.4.5"},
           {time,{2007,6,11,17,49,31}},
           {source,"/ldisk/daily_build/otp_prebuild_r11b.2007-06-11_19/otp_src_R11B-5/lib/sasl/src/release_handler.erl"}]}]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: downgrade_app.bug.tgz
Type: application/x-gtar
Size: 2681 bytes
Desc: 
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20080222/c0320b92/attachment.gtar>


More information about the erlang-bugs mailing list