New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LLVM ERROR: out of memory #59434
Comments
@llvm/issue-subscribers-lld-coff |
I wonder why it would run out of memory there at that point - is there something in the environment that makes it construct large amounts of data within But anyway, most of that autodetection could (and probably should) be skipped entirely if running in mingw mode (which is the case here). |
The problem is likely that @grmblfrz's setup is such that the substring bool findVCToolChainViaRegistry(std::string &Path, ToolsetLayout &VSLayout) {
std::string VSInstallPath;
if (getSystemRegistryString(R"(SOFTWARE\Microsoft\VisualStudio\$VERSION)",
"InstallDir", VSInstallPath, nullptr) ||
getSystemRegistryString(R"(SOFTWARE\Microsoft\VCExpress\$VERSION)",
"InstallDir", VSInstallPath, nullptr)) {
if (!VSInstallPath.empty()) {
SmallString<256> VCPath(StringRef(VSInstallPath.c_str(),
VSInstallPath.find(R"(\Common7\IDE)")));
sys::path::append(VCPath, "VC");
Path = std::string(VCPath.str());
VSLayout = ToolsetLayout::OlderVS;
return true;
}
}
return false;
} If the I think there should be at least a check if the |
Review: https://reviews.llvm.org/D140019 |
This avoids potential memory allocation failures, if VSInstallPath is not empty, but also does not contain the string "\Common7\IDE". Fixes: #59434 Reviewed By: mstorsjo Differential Revision: https://reviews.llvm.org/D140019
This avoids potential memory allocation failures, if VSInstallPath is not empty, but also does not contain the string "\Common7\IDE". Fixes: llvm#59434 Reviewed By: mstorsjo Differential Revision: https://reviews.llvm.org/D140019
This avoids potential memory allocation failures, if VSInstallPath is not empty, but also does not contain the string "\Common7\IDE". Fixes: llvm#59434 Reviewed By: mstorsjo Differential Revision: https://reviews.llvm.org/D140019
windows 10 with latest patchset. LLVM 15.0.5
The text was updated successfully, but these errors were encountered: