Subject: bug#7728: 24.0.50; GDB backtrace from abort

From: "Drew Adams" <[email-masked]>
Date: Mon, 10 Jan 2011 15:32:35 -0800

Here is another crash.  Dunno whether this is the same bug.  If it is, and if
the additional info here doesn't help, then ignore.  If it is a different bug,
please create a different bug for this info.  HTH. 

$ ./gdb -p 1580
GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Attaching to process 1580
[New Thread 1580.0x1604]
[New Thread 1580.0x1400]
[New Thread 1580.0x1464]
[New Thread 1580.0x1334]
Reading symbols from C:\Emacs-24-2011-01-03\bin\emacs.exe...done.
[Switching to Thread 1580.0x1334]
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 0x1308a1c: file w32fns.c, line 7298.
Temporary breakpoint 2 at 0x11cf0c9: file sysdep.c, line 839.
(gdb) c
Continuing.

Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 1580.0x1604]
0x7c90120f in ntdll!DbgUiConnectToDbg () from C:\WINDOWS\system32\ntdll.dll
(gdb) bt
#0  0x7c90120f in ntdll!DbgUiConnectToDbg () from C:\WINDOWS\system32\ntdll.dll
#1  0x01308a53 in w32_abort () at w32fns.c:7312
#2  0x01049f03 in die (msg=0x1592fbc "assertion failed:
WINDOWP(selected_window)",
    file=0x1592e80 "xdisp.c", line=1156) at alloc.c:6129
#3  0x01162d06 in window_text_bottom_y (w=0x3865a00) at xdisp.c:1156
#4  0x011c0737 in erase_phys_cursor (w=0x3865a00) at xdisp.c:23805
#5  0x011c19fb in display_and_set_cursor (w=0x3865a00, on=1, hpos=2, vpos=6,
x=16, y=87)
    at xdisp.c:23939
#6  0x011c1b14 in update_window_cursor (w=0x3865a00, on=1) at xdisp.c:23976
#7  0x011c1cce in update_cursor_in_window_tree (w=0x3865a00, on_p=1) at
xdisp.c:23996
#8  0x011c1e18 in x_update_cursor (f=0x31aee00, on_p=1) at xdisp.c:24010
#9  0x012ea74b in frame_unhighlight (f=0x31aee00) at w32term.c:2750
#10 0x012eac1a in x_frame_rehighlight (dpyinfo=0x16c5928) at w32term.c:2899
#11 0x012eaa66 in w32_frame_rehighlight (frame=0x31aee00) at w32term.c:2873
#12 0x01288a2b in Fredirect_frame_focus (frame=52096517, focus_frame=58688517)
    at frame.c:2082
#13 0x0127f000 in do_switch_frame (frame=58688517, track=1, for_deletion=0,
    norecord=49006618) at frame.c:847
#14 0x0128026b in Fselect_frame (frame=58688517, norecord=49006618) at
frame.c:899
#15 0x01252132 in Fselect_window (window=59212805, norecord=49006618) at
window.c:3586
#16 0x0125e2f5 in Fset_window_configuration (configuration=52819845) at
window.c:6159
#17 0x0103c8aa in unbind_to (count=42, value=64852305) at eval.c:3325
#18 0x010d3ffa in read_minibuf (map=48995734, initial=66477985, prompt=54882353,
    backup_n=20, expflag=0, histvar=49192130, histpos=0, defalt=66477985,
    allow_props=1, inherit_input_method=0) at minibuf.c:805
#19 0x010d4807 in Fread_from_minibuffer (prompt=54882353,
initial_contents=64829062,
    keymap=48995734, sys_read=49006618, hist=49192130, default_value=66477985,
    inherit_input_method=49006618) at minibuf.c:998
#20 0x0103b09e in Ffuncall (nargs=8, args=0x83e920) at eval.c:2969
#21 0x010f32b0 in Fbyte_code (bytestr=59837009, vector=55670533, maxdepth=32)
    at bytecode.c:679
#22 0x0103bae2 in funcall_lambda (fun=52611557, nargs=7, arg_vector=0x83ebe4)
    at eval.c:3129
#23 0x0103b1f9 in Ffuncall (nargs=8, args=0x83ebe0) at eval.c:2992
#24 0x010f32b0 in Fbyte_code (bytestr=60202865, vector=60196869, maxdepth=32)
    at bytecode.c:679
#25 0x0103bae2 in funcall_lambda (fun=50799653, nargs=8, arg_vector=0x83eea4)
    at eval.c:3129
#26 0x0103b1f9 in Ffuncall (nargs=9, args=0x83eea0) at eval.c:2992
#27 0x010f32b0 in Fbyte_code (bytestr=58090801, vector=55460933, maxdepth=36)
    at bytecode.c:679
#28 0x01038de5 in Feval (form=59495286) at eval.c:2358
#29 0x01036494 in internal_catch (tag=60883186, func=0x10382ac <Feval>,
arg=59495286)
    at eval.c:1206
#30 0x010f3ead in Fbyte_code (bytestr=60199057, vector=55375621, maxdepth=40)
    at bytecode.c:854
#31 0x0103bae2 in funcall_lambda (fun=50800133, nargs=7, arg_vector=0x83f440)
    at eval.c:3129
#32 0x0103b508 in apply_lambda (fun=50800133, args=57728030, eval_flag=1) at
eval.c:3055
#33 0x01039269 in Feval (form=57728086) at eval.c:2397
#34 0x01034591 in Fsetq (args=57728094) at eval.c:496
#35 0x010387e8 in Feval (form=57728102) at eval.c:2299
#36 0x01034415 in Fprogn (args=57921326) at eval.c:397
#37 0x01035fd9 in Flet (args=57728110) at eval.c:1054
#38 0x010387e8 in Feval (form=57728246) at eval.c:2299
#39 0x010f69da in Fcall_interactively (function=49554322, record_flag=49006618,
    keys=49027845) at callint.c:345
#40 0x0103adae in Ffuncall (nargs=4, args=0x83fb60) at eval.c:2950
#41 0x0103a228 in call3 (fn=49175466, arg1=49554322, arg2=49006618,
arg3=49006618)
    at eval.c:2775
#42 0x010227ad in Fcommand_execute (cmd=49554322, record_flag=49006618,
keys=49006618,
    special=49006618) at keyboard.c:10393
#43 0x01006bcd in command_loop_1 () at keyboard.c:1726
#44 0x01036a15 in internal_condition_case (bfun=0x100562b <command_loop_1>,
    handlers=49060250, hfun=0x1004d5f <cmd_error>) at eval.c:1462
#45 0x01005231 in command_loop_2 (ignore=49006618) at keyboard.c:1327
#46 0x01036494 in internal_catch (tag=49058346, func=0x100520d <command_loop_2>,
    arg=49006618) at eval.c:1206
#47 0x010051ed in command_loop () at keyboard.c:1306
#48 0x0100446b in recursive_edit_1 () at keyboard.c:929
#49 0x01004985 in Frecursive_edit () at keyboard.c:991
#50 0x010027d7 in main (argc=3, argv=0x33c80) at emacs.c:1716

Lisp Backtrace:
"old-read-from-minibuffer" (0x83e924)
"read-from-minibuffer" (0x83ebe4)
"icicle-lisp-vanilla-completing-read" (0x83eea4)
"byte-code" (0x83f0c4)
"completing-read" (0x83f440)
"setq" (0x83f69c)
"let" (0x83f85c)
"call-interactively" (0x83fb64)
(gdb) frame 2
#2  0x01049f03 in die (msg=0x1592fbc "assertion failed:
WINDOWP(selected_window)",
    file=0x1592e80 "xdisp.c", line=1156) at alloc.c:6129
6129    alloc.c: No such file or directory.
        in alloc.c
(gdb) p selected_window
$1 = 49006618
(gdb) xtype
Lisp_Symbol
(gdb) xsymbol
$2 = (struct Lisp_Symbol *) 0x2ebc818
"nil"
(gdb)

In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2011-01-03 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.4) --no-opt --cflags
-Ic:/imagesupport/include'