[llvm] [llvm-symbolizer] Recognize AIX big archive (PR #150401)

via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 28 10:36:54 PDT 2025


================
@@ -557,57 +558,149 @@ LLVMSymbolizer::getOrCreateObjectPair(const std::string &Path,
   if (!DbgObj)
     DbgObj = Obj;
   ObjectPair Res = std::make_pair(Obj, DbgObj);
-  std::string DbgObjPath = DbgObj->getFileName().str();
   auto Pair =
       ObjectPairForPathArch.emplace(std::make_pair(Path, ArchName), Res);
-  BinaryForPath.find(DbgObjPath)->second.pushEvictor([this, I = Pair.first]() {
-    ObjectPairForPathArch.erase(I);
-  });
+  std::string DbgObjPath = DbgObj->getFileName().str();
+  auto BinIter = BinaryForPath.find(DbgObjPath);
+  if (BinIter != BinaryForPath.end()) {
----------------
midhuncodes7 wrote:

reorganized code such that now:
`BinaryForPath` will have "(t.a(t.o))" which matches with the ModuleName. 
The `DbgObjPath` is updated to lookup for "(t.a(t.o))" in the `BinaryForPath `

This way the lookup succeeds without returning `.end()` and hence does not crash when `pushEvictor` is called


https://github.com/llvm/llvm-project/pull/150401


More information about the llvm-commits mailing list