alex
October 4, 2025, 9:35am
1
hi
i am getting “Failed to calculate struct member alignment“ when loading a certain PDB. the PDB is kinda private so ill send it (+ exe) to anyone interested.
ida keeps parsing and i wonder what exactly am i missing when this error is encountered.
Hi,
Thanks for reporting this. We understand your concerns, and, as always, we’d like to help - but it’s quite hard for us to determine what’s happening without a sample (e.g., shared through the support channel) or further examples.
alex
October 9, 2025, 8:35am
3
done; sent through help center.
but i was hoping to get the gist of what is going to be misaligned according to the error.
opened 11:03AM - 09 Sep 25 UTC
Can [my modified version of the pdb plugin](https://github.com/sonyps5201314/pdb… .git) be merged into the official repository? It provides many bug fixes and feature enhancements. For example, when using the current official version of the pdb plugin, `ida -Opdb:msdia ConsoleApplication1.exe` will not display local variable names within the function, as shown below:
source code build with `vs2022 x86 debug`:
```cpp
#include <string>
int main()
{
int aaa = 1111;
float bbb = 2.345;
std::string ccc = "test";
return aaa + bbb + ccc.length();
}
```
the original pdb plugin:
<img width="1345" height="1423" alt="Image" src="https://github.com/user-attachments/assets/a872b346-8455-4d81-93a4-f628e0aafa89" />
After replacing it with the `pdb.dll` compiled from my warehouse:
<img width="1386" height="1347" alt="Image" src="https://github.com/user-attachments/assets/9ae79a3b-3df4-431a-9bfc-3eb80867ed61" />
Reproduction code and exe and pdb:
[ConsoleApplication1.zip](https://github.com/user-attachments/files/22232279/ConsoleApplication1.zip)
Other fixes and enhancements can be viewed via [the git commit log](https://github.com/sonyps5201314/pdb/commits/master/) (Through the Chrome browser's built-in translation function), or I can give a rough description of the changes if needed.
Maybe the file attached in this link can solve your problem.
1 Like