Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 37739 invoked from network); 27 Feb 2009 15:10:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Feb 2009 15:10:27 -0000 Received: (qmail 30507 invoked by uid 500); 27 Feb 2009 15:10:24 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 30483 invoked by uid 500); 27 Feb 2009 15:10:24 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 30472 invoked by uid 99); 27 Feb 2009 15:10:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Feb 2009 07:10:24 -0800 X-ASF-Spam-Status: No, hits=3.7 required=10.0 tests=HTML_MESSAGE,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of somers.tim@gmail.com designates 74.125.46.30 as permitted sender) Received: from [74.125.46.30] (HELO yw-out-2324.google.com) (74.125.46.30) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Feb 2009 15:10:18 +0000 Received: by yw-out-2324.google.com with SMTP id 2so731641ywt.5 for ; Fri, 27 Feb 2009 07:09:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=rRZ3RatjBzk9VhnCfRFkYyxCD70aUCWBMEHOW687Qf0=; b=CMrPA3xVL0Bt1x6PYkZQ5wyHLEFXcy5r3j4I3VowfegMbtuIZLiHX2LB9lRJoQMKhk szkUgN2eM6Zn9g/GmjmG47ffijSIiqgJ3ZlxhjriB1a6XkrOMmlQI1lqCHAz+yuKFyxx PyX/zJNZII7XunNkTDC2GN7DapAgpMxrW0Cs0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=wvP8A035bn7LjCko4Xv2RF1CtQmcApzaMVEi4icnb/D41zwcucm3aTYBbYgX9VhTUC fhytjOvzRlfOVohCb9YYRWrk/rlW/HZ1A8SNdbo/gUFdHLMjDFOEsZZgNv1DujgL7imZ npa7MOamT+JBTz8AhnJXQj/+ZiM+Dz1TuLiEM= MIME-Version: 1.0 Received: by 10.231.16.74 with SMTP id n10mr2355364iba.44.1235747396754; Fri, 27 Feb 2009 07:09:56 -0800 (PST) In-Reply-To: References: <7fe7e0900902270036y6a9511b1oaac662b9e51f4d6d@mail.gmail.com> <05A8FFE6-309E-4B98-B179-D3FB2222111A@apache.org> <7fe7e0900902270607r1c881ddej696440f5f8fc2b14@mail.gmail.com> Date: Fri, 27 Feb 2009 16:09:56 +0100 Message-ID: <7fe7e0900902270709q63586dbu1ac1996f747673a8@mail.gmail.com> Subject: Re: Segmentation fault on PUT From: Tim Somers To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=000325574d7a9d9dda0463e7dcab X-Virus-Checked: Checked by ClamAV on apache.org --000325574d7a9d9dda0463e7dcab Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Thanks, I will purge the db from time to time, that should keep me going for the time being. As for the heart of the problem, I still have the offending db on my disk, after compaction it is only 1.1Megs. Can this be of any help locating the problem? Thanks for the great support, and for the great project that couchdb is. Tim On Fri, Feb 27, 2009 at 3:22 PM, Damien Katz wrote: > If you purge the doc it will discard the revision history. See the test > suite for the purge test to see how to use it. > > Purge has caveats. Purge doesn't work with replication at all, the purge > isn't replicated, the doc is simply "forgotten". You cannot purge anything > during a compaction. If you do 2 purges in a row (before the views have a > chance to refresh), all the db's view indexes must be rebuilt from scratch > (In your case, with 51 docs, this doesn't really matter). > > -Damien > > > > On Feb 27, 2009, at 9:07 AM, Tim Somers wrote: > > Thanks for the answer, I hope the work you mentioned can solve some >> things. >> In the mean while, can my problem be solved if from time to time I delete >> the document and recreate another with the same id and contents? I'm not >> using any replication (yet) by the way. >> >> Tim >> >> >> On Fri, Feb 27, 2009 at 2:56 PM, Damien Katz wrote: >> >> It's probably the "lots of updates" that's causing the problem. CouchDB >>> tracks a revision history of each doc, indefinitely. If the list gets >>> longer >>> than can be held in memory, you get errors. (that it is a seg fault >>> rather >>> than an recoverable error is a bug in the erlang vm, IMO). >>> >>> There is revision stemming work that's on the way, that addresses this >>> exact problem (though with caveats for replication). >>> >>> -Damien >>> >>> >>> >>> >>> On Feb 27, 2009, at 3:36 AM, Tim Somers wrote: >>> >>> Hi all, >>> >>>> >>>> I've been using couchdb in combination with py-simplecouchdb since a >>>> couple >>>> of weeks now on a small dataset (only 51 docs) with lots of updates. >>>> Yesterday I checked out the latest update from svn, and left my >>>> application >>>> running all night. This morning, the couchdb process had closed. >>>> After restarting it, everything seems to be running fine for read >>>> access, >>>> but on an update of any document, I get this error: >>>> [debug] [<0.64.0>] 'PUT' /heasys/alert_3505_nomessages {1,1} >>>> Headers: [{'Accept',"application/json, text/javascript, */*"}, >>>> {'Accept-Charset',"ISO-8859-1,utf-8;q=0.7,*;q=0.7"}, >>>> {'Accept-Encoding',"gzip,deflate"}, >>>> {'Accept-Language',"en-us,en;q=0.5"}, >>>> {'Connection',"keep-alive"}, >>>> {'Content-Length',"239"}, >>>> {'Content-Type',"application/json; charset=UTF-8"}, >>>> {'Host',"localhost:5985"}, >>>> {'Keep-Alive',"300"}, >>>> {'Referer'," >>>> http://localhost:5985/_utils/document.html?heasys/alert_3505_nomessages >>>> "}, >>>> {'User-Agent',"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) >>>> Gecko/2009020409 Iceweasel/3.0.6 (Debian-3.0.6-1)"}, >>>> {"X-Requested-With","XMLHttpRequest"}] >>>> Segmentation fault >>>> No difference in the error except for the headers whether I test it with >>>> my >>>> application or the futon interface. >>>> >>>> Any ideas, anyone? >>>> >>>> Thanks >>>> Tim Somers >>>> >>>> >>> >>> > --000325574d7a9d9dda0463e7dcab--