[
https://issues.apache.org/jira/browse/LOG4NET-167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Steve Glendinning updated LOG4NET-167:
--------------------------------------
Attachment: MemoryAppenderThreadSafeLocking.patch
I saw multiple issues of thread safety when using MemoryAppender in a
multi-threaded unit test suite. Symptoms were as previously reported, and also
included spurious NullReferenceExceptions.
The attached patch fully fixes the issue for me, please consider for inclusion
in the next bugfix release.
Steve Glendinning
> ArrayOutOfBounds Exception in MemoryAppender.getEvents()
> --------------------------------------------------------
>
> Key: LOG4NET-167
> URL: https://issues.apache.org/jira/browse/LOG4NET-167
> Project: Log4net
> Issue Type: Bug
> Components: Appenders
> Affects Versions: 1.2.10
> Environment: Windows Vista and XP.
> Reporter: Kenny Clement
> Assignee: Ron Grabowski
> Attachments: MemoryAppenderThreadSafeLocking.patch
>
>
> Getting this every once in a while.
> No specific reproduction scenario.
> Destination array was not long enough. Check destIndex and length, and the
> array's lower bounds.
> at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array
> destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
> at System.Collections.ArrayList.ToArray(Type type)
> at log4net.Appender.MemoryAppender.GetEvents()
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.