Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EC479200C46 for ; Tue, 14 Mar 2017 16:41:47 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id EAE32160B7C; Tue, 14 Mar 2017 15:41:47 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 48219160B7E for ; Tue, 14 Mar 2017 16:41:47 +0100 (CET) Received: (qmail 56817 invoked by uid 500); 14 Mar 2017 15:41:45 -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 56798 invoked by uid 99); 14 Mar 2017 15:41:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Mar 2017 15:41:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id AD682182919 for ; Tue, 14 Mar 2017 15:41:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.651 X-Spam-Level: X-Spam-Status: No, score=0.651 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id bCSCF13qdpVf for ; Tue, 14 Mar 2017 15:41:43 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 83DDB5FB6B for ; Tue, 14 Mar 2017 15:41:43 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 866DDE0A78 for ; Tue, 14 Mar 2017 15:41:42 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id E828F243B8 for ; Tue, 14 Mar 2017 15:41:41 +0000 (UTC) Date: Tue, 14 Mar 2017 15:41:41 +0000 (UTC) From: "Dan K (JIRA)" To: log4net-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LOG4NET-551) LockRecursionException when using File Appenders MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 14 Mar 2017 15:41:48 -0000 [ https://issues.apache.org/jira/browse/LOG4NET-551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15924434#comment-15924434 ] Dan K commented on LOG4NET-551: ------------------------------- Hi Stefan, I see the voting process is complete and positive news! Do you have a timetable as to when this release will be cut/available in NuGet? Thanks, Danny > LockRecursionException when using File Appenders > ------------------------------------------------ > > Key: LOG4NET-551 > URL: https://issues.apache.org/jira/browse/LOG4NET-551 > Project: Log4net > Issue Type: Bug > Affects Versions: 2.0.7 > Reporter: Matthew Lefoster > Priority: Minor > Fix For: 2.0.8 > > > I have been getting the following exception on the console: > {quote} > log4net:ERROR Exception while logging > System.Threading.LockRecursionException: Recursive read lock acquisitions not allowed 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) > {quote} > I have a number of different appenders, but this only happens when I am using `log4net.Appender.FileAppender`. > Using a debugger, I was able to narrow it down to this line (I replaced curly brackets with square brackets because otherwise JIRA interprets them as macros): > {quote} > Logger.DebugFormat("[1] Executing SQL: [0][2][0]With parameters: [3]", > Environment.NewLine, methodName, sql, new ToStringWrapper(parameters)); > {quote} > My first thought was that ToStringWrapper() was throwing an exception or generating another logging call. But If I put breakpoints at the log call and at the first line of ToStringWrapper.ToString, the exception will show up in the console between those two points. > Oddly enough, if I "step into" the logging call instead of just "continuing" and letting the breakpoints handle it, no exception happens. -- This message was sent by Atlassian JIRA (v6.3.15#6346)