You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by "Daniel Pająk (JIRA)" <ji...@apache.org> on 2012/07/24 02:02:34 UTC

[jira] [Created] (LOG4NET-348) System.IndexOutOfRangeException when StackFrameLevel is greater then StackFrames length

Daniel Pająk created LOG4NET-348:
------------------------------------

             Summary: System.IndexOutOfRangeException when StackFrameLevel is greater then StackFrames length
                 Key: LOG4NET-348
                 URL: https://issues.apache.org/jira/browse/LOG4NET-348
             Project: Log4net
          Issue Type: Bug
          Components: Other
    Affects Versions: 1.2.11
         Environment: Windows 7, .Net Framework 4, MS Visual C# 2010 Express, hardware and operating system platform x64, application platform x86
            Reporter: Daniel Pająk


In file src\Layout\Pattern\StackTracePatternConverter.cs (lines 108-114) is:

108: if (stackFrameIndex > stackframes.Length)
109: {
110:	stackFrameIndex--;
111:	continue;
112: }
113:				
114: StackFrame stackFrame = stackframes[stackFrameIndex];

Exception is trown in line 114. To solve that problem please change line 108 to:
108: if (stackFrameIndex >= stackframes.Length)




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (LOG4NET-348) System.IndexOutOfRangeException when StackFrameLevel is greater then StackFrames length

Posted by "Daniel Pająk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LOG4NET-348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Pająk updated LOG4NET-348:
---------------------------------

    Attachment: StackTracePatternConverter.cs.patch

Patch to file src\Layout\Pattern\StackTracePatternConverter.cs
                
> System.IndexOutOfRangeException when StackFrameLevel is greater then StackFrames length
> ---------------------------------------------------------------------------------------
>
>                 Key: LOG4NET-348
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-348
>             Project: Log4net
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 1.2.11
>         Environment: Windows 7, .Net Framework 4, MS Visual C# 2010 Express, hardware and operating system platform x64, application platform x86
>            Reporter: Daniel Pająk
>              Labels: exception, patch, stacktrace
>         Attachments: StackTracePatternConverter.cs.patch
>
>   Original Estimate: 6h
>  Remaining Estimate: 6h
>
> In file src\Layout\Pattern\StackTracePatternConverter.cs (lines 108-114) is:
> 108: if (stackFrameIndex > stackframes.Length)
> 109: {
> 110:	stackFrameIndex--;
> 111:	continue;
> 112: }
> 113:				
> 114: StackFrame stackFrame = stackframes[stackFrameIndex];
> Exception is trown in line 114. To solve that problem please change line 108 to:
> 108: if (stackFrameIndex >= stackframes.Length)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Assigned] (LOG4NET-348) System.IndexOutOfRangeException when StackFrameLevel is greater then StackFrames length

Posted by "Dominik Psenner (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LOG4NET-348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dominik Psenner reassigned LOG4NET-348:
---------------------------------------

    Assignee: Dominik Psenner
    
> System.IndexOutOfRangeException when StackFrameLevel is greater then StackFrames length
> ---------------------------------------------------------------------------------------
>
>                 Key: LOG4NET-348
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-348
>             Project: Log4net
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 1.2.11
>         Environment: Windows 7, .Net Framework 4, MS Visual C# 2010 Express, hardware and operating system platform x64, application platform x86
>            Reporter: Daniel Pająk
>            Assignee: Dominik Psenner
>              Labels: exception, patch, stacktrace
>         Attachments: StackTracePatternConverter.cs.patch
>
>   Original Estimate: 6h
>  Remaining Estimate: 6h
>
> In file src\Layout\Pattern\StackTracePatternConverter.cs (lines 108-114) is:
> 108: if (stackFrameIndex > stackframes.Length)
> 109: {
> 110:	stackFrameIndex--;
> 111:	continue;
> 112: }
> 113:				
> 114: StackFrame stackFrame = stackframes[stackFrameIndex];
> Exception is trown in line 114. To solve that problem please change line 108 to:
> 108: if (stackFrameIndex >= stackframes.Length)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (LOG4NET-348) System.IndexOutOfRangeException when StackFrameLevel is greater then StackFrames length

Posted by "Dominik Psenner (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LOG4NET-348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13421211#comment-13421211 ] 

Dominik Psenner commented on LOG4NET-348:
-----------------------------------------

Commited as revision 1364911. Many thanks for the fix!
                
> System.IndexOutOfRangeException when StackFrameLevel is greater then StackFrames length
> ---------------------------------------------------------------------------------------
>
>                 Key: LOG4NET-348
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-348
>             Project: Log4net
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 1.2.11
>         Environment: Windows 7, .Net Framework 4, MS Visual C# 2010 Express, hardware and operating system platform x64, application platform x86
>            Reporter: Daniel Pająk
>            Assignee: Dominik Psenner
>              Labels: exception, patch, stacktrace
>         Attachments: StackTracePatternConverter.cs.patch
>
>   Original Estimate: 6h
>  Remaining Estimate: 6h
>
> In file src\Layout\Pattern\StackTracePatternConverter.cs (lines 108-114) is:
> 108: if (stackFrameIndex > stackframes.Length)
> 109: {
> 110:	stackFrameIndex--;
> 111:	continue;
> 112: }
> 113:				
> 114: StackFrame stackFrame = stackframes[stackFrameIndex];
> Exception is trown in line 114. To solve that problem please change line 108 to:
> 108: if (stackFrameIndex >= stackframes.Length)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Resolved] (LOG4NET-348) System.IndexOutOfRangeException when StackFrameLevel is greater then StackFrames length

Posted by "Dominik Psenner (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LOG4NET-348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dominik Psenner resolved LOG4NET-348.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.2.12
    
> System.IndexOutOfRangeException when StackFrameLevel is greater then StackFrames length
> ---------------------------------------------------------------------------------------
>
>                 Key: LOG4NET-348
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-348
>             Project: Log4net
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 1.2.11
>         Environment: Windows 7, .Net Framework 4, MS Visual C# 2010 Express, hardware and operating system platform x64, application platform x86
>            Reporter: Daniel Pająk
>            Assignee: Dominik Psenner
>              Labels: exception, patch, stacktrace
>             Fix For: 1.2.12
>
>         Attachments: StackTracePatternConverter.cs.patch
>
>   Original Estimate: 6h
>  Remaining Estimate: 6h
>
> In file src\Layout\Pattern\StackTracePatternConverter.cs (lines 108-114) is:
> 108: if (stackFrameIndex > stackframes.Length)
> 109: {
> 110:	stackFrameIndex--;
> 111:	continue;
> 112: }
> 113:				
> 114: StackFrame stackFrame = stackframes[stackFrameIndex];
> Exception is trown in line 114. To solve that problem please change line 108 to:
> 108: if (stackFrameIndex >= stackframes.Length)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira