Subject: Re: bug#30800: 26.0.91; unknown crash on macos

From: Eli Zaretskii <[email-masked]>
Date: Wed, 21 Mar 2018 08:37:52 +0200

> From: Aaron Jensen <[email-masked]>
> Date: Tue, 20 Mar 2018 16:39:52 -0700
> 
> Emacs is crashing more often today with this crash. Here is another
> trace. Again, it's the `FRAME_NS_VIEW (represented_frame)' that is
> crashing:
> 
> * thread #1, queue = 'com.apple.main-thread', stop reason =
> EXC_BAD_ACCESS (code=1, address=0x0)
>   * frame #0: 0x00000001003aadbb emacs`-[EmacsApp
> sendEvent:](self=0x00000001018285e0, _cmd="sendEvent:",
> theEvent=0x000000011a202f40) at nsterm.m:5449
> 
> frame #0: 0x00000001003aadbb emacs`-[EmacsApp
> sendEvent:](self=0x00000001018285e0, _cmd="sendEvent:",
> theEvent=0x000000011a202f40) at nsterm.m:5449
>    5446   if (represented_filename != nil && represented_frame)
>    5447     {
>    5448       NSString *fstr = represented_filename;
> -> 5449       NSView *view = FRAME_NS_VIEW (represented_frame);
>    5450 #ifdef NS_IMPL_COCOA

Which part of FRAME_NS_VIEW causes the crash?  There are 2
dereferences there; which one is the culprit?