You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Malformed PDB file for a few runtime tests on Mono AOT after ilasm bump #46124
After the ilasm bump in #45387 a few runtime tests abort on Mono when AOTing with the following message:
Mono Ahead of Time compiler - compiling assembly /__w/1/s/artifacts/tests/coreclr/Linux.x64.Release/JIT/Generics/ConstrainedCall/vt2_il_r/vt2_il_r.dll
AOTID 09753CD7-3621-A83E-77F7-915CEF440934
Method idx 10 is greater than number of rows (10) in PPDB MethodDebugInformation table, for method test:.ctor in '/__w/1/s/artifacts/tests/coreclr/Linux.x64.Release/JIT/Generics/ConstrainedCall/vt2_il_r/vt2_il_r.pdb'. Likely a malformed PDB file.
@ivanpovazan Unfortunately, the fix does not seem to be complete. Would you mind taking another look?
Here is how you can reproduce the problem (substitute ... with paths on your system):
git clone https://github.com/dotnet/symreader-converter
cd symreader-converter
rem This will build pdb2xml tool used below
build.cmd
rem run this in dotnet/runtime clone
cd src\tests\JIT\Generics\ConstrainedCall
...\ilasm /DEBUG vt2.il
...\symreader-converter\artifacts\bin\Pdb2Xml\Debug\net472\Pdb2Xml.exe vt2.exe
The Pdb2Xml.exe tool will fail with Invalid compressed integer. error. The problem happens at this callstack:
Activity
Dotnet-GitSync-Bot commentedon Dec 16, 2020
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.
Disable tests that fail on Mono due to #46124
jkotas commentedon Dec 16, 2020
Yes, these PDBs are corrupted.
I have used the Pdb2Xml tool from https://github.com/dotnet/symreader-converter to verify it.
For example, the dump for vt2 test above includes:
However, the
Mainmethod is not at lines 282-284 in the sources. The actual method at lines 282-284 in the sources is test::.ctor.jkotas commentedon Dec 16, 2020
@ivanpovazan Are you interested in this bug?
[master] Update dependencies from dotnet/runtime (#45387)
ivanpovazan commentedon Dec 17, 2020
@jkotas Sure, I can take a look later today
Fix malformed portable PDB generation for methods with empty body (do…
Adding a test case for ilasm which verifies that the MethodDef and Me…
Fix for ilasm generation of malformed PDB files due to empty body me…
jkotas commentedon Dec 20, 2020
Keeping this open to re-enable disabled test once the ilasm is updated in the toolset.
1 remaining item
jkotas commentedon Dec 20, 2020
@ivanpovazan Unfortunately, the fix does not seem to be complete. Would you mind taking another look?
Here is how you can reproduce the problem (substitute
...with paths on your system):The Pdb2Xml.exe tool will fail with
Invalid compressed integer.error. The problem happens at this callstack:ivanpovazan commentedon Dec 20, 2020
@jkotas ah too bad.. I will take a look tomorrow.
Thanks for the explanation of how to reproduce the problem.
Fix for ilasm generating invalid blob heap index for empty body metho…
Fix for ilasm generating invalid blob heap index for empty body metho…