question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to Parse PDB (Failing validation)

See original GitHub issue

Describe the bug Attempting to load any PDB files results in the following exception:

PDB Execution failure of pdb.exe.
This was likely caused by severe execution failure which can occur if executed
on an unsupported platform. It may be neccessary to rebuild the PDB executable
for your platform (see Ghidra/Features/PDB/src).
ghidra.app.util.bin.format.pdb.PdbException: PDB Execution failure of pdb.exe.
This was likely caused by severe execution failure which can occur if executed
on an unsupported platform. It may be neccessary to rebuild the PDB executable
for your platform (see Ghidra/Features/PDB/src).
	at ghidra.app.util.bin.format.pdb.PdbParser.verifyPdbSignature(PdbParser.java:576)
	at ghidra.app.util.bin.format.pdb.PdbParser.processPdbContents(PdbParser.java:554)
	at ghidra.app.util.bin.format.pdb.PdbParser.parse(PdbParser.java:147)
	at pdb.LoadPdbTask$1.analysisWorkerCallback(LoadPdbTask.java:66)
	at ghidra.app.plugin.core.analysis.AutoAnalysisManager$AnalysisWorkerCommand.applyTo(AutoAnalysisManager.java:1677)
	at ghidra.app.plugin.core.analysis.AutoAnalysisManager$AnalysisTaskWrapper.run(AutoAnalysisManager.java:685)
	at ghidra.app.plugin.core.analysis.AutoAnalysisManager.startAnalysis(AutoAnalysisManager.java:785)
	at ghidra.app.plugin.core.analysis.AutoAnalysisManager.startAnalysis(AutoAnalysisManager.java:664)
	at ghidra.app.plugin.core.analysis.AutoAnalysisManager.startAnalysis(AutoAnalysisManager.java:629)
	at ghidra.app.plugin.core.analysis.AnalysisBackgroundCommand.applyTo(AnalysisBackgroundCommand.java:62)
	at ghidra.framework.plugintool.mgr.BackgroundCommandTask.run(BackgroundCommandTask.java:101)
	at ghidra.framework.plugintool.mgr.ToolTaskManager.run(ToolTaskManager.java:315)
	at java.base/java.lang.Thread.run(Thread.java:835)

---------------------------------------------------
Build Date: 2019-Aug-29 0928 EDT
Ghidra Version: 9.1
Java Home: C:\Program Files\Java\jdk-12.0.2
JVM Version: Oracle Corporation 12.0.2
OS: Windows 10 10.0 amd64
Workstation: DESKTOP-SSR8888

To Reproduce Steps to reproduce the behavior:

  1. Load any PDB file.

Attachments InheritanceTests.zip The source for the executable in the attachment is located here

Additional context Running pdb.exe directly and using createPdbXmlFiles.bat works without issue. Using the debugger I have stepped through to PDBParser.java line 514. The String[] cmd that is being passed to pdb.exe is the following:

cmd[0]: "C:\Users\astre\Documents\ghidra_9.1_DEV\Ghidra\Features\PDB\os\win64\pdb.exe"
cmd[1]: "C:\Users\astre\Documents\cpp\visual_studio\x64\Debug\main.pdb"
cmd[2]: "4d2d0e81-7184-44b2-b42d-0071b129ae9c"
cmd[3]: "00000001"

when running pdb.exe with those arguments it says “WARNING PDB signature does not match.” however removing cmd[3] allows it to parse the file without an issue.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
ghizardcommented, Sep 4, 2019

It might take a little to propagate into master because of recent changes in building and testing of this native code, but I have a branch to fix this issue and a PDB help issue.

1reaction
ghizardcommented, Sep 4, 2019

@astrelsky Thanks for the report back. Appreciate your drilling in on this. I’ve been tied up from the beginning of the day, so just going to start looking now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Valid Error Codes - NIPR
User has insufficient privileges. Failed field format validation. Transaction was invalid; validation or business rule error. System directory does not exist.
Read more >
PDB file error (issue when parsing PDB file) - BioExcel
Issue when parsing the PDB file at line 9 . X,Y,Z coordinates, occupancy, and temperature (b) factors must be decimal numbers. I got...
Read more >
extract_pdb application parse error with silent file
Hi,. I am getting the following error message when I try to extract pdb files from a silent file (output from ligand docking...
Read more >
FAQ - wwPDB
Why did my file upload fail? Some possible reasons for the upload failure include: Uploaded file has incorrect file type selected (make sure...
Read more >
Resolving Prescan Warnings and Errors - Veracode Docs
Attempting to analyze this module may cause the analysis to fail. If it is a primary module, try to recompile the module for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found