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: Wed, 30 Sep 2015 21:49:07 +0300 Message-ID: <83612rbv4s.fsf@gnu.org> References: <8337y2imvk.fsf@gnu.org> <83bncmeu95.fsf@gnu.org> <8337xyelev.fsf@gnu.org> <83vbaucx7c.fsf@gnu.org> <83fv1xd71j.fsf@gnu.org> <83bncld3vf.fsf@gnu.org> <838u7pd02c.fsf@gnu.org> <837fn9cxe3.fsf@gnu.org> <83k2r8b4rr.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1443685544 1505 80.91.229.3 (1 Oct 2015 07:45:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 Oct 2015 07:45:44 +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 Thu Oct 01 09:45:34 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 1ZhYYU-0002GM-Eu for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Oct 2015 09:45:30 +0200 Original-Received: from localhost ([::1]:40020 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhYYT-0000dg-Q2 for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Oct 2015 03:45:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56435) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhMS7-0004wP-3h for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2015 14:50:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZhMS3-0004Oa-Tk for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2015 14:50:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60585) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhMS3-0004O4-RI for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2015 14:50:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZhMS3-0003ul-8X for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2015 14:50:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Sep 2015 18:50:03 +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.144363896114990 (code B ref 21428); Wed, 30 Sep 2015 18:50:03 +0000 Original-Received: (at 21428) by debbugs.gnu.org; 30 Sep 2015 18:49:21 +0000 Original-Received: from localhost ([127.0.0.1]:49556 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZhMRM-0003ti-D4 for submit@debbugs.gnu.org; Wed, 30 Sep 2015 14:49:20 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:65190) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZhMRI-0003tV-LN for 21428@debbugs.gnu.org; Wed, 30 Sep 2015 14:49:18 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NVI00F0067BRY00@a-mtaout23.012.net.il> for 21428@debbugs.gnu.org; Wed, 30 Sep 2015 21:49:14 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NVI00F5G6Y1Q550@a-mtaout23.012.net.il>; Wed, 30 Sep 2015 21:49:14 +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:107109 Archived-At: > From: Rainer M Krug > Cc: 21428@debbugs.gnu.org, mituharu+bug-gnu-emacs-mac@math.s.chiba-u.ac.jp > Date: Wed, 30 Sep 2015 12:36:40 +0200 > > > I guess we are down to using the brute-force approach after all. I > > will prepare a series of GDB commands that you need to invoke before > > running a new Emacs session under GDB. The output will be recorded in > > a file, which I will ask you to send me for analysis when a crash > > happens. > > OK - no problem. > > > > > To prepare those GDB commands, I need to know how many different > > frames you are normally using. If only one, the job of preparing > > those commands is easier. > > Now we have luck: very seldom more than one, and the crashes occured all > with only one frame used during the whole session. OK. Here are the GDB commands you need to type after entering GDB and before running Emacs: set logging on break xfaces.c:4189 commands bt continue end break xfaces.c:4310 commands bt p c->used+1 continue end break xfaces.c:4334 commands bt p c->used-1 continue end Please verify that the 2 line numbers are correct for the version of xfaces.c that you have: these are the lines that increment, decrement, and zero out the 'used' count of the frame's face cache. It is better to put those commands on a file, so that you could only type "source that-file" instead of the whole sequence. Then type "run" to run Emacs as usual (no need to set the inhibit-* variables). When the crash happens, type the commands to display the backtrace, the face cache's 'used' count, and the "pgrow" command. Then type this command: set logging off and send me the file gdb.txt which GDB created during that session. It will probably a very large file, so please compress it. Don't exit the GDB session, because I might need you to tell me values of some variables. Let's hope the stuff you collect will point to the problem's cause. Thanks.