all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Reitter <david.reitter@gmail.com>
To: Emacs discussions <emacs-devel@gnu.org>
Subject: crash in delete_window
Date: Tue, 17 Nov 2009 18:11:29 -0500	[thread overview]
Message-ID: <90F618D6-EAAC-4593-979F-E0176B465F2F@gmail.com> (raw)

I just had a crash in delete_window and thought I'd do something about it before/rather than filing a bug report....  From the trace below, it seems like Fdelq is called, followed by a process_pending_signals and some redisplay, which probably crashes because the window has been half-deleted.  

Would it be sensible in this case to add some BLOCK_INPUT statements to delete_window, or maybe SET_FRAME_GARBAGED?  (Sorry if this is a naive suggestion.)


----
Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   libSystem.B.dylib             	0x00007fff8435bfe6 __kill + 10
1   org.gnu.AquamacsEmacs         	0x00000001000abbd3 fatal_error_signal + 261 (emacs.c:403)
2   libSystem.B.dylib             	0x00007fff8436deaa _sigtramp + 26
3   ???                           	0x00007fff5fbf9cf0 0 + 140734799781104
4   org.gnu.AquamacsEmacs         	0x0000000100198ae2 ns_get_color + 0 (nsterm.m:1350)
5   org.gnu.AquamacsEmacs         	0x00000001000abc04 fatal_error_signal + 310 (emacs.c:388)
6   libSystem.B.dylib             	0x00007fff8436deaa _sigtramp + 26
7   ???                           	0x00007fff5fbfa1f0 0 + 140734799782384
8   org.gnu.AquamacsEmacs         	0x000000010004f415 expose_frame + 187 (xdisp.c:24443)
9   com.apple.AppKit              	0x00007fff85f8405e -[NSView _drawRect:clip:] + 3566
10  com.apple.AppKit              	0x00007fff85f81834 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 2112
11  com.apple.AppKit              	0x00007fff85f821bf -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 4555
12  com.apple.AppKit              	0x00007fff85f821bf -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 4555
13  com.apple.AppKit              	0x00007fff85f80e17 -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 254
14  com.apple.AppKit              	0x00007fff85f7d6bf -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 2683
15  com.apple.AppKit              	0x00007fff85ef6f37 -[NSView displayIfNeeded] + 969
16  com.apple.AppKit              	0x00007fff85ef1dde _handleWindowNeedsDisplay + 678
17  com.apple.CoreFoundation      	0x00007fff8453c427 __CFRunLoopDoObservers + 519
18  com.apple.CoreFoundation      	0x00007fff845182d4 __CFRunLoopRun + 468
19  com.apple.CoreFoundation      	0x00007fff84517c2f CFRunLoopRunSpecific + 575
20  com.apple.HIToolbox           	0x00007fff82142a4e RunCurrentEventLoopInMode + 333
21  com.apple.HIToolbox           	0x00007fff821427b1 ReceiveNextEventCommon + 148
22  com.apple.HIToolbox           	0x00007fff8214270c BlockUntilNextEventMatchingListInMode + 59
23  com.apple.AppKit              	0x00007fff85ec71f2 _DPSNextEvent + 708
24  com.apple.AppKit              	0x00007fff85ec6b41 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 155
25  com.apple.AppKit              	0x00007fff85e8c747 -[NSApplication run] + 395
26  org.gnu.AquamacsEmacs         	0x0000000100197500 ns_read_socket + 300 (nsterm.m:3175)
27  org.gnu.AquamacsEmacs         	0x00000001000b601e read_avail_input + 272 (keyboard.c:7128)
28  org.gnu.AquamacsEmacs         	0x00000001000b628f process_pending_signals + 66 (keyboard.c:7447)
29  org.gnu.AquamacsEmacs         	0x000000010013769a Fdelq + 146 (fns.c:1668)
30  org.gnu.AquamacsEmacs         	0x0000000100018d9e delete_frame + 474 (frame.c:1474)
31  org.gnu.AquamacsEmacs         	0x000000010012e377 Feval + 1664 (eval.c:2349)
32  org.gnu.AquamacsEmacs         	0x0000000100131222 internal_lisp_condition_case + 539 (eval.c:1435)
33  org.gnu.AquamacsEmacs         	0x000000010012e3e9 Feval + 1778 (eval.c:2293)
34  org.gnu.AquamacsEmacs         	0x000000010012e990 funcall_lambda + 691 (eval.c:415)
35  org.gnu.AquamacsEmacs         	0x000000010012eae8 apply_lambda + 193 (eval.c:3126)
36  org.gnu.AquamacsEmacs         	0x000000010012df6c Feval + 629 (eval.c:2406)
37  org.gnu.AquamacsEmacs         	0x000000010012e3e9 Feval + 1778 (eval.c:2293)
38  org.gnu.AquamacsEmacs         	0x000000010012e990 funcall_lambda + 691 (eval.c:415)
39  org.gnu.AquamacsEmacs         	0x000000010012eae8 apply_lambda + 193 (eval.c:3126)
40  org.gnu.AquamacsEmacs         	0x000000010012df6c Feval + 629 (eval.c:2406)
41  org.gnu.AquamacsEmacs         	0x0000000100131920 Fif + 110 (eval.c:415)



             reply	other threads:[~2009-11-17 23:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-17 23:11 David Reitter [this message]
2009-11-18  8:11 ` crash in delete_window martin rudalics
2009-11-24 17:00   ` crash in delete_frame David Reitter

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=90F618D6-EAAC-4593-979F-E0176B465F2F@gmail.com \
    --to=david.reitter@gmail.com \
    --cc=emacs-devel@gnu.org \
    /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.