Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 14788 invoked from network); 10 Mar 2009 18:23:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Mar 2009 18:23:22 -0000 Received: (qmail 8019 invoked by uid 500); 10 Mar 2009 18:23:21 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 7988 invoked by uid 500); 10 Mar 2009 18:23:21 -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 7977 invoked by uid 99); 10 Mar 2009 18:23:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Mar 2009 11:23:21 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Mar 2009 18:23:12 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EC419234C48C for ; Tue, 10 Mar 2009 11:22:50 -0700 (PDT) Message-ID: <1775571958.1236709370966.JavaMail.jira@brutus> Date: Tue, 10 Mar 2009 11:22:50 -0700 (PDT) From: "Joshua Bronson (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Commented: (COUCHDB-275) couch crashes erlang vm under heavy load In-Reply-To: <1591928682.1236008696114.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12680569#action_12680569 ] Joshua Bronson commented on COUCHDB-275: ---------------------------------------- after attaching gdb to beam and triggering a crash by invoking a compaction, I got a backtrace with many lines like "#2073 0x00000000004a535b in enc_term ()". from what i gathered from damienkatz in #couchdb the problem is the term_to_binary function calls itself recursively for nested lists and tuples which can cause a stack overflow. i tried compacting after doubling stack size via "ulimit -s" and it completed before crashing (yay!) but then crashed and came back a few seconds later. > couch crashes erlang vm under heavy load > ---------------------------------------- > > Key: COUCHDB-275 > URL: https://issues.apache.org/jira/browse/COUCHDB-275 > Project: CouchDB > Issue Type: Bug > Affects Versions: 0.9 > Environment: Linux melkjug.com 2.6.23-gentoo-r8 #1 SMP Wed Feb 13 14:28:49 EST 2008 x86_64 QEMU Virtual CPU version 0.9.1 GenuineIntel GNU/Linux > Reporter: Joshua Bronson > Attachments: 2009-03-05-couch.log.snippet > > > I clicked "Compact" in futon for my 11G database at 9:04 AM EST: > [Mon, 02 Mar 2009 14:04:32 GMT] [info] [<0.59.0>] Starting compaction for db "melkjug" > An hour and a half later it was 85% finished and then the following was output to stderr: > heart: Mon Mar 2 10:33:20 2009: heart-beat time-out. > /usr/bin/couchdb: line 255: echo: write error: Broken pipe > heart: Mon Mar 2 10:33:22 2009: Executed "/usr/bin/couchdb -k". Terminating. > I am retaining my 4.3G melkjug.couch.compact file in case it's useful in debugging this. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.