Skip to content
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-pdbutil] Crash while printing symbols for PDB generated by MS Visual Studio 2019. #55214

Open
CarlosAlbertoEnciso opened this issue May 1, 2022 · 2 comments
Labels
bug Indicates an unexpected problem or unintended behavior debuginfo llvm:crash llvm-tools All llvm tools that do not have corresponding tag

Comments

@CarlosAlbertoEnciso
Copy link
Member

CarlosAlbertoEnciso commented May 1, 2022

Using the following command line:
llvm-pdbutil dump --symbols msvc-codeview-pdb.pdb
it causes a crash in llvm/lib/DebugInfo/PDB/Native/DbiModuleList.cpp

uint32_t DbiModuleList::getModuleCount() const {
  return FileInfoHeader->NumModules;
}

As FileInfoHeader is null.

However llvm-pdbutil dump --symbols msvc-codeview-pdb.o is fine.

The attached reproducible files were generate by MS Visual Studio 2019 (Version 16.11.13)
crash-llvm-pdbutil.zip

The object files were generated using the command line:
cl.exe /nologo /EHsc /Od /Zi /Fomsvc-codeview-pdb.o /Fdmsvc-codeview-pdb.pdb /c test.cpp

@CarlosAlbertoEnciso CarlosAlbertoEnciso added bug Indicates an unexpected problem or unintended behavior llvm-tools All llvm tools that do not have corresponding tag debuginfo llvm:crash labels May 1, 2022
@llvmbot
Copy link
Collaborator

llvmbot commented May 1, 2022

@llvm/issue-subscribers-bug

@llvmbot
Copy link
Collaborator

llvmbot commented May 1, 2022

@llvm/issue-subscribers-debuginfo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior debuginfo llvm:crash llvm-tools All llvm tools that do not have corresponding tag
Projects
None yet
Development

No branches or pull requests

2 participants