From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.90.117.16 with SMTP id p16cs409739agc; Sun, 1 Nov 2009 07:14:02 -0800 (PST) Received: by 10.224.113.97 with SMTP id z33mr2241300qap.256.1257088441556; Sun, 01 Nov 2009 07:14:01 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 37si6362278qyk.54.2009.11.01.07.14.01; Sun, 01 Nov 2009 07:14:01 -0800 (PST) Received-SPF: pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-talk-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 426DF18582BF; Sun, 1 Nov 2009 10:14:01 -0500 (EST) Received: from entry.masanjin.net (masanjin.net [209.20.72.13]) by rubyforge.org (Postfix) with ESMTP id C38B61858283 for ; Sun, 1 Nov 2009 09:53:32 -0500 (EST) Received: from w by entry.masanjin.net with local (Exim 4.69) (envelope-from ) id 1N4boB-0003TE-PJ for sup-talk@rubyforge.org; Sun, 01 Nov 2009 06:53:32 -0800 From: William Morgan To: sup-talk In-reply-to: References: <1256939095-sup-4201@masanjin.net> Date: Sun, 01 Nov 2009 06:53:31 -0800 Message-Id: <1257087035-sup-2014@masanjin.net> User-Agent: Sup/git Subject: Re: [sup-talk] Recovering a busted ferret db? X-BeenThere: sup-talk@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: User & developer discussion of Sup List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org Reformatted excerpts from Steven Walter's message of 2009-10-30: > I am able to Ctrl-C sup-dump when it hangs. Here's the ruby backtrace: > > /var/lib/gems/1.8/gems/sup-0.9/lib/sup/util.rb:206:in `split': Interrupt > from /var/lib/gems/1.8/gems/sup-0.9/lib/sup/util.rb:206:in > `split_on_commas' It looks like you have some crazy long recipient email in some list that's triggering worst-case behavior in a regexp. Can you try again after applying this patch, please? (And I'd be curious how long the address list was, if you find out what message is triggering this.) diff --git a/lib/sup/person.rb b/lib/sup/person.rb index 4b1c80b..dbedc79 100644 --- a/lib/sup/person.rb +++ b/lib/sup/person.rb @@ -105,6 +105,10 @@ class Person def self.from_address_list ss return [] if ss.nil? + ## #split_on_commas has some bad behavior for long strings. so here we do + ## something nasty and just truncate the string at the nearest comma <= 500 + ## characters. + ss = ss[0, ss.rindex(",", 500)] if ss.length > 500 ss.split_on_commas.map { |s| self.from_address s } end -- William _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk