From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#23875: 25.0.95; Emacs crashes when closing a frame on OSX Date: Sun, 11 Sep 2016 19:18:43 +0100 Message-ID: References: <481371E5-6A60-49C8-B707-33B5001747BA@polito.it> <3C45BB04-687F-4587-A5BA-BCC715329692@polito.it> <2F307EFE-1F6C-462B-85C5-81877D4C88B5@polito.it> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1473617967 5193 195.159.176.226 (11 Sep 2016 18:19:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 11 Sep 2016 18:19:27 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin) Cc: 23875@debbugs.gnu.org To: Ivan Cibrario Bertolotti Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 11 20:19:23 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 1bj9LX-0008Vl-Ka for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Sep 2016 20:19:15 +0200 Original-Received: from localhost ([::1]:38632 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bj9LV-0005EL-F3 for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Sep 2016 14:19:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bj9LO-0005Dn-5L for bug-gnu-emacs@gnu.org; Sun, 11 Sep 2016 14:19:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bj9LJ-0007Lj-UN for bug-gnu-emacs@gnu.org; Sun, 11 Sep 2016 14:19:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59013) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bj9LJ-0007Lb-PR for bug-gnu-emacs@gnu.org; Sun, 11 Sep 2016 14:19:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bj9LJ-0006vb-LA for bug-gnu-emacs@gnu.org; Sun, 11 Sep 2016 14:19:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Sep 2016 18:19: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.147361793626619 (code B ref 23875); Sun, 11 Sep 2016 18:19:01 +0000 Original-Received: (at 23875) by debbugs.gnu.org; 11 Sep 2016 18:18:56 +0000 Original-Received: from localhost ([127.0.0.1]:56725 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bj9LD-0006vH-Tj for submit@debbugs.gnu.org; Sun, 11 Sep 2016 14:18:56 -0400 Original-Received: from mail-wm0-f41.google.com ([74.125.82.41]:37212) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bj9LB-0006v2-DY for 23875@debbugs.gnu.org; Sun, 11 Sep 2016 14:18:54 -0400 Original-Received: by mail-wm0-f41.google.com with SMTP id c131so24287079wmh.0 for <23875@debbugs.gnu.org>; Sun, 11 Sep 2016 11:18:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=/YH+GObKTnNjiUSikiUttZ4r14XVVuTMSE38IP0v4l0=; b=As35OJBpzVzJCf7ROZs0efJ1Dkd5qT6qYKeAtoH/iwHvp6HFRfKy4gZ3CTdRkfrzMP 0uAF5I2D64dh2+FAZZj/1f530D6FnZnIJnPSNjW8HU+ekrcwJsWd3OMFmdQYvwypeT6D Q8jPDfUfQkG/laNDHwzH+Sa1OL6osTrxAyMNi/ZsL6PEcgY+vJDvqdtzsEDJWvTYiURU U/9q6afeF9r0JL+u+sQ0fl3DwUTzgOc3dYGWA4G2kQnEpnG9wi58iH4zRhSyJip6qZa3 9Tq2Uj5PzASFSybOTS9r5/pS17WDLPEYDOEvSU2Q0/FY0QsZTQbZ2p9/RzAeeicGwS/6 Vsmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=/YH+GObKTnNjiUSikiUttZ4r14XVVuTMSE38IP0v4l0=; b=BVd0UZ9uuWNJStIjUsoS1tK+cmQkivwwoyFFfkQspHN92qsOcZ2f4sKbgBMomk6iNF /mEkEZzSQRV9V/ppg5tT9dA4IPKde+TaU77HqitdsF/J4aLDnEeqRuZ891BnkBqTrpxj lpG8pcnuW0TxrCizhLbCceMFlj6G8+kWcjFOkd5Jip27MxDa5Jfxi4F816qJblFnjEZ1 iZVY+PIsrBmdGQk6TRCD8EZtCMQ6mdUkscqzzMYtu84IY0cicyomEBKQLv+8qH1tromx 2KtmXHf+/vWKeRlWKWIzH/RNq02voFavbbJvq7WxCAdJj0PFm0DP2qT/kceIeBtqvSsM sPJg== X-Gm-Message-State: AE9vXwPl5m/TSwk4NYLn7D1YXWn239byjOeolrARXSB+bS40d6M9GlaNUjnaKp/mRhOr3Q== X-Received: by 10.28.6.202 with SMTP id 193mr6898632wmg.53.1473617927616; Sun, 11 Sep 2016 11:18:47 -0700 (PDT) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-2914-1213-ae12-f60c.holly.idiocy.org. [2001:8b0:3f8:8129:2914:1213:ae12:f60c]) by smtp.gmail.com with ESMTPSA id a84sm8339907wme.6.2016.09.11.11.18.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Sep 2016 11:18:44 -0700 (PDT) In-Reply-To: <2F307EFE-1F6C-462B-85C5-81877D4C88B5@polito.it> (Ivan Cibrario Bertolotti's message of "Sun, 11 Sep 2016 17:31:33 +0200") 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:123189 Archived-At: Ivan Cibrario Bertolotti writes: > 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= =99t > 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. I'm afraid I don't know any way of doing that. I guess you could just try loading and deleting images repeatedly: (dotimes (i 10) (let ((image (find-image '((:type xpm :file "delete.xpm"))))) (insert (propertize " " 'display `(,image (slice .0 .0 1.0 1.0))))) (redisplay) (delete-backward-char 1)) That should display a bin icon ten times quickly, but I don't know if it'll dealloc it each time or if it gets cached in some way. Since you're the only person to report this so far I'd be inclined to think that perhaps some part of your configuration is causing it. Would it be possible for you to turn off the debug output and try systematically disabling different parts of your configuration to see if the crashes go away? That could perhaps help us narrow down what code is causing the crash. --=20 Alan Third