Subject: bug#11583: 24.0.97; 24 pretest Emacs.app crashes closing frames

From: Eli Zaretskii <[email-masked]>
Date: Sun, 03 Jun 2012 17:54:53 +0300

> From: Steven Parkes <[email-masked]>
> Date: Sat, 2 Jun 2012 19:05:05 -0700
> Cc: "[email-masked]" <[email-masked]>
> 
> Okay, bt all appended, which also has the lisp backtrace in it.
> 
> The stack trace isn't all that similar to the last one, so I'm not quite sure what to make of it.

I'm not sure either, but...

> #1  0x00000001001a5c6d in x_free_frame_resources (f=0xb0000000109371a2) at nsterm.m:1164
> 	dpyinfo = (struct ns_display_info *) 0x10164b720
> #2  0x00000001001a2089 in x_destroy_window (f=0xb0000000109371a2) at nsterm.m:1180
> No locals.
> #3  0x0000000100012a09 in delete_frame (frame=4449145253, force=140734799798688) at frame.c:1343
> 	kb = (struct kboard *) 0x10058c8b0
> 	f = (struct frame *) 0x1093091a0

... this looks very strange: the value of f in frame #3 (0x1093091a0),
which looks normal, becomes a preposterous value (0xb0000000109371a2)
in x_destroy_window, which is called by delete_frame via the
delete_frame_hook.

Perhaps some NS expert could tell how this can happen.