From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#7728: 24.0.50; GDB backtrace from abort Date: Fri, 24 Dec 2010 08:55:20 -0800 Message-ID: <30041A5C411E45A7B7AF7A9ECA3AA0BE@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1293211415 6729 80.91.229.12 (24 Dec 2010 17:23:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 24 Dec 2010 17:23:35 +0000 (UTC) To: 7728@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 24 18:23:30 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PWBMJ-0006tE-16 for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Dec 2010 18:23:28 +0100 Original-Received: from localhost ([127.0.0.1]:40689 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PWBMH-0005jx-IM for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Dec 2010 12:23:13 -0500 Original-Received: from [140.186.70.92] (port=36219 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PWBMD-0005ji-2i for bug-gnu-emacs@gnu.org; Fri, 24 Dec 2010 12:23:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PWBMB-0002R9-GJ for bug-gnu-emacs@gnu.org; Fri, 24 Dec 2010 12:23:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47585) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PWBMB-0002R5-DF for bug-gnu-emacs@gnu.org; Fri, 24 Dec 2010 12:23:07 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PWAr8-0002v2-9m; Fri, 24 Dec 2010 11:51:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Dec 2010 16:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7728 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.129320941711163 (code B ref -1); Fri, 24 Dec 2010 16:51:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Dec 2010 16:50:17 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PWAqH-0002tv-N1 for submit@debbugs.gnu.org; Fri, 24 Dec 2010 11:50:17 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PWAqF-0002tZ-Ad for submit@debbugs.gnu.org; Fri, 24 Dec 2010 11:50:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PWAwg-00067e-LC for submit@debbugs.gnu.org; Fri, 24 Dec 2010 11:56:48 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:43008) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PWAwg-00067a-H7 for submit@debbugs.gnu.org; Fri, 24 Dec 2010 11:56:46 -0500 Original-Received: from [140.186.70.92] (port=60839 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PWAwe-0003FX-Rx for bug-gnu-emacs@gnu.org; Fri, 24 Dec 2010 11:56:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PWAwc-00067J-VC for bug-gnu-emacs@gnu.org; Fri, 24 Dec 2010 11:56:44 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:43163) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PWAwc-00067E-Le for bug-gnu-emacs@gnu.org; Fri, 24 Dec 2010 11:56:42 -0500 Original-Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oBOGueFF011575 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 24 Dec 2010 16:56:41 GMT Original-Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id oBOGueOq004763 for ; Fri, 24 Dec 2010 16:56:40 GMT Original-Received: from abhmt007.oracle.com by acsmt353.oracle.com with ESMTP id 880479351293209724; Fri, 24 Dec 2010 08:55:24 -0800 Original-Received: from dradamslap1 (/10.159.220.18) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 24 Dec 2010 08:55:24 -0800 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Acuji1lg/KSrOkEVQOm2Pad0UbmU/g== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 24 Dec 2010 11:51:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:42807 Archived-At: Eli suggested I report this now, even though I have only the backtrace and didn't follow up with more commands when GDB was open. This was in my own setup, not emacs -Q. $ ./gdb -p 3684 GNU gdb (GDB) 7.2 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "mingw32". For bug reporting instructions, please see: . Attaching to process 3684 [New Thread 3684.0x1210] [New Thread 3684.0x154] [New Thread 3684.0xe00] Reading symbols from C:\Emacs-24-2010-12-20\bin\emacs.exe...done. [Switching to Thread 3684.0xe00] Warning: c:\drews-lisp-20\bin/../lwlib: No such file or directory. SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from terminal] Environment variable "DISPLAY" not defined. TERM = cygwin Breakpoint 1 at 0x1309b68: file w32fns.c, line 7298. Temporary breakpoint 2 at 0x11cf699: file sysdep.c, line 839. (gdb) c Continuing. Program received signal SIGTRAP, Trace/breakpoint trap. [Switching to Thread 3684.0x1210] 0x7c90120f in ntdll!DbgUiConnectToDbg () from C:\WINDOWS\system32\ntdll.dll (gdb) bt #0 0x7c90120f in ntdll!DbgUiConnectToDbg () from C:\WINDOWS\system32\ntdll.dll #1 0x01309b9f in w32_abort () at w32fns.c:7312 #2 0x0104a0af in die (msg=0x159401c "assertion failed: WINDOWP(selected_window)", file=0x1593ee0 "xdisp.c", line=1156) at alloc.c:6129 #3 0x0116327a in window_text_bottom_y (w=0x58b2c00) at xdisp.c:1156 #4 0x011c0d07 in erase_phys_cursor (w=0x58b2c00) at xdisp.c:23802 #5 0x011c1fcb in display_and_set_cursor (w=0x58b2c00, on=1, hpos=1, vpos=4, x=8, y=56) at xdisp.c:23936 #6 0x011c20e4 in update_window_cursor (w=0x58b2c00, on=1) at xdisp.c:23973 #7 0x011c229e in update_cursor_in_window_tree (w=0x58b2c00, on_p=1) at xdisp.c:23993 #8 0x011c23e8 in x_update_cursor (f=0x58b2800, on_p=1) at xdisp.c:24007 #9 0x012eb871 in frame_highlight (f=0x58b2800) at w32term.c:2743 #10 0x012ebd84 in x_frame_rehighlight (dpyinfo=0x16c6918) at w32term.c:2901 #11 0x012ebbb2 in w32_frame_rehighlight (frame=0x58b2800) at w32term.c:2873 #12 0x01288ef3 in Fredirect_frame_focus (frame=93005829, focus_frame=93005829) at frame.c:2082 #13 0x0127f4c8 in do_switch_frame (frame=93005829, track=1, for_deletion=0, norecord=49010714) at frame.c:847 #14 0x01280733 in Fselect_frame (frame=93005829, norecord=49010714) at frame.c:899 #15 0x01252702 in Fselect_window (window=93006853, norecord=49010714) at window.c:3581 #16 0x0125e7c8 in Fset_window_configuration (configuration=99327941) at window.c:6148 #17 0x0103ca56 in unbind_to (count=39, value=49010714) at eval.c:3370 #18 0x0125fefb in Fsave_window_excursion (args=50081366) at window.c:6453 #19 0x010f43ad in Fbyte_code (bytestr=49145937, vector=49031429, maxdepth=28) at bytecode.c:840 #20 0x0103bc8e in funcall_lambda (fun=51265541, nargs=2, arg_vector=0x83ea54) at eval.c:3174 #21 0x0103b3a5 in Ffuncall (nargs=3, args=0x83ea50) at eval.c:3037 #22 0x010f3824 in Fbyte_code (bytestr=49040673, vector=54388229, maxdepth=16) at bytecode.c:679 #23 0x0103bc8e in funcall_lambda (fun=50492101, nargs=0, arg_vector=0x83ed70) at eval.c:3174 #24 0x0103b3a5 in Ffuncall (nargs=1, args=0x83ed6c) at eval.c:3037 #25 0x0103a03d in run_hook_with_args (nargs=1, args=0x83ed6c, cond=to_completion) at eval.c:2679 #26 0x01039ce7 in Frun_hooks (nargs=1, args=0x83ee3c) at eval.c:2542 #27 0x0103aa95 in Ffuncall (nargs=2, args=0x83ee38) at eval.c:2970 #28 0x0103a35a in call1 (fn=49166986, arg1=49056298) at eval.c:2789 #29 0x01007e5a in safe_run_hooks_1 () at keyboard.c:2020 #30 0x010369fd in internal_condition_case (bfun=0x1007e27 , handlers=49010738, hfun=0x1007e5c ) at eval.c:1460 #31 0x01007efa in safe_run_hooks (hook=49056298) at keyboard.c:2046 #32 0x01006c29 in command_loop_1 () at keyboard.c:1743 #33 0x010369fd in internal_condition_case (bfun=0x100562b , handlers=49064346, hfun=0x1004d5f ) at eval.c:1460 #34 0x01005231 in command_loop_2 (ignore=49010714) at keyboard.c:1327 #35 0x0103647c in internal_catch (tag=49166602, func=0x100520d , arg=49010714) at eval.c:1204 #36 0x0100519c in command_loop () at keyboard.c:1292 #37 0x0100446b in recursive_edit_1 () at keyboard.c:929 #38 0x010d394e in read_minibuf (map=60546878, initial=20177105, prompt=60971569, backup_n=49010714, expflag=1, histvar=49196394, histpos=0, defalt=49010714, allow_props=0, inherit_input_method=0) at minibuf.c:711 #39 0x010d49b3 in Fread_from_minibuffer (prompt=60971569, initial_contents=20177105, keymap=60546878, sys_read=49010738, hist=49196394, default_value=49010714, inherit_input_method=49010714) at minibuf.c:998 #40 0x0103b24a in Ffuncall (nargs=8, args=0x83f400) at eval.c:3014 #41 0x010f3824 in Fbyte_code (bytestr=60281009, vector=60530821, maxdepth=32) at bytecode.c:679 #42 0x0103bc8e in funcall_lambda (fun=58351653, nargs=5, arg_vector=0x83f620) at eval.c:3174 #43 0x0103b6b4 in apply_lambda (fun=58351653, args=60588622, eval_flag=1) at eval.c:3100 #44 0x01039251 in Feval (form=60588630) at eval.c:2395 #45 0x010389a7 in Feval (form=60588638) at eval.c:2314 #46 0x010f6f4e in Fcall_interactively (function=60488066, record_flag=49010714, keys=49031941) at callint.c:345 #47 0x0103af5a in Ffuncall (nargs=4, args=0x83fb60) at eval.c:2995 #48 0x0103a3d4 in call3 (fn=49179562, arg1=60488066, arg2=49010714, arg3=49010714) at eval.c:2820 #49 0x01022793 in Fcommand_execute (cmd=60488066, record_flag=49010714, keys=49010714, special=49010714) at keyboard.c:10393 #50 0x01006bcd in command_loop_1 () at keyboard.c:1726 #51 0x010369fd in internal_condition_case (bfun=0x100562b , handlers=49064346, hfun=0x1004d5f ) at eval.c:1460 #52 0x01005231 in command_loop_2 (ignore=49010714) at keyboard.c:1327 #53 0x0103647c in internal_catch (tag=49062442, func=0x100520d , arg=49010714) at eval.c:1204 #54 0x010051ed in command_loop () at keyboard.c:1306 #55 0x0100446b in recursive_edit_1 () at keyboard.c:929 #56 0x01004985 in Frecursive_edit () at keyboard.c:991 #57 0x010027d7 in main (argc=3, argv=0x326d8) at emacs.c:1716 Lisp Backtrace: "fit-frame" (0x83ea54) "1on1-fit-minibuffer-frame" (0x83ed70) "run-hooks" (0x83ee3c) "old-read-from-minibuffer" (0x83f404) "read-from-minibuffer" (0x83f620) "list" (0x83f85c) "call-interactively" (0x83fb64) (gdb) ------------------------------- Some more info: `fit-frame' is one of my commands. It fits a frame to its (typically sole) buffer. In this case, it was run on a hook, and it was the standalone minibuffer frame that was being fit. The hook was no doubt from a run-hooks called in or just after (vanilla) `read-from-minibuffer' (which is written in C - I don't have the recent source code). I invoke 1on1-fit-minibuffer-frame in several places, but it is on a hook in only one place. I put it on post-command-hook. So when run-hooks was used for post-command hook, 1on1-fit-minibuffer-frame was called. This is the code that invoked `fit-frame'. It is this code that determines which window is selected. (defun 1on1-fit-minibuffer-frame () "Fit the standalone minibuffer frame height to its contents. Repeat to increase the height by 1. Bind this in minibuffer keymaps to a key such as `C-o' that you can use during minibuffer input. This has no effect if you do not also use library `fit-frame.el'." (interactive) (unless (require 'fit-frame nil t) (error "You need to load library `fit-frame.el' to use this command")) ;; We could assume the minibuffer frame is `1on1-minibuffer-frame', ;; but we don't. (when (and 1on1-fit-minibuffer-frame-flag (active-minibuffer-window) (save-selected-window (select-window (minibuffer-window)) ;; We should be able to use just (one-window-p), ;; but an Emacs bug means we need this: (one-window-p nil 'selected-frame))) (let* ((frame (save-selected-window (select-window (minibuffer-window)) (selected-frame))) (frame-height (frame-height frame))) (cond ((eq last-command '1on1-fit-minibuffer-frame) (set-frame-height frame (1+ (frame-height frame))) (1on1-set-minibuffer-frame-top/bottom) (condition-case nil (scroll-down (frame-height frame)) (error nil))) (t (let* ((beg (1on1-minibuffer-prompt-end)) (fit-frame-max-height 1on1-fit-minibuffer-frame-max-height) (fit-frame-max-height-percent 1on1-fit-minibuffer-frame-max-height-percent) (fit-frame-min-height 1on1-minibuffer-frame-height) (window-min-height 1on1-minibuffer-frame-height) (fit-frame-empty-height 1on1-minibuffer-frame-height) (fit-frame-empty-special-display-height 1on1-minibuffer-frame-height)) (fit-frame frame (frame-width frame)) (1on1-set-minibuffer-frame-top/bottom) (condition-case nil (scroll-down (frame-height frame)) (error nil)))))))) The window that was expected to be selected was the currently active minibuffer window. HTH. ------------------------------- In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2010-12-20 on 3249CTO Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.4) --no-opt --cflags -Ic:/imagesupport/include' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU value of $XMODIFIERS: nil locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: Dired by name Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr message rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader emacsbug dired regexp-opt tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs)