From b6ba1ac9aa800e01e2235c2b8737ad4670b0a655 Mon Sep 17 00:00:00 2001 From: Yasumasa Suenaga Date: Thu, 13 Nov 2025 04:29:22 +0000 Subject: [PATCH] 8371093: Assert "section header string table should be loaded" failed on debug VM Reviewed-by: phubner, jsjolen --- src/hotspot/share/utilities/decoder_elf.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/hotspot/share/utilities/decoder_elf.cpp b/src/hotspot/share/utilities/decoder_elf.cpp index 962b572db64..127748b32ed 100644 --- a/src/hotspot/share/utilities/decoder_elf.cpp +++ b/src/hotspot/share/utilities/decoder_elf.cpp @@ -114,6 +114,11 @@ ElfFile* ElfDecoder::get_elf_file(const char* filepath) { file = new (std::nothrow)ElfFile(filepath); if (file != nullptr) { + _decoder_status = file->get_status(); + if (has_error()) { + delete file; + return nullptr; + } if (_opened_elf_files != nullptr) { file->set_next(_opened_elf_files); }