From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ivan Cibrario Bertolotti Newsgroups: gmane.emacs.bugs Subject: bug#23875: 25.0.95; Emacs crashes when closing a frame on OSX Date: Sun, 11 Sep 2016 17:31:33 +0200 Message-ID: <2F307EFE-1F6C-462B-85C5-81877D4C88B5@polito.it> References: <481371E5-6A60-49C8-B707-33B5001747BA@polito.it> <3C45BB04-687F-4587-A5BA-BCC715329692@polito.it> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1473607950 16519 195.159.176.226 (11 Sep 2016 15:32:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 11 Sep 2016 15:32:30 +0000 (UTC) Cc: 23875@debbugs.gnu.org To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 11 17:32:27 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bj6ju-0002g1-DP for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Sep 2016 17:32:14 +0200 Original-Received: from localhost ([::1]:38049 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bj6js-0003VB-Hh for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Sep 2016 11:32:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bj6jm-0003V3-KO for bug-gnu-emacs@gnu.org; Sun, 11 Sep 2016 11:32:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bj6ji-0004X3-EF for bug-gnu-emacs@gnu.org; Sun, 11 Sep 2016 11:32:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58852) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bj6ji-0004Wz-BC for bug-gnu-emacs@gnu.org; Sun, 11 Sep 2016 11:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bj6jh-0001C0-Va for bug-gnu-emacs@gnu.org; Sun, 11 Sep 2016 11:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ivan Cibrario Bertolotti Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Sep 2016 15:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23875 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: unreproducible Original-Received: via spool by 23875-submit@debbugs.gnu.org id=B23875.14736079034559 (code B ref 23875); Sun, 11 Sep 2016 15:32:01 +0000 Original-Received: (at 23875) by debbugs.gnu.org; 11 Sep 2016 15:31:43 +0000 Original-Received: from localhost ([127.0.0.1]:56564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bj6jO-0001BT-Sr for submit@debbugs.gnu.org; Sun, 11 Sep 2016 11:31:43 -0400 Original-Received: from fm1nodo1.polito.it ([130.192.180.11]:59940 helo=antispam.polito.it) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bj6jM-0001BG-UQ for 23875@debbugs.gnu.org; Sun, 11 Sep 2016 11:31:41 -0400 Original-Received: from polito.it (frontmail2.polito.it [130.192.180.42]) by antispam.polito.it with ESMTP id u8BFVYBe010228-u8BFVYBg010228 (version=TLSv1.0 cipher=DHE-RSA-AES256-SHA bits=256 verify=CAFAIL); Sun, 11 Sep 2016 17:31:34 +0200 Original-Received: from [87.9.225.201] (account d011741@polito.it HELO [192.168.1.106]) by polito.it (CommuniGate Pro SMTP 6.1.9) with ESMTPSA id 52104977; Sun, 11 Sep 2016 17:31:34 +0200 In-Reply-To: X-Mailer: Apple Mail (2.3124) X-FEAS-SYSTEM-WL: 130.192.180.42 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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" Xref: news.gmane.org gmane.emacs.bugs:123174 Archived-At: Hi Alan, unfortunately, no. I am still using Emacs with NSTRACE_ENABLED and = NSZombiesEnabled=3DYES, plus some extra debugging printouts of my own, = related to allocation and deallocation of EmacsImages. However, I = cannot trigger the bug anymore. In my opinion, there are two possible = reasons for this: - triggering the bug was related to =E2=80=9Csomething special=E2=80=9D = I was doing with Emacs at that time (somewhat unlikely), or - it is a timing-dependent bug and the debugging printouts steered Emacs = away from it (perhaps more likely) At this time I seldom see EmacsImage allocations/deallocations in the = Emacs trace if at all. It seems to me that most of them are allocated = before dumping (like fringe bitmaps in bimgs, ns_draw_fringe_bitmap, = nsterm.m) and never deallocated. I would like to force Emacs to make heavier use of EmacsImages and = increase the probability of running into the bug again, but I don=E2=80=99= t know the code base well enough for that. If you know of any way of attaining that, please let me know and I will = give it a try. Thanks, Ivan > On 11 Sep 2016, at 12:15, Alan Third wrote: >=20 > Ivan Cibrario Bertolotti writes: >=20 >>> I'm not sure how to go about debugging this stuff, but = NSZombiesEnabled >>> seems to be the way: >>>=20 >>> $ NSZombiesEnabled=3DYES /path/to/emacs.app/Contents/MacOS/Emacs >>>=20 >>> this should print out a message when an object is deallocated too = many >>> times, instead of just crashing. >>=20 >>> --=20 >>> Alan Third >>=20 >> I understand, it looks nasty indeed and it happens on average only >> once a day. Thank you for the hint. I will keep using Emacs with >> NSTRACE_ENABLED and NSZombiesEnabled=3DYES. Will get back as soon as = I >> have more substantial information. >=20 > Hi Ivan, did you ever get anywhere with this? > --=20 > Alan Third