Currently _multi_prog_parse has the following code: free(one_rank); hostlist_destroy(hl); error("%s: invalid rank id %s", plugin_type, one_rank); This code can cause a crash by trying to print one_rank after it has been freed. Bug identified by scan-build <https://clang-analyzer.llvm.org/scan-build.html>
Created attachment 17307 [details] Proposed patch The attached patch fixes the problem.
Comment on attachment 17307 [details] Proposed patch commit 616cfee01bcd6d0b578e22c3de78123b4e73e2cb Author: Alex Henrie <alexhenrie24@gmail.com> AuthorDate: Thu Dec 31 14:27:45 2020 -0700 mpi/cray_shasta - fix use after free in _multi_prog_parse(). Bug 10530.
Thanks Alex. This will be in 20.11.3 when released. - Tim
Thank you!