Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 57177 invoked from network); 13 May 2010 23:02:08 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 May 2010 23:02:08 -0000 Received: (qmail 36868 invoked by uid 500); 13 May 2010 23:02:07 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 36797 invoked by uid 500); 13 May 2010 23:02:07 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 36789 invoked by uid 99); 13 May 2010 23:02:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 May 2010 23:02:07 +0000 X-ASF-Spam-Status: No, hits=-1424.4 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 May 2010 23:02:06 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4DN1jlH010764 for ; Thu, 13 May 2010 23:01:46 GMT Message-ID: <25703564.29181273791705907.JavaMail.jira@thor> Date: Thu, 13 May 2010 19:01:45 -0400 (EDT) From: "Randall Leeds (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Created: (COUCHDB-761) Timeouts in couch_log are masked, crashes callers MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Timeouts in couch_log are masked, crashes callers ------------------------------------------------- Key: COUCHDB-761 URL: https://issues.apache.org/jira/browse/COUCHDB-761 Project: CouchDB Issue Type: Bug Components: Database Core Affects Versions: 0.11, 0.10.2, 0.10.1 Reporter: Randall Leeds Fix For: 0.10.3, 0.11.1, 1.0 Several users have reported seeing crash reports stemming from a function_clause match on handle_info in various gen_servers. The offending message looks like {#Ref<>, }. After months of banter and sleuthing, I determined that the likely cause was a late reply to a gen_server:call that timed out, with the #Ref being the tag on the response. After it came up again today in IRC, kocolosk quickly discovered that the problem appears to be in couch_log.erl. The logging macros (?LOG_*) call couch_log/*_on which calls get_level_integer/0. When this call times out the timeout is eaten and a late reply arrives to the calling process later, triggering the crash. Suggestions on how to fix this welcome. Ideas so far are async logging or infinite timeout. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.