From: Alan Third <alan@idiocy.org>
To: Ivan Cibrario Bertolotti <ivan.cibrario@polito.it>
Cc: 23875@debbugs.gnu.org
Subject: bug#23875: 25.0.95; Emacs crashes when closing a frame on OSX
Date: Thu, 30 Jun 2016 19:50:43 +0100 [thread overview]
Message-ID: <m2a8i27bp8.fsf@idiocy.org> (raw)
In-Reply-To: <481371E5-6A60-49C8-B707-33B5001747BA@polito.it> (Ivan Cibrario Bertolotti's message of "Thu, 30 Jun 2016 19:06:04 +0200")
Ivan Cibrario Bertolotti <ivan.cibrario@polito.it> writes:
> Emacs occasionally crashes with a segmentation fault when deleting a
> frame on OSX. The crash occurs with low probability, I am sorry I
> cannot provide a detailed recipe to reproduce it at the moment.
Can you provide any information about what you're doing when it crashes?
Are you just closing a frame with C-x 5 0?
> Looking at the crash report (at the bottom of this email) it seems to me
> that an EmacsImage is being deallocated by autorelease after it has
> already been freed, thus causing a NULL pointer dereference.
>
> Might this be another case of omitted bracketing with
> block_input()/unblock_input(), like in bug #23462?
It could be, but I don't think so. That one happened when the event
handler fired *within* the iconify function. I don't see anything in the
stack trace that looks like that.
> I am now running Emacs with NSTRACE_ENABLED. If you have any better
> idea on how to gather more information, please let me know. I am
> willing to help.
I'm not sure how to go about debugging this stuff, but NSZombiesEnabled
seems to be the way:
$ NSZombiesEnabled=YES /path/to/emacs.app/Contents/MacOS/Emacs
this should print out a message when an object is deallocated too many
times, instead of just crashing.
--
Alan Third
next prev parent reply other threads:[~2016-06-30 18:50 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-30 17:06 bug#23875: 25.0.95; Emacs crashes when closing a frame on OSX Ivan Cibrario Bertolotti
2016-06-30 18:50 ` Alan Third [this message]
2016-06-30 19:34 ` Ivan Cibrario Bertolotti
2016-09-11 10:15 ` Alan Third
2016-09-11 15:31 ` Ivan Cibrario Bertolotti
2016-09-11 18:18 ` Alan Third
2016-09-11 19:24 ` Ivan Cibrario Bertolotti
2016-09-12 12:58 ` Alan Third
2016-09-12 14:04 ` Ivan Cibrario Bertolotti
2016-09-12 16:52 ` Alan Third
2016-09-26 12:48 ` Ivan Cibrario Bertolotti
2016-11-11 19:14 ` Alan Third
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2a8i27bp8.fsf@idiocy.org \
--to=alan@idiocy.org \
--cc=23875@debbugs.gnu.org \
--cc=ivan.cibrario@polito.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.