From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#21428: 24.5; Crash of emacs on OS X, installed via homebrew cask Date: Mon, 21 Sep 2015 16:18:45 +0300 Message-ID: <83wpvjnc5m.fsf@gnu.org> References: <83y4gi6z3p.fsf@gnu.org> <837fo07p54.fsf@gnu.org> <83zj0gm3yu.fsf@gnu.org> <83y4g0m0js.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1442841571 20507 80.91.229.3 (21 Sep 2015 13:19:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Sep 2015 13:19:31 +0000 (UTC) Cc: 21428@debbugs.gnu.org, mituharu+bug-gnu-emacs-mac@math.s.chiba-u.ac.jp To: Rainer M Krug Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 21 15:19:20 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ze100-0007UX-R4 for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Sep 2015 15:19:16 +0200 Original-Received: from localhost ([::1]:58381 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ze100-0007Hf-4p for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Sep 2015 09:19:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ze0zr-0007Ez-5o for bug-gnu-emacs@gnu.org; Mon, 21 Sep 2015 09:19:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ze0zm-0004qe-NA for bug-gnu-emacs@gnu.org; Mon, 21 Sep 2015 09:19:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47461) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ze0zm-0004qZ-K6 for bug-gnu-emacs@gnu.org; Mon, 21 Sep 2015 09:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Ze0zm-0002q5-7K for bug-gnu-emacs@gnu.org; Mon, 21 Sep 2015 09:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Sep 2015 13:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21428 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 21428-submit@debbugs.gnu.org id=B21428.144284152510888 (code B ref 21428); Mon, 21 Sep 2015 13:19:02 +0000 Original-Received: (at 21428) by debbugs.gnu.org; 21 Sep 2015 13:18:45 +0000 Original-Received: from localhost ([127.0.0.1]:39671 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ze0zV-0002pY-B7 for submit@debbugs.gnu.org; Mon, 21 Sep 2015 09:18:45 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:48081) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ze0zS-0002oW-Js for 21428@debbugs.gnu.org; Mon, 21 Sep 2015 09:18:43 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NV1004003HATC00@a-mtaout23.012.net.il> for 21428@debbugs.gnu.org; Mon, 21 Sep 2015 16:18:36 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NV10040W3MZH7B0@a-mtaout23.012.net.il>; Mon, 21 Sep 2015 16:18:36 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:106779 Archived-At: [Returning the discussion to the bug tracker.] > From: Rainer M Krug > Date: Mon, 21 Sep 2015 14:32:23 +0200 > > > I cannot reproduce this, unfortunately. I cannot even successfully > > load your init files, something is missing, even though I downloaded > > cask and pallet. > > > > Any chance of you coming up with a recipe that starts from "emacs -Q"? > > > > If not, can you compile Emacs with debug info, run it under the > > debugger, and tell me values of some variables I need to see? > > The crash is occurring very irregular and I am working while triggering > it - and I haven't found a reliable recipe yet. > > The easiest would be to compile with debug info - I'll see how I can do > it using homebrew or directly. > > Could you give me the options I should use in the configure? I don't know how Emacs is built on OS X, sorry. I can only tell that the compiler switches should include -g and NOT include -s. You should be able to see the compiler switches in src/Makefile. If this is somehow not enough, I can go with "printf debugging", if it's okay with you. That is, assuming that adding a line such as fprintf (stderr, "something to print\n"); to some place in the C code, then recompiling Emacs and running it will display the specified text. The infinite recursion in this last crash happens here: /* If we reached the end of the object we've been iterating (e.g., a display string or an overlay string), and there's something on IT->stack, proceed with what's on the stack. It doesn't make sense to return false if there's unprocessed stuff on the stack, because otherwise that stuff will never be displayed. */ if (!success_p && it->sp > 0) { set_iterator_to_next (it, false); success_p = get_next_display_element (it); <<<<<<<<<<<<<<<<<<<<<< } /* Value is false if end of buffer or string reached. */ return success_p; This is the end of the function get_next_display_element, around line 7190 in xdisp.c. For some reason, the call to set_iterator_to_next leaves us at the same place of the same object we were before the call. I need to understand why that happens, and fix this code not to do that.