GNU bug report logs - #21428
24.5; Crash of emacs on OS X, installed via homebrew cask

Previous Next

Package: emacs;

Reported by: Rainer M Krug <Rainer <at> krugs.de>

Date: Mon, 7 Sep 2015 10:11:01 UTC

Severity: normal

Tags: moreinfo

Found in version 24.5

Fixed in version 25.1

Done: Alan Third <alan <at> idiocy.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Anders Lindgren <andlind <at> gmail.com>
To: martin rudalics <rudalics <at> gmx.at>
Cc: Eli Zaretskii <eliz <at> gnu.org>, Rainer <at> krugs.de, 21428 <at> debbugs.gnu.org
Subject: bug#21428: 24.5; Crash of emacs on OS X, installed via homebrew cask
Date: Thu, 22 Oct 2015 22:04:08 +0200
[Message part 1 (text/plain, inline)]
Hi,

I doubt that my modification will change anything related to this.

However, I noticed that a number of NextStep callback functions start with
the following code sequence:

  if (!emacsframe->output_data.ns)
    return;

If `ns' is NULL it would account for the crash. I don't see why we can't
add it to the windowDidResize: method as well.

Finally a reservation, I'm still learning the NS code base and I don't know
under which circumstances the `ns' field is NULL.

    -- Anders



On Thu, Oct 22, 2015 at 8:14 PM, martin rudalics <rudalics <at> gmx.at> wrote:
>
> >        extra = FRAME_NS_TITLEBAR_HEIGHT (emacsframe)
> >          + FRAME_TOOLBAR_HEIGHT (emacsframe);
>
> Ahh, so this is Emacs 25.  Strange.  Rainer what do
>
> p emacsframe->output_data.ns->titlebar_height
>
> and
>
> p emacsframe->output_data.ns->toolbar_height
>
> give in frame#0 of the debugger?
>
> martin
[Message part 2 (text/html, inline)]

This bug report was last modified 8 years and 349 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.