Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 32A4D40B96B for ; Sun, 18 Jul 2010 08:00:43 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3dwNuqvoLpAy for ; Sun, 18 Jul 2010 08:00:29 -0700 (PDT) Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by olra.theworths.org (Postfix) with ESMTP id 4654D40B963 for ; Sun, 18 Jul 2010 08:00:29 -0700 (PDT) Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id B5D9319F33C9; Sun, 18 Jul 2010 17:00:26 +0200 (CEST) X-Virus-Scanned: IMAP AMAVIS Received: from max.feld.cvut.cz ([192.168.200.1]) by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new, port 10044) with ESMTP id FKdPl2Nr4eoN; Sun, 18 Jul 2010 17:00:25 +0200 (CEST) Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) by max.feld.cvut.cz (Postfix) with ESMTP id 2E0A019F33B4; Sun, 18 Jul 2010 17:00:25 +0200 (CEST) Received: from steelpick.2x.cz (unknown [213.29.198.144]) (Authenticated sender: sojkam1) by imap.feld.cvut.cz (Postfix) with ESMTPSA id 243EBFA003; Sun, 18 Jul 2010 17:00:23 +0200 (CEST) Received: from wsh by steelpick.2x.cz with local (Exim 4.72) (envelope-from ) id 1OaVLq-0004Ht-Ju; Sun, 18 Jul 2010 17:00:22 +0200 From: Michal Sojka To: Dmitry Kurochkin , notmuch@notmuchmail.org Subject: Re: [PATCH] emacs: Fix stack overflow in notmuch-wash-tidy-citations In-Reply-To: <87eif2tja1.fsf@gmail.com> References: <1279279955-3110-1-git-send-email-sojkam1@fel.cvut.cz> <87eif2tja1.fsf@gmail.com> User-Agent: Notmuch/0.3.1-80-g86b7c46 (http://notmuchmail.org) Emacs/23.2.1 (x86_64-pc-linux-gnu) Date: Sun, 18 Jul 2010 17:00:22 +0200 Message-ID: <87pqykomwp.fsf@steelpick.2x.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jul 2010 15:00:43 -0000 Hi Dmitry, On Sat, 17 Jul 2010, Dmitry Kurochkin wrote: > I have 2 messages that cause emacs segfault. My patch didn't fix a segfault but stack overflow which was reported by emacs in its *Messages* buffer without crashing. > Both are notifications from svn. One is 37933 lines, 1,2M. Another is > huge - 963179 lines, 31M. I believe the root cause is the same for > both segfaults. > > Your patch does not fix the problem, unfortunately. Can you advise how > to debug this segfault? Build emacs with debug symbols and get backtrace > from gdb? I'm more Emacs user then developer so I cannot give you much detailed information. First, try to check http://mid.gmane.org/87pr0t5h1q.fsf@yoom.home.cworth.org and Emacs bug#6214. There may by a fix your problem. > Debug notmuch lisp code (how?)? Enable some verbose logging in emacs? To debug elisp code I open the source in Emacs, move the point to the function I'm interested in and press C-u C-M-x. This instruments the function code so that the next time the function is invoked, elisp debugger appears and you can execute the function step by step and inspect variables. Maybe, some Emacs guru can give you a better advice. Bye Michal