Return-Path: X-Original-To: apmail-logging-log4net-dev-archive@www.apache.org Delivered-To: apmail-logging-log4net-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ED4191814D for ; Sun, 23 Aug 2015 16:18:52 +0000 (UTC) Received: (qmail 2164 invoked by uid 500); 23 Aug 2015 16:18:46 -0000 Delivered-To: apmail-logging-log4net-dev-archive@logging.apache.org Received: (qmail 1852 invoked by uid 500); 23 Aug 2015 16:18:46 -0000 Mailing-List: contact log4net-dev-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Log4NET Dev" List-Id: Delivered-To: mailing list log4net-dev@logging.apache.org Received: (qmail 1840 invoked by uid 99); 23 Aug 2015 16:18:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Aug 2015 16:18:46 +0000 Date: Sun, 23 Aug 2015 16:18:46 +0000 (UTC) From: "Stefan Bodewig (JIRA)" To: log4net-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LOG4NET-466) "LockRecursionException: A read lock may not be acquired with the write lock held in this mode." exception MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LOG4NET-466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14708424#comment-14708424 ] Stefan Bodewig commented on LOG4NET-466: ---------------------------------------- This may very well stem from the same root cause that created LOG4NET-443. > "LockRecursionException: A read lock may not be acquired with the write lock held in this mode." exception > ---------------------------------------------------------------------------------------------------------- > > Key: LOG4NET-466 > URL: https://issues.apache.org/jira/browse/LOG4NET-466 > Project: Log4net > Issue Type: Bug > Components: Core > Affects Versions: 1.2.13 > Environment: Windows 7 x64 / .NET 4.5.2 > Reporter: Andrei Faber > > I'm getting this exception when trying to call ILog.Error() method (the logger used is RollingFileAppender): > log4net:ERROR Exception while logging > System.Threading.LockRecursionException: A read lock may not be acquired with the write lock held in this mode. > at System.Threading.ReaderWriterLockSlim.TryEnterReadLockCore(TimeoutTracker timeout) > at System.Threading.ReaderWriterLockSlim.TryEnterReadLock(TimeoutTracker timeout) > at System.Threading.ReaderWriterLockSlim.EnterReadLock() > at log4net.Util.ReaderWriterLock.AcquireReaderLock() > at log4net.Repository.Hierarchy.Logger.CallAppenders(LoggingEvent loggingEvent) > at log4net.Repository.Hierarchy.Logger.ForcedLog(Type callerStackBoundaryDeclaringType, Level level, Object message, Exception exception) > at log4net.Repository.Hierarchy.Logger.Log(Type callerStackBoundaryDeclaringType, Level level, Object message, Exception exception) > Any ideas why it might be happening? -- This message was sent by Atlassian JIRA (v6.3.4#6332)