[Mono-bugs] [Bug 872357] New: System.ArgumentOutOfRangeException - for confidence levels normal, normal+, high

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Apr 7 13:46:55 UTC 2014



           Summary: System.ArgumentOutOfRangeException - for confidence
                    levels normal, normal+, high
    Classification: Mono
           Product: Mono: Tools
           Version: 2.10.x
          Platform: x86-64
        OS/Version: Windows 7
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Gendarme
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: randygophr at yahoo.co.uk
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

Created an attachment (id=585339)
 --> (http://bugzilla.novell.com/attachment.cgi?id=585339)
sonar-runner -X output (including Gendarme error), .sln/.csproj,

User-Agent:       Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36

When running Gendarme from within a SonarQube sonar-runner analysis (SonarQube
Runner 2.3, SonarQube Server 4.2) of a C# project called 'Models', the analysis
fails with an System.ArgumentOutOfRangeException:

14:09:57.768 INFO  - Executing command:
--config D:\Projects\Unity\GFUnityDev\Models\.sonar\sonar.Gendarme --xml
D:\Projects\Unity\GFUnityDev\Models\.sonar\gendarme-report.xml --quiet
--confidence high --severity all
14:09:58.896 INFO  - 
14:09:58.897 INFO  - An uncaught exception occured. Please fill a bug report at
14:09:58.900 INFO  - Stack trace: System.ArgumentOutOfRangeException: El
argumento especificado est  fuera del intervalo de valores v lidos.
14:09:58.900 INFO  -    en Mono.Collections.Generic.Collection`1.get_Item(Int32
14:09:58.900 INFO  -    en
Mono.Cecil.Mdb.MdbReader.ReadLocalVariables(MethodEntry entry, MethodBody body,
Scope[] scopes)
14:09:58.900 INFO  -    en Mono.Cecil.Mdb.MdbReader.Read(MethodBody body,
InstructionMapper mapper)
14:09:58.900 INFO  -    en Mono.Cecil.Cil.CodeReader.ReadMethodBody()
14:09:58.900 INFO  -    en
Mono.Cecil.Cil.CodeReader.ReadMethodBody(MethodDefinition method)
14:09:58.900 INFO  -    en
Mono.Cecil.MethodDefinition.<get_Body>b__2(MethodDefinition method,
MetadataReader reader)
14:09:58.900 INFO  -    en Mono.Cecil.ModuleDefinition.Read[TItem,TRet](TItem
item, Func`3 read)
14:09:58.900 INFO  -    en Mono.Cecil.MethodDefinition.get_Body()
14:09:58.900 INFO  -    en
Gendarme.Framework.EngineController.Build(MethodDefinition method,
EngineEventArgs e)
14:09:58.900 INFO  -    en Gendarme.Framework.EngineController.Build(IList`1
14:09:58.900 INFO  -    en Gendarme.Framework.Runner.Initialize()
14:09:58.900 INFO  -    en Gendarme.ConsoleRunner.Initialize()
14:09:58.900 INFO  -    en Gendarme.ConsoleRunner.Execute(String[] args)

Analysis works fine for another C# project of mine.

Reproducible: Always

Steps to Reproduce:
1. Install SonarQube Server 4.2, SonarRunner 2.3, and the C#/.NET ecosystem
plugins (both v2.1).
2. Create a project with the attached .sln/.csproj/.sonar-properties.
3. Run sonar-runner.
Actual Results:  
System.ArgumentOutOfRangeException is thrown.

Expected Results:  
Successful analysis.

NOT a duplicate of bug 757554, as changing --confidence to normal/high does not
resolve the issue.

The source code of the project is confidential so I can't attach it in full,
but I can answer any questions around it if required.

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list