ArgumentNullException reading PDB symbols
See original GitHub issueExtracted from issue https://github.com/xamarin/xamarin-macios/issues/12306
The exception occurs when processing System.Void Abp.Auditing.AuditingInterceptor/<InternalInterceptAsynchronous>d__6
1::MoveNext()`
This is not something the SDK can “catch-and-continue”.
It’s possible this is a corrupted PDB but it happened on more than one version (6.4 and 6.3.1) of the ABP
package.
It also happens without Xamarin.iOS using Cecil 0.11.4 (have not tried any older version, or main
branch).
An unhandled exception of type 'System.ArgumentNullException' occurred in Mono.Cecil.dll: 'Value cannot be null.'
at Mono.Cecil.Cil.SequencePoint..ctor(Int32 offset, Document document)
at Mono.Cecil.SignatureReader.ReadSequencePoints(Document document)
at Mono.Cecil.MetadataReader.ReadSequencePoints(MethodDefinition method)
at Mono.Cecil.Cil.PortablePdbReader.ReadSequencePoints(MethodDebugInformation method_info)
at Mono.Cecil.Cil.PortablePdbReader.Read(MethodDefinition method)
at Mono.Cecil.Cil.CodeReader.ReadMethodBody()
at Mono.Cecil.Cil.CodeReader.ReadMethodBody(MethodDefinition method)
at Mono.Cecil.MetadataReader.ReadMethodBody(MethodDefinition method)
at Mono.Cecil.MethodDefinition.<>c.<get_Body>b__41_0(MethodDefinition method, MetadataReader reader)
at Mono.Cecil.ModuleDefinition.Read[TItem,TRet](TRet& variable, TItem item, Func`3 read)
at Mono.Cecil.MethodDefinition.get_Body()
at <Program>$.<<Main>$>g__Process|0_0(TypeDefinition type) in /Users/poupou/git/spouliot/dotnet-tools/cecil-pdb-check/Program.cs:line 29
at <Program>$.<<Main>$>g__Process|0_0(TypeDefinition type) in /Users/poupou/git/spouliot/dotnet-tools/cecil-pdb-check/Program.cs:line 25
at <Program>$.<Main>$(String[] args) in /Users/poupou/git/spouliot/dotnet-tools/cecil-pdb-check/Program.cs:line 17
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Which tool to use to open .pdb (symbol) files?
I have .pdb file, downloaded from MS symbols server. I need to fetch list of symbols (functions, arguments, anything it has).
Read more >PDBSTRIPPED (Strip Private Symbols)
A user-specified name for the stripped program database (PDB) that the linker creates. Remarks. The /PDBSTRIPPED option creates a second program ...
Read more >Troubleshoot remote debugging - Visual Studio
The debugger only loads symbols (.pdb files) that exactly match the .pdb files created when an app was built (that is, the original...
Read more >Using PDB files and symbols to debug your application
With the help of PDB files, you are able to recover the source code as it was before compilation from the bits and...
Read more >Load IE symbols in Immunity Debugger
1 Answer 1 · You may have misconfigured the symbol path. · In case of local symbol, the PDB file present on the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for filing this and for the repro, I’ll have a look pronto. Merci!
https://github.com/icsharpcode/ILSpy/issues/2823 , while a different issue (and stack trace) that happens after ILSpy reprocessed the .pdb file, leads to the same issue.
A bit tragic considering that the app is not actually linked (but reuse the linker pipeline) so the PDB should not even be loaded…