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.

ArgumentNullException reading PDB symbols

See original GitHub issue

Extracted from issue https://github.com/xamarin/xamarin-macios/issues/12306

The exception occurs when processing System.Void Abp.Auditing.AuditingInterceptor/<InternalInterceptAsynchronous>d__61::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

Abp.zip

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jbevaincommented, Aug 9, 2021

Thanks for filing this and for the repro, I’ll have a look pronto. Merci!

0reactions
spouliotcommented, Oct 31, 2022

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…

Read more comments on GitHub >

github_iconTop 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 >

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