Bug 54617 - [linker][cecil] ArgumentNullException reading debug info
Summary: [linker][cecil] ArgumentNullException reading debug info
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools ()
Version: XI 10.10 (d15-2)
Hardware: PC Mac OS
: --- blocker
Target Milestone: 15.2
Assignee: Bugzilla
URL:
Depends on:
Blocks: 54409
  Show dependency tree
 
Reported: 2017-04-06 12:59 UTC by Sebastien Pouliot
Modified: 2017-04-06 18:21 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: Yes
Last known good build: current master/d15-2 (without bumping mono)

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NOT_REPRODUCIBLE

Description Sebastien Pouliot 2017-04-06 12:59:38 UTC
This is working on master and d15-2 right now - but it's blocking us from bumping mono / cecil to get newer fixes.

This seems to be a very recent Cecil regression.

d15-2 is using 6721da212df0625ec2132855121e5d231935b86b (works)
trying to bump 09ed62288e370667bc38b0cb6990c2b6ef631cfb (does not work)


MTOUCH: error MT2091: Inliner failed processing `System.Collections.Generic.IEnumerable`1<System.Security.Claims.Claim> System.Security.Principal.GenericIdentity::get_Claims()`.
		--- inner exception
		System.ArgumentNullException: Value cannot be null.
		Parameter name: instruction
		  at Mono.Cecil.Cil.InstructionOffset..ctor (Mono.Cecil.Cil.Instruction instruction) [0x00003] in <b22d6f30893e4ea6a072532d55fa744c>:0 
		  at Mono.Cecil.Cil.CodeReader.ReadStateMachineScope (Mono.Cecil.Cil.StateMachineScopeDebugInformation state_machine_scope) [0x00012] in <b22d6f30893e4ea6a072532d55fa744c>:0 
		  at Mono.Cecil.Cil.CodeReader.ReadCustomDebugInformations (Mono.Cecil.MethodDefinition method) [0x0001b] in <b22d6f30893e4ea6a072532d55fa744c>:0 
		  at Mono.Cecil.Cil.CodeReader.ReadDebugInfo () [0x0004d] in <b22d6f30893e4ea6a072532d55fa744c>:0 
		  at Mono.Cecil.Cil.CodeReader.ReadMethodBody () [0x00091] in <b22d6f30893e4ea6a072532d55fa744c>:0 
		  at Mono.Cecil.Cil.CodeReader.ReadMethodBody (Mono.Cecil.MethodDefinition method) [0x00014] in <b22d6f30893e4ea6a072532d55fa744c>:0 
		  at Mono.Cecil.MetadataReader.ReadMethodBody (Mono.Cecil.MethodDefinition method) [0x00000] in <b22d6f30893e4ea6a072532d55fa744c>:0 
		  at Mono.Cecil.MethodDefinition+<>c.<get_Body>b__41_0 (Mono.Cecil.MethodDefinition method, Mono.Cecil.MetadataReader reader) [0x00000] in <b22d6f30893e4ea6a072532d55fa744c>:0 
		  at Mono.Cecil.ModuleDefinition.Read[TItem,TRet] (TRet& variable, TItem item, System.Func`3[T1,T2,TResult] read) [0x00040] in <b22d6f30893e4ea6a072532d55fa744c>:0 
		  at Mono.Cecil.MethodDefinition.get_Body () [0x0002c] in <b22d6f30893e4ea6a072532d55fa744c>:0 
		  at Xamarin.Linker.Steps.InlinerSubStep.Process (Mono.Cecil.MethodDefinition method) [0x00013] in /Users/poupou/git/master/xamarin-macios/tools/linker/MonoTouch.Tuner/InlinerSubStep.cs:39 
		  at Xamarin.Linker.ExceptionalSubStep.ProcessMethod (Mono.Cecil.MethodDefinition method) [0x00004] in /Users/poupou/git/master/xamarin-macios/tools/linker/ExceptionalSubStep.cs:50 

from https://jenkins.mono-project.com/job/xamarin-macios-pr-builder/3430/Test_Report/
Comment 1 Jb Evain 2017-04-06 14:44:30 UTC
I'll take care of this today.
Comment 2 Jb Evain 2017-04-06 15:00:07 UTC
@Seb, could you attach the offending dll?
Comment 3 Sebastien Pouliot 2017-04-06 15:01:57 UTC
Hold on, a further bump (of mono and cecil) did not fail locally. Testing on bots now. 

I'll update the bug report afterward (and attach binaries if needed). Thanks :)
Comment 4 Sebastien Pouliot 2017-04-06 18:21:24 UTC
The issue is gone with the additional bump [1], closing

https://github.com/xamarin/xamarin-macios/commit/1b87264f5eb7e882db31a4d3f2f7a3fc389a4c66