[Mono-bugs] [Bug 668925] New: Gendarme.Rules.Exceptions.DoNotDestroyStackTraceRule throws ArgumentNullException

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Feb 2 10:57:24 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=668925

https://bugzilla.novell.com/show_bug.cgi?id=668925#c0


           Summary: Gendarme.Rules.Exceptions.DoNotDestroyStackTraceRule
                    throws ArgumentNullException
    Classification: Mono
           Product: Mono: Tools
           Version: 2.10.x
          Platform: 64bit
        OS/Version: Windows 7
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Gendarme
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: ethan_j_brown at hotmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.11 Safari/534.16

C:\Source\Hub.Master\common\source\EPS.ServiceModel.Tests.Integration\bin\Debug>
.\..\..\..\..\tools\Gendarme-2.10.0.0\gendarme.exe --config
"..\..\..\Build\gendarme-rules.xml" --set "EPS.Test" --xml gendarme.xml
EPS.ServiceModel.Tests.Integration.dll

Gendarme v2.10.0.0
Copyright (C) 2005-2011 Novell, Inc. and contributors

Initialization: 0.3 seconds
EPS.ServiceModel.Tests.Integration.dll
An uncaught exception occured. Please fill a bug report at
https://bugzilla.novell.com/
Rule:   Gendarme.Rules.Exceptions.DoNotDestroyStackTraceRule
Target: System.Void
EPS.ServiceModel.Tests.Integration.ClientBaseExtensionsTest/CookieTestService::VerifySingleCookie()
Stack trace: System.ArgumentNullException: Value cannot be null.
Parameter name: end
   at
Gendarme.Rules.Exceptions.Impl.ExecutionPathFactory.CreatePaths(Instruction
start, Instruction end)
   at
Gendarme.Rules.Exceptions.DoNotDestroyStackTraceRule.CheckMethod(MethodDefinition
method)
   at Gendarme.Framework.Runner.OnMethod(RunnerEventArgs e)
   at Gendarme.Framework.Runner.Run()
   at Gendarme.ConsoleRunner.Run()
   at Gendarme.ConsoleRunner.Execute(String[] args)


I pushed up a quick test case to my git fork that repros the bug:
https://github.com/Iristyle/mono-tools/commit/5516987609de6fdd40f24b91281e95a3b1457ea7

Reproducible: Always

Steps to Reproduce:
1.Run the submitted test case
2.
3.
Actual Results:  
ArgumentNullException

Expected Results:  
Rule executes properly

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