From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rainer M Krug Newsgroups: gmane.emacs.bugs Subject: bug#21428: 24.5; Crash of emacs on OS X, installed via homebrew cask Date: Mon, 21 Sep 2015 15:27:57 +0200 Message-ID: References: <83y4gi6z3p.fsf@gnu.org> <837fo07p54.fsf@gnu.org> <83zj0gm3yu.fsf@gnu.org> <83y4g0m0js.fsf@gnu.org> <83wpvjnc5m.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1442842171 30515 80.91.229.3 (21 Sep 2015 13:29:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Sep 2015 13:29:31 +0000 (UTC) Cc: 21428@debbugs.gnu.org, mituharu+bug-gnu-emacs-mac@math.s.chiba-u.ac.jp To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 21 15:29:15 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 1Ze19b-0002Z2-S0 for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Sep 2015 15:29:12 +0200 Original-Received: from localhost ([::1]:58441 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ze19b-0001SG-1i for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Sep 2015 09:29:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50983) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ze19W-0001S6-Ue for bug-gnu-emacs@gnu.org; Mon, 21 Sep 2015 09:29:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ze19T-0005e3-Nx for bug-gnu-emacs@gnu.org; Mon, 21 Sep 2015 09:29:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ze19T-0005dl-M4 for bug-gnu-emacs@gnu.org; Mon, 21 Sep 2015 09:29:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Ze19T-00033F-60 for bug-gnu-emacs@gnu.org; Mon, 21 Sep 2015 09:29:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Rainer M Krug Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Sep 2015 13:29: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.144284209211667 (code B ref 21428); Mon, 21 Sep 2015 13:29:02 +0000 Original-Received: (at 21428) by debbugs.gnu.org; 21 Sep 2015 13:28:12 +0000 Original-Received: from localhost ([127.0.0.1]:39675 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ze18d-000326-HR for submit@debbugs.gnu.org; Mon, 21 Sep 2015 09:28:12 -0400 Original-Received: from mail-wi0-f175.google.com ([209.85.212.175]:33133) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ze18Y-00031v-DS for 21428@debbugs.gnu.org; Mon, 21 Sep 2015 09:28:07 -0400 Original-Received: by wiclk2 with SMTP id lk2so146439849wic.0 for <21428@debbugs.gnu.org>; Mon, 21 Sep 2015 06:28:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=QoCkKVijVzYsS9f4eWOiiGSFteYVeRavks6iOP17s7g=; b=JT3uk1cVJqNOUxsm2IJOTxGZxj9OetSi8viUwdJGZWcbYZkjfJAwuH33NPlZEkErwN DmDOxWgk+ArIQyppHqj/3R2/KmLlhb7CXMTYTkP6AfdWGWmJ40zRizFKEXHooYaGdVvg 01NlUPjWqUzKGW8xTV9Ek/aTeqQg63JYD0y6jks/WiOfOi1xttVcJnZbsnrGJW2xhXHV yeXDHPvyAIjUlpJuiSSdMbxFK+QRRUnj6wlNnxK6r1dOuwdLCaie92E4Tb6vM66T3dLo PYmxUkYwjAi0GPy59rEUjtjkFSW4Hr2O/dAD+EqLvUscplNjdXfprcUpmMhBhrw+QeUU 9bzQ== X-Received: by 10.180.88.164 with SMTP id bh4mr12783623wib.18.1442842085600; Mon, 21 Sep 2015 06:28:05 -0700 (PDT) Original-Received: from Rainers-MacBook-Pro.local (arn78-1-88-186-171-7.fbx.proxad.net. [88.186.171.7]) by smtp.gmail.com with ESMTPSA id p10sm24168287wjx.7.2015.09.21.06.28.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Sep 2015 06:28:04 -0700 (PDT) In-Reply-To: <83wpvjnc5m.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 21 Sep 2015 16:18:45 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) 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:106780 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Eli Zaretskii writes: > [Returning the discussion to the bug tracker.] > >> From: Rainer M Krug >> Date: Mon, 21 Sep 2015 14:32:23 +0200 >>=20 >> > 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? >>=20 >> The crash is occurring very irregular and I am working while triggering >> it - and I haven't found a reliable recipe yet. >>=20 >> The easiest would be to compile with debug info - I'll see how I can do >> it using homebrew or directly. >>=20 >> Could you give me the options I should use in the configure? > > I don't know how Emacs is built on OS X, sorry. Effectively as under Linux. > 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. I used ,---- | CFLAGS=3D"-ggdb3 -O0" CXXFLAGS=3D"-ggdb3 -O0" LDFLAGS=3D"-ggdb3" ./config= ure --enable-checking --with-gif=3Dno --prefix=3D$HOME/local/apps/emacs-24.= 4/ `---- As I found this here http://emacs.stackexchange.com/questions/4213/how-to-compile-emacs-with-deb= ug-symbols > > 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. Let me know what I should put where and I can do it. > > 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 =3D 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. I am at the moment compiling with the above mentioned command ,---- | CFLAGS=3D"-ggdb3 -O0" CXXFLAGS=3D"-ggdb3 -O0" LDFLAGS=3D"-ggdb3" ./config= ure --enable-checking `---- but I can compile anytime again. Rainer =2D-=20 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,= UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCAAGBQJWAAXiAAoJENvXNx4PUvmCn8sIAIiXxYKPbn7QlRwNh87Jg5pk PgeCbGqZGtKFn3y5xU9AWRCd3hz40oG3FmZc70HeT8vyZFHCJ+bNMQZq089i+lUg /kaKF76mfY+yJmIynBDSAfsdmaLkVMmzaEO4bb1ArM1oQuf/76XS7bCuOZ/UphKn 4eBIEWGVNz4pGIMuPGlQWeoLf/bF6eFLLoVOM4gUWoVGqnaKODk8K6U6rZDetEpk jVc8qoCL9Sc4wQmNAG6zmphOdzikF4pprLVHhXiDgm14qO+6SfvBecb2nte65RK+ ePX3TMS9BhYD0uA27Aar9DF/WM7lYkMcnueVr9XF1K8hZgn5YLliLW3igQgxPK8= =kpsy -----END PGP SIGNATURE----- --=-=-=--