Hey,
I'm not sure I understand what's HasBody flag for methods. How can I check the
assumption?
The assembly that crashed Gendarme includes 'native' code with ".custom" marks
on methods. ILDASM show no disassemblies for them. For ex:
.class interface public abstract auto ansi import P2ClientGateMTA.IP2BLMessage
{
.custom instance void
[mscorlib]System.Runtime.InteropServices.TypeIdentifierAttribute::.ctor() = (
01 00 00 00 )
.custom instance void
[mscorlib]System.Runtime.InteropServices.GuidAttribute::.ctor(string) = ( 01 00
24 41 38 35 42 43 37 41 33 2D 39 43 45 34 // ..$A85BC7A3-9CE4
2D 34 32 39 45 2D 41 33 37 30 2D 35 38 37 35 44 //
-429E-A370-5875D
45 46 45 42 33 45 39 00 00 ) // EFEB3E9..
.custom instance void
[mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() =
( 01 00 00 00 )
} // end of class P2ClientGateMTA.IP2BLMessage
--
Best regards,
Alik Kurdyukov
On Monday, February 13, 2012 at 5:09 PM, Jb Evain wrote:
> Hey,
>
> On Mon, Jan 2, 2012 at 4:50 AM, vishnu <[email protected]
> (mailto:[email protected])> wrote:
> > [INFO] [11:05:47.246] An uncaught exception occured. Please fill a bug
> > report at https://bugzilla.novell.com/
> > [INFO] [11:05:47.246] Stack trace: System.ArgumentOutOfRangeException:
> > Specified argument was out of the range of valid values.
> > [INFO] [11:05:47.246] at
> > Mono.Collections.Generic.Collection`1.get_Item(Int32 index)
> > [INFO] [11:05:47.246] at
> > Gendarme.Framework.Symbols.ExtractFirst(MethodDefinition method)
> > [INFO] [11:05:47.246] at
> > Gendarme.Framework.Symbols.ExtractFirst(TypeDefinition type)
> > [INFO] [11:05:47.246] at
> > Gendarme.Framework.Symbols.GetSource(Defect defect)
> > [INFO] [11:05:47.246] at Gendarme.Framework.Defect.get_Source()
> > [INFO] [11:05:47.246] at
> >
>
>
> This stack trace seems to indicate that you have a method with the
> HasBody flag, but which doesn't have any Instruction.
>
> Could you verify that this assumption is true?
>
> I'll fix gendarme to not crash on this anyway.
>
> Jb
>
> --
> You received this message because you are subscribed to the Google Groups
> "Gendarme" group.
> To post to this group, send email to [email protected]
> (mailto:[email protected]).
> To unsubscribe from this group, send email to
> [email protected]
> (mailto:[email protected]).
> For more options, visit this group at
> http://groups.google.com/group/gendarme?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Gendarme" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/gendarme?hl=en.