unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#12251: 24.2.50; crash in note_mouse_highlight
@ 2012-08-21 18:20 Sam Steingold
  2012-08-21 18:42 ` Eli Zaretskii
  0 siblings, 1 reply; 37+ messages in thread
From: Sam Steingold @ 2012-08-21 18:20 UTC (permalink / raw)
  To: 12251

In GNU Emacs 24.2.50.3 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2012-08-20 on t520sds
Bzr revision: 109703 rgm@gnu.org-20120820181303-1o7qqwvj2z4q4cuu
Windowing system distributor `The X.Org Foundation', version 11.0.11103000
Configured using:
 `configure '--with-wide-int''

emacs just crashed for me:

Program received signal SIGSEGV, Segmentation fault.
note_mouse_highlight (f=0x1175580, x=298, y=1012) at /home/sds/src/emacs/trunk/src/xdisp.c:27710
27710         && w->last_modified == BUF_MODIFF (b)
(gdb) xbacktrace
(gdb) backtrace
#0  note_mouse_highlight (f=0x1175580, x=298, y=1012) at /home/sds/src/emacs/trunk/src/xdisp.c:27710
#1  0x00000000004b7668 in note_mouse_movement (frame=0x1175580, event=0x7fffffffc8a0) at /home/sds/src/emacs/trunk/src/xterm.c:3858
#2  0x00000000004c0101 in handle_one_xevent (dpyinfo=0x1336c10, eventptr=0x7fffffffc9c0, finish=0x7fffffffc9bc,
    hold_quit=0x7fffffffcd50) at /home/sds/src/emacs/trunk/src/xterm.c:6801
#3  0x00000000004c18b6 in XTread_socket (terminal=0xfc4d28, expected=<optimized out>, hold_quit=0x7fffffffcd50)
    at /home/sds/src/emacs/trunk/src/xterm.c:7185
#4  0x00000000004f91b7 in read_avail_input (expected=1) at /home/sds/src/emacs/trunk/src/keyboard.c:6897
#5  0x00000000004f92da in handle_async_input () at /home/sds/src/emacs/trunk/src/keyboard.c:7226
#6  0x00000000004b9ac5 in XTring_bell (f=<optimized out>) at /home/sds/src/emacs/trunk/src/xterm.c:3259
#7  XTring_bell (f=0x1175580) at /home/sds/src/emacs/trunk/src/xterm.c:3248
#8  0x00000000004f5da5 in cmd_error_internal (data=68832822, context=0x7fffffffcf30 "")
    at /home/sds/src/emacs/trunk/src/keyboard.c:1147
#9  0x00000000004f5f23 in cmd_error (data=68832822) at /home/sds/src/emacs/trunk/src/keyboard.c:1080
#10 0x0000000000567fe9 in internal_condition_case (bfun=0x501430 <command_loop_1>, handlers=12043794, hfun=0x4f5e10 <cmd_error>)
    at /home/sds/src/emacs/trunk/src/eval.c:1312
#11 0x00000000004f3e6e in command_loop_2 (ignore=<optimized out>) at /home/sds/src/emacs/trunk/src/keyboard.c:1204
#12 0x0000000000567e98 in internal_catch (tag=11992018, func=0x4f3e50 <command_loop_2>, arg=11992018)
    at /home/sds/src/emacs/trunk/src/eval.c:1079
#13 0x00000000004f58d7 in command_loop () at /home/sds/src/emacs/trunk/src/keyboard.c:1183
#14 recursive_edit_1 () at /home/sds/src/emacs/trunk/src/keyboard.c:804
#15 0x00000000004f5c14 in Frecursive_edit () at /home/sds/src/emacs/trunk/src/keyboard.c:868
#16 0x000000000040fffd in main (argc=1, argv=<optimized out>) at /home/sds/src/emacs/trunk/src/emacs.c:1662
(gdb) xbacktrace
(gdb) p b
$1 = (struct buffer *) 0xb6fbcd
(gdb) p *b
$2 = {
  header = {
    size = 6845104128,
    next = {
      nbytes = 144868458364928,
      buffer = 0x83c1d1000000,
      vector = 0x83c1d1000000
    } 
  },
  name_ = 201192676261888,
  filename_ = 201191870955520,
  directory_ = 1019673118244864,
  backed_up_ = 0,
  save_length_ = 2550136832,
  auto_save_file_name_ = 144868995235840,
  read_only_ = 201193481568256,
  mark_ = 201191870955520,
  local_var_alist_ = 267594548379648,
  major_mode_ = 0,
  mode_name_ = 2281701376,
  mode_line_format_ = 144869532106752,
  header_line_format_ = 201191870955520,
  keymap_ = 201191870955520,
  abbrev_table_ = 201192676261888,
  syntax_table_ = 0,
  category_table_ = 2281701376,
  case_fold_search_ = 144870068977664,
  tab_width_ = 201191870955520,
  fill_column_ = 190696363393024,
  left_margin_ = 200854514696192,
  auto_fill_function_ = 0,
  downcase_table_ = 2281701376,
  upcase_table_ = 144870605848576,
  case_canon_table_ = 201191870955520,
  case_eqv_table_ = 201191870955520,
  truncate_lines_ = 201192676261888,
  word_wrap_ = 0,
  ctl_arrow_ = 2281701376,
  bidi_display_reordering_ = 144871142719488,
  bidi_paragraph_direction_ = 201191870955520,
  selective_display_ = 144450437251072,
  selective_display_ellipses_ = 200857199050752,
  minor_modes_ = 0,
  overwrite_mode_ = 2281701376,
  abbrev_mode_ = 144871679590400,
  display_table_ = 201191870955520,
  mark_active_ = 201191870955520,
  enable_multibyte_characters_ = 200857735921664,
  buffer_file_coding_system_ = 0,
  file_format_ = 2281701376,
  auto_save_file_format_ = 144873290203136,
  cache_long_line_scans_ = 201191870955520,
  width_table_ = 159832728403968,
  pt_marker_ = 201192676261888,
  begv_marker_ = 0,
  zv_marker_ = 2281701376,
  point_before_scroll_ = 144873827074048,
  file_truename_ = 201191870955520,
  invisibility_spec_ = 201191870955520,
  last_selected_window_ = 201192676261888,
  display_count_ = 0,
  left_margin_cols_ = 2281701376,
  right_margin_cols_ = 144874363944960,
  left_fringe_width_ = 201191870955520,
  right_fringe_width_ = 201191870955520,
  fringes_outside_margins_ = 200727813160960,
  scroll_bar_width_ = 0,
  vertical_scroll_bar_type_ = 2281701376,
  indicate_empty_lines_ = 144874900815872,
  indicate_buffer_boundaries_ = 201191870955520,
  fringe_indicator_alist_ = 201191870955520,
  fringe_cursor_alist_ = 201192676261888,
  display_time_ = 0,
  scroll_up_aggressively_ = 6509559808,
  scroll_down_aggressively_ = 144875437686784,
  cursor_type_ = 979353743654912,
  extra_line_spacing_ = 201191870955520,
  cursor_in_non_selected_windows_ = 200858272792576,
  own_text = {
    beg = 0x0,
    gpt = 2281701376,
    z = 144877048299520,
    gpt_byte = 201191870955520,
    z_byte = 201191870955520,
    gap_size = 256685063012352,
    modiff = 0,
    chars_modiff = 2281701376,
    save_modiff = 144877585170432,
    overlay_modiff = 201191870955520,
    compact = 201191870955520,
    beg_unchanged = 201192676261888,
    end_unchanged = 0,
    unchanged_modified = 2281701376,
    overlay_unchanged_modified = 144878122041344,
    intervals = 0xb6fba2000000,
    markers = 0x836f15000000,
    inhibit_shrinking = -771751936
  },
  text = 0x0,
  pt = 2281701376,
  pt_byte = 144878658912256,
  begv = 201191870955520,
  begv_byte = 164619201019904,
  zv = 201192676261888,
  zv_byte = 0,
  base_buffer = 0x98000000,
  indirections = 1358954496,
  local_flags = "ă\000\000\000\000\000\322\376\266\000\000\000\000\000\242\373\266\000\000\000\000\000\322\373\266", '\000' <repeats 13 times>"\230, \000\000\000\000\000\000\000qă",
  modtime = {
    tv_sec = 201206366470144,
    tv_nsec = 201191870955520
  },
  modtime_size = 201192676261888,
  auto_save_modified = 0,
  display_error_modiff = 2550136832,
  auto_save_failure_time = 144880269524992,
  last_window_start = 201207171776512,
  newline_cache = 0xb6fba2000000,
  width_run_cache = 0xb6fbd2000000,
  prevent_redisplay_optimizations_p = 0,
  clip_changed = 0,
  overlays_before = 0x98000000,
  overlays_after = 0x83c4b1000000,
  overlay_center = 201207977082880,
  undo_list_ = 201191870955520
}
(gdb) p w
$3 = (struct window *) 0x47ab190
(gdb) p *w
$4 = {
  header = {
    size = 4611686018427650087,
    next = {
      nbytes = 480,
      buffer = 0x1e0,
      vector = 0x1e0
    }
  },
  frame = 18306437,
  next = 18314661,
  prev = 11992018,
  hchild = 11992018,
  vchild = 11992018,
  parent = 11992018,
  left_col = 0,
  top_line = 0,
  total_lines = 11992018,
  total_cols = 796,
  normal_lines = 11968239,
  normal_cols = 11968231,
  new_total = 796,
  new_normal = 11992018,
  buffer = 11992018,
  start = 11992018,
  pointm = 11992018,
  temslot = 0,
  vertical_scroll_bar = 46806189,
  left_margin_cols = 11992018,
  right_margin_cols = 11992018,
  left_fringe_width = 11992018,
  right_fringe_width = 11992018,
  scroll_bar_width = 40,
  vertical_scroll_bar_type = 11992066,
  window_end_pos = 0,
  window_end_vpos = 0,
  window_end_valid = 11992018,
  display_table = 11992018,
  dedicated = 11992018,
  base_line_number = 4,
  base_line_pos = 4,
  region_showing = 11992018,
  column_number_displayed = 260,
  redisplay_end_trigger = 11992018,
  combination_limit = 11992018,
  prev_buffers = 41307798,
  next_buffers = 11992018,
  window_parameters = 11992018,
  current_matrix = 0x0,
  desired_matrix = 0x0,
  use_time = 3650,
  sequence_number = 139,
  hscroll = 0,
  min_hscroll = 0,
  last_modified = 0,
  last_overlay_modified = 0,
  last_point = 2630,
  nrows_scale_factor = 1,
  ncols_scale_factor = 1,
  last_cursor = {
    x = 0,
    y = 0,
    hpos = 0,
    vpos = 0
  },
  cursor = {
    x = 0,
    y = 0,
    hpos = 0,
    vpos = 0
  },
  phys_cursor = {
    x = 0,
    y = 0,
    hpos = 0,
    vpos = 0
  },
  phys_cursor_type = -1,
  phys_cursor_width = -1,
  phys_cursor_ascent = 11,
  phys_cursor_height = 13,
  mini = 0,
  update_mode_line = 0,
  last_had_star = 0,
  start_at_line_beg = 1,
  force_start = 0,
  optional_new_start = 0,
  phys_cursor_on_p = 1,
  cursor_off_p = 0,
  last_cursor_off_p = 0,
  must_be_updated_p = 0,
  pseudo_window_p = 0,
  frozen_window_start_p = 0,
  fringes_outside_margins = 0,
  vscroll = 0,
  window_end_bytepos = 4504
}


(gdb) generate-core-file
warning: Memory read failed for corefile section, 1048576 bytes at 0x7fffeb3f5000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7fffeb5fe000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff090b000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff0b11000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff0d1b000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff0f26000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff113f000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff134a000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff1557000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff1a27000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff1c2d000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff1e30000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff2042000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff22bd000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff24d1000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff26f9000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff2938000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff2b40000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff2d59000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff2f7a000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff317f000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff3382000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff35a1000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff37b8000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff39bd000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff3bce000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff3f82000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff4240000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff447c000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff4714000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff4a0c000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff4c5c000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff4fa6000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff51cf000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff5525000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff5747000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff598e000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff5b97000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff5dac000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff5fb6000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff62e6000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff64fb000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff6704000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff69fe000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff6c25000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff6e65000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff70d7000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff72f0000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff74fb000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff775b000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff7979000.
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff7bcd000.
Saved corefile core.7393

I now have a core file which, so, if you want, I can do more debugging
(if you tell me the specific commands to invoke, starting with the "gdb
command line").

I cannot say what triggered the crash; I switched back to the emacs
window to find it nonresponsive and then I switched to the gdb screen
window to discover that emacs crashed.

-- 
Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000
http://www.childpsy.net/ http://pmw.org.il http://thereligionofpeace.com
http://jihadwatch.org http://camera.org http://honestreporting.com
To avoid fatigue, one must sleep 8 hours every day. And 8 hours every night too.





^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-08-21 18:20 bug#12251: 24.2.50; crash in note_mouse_highlight Sam Steingold
@ 2012-08-21 18:42 ` Eli Zaretskii
  2012-08-21 19:02   ` Sam Steingold
  0 siblings, 1 reply; 37+ messages in thread
From: Eli Zaretskii @ 2012-08-21 18:42 UTC (permalink / raw)
  To: sds; +Cc: 12251

> From: Sam Steingold <sds@gnu.org>
> Date: Tue, 21 Aug 2012 14:20:48 -0400
> 
> In GNU Emacs 24.2.50.3 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars)
>  of 2012-08-20 on t520sds
> Bzr revision: 109703 rgm@gnu.org-20120820181303-1o7qqwvj2z4q4cuu
> Windowing system distributor `The X.Org Foundation', version 11.0.11103000
> Configured using:
>  `configure '--with-wide-int''
> 
> emacs just crashed for me:
> 
> Program received signal SIGSEGV, Segmentation fault.
> note_mouse_highlight (f=0x1175580, x=298, y=1012) at /home/sds/src/emacs/trunk/src/xdisp.c:27710
> 27710         && w->last_modified == BUF_MODIFF (b)

The problem is with b->text:

>  text = 0x0,

whereas BUF_MODIFF needs to dereference it:

  #define BUF_MODIFF(buf) ((buf)->text->modiff)

However, ...

> #8  0x00000000004f5da5 in cmd_error_internal (data=68832822, context=0x7fffffffcf30 "")
>     at /home/sds/src/emacs/trunk/src/keyboard.c:1147
> #9  0x00000000004f5f23 in cmd_error (data=68832822) at /home/sds/src/emacs/trunk/src/keyboard.c:1080

what error are we trying to process here?  What is 'data' in frame #8?





^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-08-21 18:42 ` Eli Zaretskii
@ 2012-08-21 19:02   ` Sam Steingold
  2012-08-21 19:22     ` Eli Zaretskii
  0 siblings, 1 reply; 37+ messages in thread
From: Sam Steingold @ 2012-08-21 19:02 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 12251

> * Eli Zaretskii <ryvm@tah.bet> [2012-08-21 21:42:14 +0300]:
>
>> #8  0x00000000004f5da5 in cmd_error_internal (data=68832822, context=0x7fffffffcf30 "")
>>     at /home/sds/src/emacs/trunk/src/keyboard.c:1147
>> #9 0x00000000004f5f23 in cmd_error (data=68832822) at
>> /home/sds/src/emacs/trunk/src/keyboard.c:1080
>
> what error are we trying to process here?  What is 'data' in frame #8?

how do I figure that out?

$ gdb -x ~/src/emacs/trunk/build/src/.gdbinit ~/src/emacs/trunk/build/src/emacs core.7393 
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04
Reading symbols from /home/sds/src/emacs/trunk/build/src/emacs...done.
[New LWP 7397]
[New LWP 7396]
[New LWP 7393]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `emacs'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007ffff3eb5b03 in poll () from /lib/x86_64-linux-gnu/libc.so.6
Warning: /home/sds/../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]
DISPLAY = :0
TERM = screen
Breakpoint 1 at 0x4f0aa0: abort. (2 locations)
Temporary breakpoint 2 at 0x50c7a0: file /home/sds/src/emacs/trunk/src/sysdep.c, line 849.
(gdb) f 8
#0  0x0000000000000000 in ?? ()
(gdb) whee
Undefined command: "whee".  Try "help".
(gdb) where
#0  0x00007ffff3eb5b03 in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffff4962036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff496249a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff4f27406 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007ffff49839e5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff5736e9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#6  0x00007ffff3ec14bd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#7  0x0000000000000000 in ?? ()
(gdb) 


-- 
Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000
http://www.childpsy.net/ http://thereligionofpeace.com http://jihadwatch.org
http://palestinefacts.org http://pmw.org.il http://americancensorship.org
(let((a'(list'let(list(list'a(list'quote a)))a)))`(let((a(quote ,a))),a))





^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-08-21 19:02   ` Sam Steingold
@ 2012-08-21 19:22     ` Eli Zaretskii
  2012-08-22  2:43       ` Sam Steingold
  0 siblings, 1 reply; 37+ messages in thread
From: Eli Zaretskii @ 2012-08-21 19:22 UTC (permalink / raw)
  To: sds; +Cc: 12251

> From: Sam Steingold <sds@gnu.org>
> Cc: 12251@debbugs.gnu.org
> Date: Tue, 21 Aug 2012 15:02:51 -0400
> 
> > * Eli Zaretskii <ryvm@tah.bet> [2012-08-21 21:42:14 +0300]:
> >
> >> #8  0x00000000004f5da5 in cmd_error_internal (data=68832822, context=0x7fffffffcf30 "")
> >>     at /home/sds/src/emacs/trunk/src/keyboard.c:1147
> >> #9 0x00000000004f5f23 in cmd_error (data=68832822) at
> >> /home/sds/src/emacs/trunk/src/keyboard.c:1080
> >
> > what error are we trying to process here?  What is 'data' in frame #8?
> 
> how do I figure that out?

 (gdb) frame 8
 (gdb) p data
 (gdb) xtype

Then use the appropriate "x" command according to the type shown by
"xtype".  E.g., if "xtype" says 'data' is a symbol, use "xsymbol" to
show what symbol is that; if it says it's a string, use "xstring",
etc.

> $ gdb -x ~/src/emacs/trunk/build/src/.gdbinit ~/src/emacs/trunk/build/src/emacs core.7393 
> GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04
> Reading symbols from /home/sds/src/emacs/trunk/build/src/emacs...done.
> [New LWP 7397]
> [New LWP 7396]
> [New LWP 7393]
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> Core was generated by `emacs'.
> Program terminated with signal 11, Segmentation fault.
> #0  0x00007ffff3eb5b03 in poll () from /lib/x86_64-linux-gnu/libc.so.6
> Warning: /home/sds/../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]
> DISPLAY = :0
> TERM = screen
> Breakpoint 1 at 0x4f0aa0: abort. (2 locations)
> Temporary breakpoint 2 at 0x50c7a0: file /home/sds/src/emacs/trunk/src/sysdep.c, line 849.
> (gdb) f 8
> #0  0x0000000000000000 in ?? ()
> (gdb) whee
> Undefined command: "whee".  Try "help".
> (gdb) where
> #0  0x00007ffff3eb5b03 in poll () from /lib/x86_64-linux-gnu/libc.so.6
> #1  0x00007ffff4962036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #2  0x00007ffff496249a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #3  0x00007ffff4f27406 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
> #4  0x00007ffff49839e5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #5  0x00007ffff5736e9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
> #6  0x00007ffff3ec14bd in clone () from /lib/x86_64-linux-gnu/libc.so.6
> #7  0x0000000000000000 in ?? ()
> (gdb) 

Wrong thread, I think.  Try other threads ("thread N" will switch to
thread number N, "info threads" will show all of them).  You want the
thread whose frame #0 is on line 27710 of xdisp.c, as you reported in
the original bug report.





^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-08-21 19:22     ` Eli Zaretskii
@ 2012-08-22  2:43       ` Sam Steingold
  2012-08-22 17:09         ` Eli Zaretskii
  0 siblings, 1 reply; 37+ messages in thread
From: Sam Steingold @ 2012-08-22  2:43 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 12251

> * Eli Zaretskii <ryvm@tah.bet> [2012-08-21 22:22:34 +0300]:
>
>> > what error are we trying to process here?  What is 'data' in frame #8?
>> 
>> how do I figure that out?
>
>  (gdb) frame 8
>  (gdb) p data
>  (gdb) xtype
>
> Then use the appropriate "x" command according to the type shown by
> "xtype".  E.g., if "xtype" says 'data' is a symbol, use "xsymbol" to
> show what symbol is that; if it says it's a string, use "xstring",
> etc.

(gdb) f 8
#8  0x00000000004f5da5 in cmd_error_internal (data=68832822, context=0x7fffffffcf30 "") at /home/sds/src/emacs/trunk/src/keyboard.c:1147
1147          bitch_at_user ();
(gdb) p data
$1 = 68832822
(gdb) xtype
Lisp_Cons
(gdb) xcons
$2 = (struct Lisp_Cons *) 0x41a4e30
{
  car = 0xb7c612, 
  u = {
    cdr = 0x41a4e56, 
    chain = 0x41a4e56
  }
}
(gdb) p 0xb7c612
$3 = 12043794
(gdb) xtype
Lisp_Symbol
(gdb) xsymbol 
$4 = (struct Lisp_Symbol *) 0xb7c610
"error"
(gdb) p 0x41a4e56
$5 = 68832854
(gdb) xtype
Lisp_Cons
(gdb) xcons
$6 = (struct Lisp_Cons *) 0x41a4e50
{
  car = 0x3032031, 
  u = {
    cdr = 0xb6fbd2, 
    chain = 0xb6fbd2
  }
}
(gdb) p 0x3032031
$7 = 50536497
(gdb) xtype
Lisp_String
(gdb) xstring 
$8 = (struct Lisp_String *) 0x3032030
"#<window 139> is not a valid window"
(gdb) p 0xb6fbd2
$9 = 11992018
(gdb) xtype
Lisp_Symbol
(gdb) xsymbol 
$10 = (struct Lisp_Symbol *) 0xb6fbd0
"nil"
(gdb) 

meanwhile, I got another crash:

#0  remember_mouse_glyph (f=<optimized out>, gx=139, gy=549, rect=0xaf1c20) at /home/sds/src/emacs/trunk/src/xdisp.c:2251
        window = <optimized out>
        w = <optimized out>
        r = <optimized out>
        gr = <optimized out>
        end_row = <optimized out>
        part = ON_TEXT
        area = <optimized out>
        x = 120
        y = <optimized out>
        width = 6
        height = 13
#1  0x00000000004b767b in note_mouse_movement (frame=0x1175580, event=0x7fffffffc8a0) at /home/sds/src/emacs/trunk/src/xterm.c:3860
No locals.
#2  0x00000000004c07fe in handle_one_xevent (dpyinfo=0x1336c10, eventptr=0x7fffffffc9c0, finish=0x7fffffffc9bc, 
    hold_quit=0x7fffffffcd50) at /home/sds/src/emacs/trunk/src/xterm.c:6701
        inev = {
          ie = {
            kind = NO_EVENT, 
            code = 0, 
            part = scroll_bar_above_handle, 
            modifiers = 0, 
            x = 0, 
            y = 0, 
            timestamp = 0, 
            padding = {0x0, 0x0}, 
            frame_or_window = 0, 
            arg = 11992018
          }, 
          sie = {
            kind = 0, 
            display = 0x0, 
            requestor = 0, 
            selection = 0, 
            target = 0, 
            property = 0, 
            time = 0
          }
        }
        count = 0
        do_help = 0
        nbytes = 0
        f = 0x1175580
        coding = {
          id = 0, 
          common_flags = 0, 
          mode = 0, 
          spec = {
            iso_2022 = {
              flags = 0, 
              current_invocation = {0, 0}, 
              current_designation = {0, 0, 0, 0}, 
              single_shifting = 0, 
              bol = 0, 
              ctext_extended_segment_len = 0, 
              embedded_utf_8 = 0, 
              cmp_status = {
                state = COMPOSING_NO, 
                method = COMPOSITION_RELATIVE, 
                old_form = 0, 
                length = 0, 
                nchars = 0, 
                ncomps = 0, 
                carryover = {0 <repeats 68 times>}
              }
            }, 
            ccl = 0x0, 
            utf_16 = {
              bom = utf_detect_bom, 
              endian = utf_16_big_endian, 
              surrogate = 0
            }, 
            utf_8_bom = utf_detect_bom, 
            emacs_mule = {
              full_support = 0, 
              cmp_status = {
                state = COMPOSING_NO, 
                method = COMPOSITION_RELATIVE, 
                old_form = 0, 
                length = 0, 
                nchars = 0, 
                ncomps = 0, 
                carryover = {0 <repeats 68 times>}
              }
            }
          }, 
          max_charset_id = 0, 
          safe_charsets = 0x0, 
          src_multibyte = 0, 
          dst_multibyte = 0, 
          head_ascii = 0, 
          produced = 0, 
          produced_char = 0, 
          consumed = 0, 
          consumed_char = 0, 
          errors = 0, 
          error_positions = 0x0, 
          result = CODING_RESULT_SUCCESS, 
          src_pos = 0, 
          src_pos_byte = 0, 
          src_chars = 0, 
          src_bytes = 0, 
          src_object = 0, 
          source = 0x0, 
          dst_pos = 0, 
          dst_pos_byte = 0, 
          dst_bytes = 0, 
          dst_object = 0, 
          destination = 0x0, 
          chars_at_source = 0, 
          charbuf = 0x0, 
          charbuf_size = 0, 
          charbuf_used = 0, 
          annotated = 0, 
          carryover = '\000' <repeats 63 times>, 
          carryover_bytes = 0, 
          default_char = 0, 
          detector = 0, 
          decoder = 0, 
          encoder = 0
        }
        event = {
          type = 7, 
          xany = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            window = 41943230
          }, 
          xkey = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            window = 41943230, 
            root = 178, 
            subwindow = 0, 
            time = 95626893, 
            x = 139, 
            y = 549, 
            x_root = 139, 
            y_root = 601, 
            state = 2, 
            keycode = 3, 
            same_screen = 1
          }, 
          xbutton = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            window = 41943230, 
            root = 178, 
            subwindow = 0, 
            time = 95626893, 
            x = 139, 
            y = 549, 
            x_root = 139, 
            y_root = 601, 
            state = 2, 
            button = 3, 
            same_screen = 1
          }, 
          xmotion = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            window = 41943230, 
            root = 178, 
            subwindow = 0, 
            time = 95626893, 
            x = 139, 
            y = 549, 
            x_root = 139, 
            y_root = 601, 
            state = 2, 
            is_hint = 3 '\003', 
            same_screen = 1
          }, 
          xcrossing = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            window = 41943230, 
            root = 178, 
            subwindow = 0, 
            time = 95626893, 
            x = 139, 
            y = 549, 
            x_root = 139, 
            y_root = 601, 
            mode = 2, 
            detail = 3, 
            same_screen = 1, 
            focus = 1, 
            state = 28
          }, 
          xfocus = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            window = 41943230, 
            mode = 178, 
            detail = 0
          }, 
          xexpose = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            window = 41943230, 
            x = 178, 
            y = 0, 
            width = 0, 
            height = 0, 
            count = 95626893
          }, 
          xgraphicsexpose = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            drawable = 41943230, 
            x = 178, 
            y = 0, 
            width = 0, 
            height = 0, 
            count = 95626893, 
            major_code = 0, 
            minor_code = 139
          }, 
          xnoexpose = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            drawable = 41943230, 
            major_code = 178, 
            minor_code = 0
          }, 
          xvisibility = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            window = 41943230, 
            state = 178
          }, 
          xcreatewindow = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            parent = 41943230, 
            window = 178, 
            x = 0, 
            y = 0, 
            width = 95626893, 
            height = 0, 
            border_width = 139, 
            override_redirect = 549
          }, 
          xdestroywindow = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            event = 41943230, 
            window = 178
          }, 
          xunmap = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            event = 41943230, 
            window = 178, 
            from_configure = 0
          }, 
          xmap = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            event = 41943230, 
            window = 178, 
            override_redirect = 0
          }, 
          xmaprequest = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            parent = 41943230, 
            window = 178
          }, 
          xreparent = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            event = 41943230, 
            window = 178, 
            parent = 0, 
            x = 95626893, 
            y = 0, 
            override_redirect = 139
          }, 
          xconfigure = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            event = 41943230, 
            window = 178, 
            x = 0, 
            y = 0, 
            width = 95626893, 
            height = 0, 
            border_width = 139, 
            above = 2581275345035, 
            override_redirect = 2
          }, 
          xgravity = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            event = 41943230, 
            window = 178, 
            x = 0, 
            y = 0
          }, 
          xresizerequest = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            window = 41943230, 
            width = 178, 
            height = 0
          }, 
          xconfigurerequest = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            parent = 41943230, 
            window = 178, 
            x = 0, 
            y = 0, 
            width = 95626893, 
            height = 0, 
            border_width = 139, 
            above = 2581275345035, 
            detail = 2, 
            value_mask = 4294967297
          }, 
          xcirculate = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            event = 41943230, 
            window = 178, 
            place = 0
          }, 
          xcirculaterequest = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            parent = 41943230, 
            window = 178, 
            place = 0
          }, 
          xproperty = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            window = 41943230, 
            atom = 178, 
            time = 0, 
            state = 95626893
          }, 
          xselectionclear = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            window = 41943230, 
            selection = 178, 
            time = 0
          }, 
          xselectionrequest = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            owner = 41943230, 
            requestor = 178, 
            selection = 0, 
            target = 95626893, 
            property = 2357937045643, 
            time = 2581275345035
          }, 
          xselection = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            requestor = 41943230, 
            selection = 178, 
            target = 0, 
            property = 95626893, 
            time = 2357937045643
          }, 
          xcolormap = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            window = 41943230, 
            colormap = 178, 
            new = 0, 
            state = 0
          }, 
          xclient = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            window = 41943230, 
            message_type = 178, 
            format = 0, 
            data = {
              b = "\215&\263\005\000\000\000\000\213\000\000\000%\002\000\000\213\000\000", 
              s = {9869, 1459, 0, 0, 139, 0, 549, 0, 139, 0}, 
              l = {95626893, 2357937045643, 2581275345035, 12884901890, 4294967297}
            }
          }, 
          xmapping = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            window = 41943230, 
            request = 178, 
            first_keycode = 0, 
            count = 0
          }, 
          xerror = {
            type = 7, 
            display = 0x122167, 
            resourceid = 0, 
            serial = 20053760, 
            error_code = 190 '\276', 
            request_code = 0 '\000', 
            minor_code = 128 '\200'
          }, 
          xkeymap = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            window = 41943230, 
            key_vector = "\262", '\000' <repeats 15 times>"\215, &\263\005\000\000\000\000\213\000\000\000%\002\000"
          }, 
          xgeneric = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            extension = 41943230, 
            evtype = 0
          }, 
          xcookie = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            extension = 41943230, 
            evtype = 0, 
            cookie = 178, 
            data = 0x0
          }, 
          pad = {7, 1188199, 0, 20053760, 41943230, 178, 0, 95626893, 2357937045643, 2581275345035, 12884901890, 4294967297, 
            6073467370137976860, 2314885436483055656, 3345733756951470112, 7885630497951938661, 7294206809482226032, 
            6073467371956363630, 732161977273508648, 2314861740994600992, 8246765349659156512, 7598822093864385568, 
            8030606864350932591, 5497863039149219954}
        }
        hlinfo = <optimized out>
        sa_count = <optimized out>
        sa_must_free = 0
#3  0x00000000004c18b6 in XTread_socket (terminal=0xfc4d28, expected=<optimized out>, hold_quit=0x7fffffffcd50)
    at /home/sds/src/emacs/trunk/src/xterm.c:7185
        finish = 0
        event = {
          type = 7, 
          xany = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            window = 41943230
          }, 
          xkey = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            window = 41943230, 
            root = 178, 
            subwindow = 0, 
            time = 95626893, 
            x = 139, 
            y = 549, 
            x_root = 139, 
            y_root = 601, 
            state = 2, 
            keycode = 3, 
            same_screen = 1
          }, 
          xbutton = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            window = 41943230, 
            root = 178, 
            subwindow = 0, 
            time = 95626893, 
            x = 139, 
            y = 549, 
            x_root = 139, 
            y_root = 601, 
            state = 2, 
            button = 3, 
            same_screen = 1
          }, 
          xmotion = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            window = 41943230, 
            root = 178, 
            subwindow = 0, 
            time = 95626893, 
            x = 139, 
            y = 549, 
            x_root = 139, 
            y_root = 601, 
            state = 2, 
            is_hint = 3 '\003', 
            same_screen = 1
          }, 
          xcrossing = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            window = 41943230, 
            root = 178, 
            subwindow = 0, 
            time = 95626893, 
            x = 139, 
            y = 549, 
            x_root = 139, 
            y_root = 601, 
            mode = 2, 
            detail = 3, 
            same_screen = 1, 
            focus = 1, 
            state = 28
          }, 
          xfocus = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            window = 41943230, 
            mode = 178, 
            detail = 0
          }, 
          xexpose = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            window = 41943230, 
            x = 178, 
            y = 0, 
            width = 0, 
            height = 0, 
            count = 95626893
          }, 
          xgraphicsexpose = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            drawable = 41943230, 
            x = 178, 
            y = 0, 
            width = 0, 
            height = 0, 
            count = 95626893, 
            major_code = 0, 
            minor_code = 139
          }, 
          xnoexpose = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            drawable = 41943230, 
            major_code = 178, 
            minor_code = 0
          }, 
          xvisibility = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            window = 41943230, 
            state = 178
          }, 
          xcreatewindow = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            parent = 41943230, 
            window = 178, 
            x = 0, 
            y = 0, 
            width = 95626893, 
            height = 0, 
            border_width = 139, 
            override_redirect = 549
          }, 
          xdestroywindow = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            event = 41943230, 
            window = 178
          }, 
          xunmap = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            event = 41943230, 
            window = 178, 
            from_configure = 0
          }, 
          xmap = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            event = 41943230, 
            window = 178, 
            override_redirect = 0
          }, 
          xmaprequest = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            parent = 41943230, 
            window = 178
          }, 
          xreparent = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            event = 41943230, 
            window = 178, 
            parent = 0, 
            x = 95626893, 
            y = 0, 
            override_redirect = 139
          }, 
          xconfigure = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            event = 41943230, 
            window = 178, 
            x = 0, 
            y = 0, 
            width = 95626893, 
            height = 0, 
            border_width = 139, 
            above = 2581275345035, 
            override_redirect = 2
          }, 
          xgravity = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            event = 41943230, 
            window = 178, 
            x = 0, 
            y = 0
          }, 
          xresizerequest = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            window = 41943230, 
            width = 178, 
            height = 0
          }, 
          xconfigurerequest = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            parent = 41943230, 
            window = 178, 
            x = 0, 
            y = 0, 
            width = 95626893, 
            height = 0, 
            border_width = 139, 
            above = 2581275345035, 
            detail = 2, 
            value_mask = 4294967297
          }, 
          xcirculate = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            event = 41943230, 
            window = 178, 
            place = 0
          }, 
          xcirculaterequest = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            parent = 41943230, 
            window = 178, 
            place = 0
          }, 
          xproperty = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            window = 41943230, 
            atom = 178, 
            time = 0, 
            state = 95626893
          }, 
          xselectionclear = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            window = 41943230, 
            selection = 178, 
            time = 0
          }, 
          xselectionrequest = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            owner = 41943230, 
            requestor = 178, 
            selection = 0, 
            target = 95626893, 
            property = 2357937045643, 
            time = 2581275345035
          }, 
          xselection = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            requestor = 41943230, 
            selection = 178, 
            target = 0, 
            property = 95626893, 
            time = 2357937045643
          }, 
          xcolormap = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            window = 41943230, 
            colormap = 178, 
            new = 0, 
            state = 0
          }, 
          xclient = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            window = 41943230, 
            message_type = 178, 
            format = 0, 
            data = {
              b = "\215&\263\005\000\000\000\000\213\000\000\000%\002\000\000\213\000\000", 
              s = {9869, 1459, 0, 0, 139, 0, 549, 0, 139, 0}, 
              l = {95626893, 2357937045643, 2581275345035, 12884901890, 4294967297}
            }
          }, 
          xmapping = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            window = 41943230, 
            request = 178, 
            first_keycode = 0, 
            count = 0
          }, 
          xerror = {
            type = 7, 
            display = 0x122167, 
            resourceid = 0, 
            serial = 20053760, 
            error_code = 190 '\276', 
            request_code = 0 '\000', 
            minor_code = 128 '\200'
          }, 
          xkeymap = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            window = 41943230, 
            key_vector = "\262", '\000' <repeats 15 times>"\215, &\263\005\000\000\000\000\213\000\000\000%\002\000"
          }, 
          xgeneric = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            extension = 41943230, 
            evtype = 0
          }, 
          xcookie = {
            type = 7, 
            serial = 1188199, 
            send_event = 0, 
            display = 0x131ff00, 
            extension = 41943230, 
            evtype = 0, 
            cookie = 178, 
            data = 0x0
          }, 
          pad = {7, 1188199, 0, 20053760, 41943230, 178, 0, 95626893, 2357937045643, 2581275345035, 12884901890, 4294967297, 
            6073467370137976860, 2314885436483055656, 3345733756951470112, 7885630497951938661, 7294206809482226032, 
            6073467371956363630, 732161977273508648, 2314861740994600992, 8246765349659156512, 7598822093864385568, 
            8030606864350932591, 5497863039149219954}
        }
        count = 0
        event_found = 1
#4  0x00000000004f91b7 in read_avail_input (expected=1) at /home/sds/src/emacs/trunk/src/keyboard.c:6897
        nr = <optimized out>
        hold_quit = {
          kind = NO_EVENT, 
          code = 0, 
          part = scroll_bar_above_handle, 
          modifiers = 0, 
          x = 0, 
          y = 0, 
          timestamp = 0, 
          padding = {0x0, 0x0}, 
          frame_or_window = 0, 
          arg = 0
        }
        next = 0x0
        nread = 0
        err = <optimized out>
        t = 0xfc4d28
#5  0x00000000004f92da in handle_async_input () at /home/sds/src/emacs/trunk/src/keyboard.c:7226
        nread = 1
#6  0x00000000004b9ac5 in XTring_bell (f=<optimized out>) at /home/sds/src/emacs/trunk/src/xterm.c:3259
No locals.
#7  XTring_bell (f=0x1175580) at /home/sds/src/emacs/trunk/src/xterm.c:3248
No locals.
#8  0x00000000004f5da5 in cmd_error_internal (data=66785958, context=0x7fffffffcf30 "")
    at /home/sds/src/emacs/trunk/src/keyboard.c:1147
        sf = <optimized out>
#9  0x00000000004f5f23 in cmd_error (data=66785958) at /home/sds/src/emacs/trunk/src/keyboard.c:1080
        old_level = 40
        old_length = 40
        macroerror = "\000\373\266\000\000\000\000\000\000$\016\037\063\004\270Ab̸\000\000\000\000\000\002\000\000\000\000\000\000\000\322\373\266\000\000\000\000\000\230\325\377\377\377\177\000\000\377\377"
#10 0x0000000000567fe9 in internal_condition_case (bfun=0x501430 <command_loop_1>, handlers=12043794, hfun=0x4f5e10 <cmd_error>)
    at /home/sds/src/emacs/trunk/src/eval.c:1312
        val = <optimized out>
        c = {
          tag = 11992018, 
          val = 66785958, 
          next = 0x7fffffffd140, 
          gcpro = 0x0, 
          jmp = {{
              __jmpbuf = {15359840, 54901063922382646, 11992018, 140737488344472, 4294967295, 140737488344752, -54902939858077898, 
                54902198877321014}, 
              __mask_was_saved = 0, 
              __saved_mask = {
                __val = {140737353918688, 140737353947624, 5296614, 4294967295, 0, 0, 15359840, 8597472, 0, 4294967295, 
                  140737488344752, 0, 140737351944052, 1, 0, 140737284769664}
              }
            }}, 
          backlist = 0x0, 
          handlerlist = 0x0, 
          lisp_eval_depth = 0, 
          pdlcount = 2, 
          poll_suppress_count = 1, 
          interrupt_input_blocked = 0, 
          byte_stack = 0x0
        }
        h = {
          handler = 12043794, 
          var = 11992018, 
          chosen_clause = 11992066, 
          tag = 0x7fffffffcfc0, 
          next = 0x0
        }
#11 0x00000000004f3e6e in command_loop_2 (ignore=<optimized out>) at /home/sds/src/emacs/trunk/src/keyboard.c:1204
        val = 1
#12 0x0000000000567e98 in internal_catch (tag=<error reading variable: Cannot access memory at address 0x58>, 
    func=0x4f3e50 <command_loop_2>, arg=11992018) at /home/sds/src/emacs/trunk/src/eval.c:1079
        c = {
          tag = 12039666, 
          val = 11992018, 
          next = 0x0, 
          gcpro = 0x0, 
          jmp = {{
              __jmpbuf = {15359840, 54901063922382646, 11992018, 140737488344472, 4294967295, 140737488344752, -54902940313159882, 
                54902198903011126}, 
              __mask_was_saved = 0, 
              __saved_mask = {
                __val = {0, 0, 0, 0, 0, 0, 5968131, 0, 18895752, 140737488343680, 140737488343688, 0, 140737488343680, 6279510, 
                  11992018, 140737488343688}
              }
            }}, 
          backlist = 0x0, 
          handlerlist = 0x0, 
          lisp_eval_depth = 0, 
          pdlcount = 2, 
          poll_suppress_count = 1, 
          interrupt_input_blocked = 0, 
          byte_stack = 0x0
        }
#13 0x00000000004f58d7 in command_loop () at /home/sds/src/emacs/trunk/src/keyboard.c:1183
No locals.
#14 recursive_edit_1 () at /home/sds/src/emacs/trunk/src/keyboard.c:804
        count = 1
        val = 11992018
#15 0x00000000004f5c14 in Frecursive_edit () at /home/sds/src/emacs/trunk/src/keyboard.c:868
        count = 0
        buffer = 11992018
#16 0x000000000040fffd in main (argc=1, argv=<optimized out>) at /home/sds/src/emacs/trunk/src/emacs.c:1662
        dummy = 0
        stack_bottom_variable = 0 '\000'
        do_initial_setlocale = <optimized out>
        skip_args = 0
        rlim = {
          rlim_cur = 8720000, 
          rlim_max = 18446744073709551615
        }
        no_loadup = 0
        junk = 0x0
        dname_arg = 0x0
        ch_to_dir = 0x7ffff3ddee40 "\212'"


-- 
Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000
http://www.childpsy.net/ http://openvotingconsortium.org
http://think-israel.org http://pmw.org.il http://palestinefacts.org
I just forgot my whole philosophy of life!!!





^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-08-22  2:43       ` Sam Steingold
@ 2012-08-22 17:09         ` Eli Zaretskii
  2012-08-22 17:29           ` Sam Steingold
  2012-08-23  8:48           ` martin rudalics
  0 siblings, 2 replies; 37+ messages in thread
From: Eli Zaretskii @ 2012-08-22 17:09 UTC (permalink / raw)
  To: sds, Martin Rudalics; +Cc: 12251

> From: Sam Steingold <sds@gnu.org>
> Cc: 12251@debbugs.gnu.org
> Date: Tue, 21 Aug 2012 22:43:49 -0400
> 
> #8  0x00000000004f5da5 in cmd_error_internal (data=68832822, context=0x7fffffffcf30 "") at /home/sds/src/emacs/trunk/src/keyboard.c:1147
> 1147          bitch_at_user ();
> (gdb) p data
> $1 = 68832822
> (gdb) xtype
> Lisp_Cons
> (gdb) xcons
> $2 = (struct Lisp_Cons *) 0x41a4e30
> {
>   car = 0xb7c612, 
>   u = {
>     cdr = 0x41a4e56, 
>     chain = 0x41a4e56
>   }
> }
> (gdb) p 0xb7c612
> $3 = 12043794
> (gdb) xtype
> Lisp_Symbol
> (gdb) xsymbol 
> $4 = (struct Lisp_Symbol *) 0xb7c610
> "error"
> (gdb) p 0x41a4e56
> $5 = 68832854
> (gdb) xtype
> Lisp_Cons
> (gdb) xcons
> $6 = (struct Lisp_Cons *) 0x41a4e50
> {
>   car = 0x3032031, 
>   u = {
>     cdr = 0xb6fbd2, 
>     chain = 0xb6fbd2
>   }
> }
> (gdb) p 0x3032031
> $7 = 50536497
> (gdb) xtype
> Lisp_String
> (gdb) xstring 
> $8 = (struct Lisp_String *) 0x3032030
> "#<window 139> is not a valid window"
> (gdb) p 0xb6fbd2
> $9 = 11992018
> (gdb) xtype
> Lisp_Symbol
> (gdb) xsymbol 
> $10 = (struct Lisp_Symbol *) 0xb6fbd0
> "nil"
> (gdb) 

Martin, could this be due to your changes in revision 109644?

Sam, if you revert that commit, does the problem go away?

Anyway, I think the crash with a mouse is not the root cause here.  We
are somehow hitting a dead window, and then trying to activate mouse
highlight on that window.





^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-08-22 17:09         ` Eli Zaretskii
@ 2012-08-22 17:29           ` Sam Steingold
  2012-08-22 21:12             ` Sam Steingold
  2012-08-23  8:48           ` martin rudalics
  1 sibling, 1 reply; 37+ messages in thread
From: Sam Steingold @ 2012-08-22 17:29 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 12251

On Wed, Aug 22, 2012 at 1:09 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> Sam, if you revert that commit, does the problem go away?

I cannot reproduce this crash reliably.
Also, I rebuilt emacs this morning from bzr tip.

-- 
Sam Steingold <http://sds.podval.org> <http://www.childpsy.net/>





^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-08-22 17:29           ` Sam Steingold
@ 2012-08-22 21:12             ` Sam Steingold
  0 siblings, 0 replies; 37+ messages in thread
From: Sam Steingold @ 2012-08-22 21:12 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 12251

[-- Attachment #1: Type: text/plain, Size: 276 bytes --]

just got it again.
when quitting gnus, some error happened and the *Group* buffer did not go away.
I hit "q" again, the echo area lit up as if on error (visible bell)
and emacs crashed.
I attached bt full.

-- 
Sam Steingold <http://sds.podval.org> <http://www.childpsy.net/>

[-- Attachment #2: note_mouse_highlight.txt --]
[-- Type: text/plain, Size: 31478 bytes --]

#0  note_mouse_highlight (f=0x11732e0, x=728, y=82) at /home/sds/src/emacs/trunk/src/xdisp.c:27709
        hlinfo = 0x13390a0
        part = ON_TEXT
        window = 62224477
        w = 0x3b57858
        cursor = 67109330
        pointer = 11992018
        b = 0xb6fbcd
#1  0x00000000004b7638 in note_mouse_movement (frame=0x11732e0, event=0x7fffffffc8a0) at /home/sds/src/emacs/trunk/src/xterm.c:3858
No locals.
#2  0x00000000004c07ce in handle_one_xevent (dpyinfo=0x1339000, eventptr=0x7fffffffc9c0, finish=0x7fffffffc9bc, 
    hold_quit=0x7fffffffcd50) at /home/sds/src/emacs/trunk/src/xterm.c:6701
        inev = {
          ie = {
            kind = NO_EVENT, 
            code = 0, 
            part = scroll_bar_above_handle, 
            modifiers = 0, 
            x = 0, 
            y = 0, 
            timestamp = 0, 
            padding = {0x0, 0x0}, 
            frame_or_window = 0, 
            arg = 11992018
          }, 
          sie = {
            kind = 0, 
            display = 0x0, 
            requestor = 0, 
            selection = 0, 
            target = 0, 
            property = 0, 
            time = 0
          }
        }
        count = 0
        do_help = 0
        nbytes = 0
        f = 0x11732e0
        coding = {
          id = 0, 
          common_flags = 0, 
          mode = 0, 
          spec = {
            iso_2022 = {
              flags = 0, 
              current_invocation = {0, 0}, 
              current_designation = {0, 0, 0, 0}, 
              single_shifting = 0, 
              bol = 0, 
              ctext_extended_segment_len = 0, 
              embedded_utf_8 = 0, 
              cmp_status = {
                state = COMPOSING_NO, 
                method = COMPOSITION_RELATIVE, 
                old_form = 0, 
                length = 0, 
                nchars = 0, 
                ncomps = 0, 
                carryover = {0, 0, 0, 0, 0, -15200, 32767, -14288, 32767, 54, 0, 6190267, 0, -14904, 32767, 1, 0, 11992018, 0, 
                  -14288, 32767, -202546172, 32767, -72515583, 0, -14288, 32767, -14288, 32767, -14288, 32767, -14288, 32767, 
                  -14286, 32767, -14235, 32767, -14288, 32767, -14235, 32767, 0 <repeats 11 times>, 4, 0 <repeats 15 times>}
              }
            }, 
            ccl = 0x0, 
            utf_16 = {
              bom = utf_detect_bom, 
              endian = utf_16_big_endian, 
              surrogate = 0
            }, 
            utf_8_bom = utf_detect_bom, 
            emacs_mule = {
              full_support = 0, 
              cmp_status = {
                state = COMPOSING_NO, 
                method = COMPOSITION_RELATIVE, 
                old_form = 0, 
                length = 0, 
                nchars = 0, 
                ncomps = 0, 
                carryover = {0 <repeats 15 times>, -15200, 32767, -14288, 32767, 54, 0, 6190267, 0, -14904, 32767, 1, 0, 11992018, 
                  0, -14288, 32767, -202546172, 32767, -72515583, 0, -14288, 32767, -14288, 32767, -14288, 32767, -14288, 32767, 
                  -14286, 32767, -14235, 32767, -14288, 32767, -14235, 32767, 0 <repeats 11 times>, 4, 0, 0, 0, 0, 0}
              }
            }
          }, 
          max_charset_id = 0, 
          safe_charsets = 0xffffffff <Address 0xffffffff out of bounds>, 
          src_multibyte = 0, 
          dst_multibyte = 0, 
          head_ascii = 0, 
          produced = 140737288620576, 
          produced_char = 0, 
          consumed = 140737488341152, 
          consumed_char = 11992018, 
          errors = 45123677, 
          error_positions = 0x1, 
          result = 45123672, 
          src_pos = 45123677, 
          src_pos_byte = 140737285808973, 
          src_chars = 0, 
          src_bytes = 206158430248, 
          src_object = 140737488340640, 
          source = 0x7fffffffc5e0 "", 
          dst_pos = 0, 
          dst_pos_byte = 0, 
          dst_bytes = 0, 
          dst_object = 5774782, 
          destination = 0x50 <Address 0x50 out of bounds>, 
          chars_at_source = 8, 
          charbuf = 0x30, 
          charbuf_size = 19, 
          charbuf_used = 0, 
          annotated = -14704, 
          carryover = "\377\177\000\000\023\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000F6X", '\000' <repeats 13 times>"\247, jW\000\000\000\000\000\322\373\266\000\000\000\000\000\261\033X\000\000\000\000\000", <incomplete sequence \370\203>, 
          carryover_bytes = 0, 
          default_char = 1270118400, 
          detector = 0, 
          decoder = 0xb6fbd2, 
          encoder = 0x2b0885d
        }
        event = {
          type = 7, 
          xany = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            window = 67109054
          }, 
          xkey = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            window = 67109054, 
            root = 186, 
            subwindow = 0, 
            time = 23323124, 
            x = 729, 
            y = 83, 
            x_root = 2095, 
            y_root = 135, 
            state = 2, 
            keycode = 3, 
            same_screen = 1
          }, 
          xbutton = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            window = 67109054, 
            root = 186, 
            subwindow = 0, 
            time = 23323124, 
            x = 729, 
            y = 83, 
            x_root = 2095, 
            y_root = 135, 
            state = 2, 
            button = 3, 
            same_screen = 1
          }, 
          xmotion = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            window = 67109054, 
            root = 186, 
            subwindow = 0, 
            time = 23323124, 
            x = 729, 
            y = 83, 
            x_root = 2095, 
            y_root = 135, 
            state = 2, 
            is_hint = 3 '\003', 
            same_screen = 1
          }, 
          xcrossing = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            window = 67109054, 
            root = 186, 
            subwindow = 0, 
            time = 23323124, 
            x = 729, 
            y = 83, 
            x_root = 2095, 
            y_root = 135, 
            mode = 2, 
            detail = 3, 
            same_screen = 1, 
            focus = 0, 
            state = 16
          }, 
          xfocus = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            window = 67109054, 
            mode = 186, 
            detail = 0
          }, 
          xexpose = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            window = 67109054, 
            x = 186, 
            y = 0, 
            width = 0, 
            height = 0, 
            count = 23323124
          }, 
          xgraphicsexpose = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            drawable = 67109054, 
            x = 186, 
            y = 0, 
            width = 0, 
            height = 0, 
            count = 23323124, 
            major_code = 0, 
            minor_code = 729
          }, 
          xnoexpose = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            drawable = 67109054, 
            major_code = 186, 
            minor_code = 0
          }, 
          xvisibility = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            window = 67109054, 
            state = 186
          }, 
          xcreatewindow = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            parent = 67109054, 
            window = 186, 
            x = 0, 
            y = 0, 
            width = 23323124, 
            height = 0, 
            border_width = 729, 
            override_redirect = 83
          }, 
          xdestroywindow = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            event = 67109054, 
            window = 186
          }, 
          xunmap = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            event = 67109054, 
            window = 186, 
            from_configure = 0
          }, 
          xmap = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            event = 67109054, 
            window = 186, 
            override_redirect = 0
          }, 
          xmaprequest = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            parent = 67109054, 
            window = 186
          }, 
          xreparent = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            event = 67109054, 
            window = 186, 
            parent = 0, 
            x = 23323124, 
            y = 0, 
            override_redirect = 729
          }, 
          xconfigure = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            event = 67109054, 
            window = 186, 
            x = 0, 
            y = 0, 
            width = 23323124, 
            height = 0, 
            border_width = 729, 
            above = 579820587055, 
            override_redirect = 2
          }, 
          xgravity = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            event = 67109054, 
            window = 186, 
            x = 0, 
            y = 0
          }, 
          xresizerequest = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            window = 67109054, 
            width = 186, 
            height = 0
          }, 
          xconfigurerequest = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            parent = 67109054, 
            window = 186, 
            x = 0, 
            y = 0, 
            width = 23323124, 
            height = 0, 
            border_width = 729, 
            above = 579820587055, 
            detail = 2, 
            value_mask = 1
          }, 
          xcirculate = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            event = 67109054, 
            window = 186, 
            place = 0
          }, 
          xcirculaterequest = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            parent = 67109054, 
            window = 186, 
            place = 0
          }, 
          xproperty = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            window = 67109054, 
            atom = 186, 
            time = 0, 
            state = 23323124
          }, 
          xselectionclear = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            window = 67109054, 
            selection = 186, 
            time = 0
          }, 
          xselectionrequest = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            owner = 67109054, 
            requestor = 186, 
            selection = 0, 
            target = 23323124, 
            property = 356482286297, 
            time = 579820587055
          }, 
          xselection = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            requestor = 67109054, 
            selection = 186, 
            target = 0, 
            property = 23323124, 
            time = 356482286297
          }, 
          xcolormap = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            window = 67109054, 
            colormap = 186, 
            new = 0, 
            state = 0
          }, 
          xclient = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            window = 67109054, 
            message_type = 186, 
            format = 0, 
            data = {
              b = "\364\341c\001\000\000\000\000\331\002\000\000S\000\000\000/\b\000", 
              s = {-7692, 355, 0, 0, 729, 0, 83, 0, 2095, 0}, 
              l = {23323124, 356482286297, 579820587055, 12884901890, 1}
            }
          }, 
          xmapping = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            window = 67109054, 
            request = 186, 
            first_keycode = 0, 
            count = 0
          }, 
          xerror = {
            type = 7, 
            display = 0x1d32b2, 
            resourceid = 0, 
            serial = 20058448, 
            error_code = 190 '\276', 
            request_code = 0 '\000', 
            minor_code = 0 '\000'
          }, 
          xkeymap = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            window = 67109054, 
            key_vector = "\272", '\000' <repeats 15 times>"\364, \341c\001\000\000\000\000\331\002\000\000S\000\000"
          }, 
          xgeneric = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            extension = 67109054, 
            evtype = 0
          }, 
          xcookie = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            extension = 67109054, 
            evtype = 0, 
            cookie = 186, 
            data = 0x0
          }, 
          pad = {140733193388039, 1913522, 0, 20058448, 67109054, 186, 0, 23323124, 356482286297, 579820587055, 12884901890, 1, 
            16, 0, 0, 0, 0, 0, 0, 0, 0, 12570240, 12570240, 12570912}
        }
        hlinfo = <optimized out>
        sa_count = <optimized out>
        sa_must_free = 0
#3  0x00000000004c1886 in XTread_socket (terminal=0xf65088, expected=<optimized out>, hold_quit=0x7fffffffcd50)
    at /home/sds/src/emacs/trunk/src/xterm.c:7185
        finish = 0
        event = {
          type = 7, 
          xany = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            window = 67109054
          }, 
          xkey = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            window = 67109054, 
            root = 186, 
            subwindow = 0, 
            time = 23323124, 
            x = 729, 
            y = 83, 
            x_root = 2095, 
            y_root = 135, 
            state = 2, 
            keycode = 3, 
            same_screen = 1
          }, 
          xbutton = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            window = 67109054, 
            root = 186, 
            subwindow = 0, 
            time = 23323124, 
            x = 729, 
            y = 83, 
            x_root = 2095, 
            y_root = 135, 
            state = 2, 
            button = 3, 
            same_screen = 1
          }, 
          xmotion = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            window = 67109054, 
            root = 186, 
            subwindow = 0, 
            time = 23323124, 
            x = 729, 
            y = 83, 
            x_root = 2095, 
            y_root = 135, 
            state = 2, 
            is_hint = 3 '\003', 
            same_screen = 1
          }, 
          xcrossing = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            window = 67109054, 
            root = 186, 
            subwindow = 0, 
            time = 23323124, 
            x = 729, 
            y = 83, 
            x_root = 2095, 
            y_root = 135, 
            mode = 2, 
            detail = 3, 
            same_screen = 1, 
            focus = 0, 
            state = 16
          }, 
          xfocus = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            window = 67109054, 
            mode = 186, 
            detail = 0
          }, 
          xexpose = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            window = 67109054, 
            x = 186, 
            y = 0, 
            width = 0, 
            height = 0, 
            count = 23323124
          }, 
          xgraphicsexpose = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            drawable = 67109054, 
            x = 186, 
            y = 0, 
            width = 0, 
            height = 0, 
            count = 23323124, 
            major_code = 0, 
            minor_code = 729
          }, 
          xnoexpose = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            drawable = 67109054, 
            major_code = 186, 
            minor_code = 0
          }, 
          xvisibility = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            window = 67109054, 
            state = 186
          }, 
          xcreatewindow = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            parent = 67109054, 
            window = 186, 
            x = 0, 
            y = 0, 
            width = 23323124, 
            height = 0, 
            border_width = 729, 
            override_redirect = 83
          }, 
          xdestroywindow = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            event = 67109054, 
            window = 186
          }, 
          xunmap = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            event = 67109054, 
            window = 186, 
            from_configure = 0
          }, 
          xmap = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            event = 67109054, 
            window = 186, 
            override_redirect = 0
          }, 
          xmaprequest = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            parent = 67109054, 
            window = 186
          }, 
          xreparent = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            event = 67109054, 
            window = 186, 
            parent = 0, 
            x = 23323124, 
            y = 0, 
            override_redirect = 729
          }, 
          xconfigure = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            event = 67109054, 
            window = 186, 
            x = 0, 
            y = 0, 
            width = 23323124, 
            height = 0, 
            border_width = 729, 
            above = 579820587055, 
            override_redirect = 2
          }, 
          xgravity = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            event = 67109054, 
            window = 186, 
            x = 0, 
            y = 0
          }, 
          xresizerequest = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            window = 67109054, 
            width = 186, 
            height = 0
          }, 
          xconfigurerequest = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            parent = 67109054, 
            window = 186, 
            x = 0, 
            y = 0, 
            width = 23323124, 
            height = 0, 
            border_width = 729, 
            above = 579820587055, 
            detail = 2, 
            value_mask = 1
          }, 
          xcirculate = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            event = 67109054, 
            window = 186, 
            place = 0
          }, 
          xcirculaterequest = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            parent = 67109054, 
            window = 186, 
            place = 0
          }, 
          xproperty = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            window = 67109054, 
            atom = 186, 
            time = 0, 
            state = 23323124
          }, 
          xselectionclear = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            window = 67109054, 
            selection = 186, 
            time = 0
          }, 
          xselectionrequest = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            owner = 67109054, 
            requestor = 186, 
            selection = 0, 
            target = 23323124, 
            property = 356482286297, 
            time = 579820587055
          }, 
          xselection = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            requestor = 67109054, 
            selection = 186, 
            target = 0, 
            property = 23323124, 
            time = 356482286297
          }, 
          xcolormap = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            window = 67109054, 
            colormap = 186, 
            new = 0, 
            state = 0
          }, 
          xclient = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            window = 67109054, 
            message_type = 186, 
            format = 0, 
            data = {
              b = "\364\341c\001\000\000\000\000\331\002\000\000S\000\000\000/\b\000", 
              s = {-7692, 355, 0, 0, 729, 0, 83, 0, 2095, 0}, 
              l = {23323124, 356482286297, 579820587055, 12884901890, 1}
            }
          }, 
          xmapping = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            window = 67109054, 
            request = 186, 
            first_keycode = 0, 
            count = 0
          }, 
          xerror = {
            type = 7, 
            display = 0x1d32b2, 
            resourceid = 0, 
            serial = 20058448, 
            error_code = 190 '\276', 
            request_code = 0 '\000', 
            minor_code = 0 '\000'
          }, 
          xkeymap = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            window = 67109054, 
            key_vector = "\272", '\000' <repeats 15 times>"\364, \341c\001\000\000\000\000\331\002\000\000S\000\000"
          }, 
          xgeneric = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            extension = 67109054, 
            evtype = 0
          }, 
          xcookie = {
            type = 7, 
            serial = 1913522, 
            send_event = 0, 
            display = 0x1321150, 
            extension = 67109054, 
            evtype = 0, 
            cookie = 186, 
            data = 0x0
          }, 
          pad = {140733193388039, 1913522, 0, 20058448, 67109054, 186, 0, 23323124, 356482286297, 579820587055, 12884901890, 1, 
            16, 0, 0, 0, 0, 0, 0, 0, 0, 12570240, 12570240, 12570912}
        }
        count = 0
        event_found = 1
#4  0x00000000004f9167 in read_avail_input (expected=1) at /home/sds/src/emacs/trunk/src/keyboard.c:6895
        nr = <optimized out>
        hold_quit = {
          kind = NO_EVENT, 
          code = 0, 
          part = scroll_bar_above_handle, 
          modifiers = 0, 
          x = 0, 
          y = 0, 
          timestamp = 0, 
          padding = {0x0, 0x0}, 
          frame_or_window = 0, 
          arg = 0
        }
        next = 0x0
        nread = 0
        err = <optimized out>
        t = 0xf65088
#5  0x00000000004f928a in handle_async_input () at /home/sds/src/emacs/trunk/src/keyboard.c:7224
        nread = 0
#6  0x00000000004b9a95 in XTring_bell (f=<optimized out>) at /home/sds/src/emacs/trunk/src/xterm.c:3259
No locals.
#7  XTring_bell (f=0x11732e0) at /home/sds/src/emacs/trunk/src/xterm.c:3248
No locals.
#8  0x00000000004f5d55 in cmd_error_internal (data=30997846, context=0x7fffffffcf30 "")
    at /home/sds/src/emacs/trunk/src/keyboard.c:1147
        sf = <optimized out>
#9  0x00000000004f5ed3 in cmd_error (data=30997846) at /home/sds/src/emacs/trunk/src/keyboard.c:1080
        old_level = 40
        old_length = 40
        macroerror = "\000\373\266\000\000\000\000\000\000x\264K\360`\302\307b̸\000\000\000\000\000\002\000\000\000\000\000\000\000\322\373\266\000\000\000\000\000\230\325\377\377\377\177\000\000\377\377"
#10 0x0000000000567ff9 in internal_condition_case (bfun=0x4f3bb0 <top_level_2>, handlers=12043794, hfun=0x4f5dc0 <cmd_error>)
    at /home/sds/src/emacs/trunk/src/eval.c:1312
        val = <optimized out>
        c = {
          tag = 11992018, 
          val = 30997846, 
          next = 0x7fffffffd140, 
          gcpro = 0x0, 
          jmp = {{
              __jmpbuf = {15359840, 7864434808009521254, 11992018, 140737488344472, 4294967295, 140737488344752, 
                -7864432970744989594, 7864433604353718374}, 
              __mask_was_saved = 0, 
              __saved_mask = {
                __val = {140737353918688, 140737353947624, 5296534, 4294967295, 0, 0, 15359840, 8597472, 0, 4294967295, 
                  140737488344752, 0, 140737351944052, 1, 0, 140737284769664}
              }
            }}, 
          backlist = 0x0, 
          handlerlist = 0x0, 
          lisp_eval_depth = 0, 
          pdlcount = 2, 
          poll_suppress_count = 1, 
          interrupt_input_blocked = 0, 
          byte_stack = 0x0
        }
        h = {
          handler = 12043794, 
          var = 11992018, 
          chosen_clause = 11992066, 
          tag = 0x7fffffffcfc0, 
          next = 0x0
        }
#11 0x00000000004f40d6 in top_level_1 (ignore=<optimized out>) at /home/sds/src/emacs/trunk/src/keyboard.c:1221
No locals.
#12 0x0000000000567ea8 in internal_catch (tag=60081014, func=0x4f4070 <top_level_1>, arg=11992018)
    at /home/sds/src/emacs/trunk/src/eval.c:1079
        c = {
          tag = 12039666, 
          val = 11992018, 
          next = 0x0, 
          gcpro = 0x0, 
          jmp = {{
              __jmpbuf = {15359840, 7864434808009521254, 11992018, 140737488344472, 4294967295, 140737488344752, 
                -7864432971330095002, 7864433604311251046}, 
              __mask_was_saved = 0, 
              __saved_mask = {
                __val = {0, 0, 0, 0, 0, 0, 5968099, 0, 18685384, 140737488343680, 140737488343688, 0, 140737488343680, 6279446, 
                  11992018, 140737488343688}
              }
            }}, 
          backlist = 0x0, 
          handlerlist = 0x0, 
          lisp_eval_depth = 0, 
          pdlcount = 2, 
          poll_suppress_count = 1, 
          interrupt_input_blocked = 0, 
          byte_stack = 0x0
        }
#13 0x00000000004f586f in command_loop () at /home/sds/src/emacs/trunk/src/keyboard.c:1176
No locals.
#14 recursive_edit_1 () at /home/sds/src/emacs/trunk/src/keyboard.c:804
        count = 1
        val = 11992018
#15 0x00000000004f5bc4 in Frecursive_edit () at /home/sds/src/emacs/trunk/src/keyboard.c:868
        count = 0
        buffer = 11992018
#16 0x000000000040fffd in main (argc=1, argv=<optimized out>) at /home/sds/src/emacs/trunk/src/emacs.c:1662
        dummy = 0
        stack_bottom_variable = 0 '\000'
        do_initial_setlocale = <optimized out>
        skip_args = 0
        rlim = {
          rlim_cur = 8720000, 
          rlim_max = 18446744073709551615
        }
        no_loadup = 0
        junk = 0x0
        dname_arg = 0x0
        ch_to_dir = 0x7ffff3ddee40 "\212'"
#8  0x00000000004f5d55 in cmd_error_internal (data=30997846, context=0x7fffffffcf30 "")
    at /home/sds/src/emacs/trunk/src/keyboard.c:1147
1147	      bitch_at_user ();
$1 = 30997846
Lisp_Cons
$2 = (struct Lisp_Cons *) 0x1d8fd50
{
  car = 0xb7c7c2, 
  u = {
    cdr = 0x20e2436, 
    chain = 0x20e2436
  }
}
$3 = 12044226
Lisp_Symbol
$4 = (struct Lisp_Symbol *) 0xb7c7c0
"wrong-type-argument"
$5 = 34481206
Lisp_Cons
$6 = (struct Lisp_Cons *) 0x20e2430
{
  car = 0xba44c2, 
  u = {
    cdr = 0x20e2466, 
    chain = 0x20e2466
  }
}
$7 = 12207298
Lisp_Symbol
$8 = (struct Lisp_Symbol *) 0xba44c0
"window-live-p"
$9 = 34481254
Lisp_Cons
$10 = (struct Lisp_Cons *) 0x20e2460
{
  car = 0x2b0885d, 
  u = {
    cdr = 0xb6fbd2, 
    chain = 0xb6fbd2
  }
}
$11 = 45123677
Lisp_Vectorlike
PVEC_WINDOW
PVEC_WINDOW
$12 = (struct Lisp_Vector *) 0x2b08858
0
$13 = {
  header = {
    size = 4611686018427650087, 
    next = {
      nbytes = 480, 
      buffer = 0x1e0, 
      vector = 0x1e0
    }
  }, 
  contents = {18297573}
}
$14 = 18297573
Lisp_Vectorlike
PVEC_FRAME
$15 = (struct Lisp_Vector *) 0x11732e0
0
$16 = (struct Lisp_Vector *) 0x11732e0
$17 = {
  header = {
    size = 4611686018427584534, 
    next = {
      nbytes = 560, 
      buffer = 0x230, 
      vector = 0x230
    }
  }, 
  contents = {57878241}
}
$18 = 57878241
Lisp_String
$19 = (struct Lisp_String *) 0x37326e0
"*Group* - Dir: /home/sds/Mail/"
$20 = 11992018
Lisp_Symbol
$21 = (struct Lisp_Symbol *) 0xb6fbd0
"nil"

^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-08-22 17:09         ` Eli Zaretskii
  2012-08-22 17:29           ` Sam Steingold
@ 2012-08-23  8:48           ` martin rudalics
  2012-08-23 13:19             ` Sam Steingold
  2012-08-23 16:20             ` Eli Zaretskii
  1 sibling, 2 replies; 37+ messages in thread
From: martin rudalics @ 2012-08-23  8:48 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: sds, 12251

 >> "#<window 139> is not a valid window"

The above means that we've been running Lisp code on a dead window and
that call was rejected with an error by `window-normalize-window'.  If
this happens during a call from C, we have a problem.

 > Martin, could this be due to your changes in revision 109644?

I don't know.  In revision 109644 I allowed to run Fposn_at_x_y on
internal windows too.  I doubt that this change can have any impact but
reverted it anyway.

Other from that, potential problems are to be categorized as follows:

(1) A frame has not been set up completely but one of its windows exists
     already.  I tried to fix this by changing Fset_window_buffer calls
     to set_window_buffer calls but maybe something still slips through.

(2) A window still exists although its frame has been already deleted.
     This would constitute a bug in delete_frame.

(3) C code tries to run on a window that has not yet been set up
     completely.  I can't imagine how this would happen.

(4) C code tries to run a window that has been deleted.  I have tried to
     catch these in revision 109644 but this will not help to avoid
     crashes.  It should help to localize the cause of a crash, though.

Drew's standard crash seems to indicate that there's still something
weird going on here.

BTW I see that note_mouse_highlight has

   /* Not on a window -> return.  */
   if (!WINDOWP (window))
     return;

Shouldn't the window be live here?

martin





^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-08-23  8:48           ` martin rudalics
@ 2012-08-23 13:19             ` Sam Steingold
  2012-08-23 17:18               ` martin rudalics
  2012-09-01  9:40               ` Eli Zaretskii
  2012-08-23 16:20             ` Eli Zaretskii
  1 sibling, 2 replies; 37+ messages in thread
From: Sam Steingold @ 2012-08-23 13:19 UTC (permalink / raw)
  To: martin rudalics; +Cc: 12251

> * martin rudalics <ehqnyvpf@tzk.ng> [2012-08-23 10:48:43 +0200]:
>
> (1) A frame has not been set up completely but one of its windows exists
>     already.  I tried to fix this by changing Fset_window_buffer calls
>     to set_window_buffer calls but maybe something still slips through.
>
> (2) A window still exists although its frame has been already deleted.
>     This would constitute a bug in delete_frame.
>
> (3) C code tries to run on a window that has not yet been set up
>     completely.  I can't imagine how this would happen.

none of these seem to be applicable because I have only one frame and
the window in question, *Groups*, was on the way out.

> BTW I see that note_mouse_highlight has
>
>   /* Not on a window -> return.  */
>   if (!WINDOWP (window))
>     return;
>
> Shouldn't the window be live here?

definitely!

-- 
Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000
http://www.childpsy.net/ http://ffii.org http://truepeace.org
http://honestreporting.com http://think-israel.org http://camera.org
Experience always comes right after it would have been useful.





^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-08-23  8:48           ` martin rudalics
  2012-08-23 13:19             ` Sam Steingold
@ 2012-08-23 16:20             ` Eli Zaretskii
  2012-08-23 17:19               ` martin rudalics
  1 sibling, 1 reply; 37+ messages in thread
From: Eli Zaretskii @ 2012-08-23 16:20 UTC (permalink / raw)
  To: martin rudalics; +Cc: sds, 12251

> Date: Thu, 23 Aug 2012 10:48:43 +0200
> From: martin rudalics <rudalics@gmx.at>
> CC: sds@gnu.org, 12251@debbugs.gnu.org
> 
>  >> "#<window 139> is not a valid window"
> 
> The above means that we've been running Lisp code on a dead window and
> that call was rejected with an error by `window-normalize-window'.  If
> this happens during a call from C, we have a problem.

I don't think this error was thrown from C.  Most probably, it was
thrown from Lisp, but since that unwinds the stack, there's no Lisp
backtrace that could confirm that.

I guess we need more checks in the mouse-highlight code, to account
for such cases.





^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-08-23 13:19             ` Sam Steingold
@ 2012-08-23 17:18               ` martin rudalics
  2012-08-24 20:33                 ` Sam Steingold
  2012-09-01  9:40               ` Eli Zaretskii
  1 sibling, 1 reply; 37+ messages in thread
From: martin rudalics @ 2012-08-23 17:18 UTC (permalink / raw)
  To: sds; +Cc: 12251

 >> Shouldn't the window be live here?
 >
 > definitely!

Can you try running it a while with such a check (that is, using
WINDOW_LIVE_P instead of WINDOWP)?

martin





^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-08-23 16:20             ` Eli Zaretskii
@ 2012-08-23 17:19               ` martin rudalics
  2012-08-23 18:43                 ` Eli Zaretskii
  0 siblings, 1 reply; 37+ messages in thread
From: martin rudalics @ 2012-08-23 17:19 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: sds, 12251

 >>  >> "#<window 139> is not a valid window"
 >>
 >> The above means that we've been running Lisp code on a dead window and
 >> that call was rejected with an error by `window-normalize-window'.  If
 >> this happens during a call from C, we have a problem.
 >
 > I don't think this error was thrown from C.

The error was obviously thrown from Lisp which per se is harmless.  But
I'm quite convinced that it was thrown by a Lisp function directly or
indirectly called from C.

 > Most probably, it was
 > thrown from Lisp, but since that unwinds the stack, there's no Lisp
 > backtrace that could confirm that.

How could we explain a crash if it's all within Lisp code?

 > I guess we need more checks in the mouse-highlight code, to account
 > for such cases.

Is note_mouse_highlight all we have to look at?

martin





^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-08-23 17:19               ` martin rudalics
@ 2012-08-23 18:43                 ` Eli Zaretskii
  2012-08-24  9:44                   ` martin rudalics
  0 siblings, 1 reply; 37+ messages in thread
From: Eli Zaretskii @ 2012-08-23 18:43 UTC (permalink / raw)
  To: martin rudalics; +Cc: sds, 12251

> Date: Thu, 23 Aug 2012 19:19:03 +0200
> From: martin rudalics <rudalics@gmx.at>
> CC: sds@gnu.org, 12251@debbugs.gnu.org
> 
>  >>  >> "#<window 139> is not a valid window"
>  >>
>  >> The above means that we've been running Lisp code on a dead window and
>  >> that call was rejected with an error by `window-normalize-window'.  If
>  >> this happens during a call from C, we have a problem.
>  >
>  > I don't think this error was thrown from C.
> 
> The error was obviously thrown from Lisp which per se is harmless.  But
> I'm quite convinced that it was thrown by a Lisp function directly or
> indirectly called from C.

Why do you think that?

>  > Most probably, it was
>  > thrown from Lisp, but since that unwinds the stack, there's no Lisp
>  > backtrace that could confirm that.
> 
> How could we explain a crash if it's all within Lisp code?

It's not within Lisp anymore; the error throws to top-level, and Emacs
tries to read input, at which time it gets a mouse event.

>  > I guess we need more checks in the mouse-highlight code, to account
>  > for such cases.
> 
> Is note_mouse_highlight all we have to look at?

Who knows?  But if there are more, we will get more crashes ;-)





^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-08-23 18:43                 ` Eli Zaretskii
@ 2012-08-24  9:44                   ` martin rudalics
  0 siblings, 0 replies; 37+ messages in thread
From: martin rudalics @ 2012-08-24  9:44 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: sds, 12251

 >> The error was obviously thrown from Lisp which per se is harmless.  But
 >> I'm quite convinced that it was thrown by a Lisp function directly or
 >> indirectly called from C.
 >
 > Why do you think that?

An error with code attempting to operate on a dead window within
"normal" Lisp is a strange case.  It can be due to users leaving a
dangling reference to such a window somewhere in their code but I doubt
that many people do that.  And when such an error happens, there is no
reason why it should expand into a crash.  The (implicit) invariants of
a window tree should not be violated by Elisp code.

OTOH, calling an Elisp function from C in a state where the window tree
invariants are temporarily violated can easily lead to a crash.

 >> How could we explain a crash if it's all within Lisp code?
 >
 > It's not within Lisp anymore; the error throws to top-level, and Emacs
 > tries to read input, at which time it gets a mouse event.

That would be a _very_ strange coinicidence.

martin





^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-08-23 17:18               ` martin rudalics
@ 2012-08-24 20:33                 ` Sam Steingold
  2012-08-25 13:40                   ` martin rudalics
  0 siblings, 1 reply; 37+ messages in thread
From: Sam Steingold @ 2012-08-24 20:33 UTC (permalink / raw)
  To: martin rudalics; +Cc: 12251

[-- Attachment #1: Type: text/plain, Size: 359 bytes --]

On Thu, Aug 23, 2012 at 1:18 PM, martin rudalics <rudalics@gmx.at> wrote:
>>> Shouldn't the window be live here?
>>
>> definitely!
>
> Can you try running it a while with such a check (that is, using
> WINDOW_LIVE_P instead of WINDOWP)?

tried, but got a crash in different place instead.

-- 
Sam Steingold <http://sds.podval.org> <http://www.childpsy.net/>

[-- Attachment #2: remember_mouse_glyph.log --]
[-- Type: application/octet-stream, Size: 32597 bytes --]

#0  remember_mouse_glyph (f=<optimized out>, gx=303, gy=497, rect=0xaf1c20) at /home/sds/src/emacs/trunk/src/xdisp.c:2251
        window = <optimized out>
        w = <optimized out>
        r = <optimized out>
        gr = <optimized out>
        end_row = <optimized out>
        part = ON_TEXT
        area = <optimized out>
        x = 284
        y = <optimized out>
        width = 6
        height = 13
#1  0x00000000004b74bb in note_mouse_movement (frame=0x1177380, event=0x7fffffffc8d0) at /home/sds/src/emacs/trunk/src/xterm.c:3860
No locals.
#2  0x00000000004c063e in handle_one_xevent (dpyinfo=0x1338e80, eventptr=0x7fffffffc9f0, finish=0x7fffffffc9ec, 
    hold_quit=0x7fffffffcd80) at /home/sds/src/emacs/trunk/src/xterm.c:6701
        inev = {
          ie = {
            kind = NO_EVENT, 
            code = 0, 
            part = scroll_bar_above_handle, 
            modifiers = 0, 
            x = 0, 
            y = 0, 
            timestamp = 0, 
            padding = {0x0, 0x0}, 
            frame_or_window = 0, 
            arg = 11992018
          }, 
          sie = {
            kind = 0, 
            display = 0x0, 
            requestor = 0, 
            selection = 0, 
            target = 0, 
            property = 0, 
            time = 0
          }
        }
        count = 0
        do_help = 0
        nbytes = 0
        f = 0x1177380
        coding = {
          id = 0, 
          common_flags = 0, 
          mode = 0, 
          spec = {
            iso_2022 = {
              flags = 0, 
              current_invocation = {0, 0}, 
              current_designation = {0, 0, 0, -176955040}, 
              single_shifting = 32767, 
              bol = 0, 
              ctext_extended_segment_len = 0, 
              embedded_utf_8 = 4096, 
              cmp_status = {
                state = COMPOSING_NO, 
                method = 20062948, 
                old_form = 0, 
                length = -1, 
                nchars = -1, 
                ncomps = 20062832, 
                carryover = {0, -212273333, 32767, 0, 0, -15152, 32767, -14240, 32767, 54, 0, 6189691, 0, -14856, 32767, 1, 0, 
                  11992018, 0, -14240, 32767, -202546172, 32767, -72515583, 0, -14240, 32767, -14240, 32767, -14240, 32767, 
                  -14240, 32767, -14238, 32767, -14187, 32767, -14240, 32767, -14187, 32767, 0 <repeats 11 times>, 4, -14016, 
                  32767, 0, 0, 0, 0, 0, 0, -165720559, 32767, 20058032, 0, 0, 0, 0}
              }
            }, 
            ccl = 0x0, 
            utf_16 = {
              bom = utf_detect_bom, 
              endian = utf_16_big_endian, 
              surrogate = 0
            }, 
            utf_8_bom = utf_detect_bom, 
            emacs_mule = {
              full_support = 0, 
              cmp_status = {
                state = COMPOSING_NO, 
                method = COMPOSITION_RELATIVE, 
                old_form = 0, 
                length = 0, 
                nchars = 0, 
                ncomps = -176955040, 
                carryover = {32767, 0, 0, 4096, 0, 20062948, 0, -1, -1, 20062832, 0, -212273333, 32767, 0, 0, -15152, 32767, 
                  -14240, 32767, 54, 0, 6189691, 0, -14856, 32767, 1, 0, 11992018, 0, -14240, 32767, -202546172, 32767, -72515583, 
                  0, -14240, 32767, -14240, 32767, -14240, 32767, -14240, 32767, -14238, 32767, -14187, 32767, -14240, 32767, 
                  -14187, 32767, 0 <repeats 11 times>, 4, -14016, 32767, 0, 0, 0}
              }
            }
          }, 
          max_charset_id = 16460088, 
          safe_charsets = 0xffffffff <Address 0xffffffff out of bounds>, 
          src_multibyte = 1, 
          dst_multibyte = 0, 
          head_ascii = 0, 
          produced = 140737288620576, 
          produced_char = 0, 
          consumed = 140737488341200, 
          consumed_char = 11992018, 
          errors = 82108517, 
          error_positions = 0x1, 
          result = 82108512, 
          src_pos = 82108517, 
          src_pos_byte = 140737285808973, 
          src_chars = 0, 
          src_bytes = 206158430248, 
          src_object = 140737488340688, 
          source = 0x7fffffffc610 "", 
          dst_pos = 0, 
          dst_pos_byte = 0, 
          dst_bytes = 0, 
          dst_object = 5774238, 
          destination = 0x11 <Address 0x11 out of bounds>, 
          chars_at_source = 1, 
          charbuf = 0x0, 
          charbuf_size = 19, 
          charbuf_used = 0, 
          annotated = -14656, 
          carryover = "\377\177\000\000\023\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000&4X", '\000' <repeats 13 times>"\207, hW\000\000\000\000\000\322\373\266\000\000\000\000\000\221\031X\000\000\000\000\000", <incomplete sequence \370\203>, 
          carryover_bytes = 0, 
          default_char = -1685645312, 
          detector = 0, 
          decoder = 0xb6fbd2, 
          encoder = 0x4e4e065
        }
        event = {
          type = 7, 
          xany = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            window = 71303358
          }, 
          xkey = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            window = 71303358, 
            root = 186, 
            subwindow = 0, 
            time = 87400794, 
            x = 303, 
            y = 497, 
            x_root = 303, 
            y_root = 549, 
            state = 2, 
            keycode = 3, 
            same_screen = 1
          }, 
          xbutton = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            window = 71303358, 
            root = 186, 
            subwindow = 0, 
            time = 87400794, 
            x = 303, 
            y = 497, 
            x_root = 303, 
            y_root = 549, 
            state = 2, 
            button = 3, 
            same_screen = 1
          }, 
          xmotion = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            window = 71303358, 
            root = 186, 
            subwindow = 0, 
            time = 87400794, 
            x = 303, 
            y = 497, 
            x_root = 303, 
            y_root = 549, 
            state = 2, 
            is_hint = 3 '\003', 
            same_screen = 1
          }, 
          xcrossing = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            window = 71303358, 
            root = 186, 
            subwindow = 0, 
            time = 87400794, 
            x = 303, 
            y = 497, 
            x_root = 303, 
            y_root = 549, 
            mode = 2, 
            detail = 3, 
            same_screen = 1, 
            focus = 1, 
            state = 20
          }, 
          xfocus = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            window = 71303358, 
            mode = 186, 
            detail = 0
          }, 
          xexpose = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            window = 71303358, 
            x = 186, 
            y = 0, 
            width = 0, 
            height = 0, 
            count = 87400794
          }, 
          xgraphicsexpose = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            drawable = 71303358, 
            x = 186, 
            y = 0, 
            width = 0, 
            height = 0, 
            count = 87400794, 
            major_code = 0, 
            minor_code = 303
          }, 
          xnoexpose = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            drawable = 71303358, 
            major_code = 186, 
            minor_code = 0
          }, 
          xvisibility = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            window = 71303358, 
            state = 186
          }, 
          xcreatewindow = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            parent = 71303358, 
            window = 186, 
            x = 0, 
            y = 0, 
            width = 87400794, 
            height = 0, 
            border_width = 303, 
            override_redirect = 497
          }, 
          xdestroywindow = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            event = 71303358, 
            window = 186
          }, 
          xunmap = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            event = 71303358, 
            window = 186, 
            from_configure = 0
          }, 
          xmap = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            event = 71303358, 
            window = 186, 
            override_redirect = 0
          }, 
          xmaprequest = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            parent = 71303358, 
            window = 186
          }, 
          xreparent = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            event = 71303358, 
            window = 186, 
            parent = 0, 
            x = 87400794, 
            y = 0, 
            override_redirect = 303
          }, 
          xconfigure = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            event = 71303358, 
            window = 186, 
            x = 0, 
            y = 0, 
            width = 87400794, 
            height = 0, 
            border_width = 303, 
            above = 2357937045807, 
            override_redirect = 2
          }, 
          xgravity = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            event = 71303358, 
            window = 186, 
            x = 0, 
            y = 0
          }, 
          xresizerequest = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            window = 71303358, 
            width = 186, 
            height = 0
          }, 
          xconfigurerequest = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            parent = 71303358, 
            window = 186, 
            x = 0, 
            y = 0, 
            width = 87400794, 
            height = 0, 
            border_width = 303, 
            above = 2357937045807, 
            detail = 2, 
            value_mask = 4294967297
          }, 
          xcirculate = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            event = 71303358, 
            window = 186, 
            place = 0
          }, 
          xcirculaterequest = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            parent = 71303358, 
            window = 186, 
            place = 0
          }, 
          xproperty = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            window = 71303358, 
            atom = 186, 
            time = 0, 
            state = 87400794
          }, 
          xselectionclear = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            window = 71303358, 
            selection = 186, 
            time = 0
          }, 
          xselectionrequest = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            owner = 71303358, 
            requestor = 186, 
            selection = 0, 
            target = 87400794, 
            property = 2134598746415, 
            time = 2357937045807
          }, 
          xselection = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            requestor = 71303358, 
            selection = 186, 
            target = 0, 
            property = 87400794, 
            time = 2134598746415
          }, 
          xcolormap = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            window = 71303358, 
            colormap = 186, 
            new = 0, 
            state = 0
          }, 
          xclient = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            window = 71303358, 
            message_type = 186, 
            format = 0, 
            data = {
              b = "Z\241\065\005\000\000\000\000/\001\000\000\361\001\000\000/\001\000", 
              s = {-24230, 1333, 0, 0, 303, 0, 497, 0, 303, 0}, 
              l = {87400794, 2134598746415, 2357937045807, 12884901890, 4294967297}
            }
          }, 
          xmapping = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            window = 71303358, 
            request = 186, 
            first_keycode = 0, 
            count = 0
          }, 
          xerror = {
            type = 7, 
            display = 0x462169, 
            resourceid = 0, 
            serial = 20058032, 
            error_code = 190 '\276', 
            request_code = 0 '\000', 
            minor_code = 64 '@'
          }, 
          xkeymap = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            window = 71303358, 
            key_vector = "\272", '\000' <repeats 15 times>, "Z\241\065\005\000\000\000\000/\001\000\000\361\001\000"
          }, 
          xgeneric = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            extension = 71303358, 
            evtype = 0
          }, 
          xcookie = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            extension = 71303358, 
            evtype = 0, 
            cookie = 186, 
            data = 0x0
          }, 
          pad = {140733193388039, 4596073, 0, 20058032, 71303358, 186, 0, 87400794, 2134598746415, 2357937045807, 12884901890, 
            4294967297, 20, 0 <repeats 11 times>}
        }
        hlinfo = <optimized out>
        sa_count = <optimized out>
        sa_must_free = 0
#3  0x00000000004c16f6 in XTread_socket (terminal=0xfb2938, expected=<optimized out>, hold_quit=0x7fffffffcd80)
    at /home/sds/src/emacs/trunk/src/xterm.c:7185
        finish = 0
        event = {
          type = 7, 
          xany = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            window = 71303358
          }, 
          xkey = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            window = 71303358, 
            root = 186, 
            subwindow = 0, 
            time = 87400794, 
            x = 303, 
            y = 497, 
            x_root = 303, 
            y_root = 549, 
            state = 2, 
            keycode = 3, 
            same_screen = 1
          }, 
          xbutton = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            window = 71303358, 
            root = 186, 
            subwindow = 0, 
            time = 87400794, 
            x = 303, 
            y = 497, 
            x_root = 303, 
            y_root = 549, 
            state = 2, 
            button = 3, 
            same_screen = 1
          }, 
          xmotion = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            window = 71303358, 
            root = 186, 
            subwindow = 0, 
            time = 87400794, 
            x = 303, 
            y = 497, 
            x_root = 303, 
            y_root = 549, 
            state = 2, 
            is_hint = 3 '\003', 
            same_screen = 1
          }, 
          xcrossing = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            window = 71303358, 
            root = 186, 
            subwindow = 0, 
            time = 87400794, 
            x = 303, 
            y = 497, 
            x_root = 303, 
            y_root = 549, 
            mode = 2, 
            detail = 3, 
            same_screen = 1, 
            focus = 1, 
            state = 20
          }, 
          xfocus = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            window = 71303358, 
            mode = 186, 
            detail = 0
          }, 
          xexpose = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            window = 71303358, 
            x = 186, 
            y = 0, 
            width = 0, 
            height = 0, 
            count = 87400794
          }, 
          xgraphicsexpose = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            drawable = 71303358, 
            x = 186, 
            y = 0, 
            width = 0, 
            height = 0, 
            count = 87400794, 
            major_code = 0, 
            minor_code = 303
          }, 
          xnoexpose = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            drawable = 71303358, 
            major_code = 186, 
            minor_code = 0
          }, 
          xvisibility = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            window = 71303358, 
            state = 186
          }, 
          xcreatewindow = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            parent = 71303358, 
            window = 186, 
            x = 0, 
            y = 0, 
            width = 87400794, 
            height = 0, 
            border_width = 303, 
            override_redirect = 497
          }, 
          xdestroywindow = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            event = 71303358, 
            window = 186
          }, 
          xunmap = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            event = 71303358, 
            window = 186, 
            from_configure = 0
          }, 
          xmap = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            event = 71303358, 
            window = 186, 
            override_redirect = 0
          }, 
          xmaprequest = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            parent = 71303358, 
            window = 186
          }, 
          xreparent = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            event = 71303358, 
            window = 186, 
            parent = 0, 
            x = 87400794, 
            y = 0, 
            override_redirect = 303
          }, 
          xconfigure = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            event = 71303358, 
            window = 186, 
            x = 0, 
            y = 0, 
            width = 87400794, 
            height = 0, 
            border_width = 303, 
            above = 2357937045807, 
            override_redirect = 2
          }, 
          xgravity = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            event = 71303358, 
            window = 186, 
            x = 0, 
            y = 0
          }, 
          xresizerequest = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            window = 71303358, 
            width = 186, 
            height = 0
          }, 
          xconfigurerequest = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            parent = 71303358, 
            window = 186, 
            x = 0, 
            y = 0, 
            width = 87400794, 
            height = 0, 
            border_width = 303, 
            above = 2357937045807, 
            detail = 2, 
            value_mask = 4294967297
          }, 
          xcirculate = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            event = 71303358, 
            window = 186, 
            place = 0
          }, 
          xcirculaterequest = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            parent = 71303358, 
            window = 186, 
            place = 0
          }, 
          xproperty = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            window = 71303358, 
            atom = 186, 
            time = 0, 
            state = 87400794
          }, 
          xselectionclear = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            window = 71303358, 
            selection = 186, 
            time = 0
          }, 
          xselectionrequest = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            owner = 71303358, 
            requestor = 186, 
            selection = 0, 
            target = 87400794, 
            property = 2134598746415, 
            time = 2357937045807
          }, 
          xselection = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            requestor = 71303358, 
            selection = 186, 
            target = 0, 
            property = 87400794, 
            time = 2134598746415
          }, 
          xcolormap = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            window = 71303358, 
            colormap = 186, 
            new = 0, 
            state = 0
          }, 
          xclient = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            window = 71303358, 
            message_type = 186, 
            format = 0, 
            data = {
              b = "Z\241\065\005\000\000\000\000/\001\000\000\361\001\000\000/\001\000", 
              s = {-24230, 1333, 0, 0, 303, 0, 497, 0, 303, 0}, 
              l = {87400794, 2134598746415, 2357937045807, 12884901890, 4294967297}
            }
          }, 
          xmapping = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            window = 71303358, 
            request = 186, 
            first_keycode = 0, 
            count = 0
          }, 
          xerror = {
            type = 7, 
            display = 0x462169, 
            resourceid = 0, 
            serial = 20058032, 
            error_code = 190 '\276', 
            request_code = 0 '\000', 
            minor_code = 64 '@'
          }, 
          xkeymap = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            window = 71303358, 
            key_vector = "\272", '\000' <repeats 15 times>, "Z\241\065\005\000\000\000\000/\001\000\000\361\001\000"
          }, 
          xgeneric = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            extension = 71303358, 
            evtype = 0
          }, 
          xcookie = {
            type = 7, 
            serial = 4596073, 
            send_event = 0, 
            display = 0x1320fb0, 
            extension = 71303358, 
            evtype = 0, 
            cookie = 186, 
            data = 0x0
          }, 
          pad = {140733193388039, 4596073, 0, 20058032, 71303358, 186, 0, 87400794, 2134598746415, 2357937045807, 12884901890, 
            4294967297, 20, 0 <repeats 11 times>}
        }
        count = 0
        event_found = 1
#4  0x00000000004f8f87 in read_avail_input (expected=1) at /home/sds/src/emacs/trunk/src/keyboard.c:6895
        nr = <optimized out>
        hold_quit = {
          kind = NO_EVENT, 
          code = 0, 
          part = scroll_bar_above_handle, 
          modifiers = 0, 
          x = 0, 
          y = 0, 
          timestamp = 0, 
          padding = {0x0, 0x0}, 
          frame_or_window = 0, 
          arg = 0
        }
        next = 0x0
        nread = 0
        err = <optimized out>
        t = 0xfb2938
#5  0x00000000004f90aa in handle_async_input () at /home/sds/src/emacs/trunk/src/keyboard.c:7224
        nread = 1
#6  0x00000000004b9905 in XTring_bell (f=<optimized out>) at /home/sds/src/emacs/trunk/src/xterm.c:3259
No locals.
#7  XTring_bell (f=0x1177380) at /home/sds/src/emacs/trunk/src/xterm.c:3248
No locals.
#8  0x00000000004f5b95 in cmd_error_internal (data=61901702, context=0x7fffffffcf60 "")
    at /home/sds/src/emacs/trunk/src/keyboard.c:1147
        sf = <optimized out>
#9  0x00000000004f5d03 in cmd_error (data=61901702) at /home/sds/src/emacs/trunk/src/keyboard.c:1080
        old_level = 40
        old_length = 40
        macroerror = "\000\373\266\000\000\000\000\000\000\030\207\233\000`\267wb̸\000\000\000\000\000\002\000\000\000\000\000\000\000\322\373\266\000\000\000\000\000\310\325\377\377\377\177\000\000\377\377"
#10 0x0000000000567dd9 in internal_condition_case (bfun=0x4f39f0 <top_level_2>, handlers=12043794, hfun=0x4f5bf0 <cmd_error>)
    at /home/sds/src/emacs/trunk/src/eval.c:1312
        val = <optimized out>
        c = {
          tag = 11992018, 
          val = 61901702, 
          next = 0x7fffffffd170, 
          gcpro = 0x0, 
          jmp = {{
              __jmpbuf = {15673024, 3230441958798973607, 11992018, 140737488344520, 4294967295, 140737488344800, 
                -3230439957653169497, 3230440660314151591}, 
              __mask_was_saved = 0, 
              __saved_mask = {
                __val = {140737353918688, 140737353947624, 5296006, 4294967295, 0, 0, 15673024, 8597472, 0, 4294967295, 
                  140737488344800, 0, 140737351944052, 1, 0, 140737284769664}
              }
            }}, 
          backlist = 0x0, 
          handlerlist = 0x0, 
          lisp_eval_depth = 0, 
          pdlcount = 2, 
          poll_suppress_count = 1, 
          interrupt_input_blocked = 0, 
          byte_stack = 0x0
        }
        h = {
          handler = 12043794, 
          var = 11992018, 
          chosen_clause = 11992066, 
          tag = 0x7fffffffcff0, 
          next = 0x0
        }
#11 0x00000000004f3f16 in top_level_1 (ignore=<optimized out>) at /home/sds/src/emacs/trunk/src/keyboard.c:1221
No locals.
#12 0x0000000000567c88 in internal_catch (tag=<error reading variable: Cannot access memory at address 0xfc>, 
    func=0x4f3eb0 <top_level_1>, arg=11992018) at /home/sds/src/emacs/trunk/src/eval.c:1079
        c = {
          tag = 12039666, 
          val = 11992018, 
          next = 0x0, 
          gcpro = 0x0, 
          jmp = {{
              __jmpbuf = {15673024, 3230441958798973607, 11992018, 140737488344520, 4294967295, 140737488344800, 
                -3230439957604935001, 3230440660292655783}, 
              __mask_was_saved = 0, 
              __saved_mask = {
                __val = {0, 0, 0, 0, 0, 0, 5967555, 0, 18701928, 140737488343728, 140737488343736, 0, 140737488343728, 6278870, 
                  11992018, 140737488343736}
              }
            }}, 
          backlist = 0x0, 
          handlerlist = 0x0, 
          lisp_eval_depth = 0, 
          pdlcount = 2, 
          poll_suppress_count = 1, 
          interrupt_input_blocked = 0, 
          byte_stack = 0x0
        }
#13 0x00000000004f56af in command_loop () at /home/sds/src/emacs/trunk/src/keyboard.c:1176
No locals.
#14 recursive_edit_1 () at /home/sds/src/emacs/trunk/src/keyboard.c:804
        count = 1
        val = 11992018
#15 0x00000000004f5a04 in Frecursive_edit () at /home/sds/src/emacs/trunk/src/keyboard.c:868
        count = 0
        buffer = 11992018
#16 0x000000000040fffd in main (argc=1, argv=<optimized out>) at /home/sds/src/emacs/trunk/src/emacs.c:1662
        dummy = 0
        stack_bottom_variable = 0 '\000'
        do_initial_setlocale = <optimized out>
        skip_args = 0
        rlim = {
          rlim_cur = 8720000, 
          rlim_max = 18446744073709551615
        }
        no_loadup = 0
        junk = 0x0
        dname_arg = 0x0
        ch_to_dir = 0x7ffff3ddee40 "\212'"
#0  remember_mouse_glyph (f=<optimized out>, gx=303, gy=497, rect=0xaf1c20) at /home/sds/src/emacs/trunk/src/xdisp.c:2251
#1  0x00000000004b74bb in note_mouse_movement (frame=0x1177380, event=0x7fffffffc8d0) at /home/sds/src/emacs/trunk/src/xterm.c:3860
#2  0x00000000004c063e in handle_one_xevent (dpyinfo=0x1338e80, eventptr=0x7fffffffc9f0, finish=0x7fffffffc9ec, 
    hold_quit=0x7fffffffcd80) at /home/sds/src/emacs/trunk/src/xterm.c:6701
#3  0x00000000004c16f6 in XTread_socket (terminal=0xfb2938, expected=<optimized out>, hold_quit=0x7fffffffcd80)
    at /home/sds/src/emacs/trunk/src/xterm.c:7185
#4  0x00000000004f8f87 in read_avail_input (expected=1) at /home/sds/src/emacs/trunk/src/keyboard.c:6895
#5  0x00000000004f90aa in handle_async_input () at /home/sds/src/emacs/trunk/src/keyboard.c:7224
#6  0x00000000004b9905 in XTring_bell (f=<optimized out>) at /home/sds/src/emacs/trunk/src/xterm.c:3259
#7  XTring_bell (f=0x1177380) at /home/sds/src/emacs/trunk/src/xterm.c:3248
#8  0x00000000004f5b95 in cmd_error_internal (data=61901702, context=0x7fffffffcf60 "")
    at /home/sds/src/emacs/trunk/src/keyboard.c:1147
#9  0x00000000004f5d03 in cmd_error (data=61901702) at /home/sds/src/emacs/trunk/src/keyboard.c:1080
#10 0x0000000000567dd9 in internal_condition_case (bfun=0x4f39f0 <top_level_2>, handlers=12043794, hfun=0x4f5bf0 <cmd_error>)
    at /home/sds/src/emacs/trunk/src/eval.c:1312
#11 0x00000000004f3f16 in top_level_1 (ignore=<optimized out>) at /home/sds/src/emacs/trunk/src/keyboard.c:1221
#12 0x0000000000567c88 in internal_catch (tag=<error reading variable: Cannot access memory at address 0xfc>, 
    func=0x4f3eb0 <top_level_1>, arg=11992018) at /home/sds/src/emacs/trunk/src/eval.c:1079
#13 0x00000000004f56af in command_loop () at /home/sds/src/emacs/trunk/src/keyboard.c:1176
#14 recursive_edit_1 () at /home/sds/src/emacs/trunk/src/keyboard.c:804
#15 0x00000000004f5a04 in Frecursive_edit () at /home/sds/src/emacs/trunk/src/keyboard.c:868
#16 0x000000000040fffd in main (argc=1, argv=<optimized out>) at /home/sds/src/emacs/trunk/src/emacs.c:1662
quit
A debugging session is active.

	Inferior 1 [process 10508] will be killed.

Quit anyway? (y or n) 

^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-08-24 20:33                 ` Sam Steingold
@ 2012-08-25 13:40                   ` martin rudalics
  2012-08-27 19:01                     ` Sam Steingold
  0 siblings, 1 reply; 37+ messages in thread
From: martin rudalics @ 2012-08-25 13:40 UTC (permalink / raw)
  To: Sam Steingold; +Cc: 12251

[-- Attachment #1: Type: text/plain, Size: 211 bytes --]

 > tried, but got a crash in different place instead.

Interesting.  Could you try the more invasive patch I attached?  I have
no idea what it could break, so please don't do any important work with
it.

martin

[-- Attachment #2: windowp.diff --]
[-- Type: text/plain, Size: 16555 bytes --]

bzr diff
=== modified file 'src/buffer.c'
--- src/buffer.c	2012-08-24 04:37:57 +0000
+++ src/buffer.c	2012-08-25 13:16:19 +0000
@@ -1351,7 +1351,7 @@
 A non-nil FLAG means mark the buffer modified.  */)
   (Lisp_Object flag)
 {
-  Lisp_Object fn, buffer, window;
+  Lisp_Object fn, buffer;
 
 #ifdef CLASH_DETECTION
   /* If buffer becoming modified, lock the file.
@@ -1401,8 +1401,7 @@
      buffers without "modifying" buffers, or redisplay should be
      smarter about updating the `*' in mode lines.  --gerd  */
   XSETBUFFER (buffer, current_buffer);
-  window = Fget_buffer_window (buffer, Qt);
-  if (WINDOWP (window))
+  if (!NILP (Fget_buffer_window (buffer, Qt)))
     {
       ++update_mode_lines;
       current_buffer->prevent_redisplay_optimizations_p = 1;
@@ -3195,7 +3194,7 @@
 	      Lisp_Object window;
 
 	      window = Foverlay_get (overlay, Qwindow);
-	      if (WINDOWP (window) && XWINDOW (window) != w)
+	      if (WINDOW_LIVE_P (window) && XWINDOW (window) != w)
 		continue;
 	    }
 
@@ -3337,7 +3336,7 @@
       if (endpos != pos && startpos != pos)
 	continue;
       window = Foverlay_get (overlay, Qwindow);
-      if (WINDOWP (window) && XWINDOW (window) != w)
+      if (WINDOW_LIVE_P (window) && XWINDOW (window) != w)
 	continue;
       if (startpos == pos
 	  && (str = Foverlay_get (overlay, Qbefore_string), STRINGP (str)))
@@ -3365,7 +3364,7 @@
       if (endpos != pos && startpos != pos)
 	continue;
       window = Foverlay_get (overlay, Qwindow);
-      if (WINDOWP (window) && XWINDOW (window) != w)
+      if (WINDOW_LIVE_P (window) && XWINDOW (window) != w)
 	continue;
       if (startpos == pos
 	  && (str = Foverlay_get (overlay, Qbefore_string), STRINGP (str)))

=== modified file 'src/editfns.c'
--- src/editfns.c	2012-08-21 23:39:56 +0000
+++ src/editfns.c	2012-08-25 12:34:37 +0000
@@ -360,7 +360,7 @@
 
   if (NILP (object))
     XSETBUFFER (object, current_buffer);
-  else if (WINDOWP (object))
+  else if (WINDOW_LIVE_P (object))
     object = XWINDOW (object)->buffer;
 
   if (!BUFFERP (object))

=== modified file 'src/frame.c'
--- src/frame.c	2012-08-22 16:05:04 +0000
+++ src/frame.c	2012-08-25 13:14:31 +0000
@@ -951,7 +951,7 @@
 		    || FRAME_ICONIFIED_P (XFRAME (f)))
 		  return f;
 	      }
-	    else if (WINDOWP (minibuf))
+	    else if (WINDOW_LIVE_P (minibuf))
 	      {
 		if (EQ (FRAME_MINIBUF_WINDOW (XFRAME (f)), minibuf)
 		    || EQ (WINDOW_FRAME (XWINDOW (minibuf)), f)
@@ -1010,7 +1010,7 @@
 	      if (! FRAME_MINIBUF_ONLY_P (XFRAME (f)))
 		prev = f;
 	    }
-	  else if (WINDOWP (minibuf))
+	  else if (WINDOW_LIVE_P (minibuf))
 	    {
 	      if (EQ (FRAME_MINIBUF_WINDOW (XFRAME (f)), minibuf)
 		  || EQ (WINDOW_FRAME (XWINDOW (minibuf)), f)
@@ -2150,7 +2150,7 @@
 	set_term_frame_name (f, val);
     }
 
-  if (EQ (prop, Qminibuffer) && WINDOWP (val))
+  if (EQ (prop, Qminibuffer) && WINDOW_LIVE_P (val))
     {
       if (! MINI_WINDOW_P (XWINDOW (val)))
 	error ("Surrogate minibuffer windows must be minibuffer windows");

=== modified file 'src/keyboard.c'
--- src/keyboard.c	2012-08-23 08:33:56 +0000
+++ src/keyboard.c	2012-08-25 12:34:33 +0000
@@ -3521,7 +3521,7 @@
   frame = event->frame_or_window;
   if (CONSP (frame))
     frame = XCAR (frame);
-  else if (WINDOWP (frame))
+  else if (WINDOW_LIVE_P (frame))
     frame = WINDOW_FRAME (XWINDOW (frame));
 
   /* There are still some events that don't set this field.
@@ -3738,7 +3738,7 @@
   event.kind = HELP_EVENT;
   event.frame_or_window = frame;
   event.arg = object;
-  event.x = WINDOWP (window) ? window : frame;
+  event.x = WINDOW_LIVE_P (window) ? window : frame;
   event.y = help;
   event.code = pos;
   kbd_buffer_store_event (&event);
@@ -4064,7 +4064,7 @@
 	  clear_event (event);
 
 	  kbd_fetch_ptr = event + 1;
-	  if (!WINDOWP (window))
+	  if (!WINDOW_LIVE_P (window))
 	    window = Qnil;
 	  obj = Fcons (Qhelp_echo,
 		       list5 (frame, help, window, object, position));
@@ -4109,7 +4109,7 @@
 	  frame = event->frame_or_window;
 	  if (CONSP (frame))
 	    frame = XCAR (frame);
-	  else if (WINDOWP (frame))
+	  else if (WINDOW_LIVE_P (frame))
 	    frame = WINDOW_FRAME (XWINDOW (frame));
 
 	  focus = FRAME_FOCUS_FRAME (XFRAME (frame));
@@ -5192,7 +5192,7 @@
     ? window_from_coordinates (f, XINT (x), XINT (y), &part, 0)
     : Qnil;
 
-  if (WINDOWP (window))
+  if (WINDOW_LIVE_P (window))
     {
       /* It's a click in window WINDOW at frame coordinates (X,Y)  */
       struct window *w = XWINDOW (window);
@@ -5621,7 +5621,7 @@
 	  struct frame *f;
 	  int fuzz;
 
-	  if (WINDOWP (event->frame_or_window))
+	  if (WINDOW_LIVE_P (event->frame_or_window))
 	    f = XFRAME (XWINDOW (event->frame_or_window)->frame);
 	  else if (FRAMEP (event->frame_or_window))
 	    f = XFRAME (event->frame_or_window);
@@ -5789,7 +5789,7 @@
 	  int symbol_num;
 	  int is_double;
 
-	  if (WINDOWP (event->frame_or_window))
+	  if (WINDOW_LIVE_P (event->frame_or_window))
 	    fr = XFRAME (XWINDOW (event->frame_or_window)->frame);
 	  else if (FRAMEP (event->frame_or_window))
 	    fr = XFRAME (event->frame_or_window);
@@ -9555,7 +9555,7 @@
 		     read using the keymaps in the buffer clicked on,
 		     not the current buffer.  If we're at the
 		     beginning of a key sequence, switch buffers.  */
-		  if (WINDOWP (window)
+		  if (WINDOW_LIVE_P (window)
 		      && BUFFERP (XWINDOW (window)->buffer)
 		      && XBUFFER (XWINDOW (window)->buffer) != current_buffer)
 		    {
@@ -11249,7 +11249,7 @@
   if (NILP (frame_or_window))
     frame_or_window = selected_window;
 
-  if (WINDOWP (frame_or_window))
+  if (WINDOW_LIVE_P (frame_or_window))
     {
       struct window *w = decode_live_window (frame_or_window);
 

=== modified file 'src/keymap.c'
--- src/keymap.c	2012-08-18 06:06:39 +0000
+++ src/keymap.c	2012-08-25 12:41:07 +0000
@@ -1559,7 +1559,7 @@
 
       window = POSN_WINDOW (position);
 
-      if (WINDOWP (window)
+      if (WINDOW_LIVE_P (window)
 	  && BUFFERP (XWINDOW (window)->buffer)
 	  && XBUFFER (XWINDOW (window)->buffer) != current_buffer)
 	{

=== modified file 'src/textprop.c'
--- src/textprop.c	2012-08-17 21:12:11 +0000
+++ src/textprop.c	2012-08-25 13:05:53 +0000
@@ -584,7 +584,7 @@
   if (NILP (object))
     XSETBUFFER (object, current_buffer);
 
-  if (WINDOWP (object))
+  if (WINDOW_LIVE_P (object))
     {
       w = XWINDOW (object);
       object = w->buffer;

=== modified file 'src/w32inevt.c'
--- src/w32inevt.c	2012-07-30 17:07:33 +0000
+++ src/w32inevt.c	2012-08-25 13:06:20 +0000
@@ -650,7 +650,7 @@
 		 selected now, and the last mouse movement event was
 		 not in it.  A minibuffer window will be selected iff
 		 it is active.  */
-	      if (WINDOWP (mouse_window)
+	      if (WINDOW_LIVE_P (mouse_window)
 		  && !EQ (mouse_window, last_mouse_window)
 		  && !EQ (mouse_window, selected_window))
 		{

=== modified file 'src/w32term.c'
--- src/w32term.c	2012-08-18 01:42:52 +0000
+++ src/w32term.c	2012-08-25 13:10:02 +0000
@@ -3927,7 +3927,7 @@
 w32_scroll_bar_handle_click (struct scroll_bar *bar, W32Msg *msg,
 			     struct input_event *emacs_event)
 {
-  if (! WINDOWP (bar->window))
+  if (! WINDOW_LIVE_P (bar->window))
     abort ();
 
   emacs_event->kind = SCROLL_BAR_CLICK_EVENT;
@@ -4420,7 +4420,7 @@
 		     selected now and last mouse movement event was
 		     not in it.  Minibuffer window will be selected
 		     only when it is active.  */
-		  if (WINDOWP (window)
+		  if (WINDOW_LIVE_P (window)
 		      && !EQ (window, last_window)
 		      && !EQ (window, selected_window)
 		      /* For click-to-focus window managers

=== modified file 'src/window.c'
--- src/window.c	2012-08-21 09:27:07 +0000
+++ src/window.c	2012-08-25 12:52:42 +0000
@@ -1969,7 +1969,7 @@
      So don't clobber point in that buffer.  */
   if (! EQ (buf, XWINDOW (selected_window)->buffer)
       /* This line helps to fix Horsley's testbug.el bug.  */
-      && !(WINDOWP (BVAR (b, last_selected_window))
+      && !(WINDOW_LIVE_P (BVAR (b, last_selected_window))
 	   && w != XWINDOW (BVAR (b, last_selected_window))
 	   && EQ (buf, XWINDOW (BVAR (b, last_selected_window))->buffer)))
     temp_set_point_both (b,
@@ -1980,7 +1980,7 @@
 					 marker_byte_position (w->pointm),
 					 BUF_ZV_BYTE (b)));
 
-  if (WINDOWP (BVAR (b, last_selected_window))
+  if (WINDOW_LIVE_P (BVAR (b, last_selected_window))
       && w == XWINDOW (BVAR (b, last_selected_window)))
     bset_last_selected_window (b, Qnil);
 }
@@ -2205,7 +2205,7 @@
     candidate_p = 0;
   else if (MINI_WINDOW_P (w)
            && (EQ (minibuf, Qlambda)
-	       || (WINDOWP (minibuf) && !EQ (minibuf, window))))
+	       || (WINDOW_LIVE_P (minibuf) && !EQ (minibuf, window))))
     {
       /* If MINIBUF is `lambda' don't consider any mini-windows.
          If it is a window, consider only that one.  */
@@ -2215,7 +2215,7 @@
     candidate_p = 1;
   else if (NILP (all_frames))
     {
-      eassert (WINDOWP (owindow));
+      eassert (WINDOW_LIVE_P (owindow));
       candidate_p = EQ (w->frame, XWINDOW (owindow)->frame);
     }
   else if (EQ (all_frames, Qvisible))
@@ -2244,7 +2244,7 @@
 	&& (FRAME_TERMINAL (XFRAME (w->frame))
 	    == FRAME_TERMINAL (XFRAME (selected_frame)));
     }
-  else if (WINDOWP (all_frames))
+  else if (WINDOW_LIVE_P (all_frames))
     candidate_p = (EQ (FRAME_MINIBUF_WINDOW (f), all_frames)
 		   || EQ (XWINDOW (all_frames)->frame, w->frame)
 		   || EQ (XWINDOW (all_frames)->frame, FRAME_FOCUS_FRAME (f)));
@@ -2348,7 +2348,7 @@
 	{
 	  if (EQ (XCAR (list), window))
 	    {
-	      if (WINDOWP (candidate))
+	      if (WINDOW_LIVE_P (candidate))
 		break;
 	    }
 	  else if (candidate_window_p (XCAR (list), window, minibuf,
@@ -2356,7 +2356,7 @@
 	    candidate = XCAR (list);
 	}
 
-      if (WINDOWP (candidate))
+      if (WINDOW_LIVE_P (candidate))
 	window = candidate;
     }
 
@@ -2580,7 +2580,7 @@
      or Qt otherwise.  */
 
   /* Pick a window to start with.  */
-  if (WINDOWP (obj))
+  if (WINDOW_LIVE_P (obj))
     window = obj;
   else if (f)
     window = FRAME_SELECTED_WINDOW (f);
@@ -3321,7 +3321,7 @@
       return Qt;
     }
 
-  if (WINDOWP (object))
+  if (WINDOW_LIVE_P (object))
     {
       struct window *w = XWINDOW (object);
       mark_window_display_accurate (object, 0);
@@ -5562,7 +5562,7 @@
 	   the current-selected-window.  So we have to be careful which
 	   point of the current-buffer we copy into old_point.  */
 	if (EQ (XWINDOW (data->current_window)->buffer, new_current_buffer)
-	    && WINDOWP (selected_window)
+	    && WINDOW_LIVE_P (selected_window)
 	    && EQ (XWINDOW (selected_window)->buffer, new_current_buffer)
 	    && !EQ (selected_window, data->current_window))
 	  old_point = XMARKER (XWINDOW (data->current_window)->pointm)->charpos;
@@ -6495,7 +6495,7 @@
 		void *user_data)
 {
   /* delete_frame may set FRAME_ROOT_WINDOW (f) to Qnil.  */
-  if (WINDOWP (FRAME_ROOT_WINDOW (f)))
+  if (WINDOW_VALID_P (FRAME_ROOT_WINDOW (f)))
     foreach_window_1 (XWINDOW (FRAME_ROOT_WINDOW (f)), fn, user_data);
 }
 
@@ -6534,7 +6534,7 @@
 freeze_window_start (struct window *w, void *freeze_p)
 {
   if (MINI_WINDOW_P (w)
-      || (WINDOWP (selected_window) /* Can be nil in corner cases.  */
+      || (WINDOW_LIVE_P (selected_window) /* Can be nil in corner cases.  */
          && (w == XWINDOW (selected_window)
              || (MINI_WINDOW_P (XWINDOW (selected_window))
                  && ! NILP (Vminibuf_scroll_window)

=== modified file 'src/xdisp.c'
--- src/xdisp.c	2012-08-21 23:39:56 +0000
+++ src/xdisp.c	2012-08-25 13:16:16 +0000
@@ -2714,7 +2714,7 @@
 	  /* Or show the region if we are in the mini-buffer and W is
 	     the window the mini-buffer refers to.  */
 	  || (MINI_WINDOW_P (XWINDOW (selected_window))
-	      && WINDOWP (minibuf_selected_window)
+	      && WINDOW_LIVE_P (minibuf_selected_window)
 	      && w == XWINDOW (minibuf_selected_window))))
     {
       ptrdiff_t markpos = marker_position (BVAR (current_buffer, mark));
@@ -10082,7 +10082,7 @@
   Vdeactivate_mark = AREF (vector, 1);
   windows_or_buffers_changed = XFASTINT (AREF (vector, 2));
 
-  if (WINDOWP (AREF (vector, 3)))
+  if (WINDOW_LIVE_P (AREF (vector, 3)))
     {
       struct window *w;
       Lisp_Object buffer, charpos, bytepos;
@@ -10251,7 +10251,7 @@
 resize_echo_area_exactly (void)
 {
   if (BUFFERP (echo_area_buffer[0])
-      && WINDOWP (echo_area_window))
+      && WINDOW_LIVE_P (echo_area_window))
     {
       struct window *w = XWINDOW (echo_area_window);
       int resized_p;
@@ -13057,7 +13057,8 @@
 
   /* do_pending_window_change could change the selected_window due to
      frame resizing which makes the selected window too small.  */
-  if (WINDOWP (selected_window) && (w = XWINDOW (selected_window)) != sw)
+  if (WINDOW_LIVE_P (selected_window)
+      && (w = XWINDOW (selected_window)) != sw)
     {
       sw = w;
       reconsider_clip_changes (w, current_buffer);
@@ -13336,7 +13337,7 @@
 	    {
 	      do_pending_window_change (1);
 	      /* If selected_window changed, redisplay again.  */
-	      if (WINDOWP (selected_window)
+	      if (WINDOW_LIVE_P (selected_window)
 		  && (w = XWINDOW (selected_window)) != sw)
 		goto retry;
 
@@ -13647,7 +13648,8 @@
   /* If we just did a pending size change, or have additional
      visible frames, or selected_window changed, redisplay again.  */
   if ((windows_or_buffers_changed && !pending)
-      || (WINDOWP (selected_window) && (w = XWINDOW (selected_window)) != sw))
+      || (WINDOW_LIVE_P (selected_window)
+	  && (w = XWINDOW (selected_window)) != sw))
     goto retry;
 
   /* Clear the face and image caches.
@@ -26358,7 +26360,7 @@
   Mouse_HLInfo *hlinfo = MOUSE_HL_INFO (XFRAME (w->frame));
 
   /* Quickly resolve the easy cases.  */
-  if (!(WINDOWP (hlinfo->mouse_face_window)
+  if (!(WINDOW_LIVE_P (hlinfo->mouse_face_window)
 	&& XWINDOW (hlinfo->mouse_face_window) == w))
     return 0;
   if (vpos < hlinfo->mouse_face_beg_row
@@ -27660,7 +27662,7 @@
     clear_mouse_face (hlinfo);
 
   /* Not on a window -> return.  */
-  if (!WINDOWP (window))
+  if (!WINDOW_LIVE_P (window))
     return;
 
   /* Reset help_echo_string. It will get recomputed below.  */

=== modified file 'src/xfaces.c'
--- src/xfaces.c	2012-08-21 10:21:04 +0000
+++ src/xfaces.c	2012-08-25 13:09:58 +0000
@@ -4350,7 +4350,7 @@
 	 matrices as invalid because they will reference faces freed
 	 above.  This function is also called when a frame is
 	 destroyed.  In this case, the root window of F is nil.  */
-      if (WINDOWP (f->root_window))
+      if (WINDOW_VALID_P (f->root_window))
 	{
 	  clear_current_matrices (f);
 	  ++windows_or_buffers_changed;

=== modified file 'src/xterm.c'
--- src/xterm.c	2012-08-18 01:42:52 +0000
+++ src/xterm.c	2012-08-25 13:09:51 +0000
@@ -4235,7 +4235,7 @@
 
   if (scroll_bar_p
       && strcmp (action_name, end_action) == 0
-      && WINDOWP (window_being_scrolled))
+      && WINDOW_LIVE_P (window_being_scrolled))
     {
       struct window *w;
 
@@ -4512,7 +4512,7 @@
 {
   struct scroll_bar *bar = (struct scroll_bar *) user_data;
   bar->dragging = Qnil;
-  if (WINDOWP (window_being_scrolled))
+  if (WINDOW_LIVE_P (window_being_scrolled))
     {
       x_send_scroll_bar_event (window_being_scrolled,
                                scroll_bar_end_scroll, 0, 0);
@@ -5557,7 +5557,7 @@
 static void
 x_scroll_bar_handle_click (struct scroll_bar *bar, XEvent *event, struct input_event *emacs_event)
 {
-  if (! WINDOWP (bar->window))
+  if (! WINDOW_LIVE_P (bar->window))
     abort ();
 
   emacs_event->kind = SCROLL_BAR_CLICK_EVENT;
@@ -6782,7 +6782,7 @@
                 /* Window will be selected only when it is not selected now and
                    last mouse movement event was not in it.  Minibuffer window
                    will be selected only when it is active.  */
-                if (WINDOWP (window)
+                if (WINDOW_LIVE_P (window)
                     && !EQ (window, last_window)
 		    && !EQ (window, selected_window)
 		    /* For click-to-focus window managers



^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-08-25 13:40                   ` martin rudalics
@ 2012-08-27 19:01                     ` Sam Steingold
  2012-08-27 19:05                       ` Sam Steingold
  0 siblings, 1 reply; 37+ messages in thread
From: Sam Steingold @ 2012-08-27 19:01 UTC (permalink / raw)
  To: martin rudalics; +Cc: 12251

> * martin rudalics <ehqnyvpf@tzk.ng> [2012-08-25 15:40:15 +0200]:
>
>> tried, but got a crash in different place instead.
>
> Interesting.  Could you try the more invasive patch I attached?  I
> have no idea what it could break, so please don't do any important
> work with it.

I rebuilt bzr tip this morning and now I am getting this:

Debugger entered--Lisp error: (error "#<window 3> is not a live window")
  signal(error ("#<window 3> is not a live window"))
  error("%s is not a live window" #<window 3>)
  window-normalize-window(#<window 3> t)
  record-window-buffer(#<window 3>)
  set-window-configuration(#<window-configuration>)
  sds-window-configuration-restore()
  run-hooks(gnus-suspend-gnus-hook)
  apply(run-hooks gnus-suspend-gnus-hook)
  gnus-run-hooks(gnus-suspend-gnus-hook)
  gnus-group-suspend()
  call-interactively(gnus-group-suspend nil nil)

when exiting or suspending gnus and



-- 
Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000
http://www.childpsy.net/ http://pmw.org.il http://www.memritv.org
http://thereligionofpeace.com http://camera.org http://iris.org.il
Money does not bother me at all.  In fact, it calms me down.





^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-08-27 19:01                     ` Sam Steingold
@ 2012-08-27 19:05                       ` Sam Steingold
  2012-08-27 21:10                         ` martin rudalics
  2012-08-28 16:35                         ` Sam Steingold
  0 siblings, 2 replies; 37+ messages in thread
From: Sam Steingold @ 2012-08-27 19:05 UTC (permalink / raw)
  To: martin rudalics; +Cc: 12251

> * Sam Steingold <fqf@tah.bet> [2012-08-27 15:01:55 -0400]:
>
>> * martin rudalics <ehqnyvpf@tzk.ng> [2012-08-25 15:40:15 +0200]:
>>
>>> tried, but got a crash in different place instead.
>>
>> Interesting.  Could you try the more invasive patch I attached?  I
>> have no idea what it could break, so please don't do any important
>> work with it.
>
> I rebuilt bzr tip this morning and now I am getting this:
>
> Debugger entered--Lisp error: (error "#<window 3> is not a live window")
>   signal(error ("#<window 3> is not a live window"))
>   error("%s is not a live window" #<window 3>)
>   window-normalize-window(#<window 3> t)
>   record-window-buffer(#<window 3>)
>   set-window-configuration(#<window-configuration>)
>   sds-window-configuration-restore()
>   run-hooks(gnus-suspend-gnus-hook)
>   apply(run-hooks gnus-suspend-gnus-hook)
>   gnus-run-hooks(gnus-suspend-gnus-hook)
>   gnus-group-suspend()
>   call-interactively(gnus-group-suspend nil nil)
>
> when exiting or suspending gnus and

... a similar error when sending e-mail replies after ispell-message .

my relevant settings are:

(add-hook 'message-send-hook 'ispell-message t)
(defvar sds-window-configuration)
(defun sds-window-configuration-save ()
  (setq sds-window-configuration (current-window-configuration)))
(defun sds-window-configuration-restore ()
  (set-window-configuration sds-window-configuration))
(add-hook 'gnus-after-exiting-gnus-hook 'sds-window-configuration-restore)
(add-hook 'gnus-suspend-gnus-hook 'sds-window-configuration-restore)
(add-hook 'gnus-before-startup-hook 'sds-window-configuration-save)

I assume that your patch is in the bzr tree now, I did not apply it.


-- 
Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000
http://www.childpsy.net/ http://pmw.org.il http://palestinefacts.org
http://dhimmi.com http://www.memritv.org http://think-israel.org
I don't want to be young again, I just don't want to get any older.





^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-08-27 19:05                       ` Sam Steingold
@ 2012-08-27 21:10                         ` martin rudalics
  2012-08-28 16:35                         ` Sam Steingold
  1 sibling, 0 replies; 37+ messages in thread
From: martin rudalics @ 2012-08-27 21:10 UTC (permalink / raw)
  To: sds; +Cc: 12251

 >> I rebuilt bzr tip this morning and now I am getting this:
 >>
 >> Debugger entered--Lisp error: (error "#<window 3> is not a live window")
 >>   signal(error ("#<window 3> is not a live window"))
 >>   error("%s is not a live window" #<window 3>)
 >>   window-normalize-window(#<window 3> t)
 >>   record-window-buffer(#<window 3>)
 >>   set-window-configuration(#<window-configuration>)
 >>   sds-window-configuration-restore()
 >>   run-hooks(gnus-suspend-gnus-hook)
 >>   apply(run-hooks gnus-suspend-gnus-hook)
 >>   gnus-run-hooks(gnus-suspend-gnus-hook)
 >>   gnus-group-suspend()
 >>   call-interactively(gnus-group-suspend nil nil)
 >>
 >> when exiting or suspending gnus and
 >
 > ... a similar error when sending e-mail replies after ispell-message .
 >
 > my relevant settings are:
 >
 > (add-hook 'message-send-hook 'ispell-message t)
 > (defvar sds-window-configuration)
 > (defun sds-window-configuration-save ()
 >   (setq sds-window-configuration (current-window-configuration)))
 > (defun sds-window-configuration-restore ()
 >   (set-window-configuration sds-window-configuration))
 > (add-hook 'gnus-after-exiting-gnus-hook 'sds-window-configuration-restore)
 > (add-hook 'gnus-suspend-gnus-hook 'sds-window-configuration-restore)
 > (add-hook 'gnus-before-startup-hook 'sds-window-configuration-save)

It's an unrelated change I reverted now.

 > I assume that your patch is in the bzr tree now, I did not apply it.

It is not.  Please try it.

martin





^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-08-27 19:05                       ` Sam Steingold
  2012-08-27 21:10                         ` martin rudalics
@ 2012-08-28 16:35                         ` Sam Steingold
  2012-08-28 17:05                           ` martin rudalics
  1 sibling, 1 reply; 37+ messages in thread
From: Sam Steingold @ 2012-08-28 16:35 UTC (permalink / raw)
  To: martin rudalics; +Cc: 12251

On Mon, Aug 27, 2012 at 3:05 PM, Sam Steingold <sds@gnu.org> wrote:
>> * Sam Steingold <fqf@tah.bet> [2012-08-27 15:01:55 -0400]:
>>
>>> * martin rudalics <ehqnyvpf@tzk.ng> [2012-08-25 15:40:15 +0200]:
>>>
>>>> tried, but got a crash in different place instead.
>>>
>>> Interesting.  Could you try the more invasive patch I attached?  I
>>> have no idea what it could break, so please don't do any important
>>> work with it.
>>
>> I rebuilt bzr tip this morning and now I am getting this:
>>
>> Debugger entered--Lisp error: (error "#<window 3> is not a live window")
>>   signal(error ("#<window 3> is not a live window"))
>>   error("%s is not a live window" #<window 3>)
>>   window-normalize-window(#<window 3> t)
>>   record-window-buffer(#<window 3>)
>>   set-window-configuration(#<window-configuration>)
>>   sds-window-configuration-restore()
>>   run-hooks(gnus-suspend-gnus-hook)
>>   apply(run-hooks gnus-suspend-gnus-hook)
>>   gnus-run-hooks(gnus-suspend-gnus-hook)
>>   gnus-group-suspend()
>>   call-interactively(gnus-group-suspend nil nil)
>>
>> when exiting or suspending gnus and
>
> ... a similar error when sending e-mail replies after ispell-message .

sorry, it was actually on commit:

Debugger entered--Lisp error: (error "#<window 114> is not a live window")
  signal(error ("#<window 114> is not a live window"))
  error("%s is not a live window" #<window 114>)
  window-normalize-window(#<window 114> t)
  record-window-buffer(#<window 114>)
  set-window-configuration(#<window-configuration>)
  ispell-process-line("^report the filtring lift\n" nil)
  ispell-region(1 26)
  ispell-buffer()
  run-hooks(log-edit-done-hook)
  log-edit-done()
  call-interactively(log-edit-done nil nil)

-- 
Sam Steingold <http://sds.podval.org> <http://www.childpsy.net/>





^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-08-28 16:35                         ` Sam Steingold
@ 2012-08-28 17:05                           ` martin rudalics
  2012-08-29  9:34                             ` martin rudalics
  0 siblings, 1 reply; 37+ messages in thread
From: martin rudalics @ 2012-08-28 17:05 UTC (permalink / raw)
  To: Sam Steingold; +Cc: 12251

 > Debugger entered--Lisp error: (error "#<window 114> is not a live window")
 >   signal(error ("#<window 114> is not a live window"))
 >   error("%s is not a live window" #<window 114>)
 >   window-normalize-window(#<window 114> t)
 >   record-window-buffer(#<window 114>)
 >   set-window-configuration(#<window-configuration>)
 >   ispell-process-line("^report the filtring lift\n" nil)
 >   ispell-region(1 26)
 >   ispell-buffer()
 >   run-hooks(log-edit-done-hook)
 >   log-edit-done()
 >   call-interactively(log-edit-done nil nil)

`set-window-configuration' now has

	  w = XWINDOW (window);
	  if (!NILP (w->buffer)
	      && !EQ (w->buffer, p->buffer)
	      && !NILP (BVAR (XBUFFER (p->buffer), name)))
	    /* If a window we restore gets another buffer, record the
	       window's old buffer.  */
	    call1 (Qrecord_window_buffer, window);

so it's a complete mystery why this fails.  If it happens too
frequently, please take out the

	    call1 (Qrecord_window_buffer, window);

in Fset_window_configuration.  But if you leave it in and the bug
happens again, please try to locate the incriminated window
(`window-tree' could be useful) and tell me whether it's still there and
whether it has a buffer.

Thanks, martin





^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-08-28 17:05                           ` martin rudalics
@ 2012-08-29  9:34                             ` martin rudalics
  2012-08-29 14:42                               ` Sam Steingold
  0 siblings, 1 reply; 37+ messages in thread
From: martin rudalics @ 2012-08-29  9:34 UTC (permalink / raw)
  To: Sam Steingold; +Cc: 12251

Maybe we've been miscommunicating, so let me try to sort things out:
We're trying to detect the source of a bug in note_mouse_highlight.  A
possible reason for this is that Emacs does not check the validity of
windows rigidly enough.  I added some checks in revision 109644.  The
patch I sent you does some more of these checks.

As a result of the checks from revision 109644 two problems turned up:

(1) In `set-window-configuration' the auto-buffer-name stuff didn't work
any more causing potential crashes or infinite looping here.  Neither of
these seem to show up in your scenario but I removed the stuff anyway in
revision 109802.

(2) Revision 109789 introduced a bug which caused your scenario

Debugger entered--Lisp error: (error "#<window 3> is not a live window")
   signal(error ("#<window 3> is not a live window"))
   error("%s is not a live window" #<window 3>)
   window-normalize-window(#<window 3> t)
   record-window-buffer(#<window 3>)
   set-window-configuration(#<window-configuration>)

I removed that in revision 109795 and hopefully fixed that for good in
revision 109803.  So this bug will show up in revisions 109789...109794.
If it shows up after revision 109794, something weird happens as I
mentioned before and I will have to investigate it with your help.

So please make sure that you work with the latest bzr version regardless
of whether you applied the patch I sent you or not.

martin





^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-08-29  9:34                             ` martin rudalics
@ 2012-08-29 14:42                               ` Sam Steingold
  2012-08-30  8:03                                 ` martin rudalics
  0 siblings, 1 reply; 37+ messages in thread
From: Sam Steingold @ 2012-08-29 14:42 UTC (permalink / raw)
  To: martin rudalics; +Cc: 12251

On Wed, Aug 29, 2012 at 5:34 AM, martin rudalics <rudalics@gmx.at> wrote:
> I removed that in revision 109795 and hopefully fixed that for good in
> revision 109803.  So this bug will show up in revisions 109789...109794.
> If it shows up after revision 109794, something weird happens as I
> mentioned before and I will have to investigate it with your help.
>
> So please make sure that you work with the latest bzr version regardless
> of whether you applied the patch I sent you or not.

I am running
(emacs-bzr-version "109806
schwab@linux-m68k.org-20120828160850-hft2a31ibkjr9uks")
with your patch.

-- 
Sam Steingold <http://sds.podval.org> <http://www.childpsy.net/>





^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-08-29 14:42                               ` Sam Steingold
@ 2012-08-30  8:03                                 ` martin rudalics
  2012-08-30 11:02                                   ` Sam Steingold
  2012-08-30 12:39                                   ` Sam Steingold
  0 siblings, 2 replies; 37+ messages in thread
From: martin rudalics @ 2012-08-30  8:03 UTC (permalink / raw)
  To: Sam Steingold; +Cc: 12251

> I am running
> (emacs-bzr-version "109806
> schwab@linux-m68k.org-20120828160850-hft2a31ibkjr9uks")
> with your patch.

And did you get a crash or the "window ... is not a live window"
with that?

martin





^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-08-30  8:03                                 ` martin rudalics
@ 2012-08-30 11:02                                   ` Sam Steingold
  2012-09-01  9:36                                     ` Eli Zaretskii
  2012-08-30 12:39                                   ` Sam Steingold
  1 sibling, 1 reply; 37+ messages in thread
From: Sam Steingold @ 2012-08-30 11:02 UTC (permalink / raw)
  To: martin rudalics; +Cc: 12251

On Thu, Aug 30, 2012 at 4:03 AM, martin rudalics <rudalics@gmx.at> wrote:
>> I am running
>> (emacs-bzr-version "109806
>> schwab@linux-m68k.org-20120828160850-hft2a31ibkjr9uks")
>> with your patch.
>
> And did you get a crash or the "window ... is not a live window"
> with that?

no crashes, no errors.
yet.


-- 
Sam Steingold <http://sds.podval.org> <http://www.childpsy.net/>





^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-08-30  8:03                                 ` martin rudalics
  2012-08-30 11:02                                   ` Sam Steingold
@ 2012-08-30 12:39                                   ` Sam Steingold
  2012-08-30 12:49                                     ` martin rudalics
  1 sibling, 1 reply; 37+ messages in thread
From: Sam Steingold @ 2012-08-30 12:39 UTC (permalink / raw)
  To: martin rudalics; +Cc: 12251

On Thu, Aug 30, 2012 at 4:03 AM, martin rudalics <rudalics@gmx.at> wrote:
>> I am running
>> (emacs-bzr-version "109806
>> schwab@linux-m68k.org-20120828160850-hft2a31ibkjr9uks")
>> with your patch.
>
> And did you get a crash or the "window ... is not a live window"
> with that?

no crashes, no errors.
yet.


-- 
Sam Steingold <http://sds.podval.org> <http://www.childpsy.net/>





^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-08-30 12:39                                   ` Sam Steingold
@ 2012-08-30 12:49                                     ` martin rudalics
  0 siblings, 0 replies; 37+ messages in thread
From: martin rudalics @ 2012-08-30 12:49 UTC (permalink / raw)
  To: Sam Steingold; +Cc: 12251

> no crashes, no errors.
> yet.

You should inject some orthographical errors in your mails/change logs.

martin






^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-08-30 11:02                                   ` Sam Steingold
@ 2012-09-01  9:36                                     ` Eli Zaretskii
  2012-09-05 19:56                                       ` Sam Steingold
  0 siblings, 1 reply; 37+ messages in thread
From: Eli Zaretskii @ 2012-09-01  9:36 UTC (permalink / raw)
  To: Sam Steingold, Werner LEMBERG; +Cc: 12251

> Date: Thu, 30 Aug 2012 07:02:03 -0400
> From: Sam Steingold <sds@gnu.org>
> Cc: 12251@debbugs.gnu.org
> 
> On Thu, Aug 30, 2012 at 4:03 AM, martin rudalics <rudalics@gmx.at> wrote:
> >> I am running
> >> (emacs-bzr-version "109806
> >> schwab@linux-m68k.org-20120828160850-hft2a31ibkjr9uks")
> >> with your patch.
> >
> > And did you get a crash or the "window ... is not a live window"
> > with that?
> 
> no crashes, no errors.
> yet.

So do we still have a problem or problems with note_mouse_movement
that I need to look into?

If there are still crashes there, I need an up-to-date backtrace with
information about which variable has bogus or null value that causes
the crash.  "bt full" is not really useful, especially in an optimized
build, because it doesn't give a clue about which variable(s) are
problematic.  And the line number information I got is no longer
dependable, given the latest changes in related files.





^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-08-23 13:19             ` Sam Steingold
  2012-08-23 17:18               ` martin rudalics
@ 2012-09-01  9:40               ` Eli Zaretskii
  1 sibling, 0 replies; 37+ messages in thread
From: Eli Zaretskii @ 2012-09-01  9:40 UTC (permalink / raw)
  To: sds; +Cc: 12251

> From: Sam Steingold <sds@gnu.org>
> Cc: Eli Zaretskii <eliz@gnu.org>,  12251@debbugs.gnu.org
> Date: Thu, 23 Aug 2012 09:19:36 -0400
> 
> > BTW I see that note_mouse_highlight has
> >
> >   /* Not on a window -> return.  */
> >   if (!WINDOWP (window))
> >     return;
> >
> > Shouldn't the window be live here?
> 
> definitely!

Are you saying that non-live windows can have valid mouse-highlight
information in them?  If so, the code that makes those windows dead is
the culprit.  Which code makes a live window dead?





^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-09-01  9:36                                     ` Eli Zaretskii
@ 2012-09-05 19:56                                       ` Sam Steingold
  2012-09-06  2:31                                         ` Sam Steingold
                                                           ` (2 more replies)
  0 siblings, 3 replies; 37+ messages in thread
From: Sam Steingold @ 2012-09-05 19:56 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 12251

[-- Attachment #1: Type: text/plain, Size: 4821 bytes --]

On Sat, Sep 1, 2012 at 5:36 AM, Eli Zaretskii <eliz@gnu.org> wrote:
>> On Thu, Aug 30, 2012 at 4:03 AM, martin rudalics <rudalics@gmx.at> wrote:
>> >> I am running
>> >> (emacs-bzr-version "109806
>> >> schwab@linux-m68k.org-20120828160850-hft2a31ibkjr9uks")
>> >> with your patch.
>> >
>> > And did you get a crash or the "window ... is not a live window"
>> > with that?
>>
>> no crashes, no errors.
>> yet.
>
> So do we still have a problem or problems with note_mouse_movement
> that I need to look into?

emacs just hang when I sent an email.
it keep raising an error (the top and bottom lines are blue - visual bell).
the emacs has just been rebuilt.
$ bzr revno
109892
I also applied your patch.

^Z
Program received signal SIGTSTP, Stopped (user).
0x00007ffff3eba8fc in pselect () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) where
#0  0x00007ffff3eba8fc in pselect () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00000000004b998f in XTflash (f=0x1175d50) at
/home/sds/src/emacs/trunk/src/xterm.c:3178
#2  XTring_bell (f=0x1175d50) at /home/sds/src/emacs/trunk/src/xterm.c:3246
#3  0x00000000004e4a4f in cmd_error_internal (data=54077670,
context=0x7fffffffcf50 "")
    at /home/sds/src/emacs/trunk/src/keyboard.c:1138
#4  0x00000000004e4bc3 in cmd_error (data=54077670) at
/home/sds/src/emacs/trunk/src/keyboard.c:1071
#5  0x0000000000556f69 in internal_condition_case (bfun=0x4f01b0
<command_loop_1>, handlers=12039698, hfun=0x4e4ab0 <cmd_error>)
    at /home/sds/src/emacs/trunk/src/eval.c:1309
#6  0x00000000004e2a7e in command_loop_2 (ignore=<optimized out>) at
/home/sds/src/emacs/trunk/src/keyboard.c:1195
#7  0x0000000000556e18 in internal_catch (tag=<error reading variable:
Cannot access memory at address 0xffffffffffffffe0>,
    func=0x4e2a60 <command_loop_2>, arg=11987922) at
/home/sds/src/emacs/trunk/src/eval.c:1076
#8  0x00000000004e4587 in command_loop () at
/home/sds/src/emacs/trunk/src/keyboard.c:1174
#9  recursive_edit_1 () at /home/sds/src/emacs/trunk/src/keyboard.c:795
#10 0x00000000004e48c4 in Frecursive_edit () at
/home/sds/src/emacs/trunk/src/keyboard.c:859
#11 0x000000000041008a in main (argc=1, argv=<optimized out>) at
/home/sds/src/emacs/trunk/src/emacs.c:1647
(gdb) finish
Run till exit from #0  0x00007ffff3eba8fc in pselect () from
/lib/x86_64-linux-gnu/libc.so.6
0x00000000004b998f in XTflash (f=0x1175d50) at
/home/sds/src/emacs/trunk/src/xterm.c:3178
3178                pselect (0, NULL, NULL, NULL, &timeout, NULL);
(gdb)
Run till exit from #0  0x00000000004b998f in XTflash (f=0x1175d50) at
/home/sds/src/emacs/trunk/src/xterm.c:3178
input_available_signal (signo=29) at
/home/sds/src/emacs/trunk/src/keyboard.c:7240
7240    {
(gdb) f 4
#4  0x00000000004e4a4f in cmd_error_internal (data=54077670,
context=0x7fffffffcf50 "")
    at /home/sds/src/emacs/trunk/src/keyboard.c:1138
1138          bitch_at_user ();
(gdb) p data
$1 = 54077670
(gdb) xtype
Lisp_Cons
(gdb) xcons
$2 = (struct Lisp_Cons *) 0x33928e0
{
  car = 0xb7b7c2,
  u = {
    cdr = 0x3393116,
    chain = 0x3393116
  }
}
(gdb) p 0xb7b7c2
$3 = 12040130
(gdb) xtype
Lisp_Symbol
(gdb) xsymbol
$4 = (struct Lisp_Symbol *) 0xb7b7c0
"wrong-type-argument"
(gdb) p
$5 = (struct Lisp_Symbol *) 0xb7b7c0
(gdb) p 0x3393116
$6 = 54079766
(gdb) xtype
Lisp_Cons
(gdb) xcons
$7 = (struct Lisp_Cons *) 0x3393110
{
  car = 0xba3472,
  u = {
    cdr = 0x3393126,
    chain = 0x3393126
  }
}
(gdb) p 0xba3472
$8 = 12203122
(gdb) xtype
Lisp_Symbol
(gdb) xsymbol
$9 = (struct Lisp_Symbol *) 0xba3470
"window-live-p"
(gdb) p 0x3393126
$10 = 54079782
(gdb) xtype
Lisp_Cons
(gdb) xcons
$11 = (struct Lisp_Cons *) 0x3393120
{
  car = 0x3771195,
  u = {
    cdr = 0xb6ebd2,
    chain = 0xb6ebd2
  }
}
(gdb) p 0x3771195
$12 = 58134933
(gdb) xtype
Lisp_Vectorlike
PVEC_WINDOW
(gdb) xvector
$13 = (struct Lisp_Vector *) 0x3771190
0
(gdb) p *(struct Lisp_Vector *) 0x3771190
$14 = {
  header = {
    size = 4611686018427650087,
    next = {
      nbytes = 480,
      buffer = 0x1e0,
      vector = 0x1e0
    }
  },
  contents = {18308437}
}
(gdb) p 18308437
$15 = 18308437
(gdb) xtype
Lisp_Vectorlike
PVEC_FRAME
(gdb) xvect
xvector   xvectype
(gdb) xvector
$16 = (struct Lisp_Vector *) 0x1175d50
0
(gdb) p *(struct Lisp_Vector *) 0x1175d50
$17 = {
  header = {
    size = 4611686018427584534,
    next = {
      nbytes = 560,
      buffer = 0x230,
      vector = 0x230
    }
  },
  contents = {47727121}
}
(gdb) p 47727121
$18 = 47727121
(gdb) xtype
Lisp_String
(gdb) xstring
$19 = (struct Lisp_String *) 0x2d84210
"*unsent wide reply to Dmitri Hrapof* - /home/sds/Mail/drafts/1"
(gdb) p 0xb6ebd2
$20 = 11987922
(gdb) xtype
Lisp_Symbol
(gdb) xsymbol
$21 = (struct Lisp_Symbol *) 0xb6ebd0
"nil"

even though the window name is "unsent", the mail has actually been sent.


-- 
Sam Steingold <http://sds.podval.org> <http://www.childpsy.net/>

[-- Attachment #2: mylog.txt --]
[-- Type: text/plain, Size: 4443 bytes --]

#0  input_available_signal (signo=29) at /home/sds/src/emacs/trunk/src/keyboard.c:7240
        old_errno = <optimized out>
#1  <signal handler called>
No symbol table info available.
#2  0x00000000004b998f in XTflash (f=0x1175d50) at /home/sds/src/emacs/trunk/src/xterm.c:3178
        timeout = {
          tv_sec = 0, 
          tv_nsec = 10000000
        }
        current = <optimized out>
        flash_height = 13
        flash_left = 1
        height = 1861
        width = 1198
        gc = 0x3eaf840
#3  XTring_bell (f=0x1175d50) at /home/sds/src/emacs/trunk/src/xterm.c:3246
No locals.
#4  0x00000000004e4a4f in cmd_error_internal (data=54077670, context=0x7fffffffcf50 "")
    at /home/sds/src/emacs/trunk/src/keyboard.c:1138
        sf = <optimized out>
#5  0x00000000004e4bc3 in cmd_error (data=54077670) at /home/sds/src/emacs/trunk/src/keyboard.c:1071
        old_level = 40
        old_length = 40
        macroerror = "\000\353\266\000\000\000\000\000\000kM\242I9\246\305\022\274\270\000\000\000\000\000\002\000\000\000\000\000\000\000\322\353\266\000\000\000\000\000\270\325\377\377\377\177\000\000\377\377"
#6  0x0000000000556f69 in internal_condition_case (bfun=0x4f01b0 <command_loop_1>, handlers=12039698, hfun=0x4e4ab0 <cmd_error>)
    at /home/sds/src/emacs/trunk/src/eval.c:1309
        val = <optimized out>
        c = {
          tag = 11987922, 
          val = 54077670, 
          next = 0x7fffffffd160, 
          gcpro = 0x0, 
          jmp = {{
              __jmpbuf = {15355712, 9107840291477777466, 11987922, 140737488344504, 4294967295, 140737488344784, 
                -9107841581137400774, 9107840865985883194}, 
              __mask_was_saved = 0, 
              __saved_mask = {
                __val = {140737353918688, 140737353947624, 5225237, 4294967295, 0, 0, 15355712, 8597480, 0, 4294967295, 
                  140737488344784, 0, 140737351944052, 1, 0, 140737284769664}
              }
            }}, 
          backlist = 0x0, 
          handlerlist = 0x0, 
          lisp_eval_depth = 0, 
          pdlcount = 2, 
          poll_suppress_count = 1, 
          interrupt_input_blocked = 0, 
          byte_stack = 0x0
        }
        h = {
          handler = 12039698, 
          var = 11987922, 
          chosen_clause = 11987970, 
          tag = 0x7fffffffcfe0, 
          next = 0x0
        }
#7  0x00000000004e2a7e in command_loop_2 (ignore=<optimized out>) at /home/sds/src/emacs/trunk/src/keyboard.c:1195
        val = 4294967295
#8  0x0000000000556e18 in internal_catch (tag=<error reading variable: Cannot access memory at address 0xffffffffffffffe0>, 
    func=0x4e2a60 <command_loop_2>, arg=11987922) at /home/sds/src/emacs/trunk/src/eval.c:1076
        c = {
          tag = 12035570, 
          val = 11987922, 
          next = 0x0, 
          gcpro = 0x0, 
          jmp = {{
              __jmpbuf = {15355712, 9107840291477777466, 11987922, 140737488344504, 4294967295, 140737488344784, 
                -9107841581084971974, 9107840865881549882}, 
              __mask_was_saved = 0, 
              __saved_mask = {
                __val = {0, 0, 0, 0, 0, 0, 5898163, 0, 18883192, 140737488343712, 140737488343720, 0, 140737488343712, 6273846, 
                  11987922, 140737488343720}
              }
            }}, 
          backlist = 0x0, 
          handlerlist = 0x0, 
          lisp_eval_depth = 0, 
          pdlcount = 2, 
          poll_suppress_count = 1, 
          interrupt_input_blocked = 0, 
          byte_stack = 0x0
        }
#9  0x00000000004e4587 in command_loop () at /home/sds/src/emacs/trunk/src/keyboard.c:1174
No locals.
#10 recursive_edit_1 () at /home/sds/src/emacs/trunk/src/keyboard.c:795
        count = 1
        val = 11987922
#11 0x00000000004e48c4 in Frecursive_edit () at /home/sds/src/emacs/trunk/src/keyboard.c:859
        count = 0
        buffer = 11987922
#12 0x000000000041008a in main (argc=1, argv=<optimized out>) at /home/sds/src/emacs/trunk/src/emacs.c:1647
        dummy = 0
        stack_bottom_variable = 0 '\000'
        do_initial_setlocale = <optimized out>
        skip_args = 0
        rlim = {
          rlim_cur = 8720000, 
          rlim_max = 18446744073709551615
        }
        no_loadup = false
        junk = 0x0
        dname_arg = 0x0
        ch_to_dir = 0x7ffff3ddee40 "\212'"
quit
A debugging session is active.

	Inferior 1 [process 4280] will be killed.

Quit anyway? (y or n) EOF [assumed Y]

^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-09-05 19:56                                       ` Sam Steingold
@ 2012-09-06  2:31                                         ` Sam Steingold
  2012-09-06  3:13                                           ` Sam Steingold
  2012-09-06  5:15                                           ` Werner LEMBERG
  2012-09-06  5:04                                         ` Eli Zaretskii
  2012-09-06  7:20                                         ` martin rudalics
  2 siblings, 2 replies; 37+ messages in thread
From: Sam Steingold @ 2012-09-06  2:31 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 12251

[-- Attachment #1: Type: text/plain, Size: 195 bytes --]

I get a consistent crash after I send an e-mail.
sometimes it's just an endless loop of errors (like in my previous
mail) and I have to kill emacs myself,
sometimes it's a hard crash (attached).

[-- Attachment #2: mylog.txt --]
[-- Type: text/plain, Size: 67517 bytes --]

#0  remember_mouse_glyph (f=<optimized out>, gx=110, gy=174, rect=0xaf0a60) at /home/sds/src/emacs/trunk/src/xdisp.c:2252
        window = <optimized out>
        w = <optimized out>
        r = <optimized out>
        gr = <optimized out>
        end_row = <optimized out>
        part = ON_TEXT
        area = <optimized out>
        x = 91
        y = <optimized out>
        width = 6
        height = 13
#1  0x00000000004b759b in note_mouse_movement (frame=0x1178410, event=0x7fffffff9240) at /home/sds/src/emacs/trunk/src/xterm.c:3853
No locals.
#2  0x00000000004c0011 in handle_one_xevent (dpyinfo=0x13399c0, eventptr=0x7fffffff9360, finish=0x7fffffff935c, 
    hold_quit=0x7fffffff96f0) at /home/sds/src/emacs/trunk/src/xterm.c:6794
        inev = {
          ie = {
            kind = SELECT_WINDOW_EVENT, 
            code = 0, 
            part = scroll_bar_above_handle, 
            modifiers = 0, 
            x = 0, 
            y = 0, 
            timestamp = 0, 
            padding = {0x0, 0x0}, 
            frame_or_window = 52680325, 
            arg = 11987922
          }, 
          sie = {
            kind = 22, 
            display = 0x0, 
            requestor = 0, 
            selection = 0, 
            target = 0, 
            property = 0, 
            time = 0
          }
        }
        count = 0
        do_help = 0
        nbytes = 0
        f = 0x1178410
        coding = {
          id = 0, 
          common_flags = 0, 
          mode = 0, 
          spec = {
            iso_2022 = {
              flags = 20066400, 
              current_invocation = {0, 20066400}, 
              current_designation = {0, 20066424, 0, 92189}, 
              ctext_extended_segment_len = 0, 
              single_shifting = 0, 
              bol = 0, 
              embedded_utf_8 = 0, 
              cmp_status = {
                state = COMPOSING_NO, 
                method = 4082690796, 
                old_form = 255, 
                length = -29160, 
                nchars = 32767, 
                ncomps = -29168, 
                carryover = {32767, 51081360, 0, 20061712, 0, -28144, 32767, -165722409, 32767, 0, 0, -28144, 32767, 0, 0, 
                  20061712, 0, 0, 0, -165720559, 32767, 20061712, 0, -165780323, 32767, -28880, 32767, 17564032, 0, 0, 0, 4986553, 
                  0, 3145728, 1073741824, 5832478, 0, 51207596, 0, 11987922, 0, 8949358, 0, 5940334, 0, 12065506, 0, -199731424, 
                  32767, 16, 0, 0, 0, 40114944, 0, 5123924, 0, 20070688, 0, -203089339, 32767, 6, 0, 20066400, 0, 6, 0, 0}
              }
            }, 
            ccl = 0x1323060, 
            utf_16 = {
              bom = 20066400, 
              endian = utf_16_big_endian, 
              surrogate = 20066400
            }, 
            utf_8_bom = 20066400, 
            emacs_mule = {
              cmp_status = {
                state = 20066400, 
                method = COMPOSITION_RELATIVE, 
                old_form = 96, 
                length = 0, 
                nchars = 20066424, 
                ncomps = 0, 
                carryover = {92189, 0, 0, 0, -212276500, 32767, -29160, 32767, -29168, 32767, 51081360, 0, 20061712, 0, -28144, 
                  32767, -165722409, 32767, 0, 0, -28144, 32767, 0, 0, 20061712, 0, 0, 0, -165720559, 32767, 20061712, 0, 
                  -165780323, 32767, -28880, 32767, 17564032, 0, 0, 0, 4986553, 0, 3145728, 1073741824, 5832478, 0, 51207596, 0, 
                  11987922, 0, 8949358, 0, 5940334, 0, 12065506, 0, -199731424, 32767, 16, 0, 0, 0, 40114944, 0, 5123924, 0, 
                  20070688, 0}
              }
            }
          }, 
          max_charset_id = 40114944, 
          safe_charsets = 0x7ffff358f5cd "뭐H\213\253\200\020", 
          src_multibyte = 0, 
          dst_multibyte = 0, 
          head_ascii = 137447891848, 
          produced = 20070640, 
          produced_char = 20066464, 
          consumed = 24174925236731910, 
          consumed_char = 1, 
          errors = -28096, 
          error_positions = 0xe2e2dec4136d6e00, 
          result = 4294938568, 
          src_pos = 17564032, 
          src_pos_byte = 1, 
          src_chars = 0, 
          src_bytes = 17564032, 
          src_object = 5144474, 
          source = 0x1 <Address 0x1 out of bounds>, 
          dst_pos = 0, 
          dst_pos_byte = 0, 
          dst_bytes = 2, 
          dst_object = 0, 
          destination = 0x0, 
          charbuf = 0x0, 
          charbuf_size = -1, 
          charbuf_used = 1073741823, 
          chars_at_source = 0, 
          annotated = 0, 
          carryover = "\000\000\000\000\000\000\200\022}\272\000\000\000\000\000\002\000\000\000\000\000\000\000\000\000\n\000\000\000\000@\000\000\377\017\000\000\000@%\224\027\001\000\000\000\000\000\000\004\000\000\000\000@\300\225\377\377\377\177\000", <incomplete sequence \370>, 
          carryover_bytes = 0, 
          default_char = 262144, 
          detector = 0x323d685, 
          decoder = 0xb6ebd2, 
          encoder = 0x7fffffff9530
        }
        event = {
          type = 6, 
          xany = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            window = 69206206
          }, 
          xkey = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            window = 69206206, 
            root = 186, 
            subwindow = 0, 
            time = 5628739, 
            x = 110, 
            y = 174, 
            x_root = 110, 
            y_root = 226, 
            state = 16, 
            keycode = 0, 
            same_screen = 1
          }, 
          xbutton = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            window = 69206206, 
            root = 186, 
            subwindow = 0, 
            time = 5628739, 
            x = 110, 
            y = 174, 
            x_root = 110, 
            y_root = 226, 
            state = 16, 
            button = 0, 
            same_screen = 1
          }, 
          xmotion = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            window = 69206206, 
            root = 186, 
            subwindow = 0, 
            time = 5628739, 
            x = 110, 
            y = 174, 
            x_root = 110, 
            y_root = 226, 
            state = 16, 
            is_hint = 0 '\000', 
            same_screen = 1
          }, 
          xcrossing = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            window = 69206206, 
            root = 186, 
            subwindow = 0, 
            time = 5628739, 
            x = 110, 
            y = 174, 
            x_root = 110, 
            y_root = 226, 
            mode = 16, 
            detail = 0, 
            same_screen = 1, 
            focus = 1, 
            state = 16
          }, 
          xfocus = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            window = 69206206, 
            mode = 186, 
            detail = 0
          }, 
          xexpose = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            window = 69206206, 
            x = 186, 
            y = 0, 
            width = 0, 
            height = 0, 
            count = 5628739
          }, 
          xgraphicsexpose = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            drawable = 69206206, 
            x = 186, 
            y = 0, 
            width = 0, 
            height = 0, 
            count = 5628739, 
            major_code = 0, 
            minor_code = 110
          }, 
          xnoexpose = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            drawable = 69206206, 
            major_code = 186, 
            minor_code = 0
          }, 
          xvisibility = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            window = 69206206, 
            state = 186
          }, 
          xcreatewindow = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            parent = 69206206, 
            window = 186, 
            x = 0, 
            y = 0, 
            width = 5628739, 
            height = 0, 
            border_width = 110, 
            override_redirect = 174
          }, 
          xdestroywindow = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            event = 69206206, 
            window = 186
          }, 
          xunmap = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            event = 69206206, 
            window = 186, 
            from_configure = 0
          }, 
          xmap = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            event = 69206206, 
            window = 186, 
            override_redirect = 0
          }, 
          xmaprequest = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            parent = 69206206, 
            window = 186
          }, 
          xreparent = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            event = 69206206, 
            window = 186, 
            parent = 0, 
            x = 5628739, 
            y = 0, 
            override_redirect = 110
          }, 
          xconfigure = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            event = 69206206, 
            window = 186, 
            x = 0, 
            y = 0, 
            width = 5628739, 
            height = 0, 
            border_width = 110, 
            above = 970662609006, 
            override_redirect = 16
          }, 
          xgravity = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            event = 69206206, 
            window = 186, 
            x = 0, 
            y = 0
          }, 
          xresizerequest = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            window = 69206206, 
            width = 186, 
            height = 0
          }, 
          xconfigurerequest = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            parent = 69206206, 
            window = 186, 
            x = 0, 
            y = 0, 
            width = 5628739, 
            height = 0, 
            border_width = 110, 
            above = 970662609006, 
            detail = 16, 
            value_mask = 4294967297
          }, 
          xcirculate = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            event = 69206206, 
            window = 186, 
            place = 0
          }, 
          xcirculaterequest = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            parent = 69206206, 
            window = 186, 
            place = 0
          }, 
          xproperty = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            window = 69206206, 
            atom = 186, 
            time = 0, 
            state = 5628739
          }, 
          xselectionclear = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            window = 69206206, 
            selection = 186, 
            time = 0
          }, 
          xselectionrequest = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            owner = 69206206, 
            requestor = 186, 
            selection = 0, 
            target = 5628739, 
            property = 747324309614, 
            time = 970662609006
          }, 
          xselection = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            requestor = 69206206, 
            selection = 186, 
            target = 0, 
            property = 5628739, 
            time = 747324309614
          }, 
          xcolormap = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            window = 69206206, 
            colormap = 186, 
            new = 0, 
            state = 0
          }, 
          xclient = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            window = 69206206, 
            message_type = 186, 
            format = 0, 
            data = {
              b = "C\343U\000\000\000\000\000n\000\000\000\256\000\000\000n\000\000", 
              s = {-7357, 85, 0, 0, 110, 0, 174, 0, 110, 0}, 
              l = {5628739, 747324309614, 970662609006, 16, 4294967297}
            }
          }, 
          xmapping = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            window = 69206206, 
            request = 186, 
            first_keycode = 0, 
            count = 0
          }, 
          xerror = {
            type = 6, 
            display = 0x16831, 
            resourceid = 0, 
            serial = 20061712, 
            error_code = 190 '\276', 
            request_code = 0 '\000', 
            minor_code = 32 ' '
          }, 
          xkeymap = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            window = 69206206, 
            key_vector = "\272", '\000' <repeats 15 times>, "C\343U\000\000\000\000\000n\000\000\000\256\000\000"
          }, 
          xgeneric = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            extension = 69206206, 
            evtype = 0
          }, 
          xcookie = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            extension = 69206206, 
            evtype = 0, 
            cookie = 186, 
            data = 0x0
          }, 
          pad = {6, 92209, 0, 20061712, 69206206, 186, 0, 5628739, 747324309614, 970662609006, 16, 4294967297, 16, 
            0 <repeats 11 times>}
        }
        hlinfo = <optimized out>
        sa_count = <optimized out>
        sa_must_free = false
#3  0x00000000004c17e6 in XTread_socket (terminal=0x10c0180, expected=<optimized out>, hold_quit=0x7fffffff96f0)
    at /home/sds/src/emacs/trunk/src/xterm.c:7178
        finish = 0
        event = {
          type = 6, 
          xany = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            window = 69206206
          }, 
          xkey = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            window = 69206206, 
            root = 186, 
            subwindow = 0, 
            time = 5628739, 
            x = 110, 
            y = 174, 
            x_root = 110, 
            y_root = 226, 
            state = 16, 
            keycode = 0, 
            same_screen = 1
          }, 
          xbutton = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            window = 69206206, 
            root = 186, 
            subwindow = 0, 
            time = 5628739, 
            x = 110, 
            y = 174, 
            x_root = 110, 
            y_root = 226, 
            state = 16, 
            button = 0, 
            same_screen = 1
          }, 
          xmotion = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            window = 69206206, 
            root = 186, 
            subwindow = 0, 
            time = 5628739, 
            x = 110, 
            y = 174, 
            x_root = 110, 
            y_root = 226, 
            state = 16, 
            is_hint = 0 '\000', 
            same_screen = 1
          }, 
          xcrossing = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            window = 69206206, 
            root = 186, 
            subwindow = 0, 
            time = 5628739, 
            x = 110, 
            y = 174, 
            x_root = 110, 
            y_root = 226, 
            mode = 16, 
            detail = 0, 
            same_screen = 1, 
            focus = 1, 
            state = 16
          }, 
          xfocus = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            window = 69206206, 
            mode = 186, 
            detail = 0
          }, 
          xexpose = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            window = 69206206, 
            x = 186, 
            y = 0, 
            width = 0, 
            height = 0, 
            count = 5628739
          }, 
          xgraphicsexpose = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            drawable = 69206206, 
            x = 186, 
            y = 0, 
            width = 0, 
            height = 0, 
            count = 5628739, 
            major_code = 0, 
            minor_code = 110
          }, 
          xnoexpose = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            drawable = 69206206, 
            major_code = 186, 
            minor_code = 0
          }, 
          xvisibility = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            window = 69206206, 
            state = 186
          }, 
          xcreatewindow = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            parent = 69206206, 
            window = 186, 
            x = 0, 
            y = 0, 
            width = 5628739, 
            height = 0, 
            border_width = 110, 
            override_redirect = 174
          }, 
          xdestroywindow = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            event = 69206206, 
            window = 186
          }, 
          xunmap = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            event = 69206206, 
            window = 186, 
            from_configure = 0
          }, 
          xmap = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            event = 69206206, 
            window = 186, 
            override_redirect = 0
          }, 
          xmaprequest = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            parent = 69206206, 
            window = 186
          }, 
          xreparent = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            event = 69206206, 
            window = 186, 
            parent = 0, 
            x = 5628739, 
            y = 0, 
            override_redirect = 110
          }, 
          xconfigure = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            event = 69206206, 
            window = 186, 
            x = 0, 
            y = 0, 
            width = 5628739, 
            height = 0, 
            border_width = 110, 
            above = 970662609006, 
            override_redirect = 16
          }, 
          xgravity = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            event = 69206206, 
            window = 186, 
            x = 0, 
            y = 0
          }, 
          xresizerequest = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            window = 69206206, 
            width = 186, 
            height = 0
          }, 
          xconfigurerequest = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            parent = 69206206, 
            window = 186, 
            x = 0, 
            y = 0, 
            width = 5628739, 
            height = 0, 
            border_width = 110, 
            above = 970662609006, 
            detail = 16, 
            value_mask = 4294967297
          }, 
          xcirculate = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            event = 69206206, 
            window = 186, 
            place = 0
          }, 
          xcirculaterequest = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            parent = 69206206, 
            window = 186, 
            place = 0
          }, 
          xproperty = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            window = 69206206, 
            atom = 186, 
            time = 0, 
            state = 5628739
          }, 
          xselectionclear = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            window = 69206206, 
            selection = 186, 
            time = 0
          }, 
          xselectionrequest = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            owner = 69206206, 
            requestor = 186, 
            selection = 0, 
            target = 5628739, 
            property = 747324309614, 
            time = 970662609006
          }, 
          xselection = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            requestor = 69206206, 
            selection = 186, 
            target = 0, 
            property = 5628739, 
            time = 747324309614
          }, 
          xcolormap = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            window = 69206206, 
            colormap = 186, 
            new = 0, 
            state = 0
          }, 
          xclient = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            window = 69206206, 
            message_type = 186, 
            format = 0, 
            data = {
              b = "C\343U\000\000\000\000\000n\000\000\000\256\000\000\000n\000\000", 
              s = {-7357, 85, 0, 0, 110, 0, 174, 0, 110, 0}, 
              l = {5628739, 747324309614, 970662609006, 16, 4294967297}
            }
          }, 
          xmapping = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            window = 69206206, 
            request = 186, 
            first_keycode = 0, 
            count = 0
          }, 
          xerror = {
            type = 6, 
            display = 0x16831, 
            resourceid = 0, 
            serial = 20061712, 
            error_code = 190 '\276', 
            request_code = 0 '\000', 
            minor_code = 32 ' '
          }, 
          xkeymap = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            window = 69206206, 
            key_vector = "\272", '\000' <repeats 15 times>, "C\343U\000\000\000\000\000n\000\000\000\256\000\000"
          }, 
          xgeneric = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            extension = 69206206, 
            evtype = 0
          }, 
          xcookie = {
            type = 6, 
            serial = 92209, 
            send_event = 0, 
            display = 0x1321e10, 
            extension = 69206206, 
            evtype = 0, 
            cookie = 186, 
            data = 0x0
          }, 
          pad = {6, 92209, 0, 20061712, 69206206, 186, 0, 5628739, 747324309614, 970662609006, 16, 4294967297, 16, 
            0 <repeats 11 times>}
        }
        count = 0
        event_found = 1
#4  0x00000000004e7f17 in read_avail_input (expected=1) at /home/sds/src/emacs/trunk/src/keyboard.c:6883
        nr = <optimized out>
        hold_quit = {
          kind = NO_EVENT, 
          code = 0, 
          part = scroll_bar_above_handle, 
          modifiers = 0, 
          x = 0, 
          y = 0, 
          timestamp = 0, 
          padding = {0x0, 0x0}, 
          frame_or_window = 0, 
          arg = 0
        }
        next = 0x0
        nread = 0
        err = <optimized out>
        t = 0x10c0180
#5  0x00000000004e803a in handle_async_input () at /home/sds/src/emacs/trunk/src/keyboard.c:7212
        nread = 1
#6  0x00000000004e76b3 in process_pending_signals () at /home/sds/src/emacs/trunk/src/keyboard.c:7230
No locals.
#7  0x00000000005925a5 in exec_byte_code (bytestr=91, vector=140737488328608, maxdepth=0, args_template=4611686018695757824, 
    nargs=4611686018430533632, args=0x5) at /home/sds/src/emacs/trunk/src/bytecode.c:934
        targets = {0x59090a, 0x5909ac, 0x5909b1, 0x59057a, 0x58ff3a, 0x58ff3a, 0x59057f, 0x5905bf, 0x59052b, 0x590530, 0x590535, 
          0x590545, 0x58fdd2, 0x58fdd8, 0x59001a, 0x590555, 0x590190, 0x590195, 0x59019a, 0x5901a5, 0x58fe24, 0x58fe28, 0x5901da, 
          0x5901b5, 0x59024e, 0x590253, 0x590258, 0x590265, 0x58fe80, 0x58fe80, 0x590215, 0x590229, 0x5902ae, 0x5902b3, 0x5902b8, 
          0x5902c5, 0x58feb2, 0x58feb8, 0x590275, 0x590289, 0x59030e, 0x590313, 0x590318, 0x590325, 0x58fef2, 0x58fef8, 0x5902d5, 
          0x5902e9, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x59187e, 0x591909, 0x591940, 
          0x591977, 0x5919ae, 0x5900e4, 0x59011e, 0x5919ee, 0x5900aa, 0x590156, 0x591a1f, 0x591a57, 0x591a85, 0x591acc, 0x591b08, 
          0x591b88, 0x591044, 0x59107c, 0x5910b8, 0x5910df, 0x591106, 0x59113e, 0x591176, 0x5911ae, 0x5911ea, 0x591226, 0x591262, 
          0x5912e2, 0x59131a, 0x591352, 0x5913ec, 0x591424, 0x59145c, 0x591494, 0x5914cc, 0x591508, 0x591539, 0x591575, 0x5915b1, 
          0x5915ed, 0x59169d, 0x58ffec, 0x5916d3, 0x5916fa, 0x59176a, 0x5909c5, 0x5909fb, 0x590a22, 0x590a4b, 0x590a74, 0x590aa1, 
          0x5909b6, 0x590acf, 0x590b00, 0x590b31, 0x590b62, 0x590b93, 0x590bc4, 0x58ffec, 0x5909b6, 0x590beb, 0x590c1c, 0x590c43, 
          0x590c6a, 0x590ca2, 0x590cda, 0x590d01, 0x590dc4, 0x590dfc, 0x590e34, 0x590e6c, 0x590e9d, 0x5909b6, 0x592074, 0x590360, 
          0x59002e, 0x5903fb, 0x5904b2, 0x591baf, 0x591f05, 0x591f57, 0x5901ee, 0x5920bc, 0x591f77, 0x591fdc, 0x59200a, 0x592047, 
          0x5917a0, 0x5917dc, 0x59181c, 0x590335, 0x590ec4, 0x590f00, 0x590f27, 0x590f4e, 0x590f75, 0x590f9c, 0x590fd4, 0x59100c, 
          0x590715, 0x59074d, 0x590795, 0x5907cd, 0x590805, 0x59082c, 0x590864, 0x59089c, 0x5908d3, 0x590970, 0x591629, 0x591665, 
          0x59090f, 0x59093f, 0x5909b6, 0x591c63, 0x591ced, 0x591d5b, 0x591df8, 0x591e67, 0x591b44, 0x59129e, 0x591726, 0x590612, 
          0x590651, 0x5909b6, 0x5909b6, 0x5906a3, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 
          0x5909b6, 0x5906e9 <repeats 64 times>}
        stack = {
          pc = 0xab9381 "\323\001\016$\205\201\002\t\211\022\205\201\002\330\n!:\204I\002\330\n!\247\203M\002\324\n!\210\330\n!\335=\204x\002\326\n!\307\n\v\"Z\034\337\f!\203i\002\016'\203w\002\322\n\f\v\016\035\310\016'\016&&\a\210)\312\n!\211\022\204;\002\310-\207", 
          byte_string = 8960433, 
          byte_string_start = 0xab9153 "\306\b!\211\031\032\307\b\v\"\f\\\035ȉ\036$\036%\016&\203", <incomplete sequence \342>, 
          constants = 8960469, 
          next = 0x7fffffff9a20
        }
        result = 1
#8  0x00000000005586ff in funcall_lambda (fun=8960253, nargs=<optimized out>, arg_vector=0x7fffffff99b0)
    at /home/sds/src/emacs/trunk/src/eval.c:3041
        val = <optimized out>
        syms_left = 11987922
        next = <optimized out>
        lexenv = 11987922
        count = 27
        i = <optimized out>
        optional = <optimized out>
        rest = <optimized out>
#9  0x0000000000558a5d in Ffuncall (nargs=<optimized out>, args=0x7fffffff99a8) at /home/sds/src/emacs/trunk/src/eval.c:2870
        fun = <optimized out>
        original_fun = 16018690
        funcar = <optimized out>
        numargs = <optimized out>
        lisp_numargs = <optimized out>
        val = <optimized out>
        backtrace = {
          next = 0x7fffffff9b30, 
          function = 0x7fffffff99a8, 
          args = 0x7fffffff99b0, 
          nargs = 7, 
          debug_on_exit = 0
        }
        internal_args = <optimized out>
        i = <optimized out>
#10 0x000000000058fed3 in exec_byte_code (bytestr=91, vector=140737488329128, maxdepth=0, args_template=4611686018695757824, 
    nargs=4611686018430533632, args=0x5) at /home/sds/src/emacs/trunk/src/bytecode.c:898
        targets = {0x59090a, 0x5909ac, 0x5909b1, 0x59057a, 0x58ff3a, 0x58ff3a, 0x59057f, 0x5905bf, 0x59052b, 0x590530, 0x590535, 
          0x590545, 0x58fdd2, 0x58fdd8, 0x59001a, 0x590555, 0x590190, 0x590195, 0x59019a, 0x5901a5, 0x58fe24, 0x58fe28, 0x5901da, 
          0x5901b5, 0x59024e, 0x590253, 0x590258, 0x590265, 0x58fe80, 0x58fe80, 0x590215, 0x590229, 0x5902ae, 0x5902b3, 0x5902b8, 
          0x5902c5, 0x58feb2, 0x58feb8, 0x590275, 0x590289, 0x59030e, 0x590313, 0x590318, 0x590325, 0x58fef2, 0x58fef8, 0x5902d5, 
          0x5902e9, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x59187e, 0x591909, 0x591940, 
          0x591977, 0x5919ae, 0x5900e4, 0x59011e, 0x5919ee, 0x5900aa, 0x590156, 0x591a1f, 0x591a57, 0x591a85, 0x591acc, 0x591b08, 
          0x591b88, 0x591044, 0x59107c, 0x5910b8, 0x5910df, 0x591106, 0x59113e, 0x591176, 0x5911ae, 0x5911ea, 0x591226, 0x591262, 
          0x5912e2, 0x59131a, 0x591352, 0x5913ec, 0x591424, 0x59145c, 0x591494, 0x5914cc, 0x591508, 0x591539, 0x591575, 0x5915b1, 
          0x5915ed, 0x59169d, 0x58ffec, 0x5916d3, 0x5916fa, 0x59176a, 0x5909c5, 0x5909fb, 0x590a22, 0x590a4b, 0x590a74, 0x590aa1, 
          0x5909b6, 0x590acf, 0x590b00, 0x590b31, 0x590b62, 0x590b93, 0x590bc4, 0x58ffec, 0x5909b6, 0x590beb, 0x590c1c, 0x590c43, 
          0x590c6a, 0x590ca2, 0x590cda, 0x590d01, 0x590dc4, 0x590dfc, 0x590e34, 0x590e6c, 0x590e9d, 0x5909b6, 0x592074, 0x590360, 
          0x59002e, 0x5903fb, 0x5904b2, 0x591baf, 0x591f05, 0x591f57, 0x5901ee, 0x5920bc, 0x591f77, 0x591fdc, 0x59200a, 0x592047, 
          0x5917a0, 0x5917dc, 0x59181c, 0x590335, 0x590ec4, 0x590f00, 0x590f27, 0x590f4e, 0x590f75, 0x590f9c, 0x590fd4, 0x59100c, 
          0x590715, 0x59074d, 0x590795, 0x5907cd, 0x590805, 0x59082c, 0x590864, 0x59089c, 0x5908d3, 0x590970, 0x591629, 0x591665, 
          0x59090f, 0x59093f, 0x5909b6, 0x591c63, 0x591ced, 0x591d5b, 0x591df8, 0x591e67, 0x591b44, 0x59129e, 0x591726, 0x590612, 
          0x590651, 0x5909b6, 0x5909b6, 0x5906a3, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 
          0x5909b6, 0x5906e9 <repeats 64 times>}
        stack = {
          pc = 0xab9022 "\202C", 
          byte_string = 8961457, 
          byte_string_start = 0xab8ffc "\b\203\n", 
          constants = 8961493, 
          next = 0x7fffffff9c20
        }
        result = 1
#11 0x00000000005586ff in funcall_lambda (fun=8961309, nargs=<optimized out>, arg_vector=0x7fffffff9bb0)
    at /home/sds/src/emacs/trunk/src/eval.c:3041
        val = <optimized out>
        syms_left = 11987922
        next = <optimized out>
        lexenv = 11987922
        count = 19
        i = <optimized out>
        optional = <optimized out>
        rest = <optimized out>
#12 0x0000000000558a5d in Ffuncall (nargs=<optimized out>, args=0x7fffffff9ba8) at /home/sds/src/emacs/trunk/src/eval.c:2870
        fun = <optimized out>
        original_fun = 16002786
        funcar = <optimized out>
        numargs = <optimized out>
        lisp_numargs = <optimized out>
        val = <optimized out>
        backtrace = {
          next = 0x7fffffff9d30, 
          function = 0x7fffffff9ba8, 
          args = 0x7fffffff9bb0, 
          nargs = 7, 
          debug_on_exit = 0
        }
        internal_args = <optimized out>
        i = <optimized out>
#13 0x000000000058fed3 in exec_byte_code (bytestr=91, vector=140737488329640, maxdepth=0, args_template=4611686018695757824, 
    nargs=4611686018430533632, args=0x5) at /home/sds/src/emacs/trunk/src/bytecode.c:898
        targets = {0x59090a, 0x5909ac, 0x5909b1, 0x59057a, 0x58ff3a, 0x58ff3a, 0x59057f, 0x5905bf, 0x59052b, 0x590530, 0x590535, 
          0x590545, 0x58fdd2, 0x58fdd8, 0x59001a, 0x590555, 0x590190, 0x590195, 0x59019a, 0x5901a5, 0x58fe24, 0x58fe28, 0x5901da, 
          0x5901b5, 0x59024e, 0x590253, 0x590258, 0x590265, 0x58fe80, 0x58fe80, 0x590215, 0x590229, 0x5902ae, 0x5902b3, 0x5902b8, 
          0x5902c5, 0x58feb2, 0x58feb8, 0x590275, 0x590289, 0x59030e, 0x590313, 0x590318, 0x590325, 0x58fef2, 0x58fef8, 0x5902d5, 
          0x5902e9, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x59187e, 0x591909, 0x591940, 
          0x591977, 0x5919ae, 0x5900e4, 0x59011e, 0x5919ee, 0x5900aa, 0x590156, 0x591a1f, 0x591a57, 0x591a85, 0x591acc, 0x591b08, 
          0x591b88, 0x591044, 0x59107c, 0x5910b8, 0x5910df, 0x591106, 0x59113e, 0x591176, 0x5911ae, 0x5911ea, 0x591226, 0x591262, 
          0x5912e2, 0x59131a, 0x591352, 0x5913ec, 0x591424, 0x59145c, 0x591494, 0x5914cc, 0x591508, 0x591539, 0x591575, 0x5915b1, 
          0x5915ed, 0x59169d, 0x58ffec, 0x5916d3, 0x5916fa, 0x59176a, 0x5909c5, 0x5909fb, 0x590a22, 0x590a4b, 0x590a74, 0x590aa1, 
          0x5909b6, 0x590acf, 0x590b00, 0x590b31, 0x590b62, 0x590b93, 0x590bc4, 0x58ffec, 0x5909b6, 0x590beb, 0x590c1c, 0x590c43, 
          0x590c6a, 0x590ca2, 0x590cda, 0x590d01, 0x590dc4, 0x590dfc, 0x590e34, 0x590e6c, 0x590e9d, 0x5909b6, 0x592074, 0x590360, 
          0x59002e, 0x5903fb, 0x5904b2, 0x591baf, 0x591f05, 0x591f57, 0x5901ee, 0x5920bc, 0x591f77, 0x591fdc, 0x59200a, 0x592047, 
          0x5917a0, 0x5917dc, 0x59181c, 0x590335, 0x590ec4, 0x590f00, 0x590f27, 0x590f4e, 0x590f75, 0x590f9c, 0x590fd4, 0x59100c, 
          0x590715, 0x59074d, 0x590795, 0x5907cd, 0x590805, 0x59082c, 0x590864, 0x59089c, 0x5908d3, 0x590970, 0x591629, 0x591665, 
          0x59090f, 0x59093f, 0x5909b6, 0x591c63, 0x591ced, 0x591d5b, 0x591df8, 0x591e67, 0x591b44, 0x59129e, 0x591726, 0x590612, 
          0x590651, 0x5909b6, 0x5909b6, 0x5906a3, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 
          0x5909b6, 0x5906e9 <repeats 64 times>}
        stack = {
          pc = 0xab9035 "\210\315\v!\211\023\204-", 
          byte_string = 8961457, 
          byte_string_start = 0xab8ffc "\b\203\n", 
          constants = 8961493, 
          next = 0x7fffffff9e10
        }
        result = 1
#14 0x00000000005586ff in funcall_lambda (fun=8961309, nargs=<optimized out>, arg_vector=0x7fffffff9db0)
    at /home/sds/src/emacs/trunk/src/eval.c:3041
        val = <optimized out>
        syms_left = 11987922
        next = <optimized out>
        lexenv = 11987922
        count = 11
        i = <optimized out>
        optional = <optimized out>
        rest = <optimized out>
#15 0x0000000000558a5d in Ffuncall (nargs=<optimized out>, args=0x7fffffff9da8) at /home/sds/src/emacs/trunk/src/eval.c:2870
        fun = <optimized out>
        original_fun = 16002786
        funcar = <optimized out>
        numargs = <optimized out>
        lisp_numargs = <optimized out>
        val = <optimized out>
        backtrace = {
          next = 0x7fffffff9f20, 
          function = 0x7fffffff9da8, 
          args = 0x7fffffff9db0, 
          nargs = 5, 
          debug_on_exit = 0
        }
        internal_args = <optimized out>
        i = <optimized out>
#16 0x000000000058fed3 in exec_byte_code (bytestr=91, vector=140737488330152, maxdepth=0, args_template=4611686018695757824, 
    nargs=4611686018430533632, args=0x5) at /home/sds/src/emacs/trunk/src/bytecode.c:898
        targets = {0x59090a, 0x5909ac, 0x5909b1, 0x59057a, 0x58ff3a, 0x58ff3a, 0x59057f, 0x5905bf, 0x59052b, 0x590530, 0x590535, 
          0x590545, 0x58fdd2, 0x58fdd8, 0x59001a, 0x590555, 0x590190, 0x590195, 0x59019a, 0x5901a5, 0x58fe24, 0x58fe28, 0x5901da, 
          0x5901b5, 0x59024e, 0x590253, 0x590258, 0x590265, 0x58fe80, 0x58fe80, 0x590215, 0x590229, 0x5902ae, 0x5902b3, 0x5902b8, 
          0x5902c5, 0x58feb2, 0x58feb8, 0x590275, 0x590289, 0x59030e, 0x590313, 0x590318, 0x590325, 0x58fef2, 0x58fef8, 0x5902d5, 
          0x5902e9, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x59187e, 0x591909, 0x591940, 
          0x591977, 0x5919ae, 0x5900e4, 0x59011e, 0x5919ee, 0x5900aa, 0x590156, 0x591a1f, 0x591a57, 0x591a85, 0x591acc, 0x591b08, 
          0x591b88, 0x591044, 0x59107c, 0x5910b8, 0x5910df, 0x591106, 0x59113e, 0x591176, 0x5911ae, 0x5911ea, 0x591226, 0x591262, 
          0x5912e2, 0x59131a, 0x591352, 0x5913ec, 0x591424, 0x59145c, 0x591494, 0x5914cc, 0x591508, 0x591539, 0x591575, 0x5915b1, 
          0x5915ed, 0x59169d, 0x58ffec, 0x5916d3, 0x5916fa, 0x59176a, 0x5909c5, 0x5909fb, 0x590a22, 0x590a4b, 0x590a74, 0x590aa1, 
          0x5909b6, 0x590acf, 0x590b00, 0x590b31, 0x590b62, 0x590b93, 0x590bc4, 0x58ffec, 0x5909b6, 0x590beb, 0x590c1c, 0x590c43, 
          0x590c6a, 0x590ca2, 0x590cda, 0x590d01, 0x590dc4, 0x590dfc, 0x590e34, 0x590e6c, 0x590e9d, 0x5909b6, 0x592074, 0x590360, 
          0x59002e, 0x5903fb, 0x5904b2, 0x591baf, 0x591f05, 0x591f57, 0x5901ee, 0x5920bc, 0x591f77, 0x591fdc, 0x59200a, 0x592047, 
          0x5917a0, 0x5917dc, 0x59181c, 0x590335, 0x590ec4, 0x590f00, 0x590f27, 0x590f4e, 0x590f75, 0x590f9c, 0x590fd4, 0x59100c, 
          0x590715, 0x59074d, 0x590795, 0x5907cd, 0x590805, 0x59082c, 0x590864, 0x59089c, 0x5908d3, 0x590970, 0x591629, 0x591665, 
          0x59090f, 0x59093f, 0x5909b6, 0x591c63, 0x591ced, 0x591d5b, 0x591df8, 0x591e67, 0x591b44, 0x59129e, 0x591726, 0x590612, 
          0x590651, 0x5909b6, 0x5909b6, 0x5906a3, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 0x5909b6, 
          0x5909b6, 0x5906e9 <repeats 64 times>}
        stack = {
          pc = 0xab8fd3 "\210\b)\207", 
          byte_string = 8961905, 
          byte_string_start = 0xab8fa2 "\b\247\205\064", 
          constants = 8961941, 
          next = 0x0
        }
        result = 1
#17 0x00000000005586ff in funcall_lambda (fun=8961853, nargs=<optimized out>, arg_vector=0x7fffffff9f98)
    at /home/sds/src/emacs/trunk/src/eval.c:3041
        val = <optimized out>
        syms_left = 11987922
        next = <optimized out>
        lexenv = 11987922
        count = 8
        i = <optimized out>
        optional = <optimized out>
        rest = <optimized out>
#18 0x0000000000558a5d in Ffuncall (nargs=<optimized out>, args=0x7fffffff9f90) at /home/sds/src/emacs/trunk/src/eval.c:2870
        fun = <optimized out>
        original_fun = 12203362
        funcar = <optimized out>
        numargs = <optimized out>
        lisp_numargs = <optimized out>
        val = <optimized out>
        backtrace = {
          next = 0x0, 
          function = 0x7fffffff9f90, 
          args = 0x7fffffff9f98, 
          nargs = 2, 
          debug_on_exit = 0
        }
        internal_args = <optimized out>
        i = <optimized out>
#19 0x0000000000558e9f in call2 (fn=<optimized out>, arg1=<optimized out>, arg2=<optimized out>)
    at /home/sds/src/emacs/trunk/src/eval.c:2618
        ret_ungc_val = 1
        args = {12203362, 24216325, 12075200}
#20 0x000000000046a618 in shrink_mini_window (w=<optimized out>) at /home/sds/src/emacs/trunk/src/window.c:4241
        f = 0x1178410
        r = 0x1718300
        root = 24216325
        value = <optimized out>
        size = <optimized out>
#21 0x0000000000443c12 in resize_mini_window (w=0x117a430, exact_p=0) at /home/sds/src/emacs/trunk/src/xdisp.c:10405
        old_height = <optimized out>
        root = <optimized out>
        total_height = <optimized out>
        max_height = <optimized out>
        unit = 13
        old_current_buffer = 0x0
        it = {
          window = 18326581, 
          w = 0x117a430, 
          f = 0x1178410, 
          method = GET_FROM_BUFFER, 
          stop_charpos = 1, 
          prev_stop = 0, 
          base_level_stop = 0, 
          end_charpos = 1, 
          s = 0x0, 
          string_nchars = 0, 
          region_beg_charpos = -1, 
          region_end_charpos = -1, 
          redisplay_end_trigger_charpos = 0, 
          multibyte_p = 0, 
          header_line_p = 0, 
          string_from_display_prop_p = 0, 
          string_from_prefix_prop_p = 0, 
          from_disp_prop_p = 0, 
          ellipsis_p = 0, 
          avoid_cursor_p = 0, 
          dp = 0x1f9b1f0, 
          dpvec = 0x0, 
          dpend = 0x0, 
          dpvec_char_len = 0, 
          dpvec_face_id = 0, 
          saved_face_id = 0, 
          ctl_chars = {0 <repeats 16 times>}, 
          start = {
            pos = {
              charpos = 1, 
              bytepos = 1
            }, 
            overlay_string_index = -1, 
            string_pos = {
              charpos = -1, 
              bytepos = -1
            }, 
            dpvec_index = -1
          }, 
          current = {
            pos = {
              charpos = 1, 
              bytepos = 1
            }, 
            overlay_string_index = -1, 
            string_pos = {
              charpos = -1, 
              bytepos = -1
            }, 
            dpvec_index = -1
          }, 
          n_overlay_strings = 0, 
          overlay_strings_charpos = 1, 
          overlay_strings = {0 <repeats 16 times>}, 
          string_overlays = {0 <repeats 16 times>}, 
          string = 11987922, 
          from_overlay = 0, 
          stack = {{
              string = 0, 
              string_nchars = 0, 
              end_charpos = 0, 
              stop_charpos = 0, 
              prev_stop = 0, 
              base_level_stop = 0, 
              cmp_it = {
                stop_pos = 0, 
                id = 0, 
                ch = 0, 
                rule_idx = 0, 
                lookback = 0, 
                nglyphs = 0, 
                reversed_p = false, 
                charpos = 0, 
                nchars = 0, 
                nbytes = 0, 
                from = 0, 
                to = 0, 
                width = 0
              }, 
              face_id = 0, 
              u = {
                image = {
                  object = 0, 
                  slice = {
                    x = 0, 
                    y = 0, 
                    width = 0, 
                    height = 0
                  }, 
                  image_id = 0
                }, 
                comp = {
                  object = 0
                }, 
                stretch = {
                  object = 0
                }
              }, 
              position = {
                charpos = 0, 
                bytepos = 0
              }, 
              current = {
                pos = {
                  charpos = 0, 
                  bytepos = 0
                }, 
                overlay_string_index = 0, 
                string_pos = {
                  charpos = 0, 
                  bytepos = 0
                }, 
                dpvec_index = 0
              }, 
              from_overlay = 0, 
              area = LEFT_MARGIN_AREA, 
              method = GET_FROM_BUFFER, 
              paragraph_embedding = NEUTRAL_DIR, 
              multibyte_p = 0, 
              string_from_display_prop_p = 0, 
              string_from_prefix_prop_p = 0, 
              display_ellipsis_p = 0, 
              avoid_cursor_p = 0, 
              bidi_p = 0, 
              from_disp_prop_p = 0, 
              line_wrap = TRUNCATE, 
              voffset = 0, 
              space_width = 0, 
              font_height = 0
            }, {
              string = 0, 
              string_nchars = 0, 
              end_charpos = 0, 
              stop_charpos = 0, 
              prev_stop = 0, 
              base_level_stop = 0, 
              cmp_it = {
                stop_pos = 0, 
                id = 0, 
                ch = 0, 
                rule_idx = 0, 
                lookback = 0, 
                nglyphs = 0, 
                reversed_p = false, 
                charpos = 0, 
                nchars = 0, 
                nbytes = 0, 
                from = 0, 
                to = 0, 
                width = 0
              }, 
              face_id = 0, 
              u = {
                image = {
                  object = 0, 
                  slice = {
                    x = 0, 
                    y = 0, 
                    width = 0, 
                    height = 0
                  }, 
                  image_id = 0
                }, 
                comp = {
                  object = 0
                }, 
                stretch = {
                  object = 0
                }
              }, 
              position = {
                charpos = 0, 
                bytepos = 0
              }, 
              current = {
                pos = {
                  charpos = 0, 
                  bytepos = 0
                }, 
                overlay_string_index = 0, 
                string_pos = {
                  charpos = 0, 
                  bytepos = 0
                }, 
                dpvec_index = 0
              }, 
              from_overlay = 0, 
              area = LEFT_MARGIN_AREA, 
              method = GET_FROM_BUFFER, 
              paragraph_embedding = NEUTRAL_DIR, 
              multibyte_p = 0, 
              string_from_display_prop_p = 0, 
              string_from_prefix_prop_p = 0, 
              display_ellipsis_p = 0, 
              avoid_cursor_p = 0, 
              bidi_p = 0, 
              from_disp_prop_p = 0, 
              line_wrap = TRUNCATE, 
              voffset = 0, 
              space_width = 0, 
              font_height = 0
            }, {
              string = 0, 
              string_nchars = 0, 
              end_charpos = 0, 
              stop_charpos = 0, 
              prev_stop = 0, 
              base_level_stop = 0, 
              cmp_it = {
                stop_pos = 0, 
                id = 0, 
                ch = 0, 
                rule_idx = 0, 
                lookback = 0, 
                nglyphs = 0, 
                reversed_p = false, 
                charpos = 0, 
                nchars = 0, 
                nbytes = 0, 
                from = 0, 
                to = 0, 
                width = 0
              }, 
              face_id = 0, 
              u = {
                image = {
                  object = 0, 
                  slice = {
                    x = 0, 
                    y = 0, 
                    width = 0, 
                    height = 0
                  }, 
                  image_id = 0
                }, 
                comp = {
                  object = 0
                }, 
                stretch = {
                  object = 0
                }
              }, 
              position = {
                charpos = 0, 
                bytepos = 0
              }, 
              current = {
                pos = {
                  charpos = 0, 
                  bytepos = 0
                }, 
                overlay_string_index = 0, 
                string_pos = {
                  charpos = 0, 
                  bytepos = 0
                }, 
                dpvec_index = 0
              }, 
              from_overlay = 0, 
              area = LEFT_MARGIN_AREA, 
              method = GET_FROM_BUFFER, 
              paragraph_embedding = NEUTRAL_DIR, 
              multibyte_p = 0, 
              string_from_display_prop_p = 0, 
              string_from_prefix_prop_p = 0, 
              display_ellipsis_p = 0, 
              avoid_cursor_p = 0, 
              bidi_p = 0, 
              from_disp_prop_p = 0, 
              line_wrap = TRUNCATE, 
              voffset = 0, 
              space_width = 0, 
              font_height = 0
            }, {
              string = 0, 
              string_nchars = 0, 
              end_charpos = 0, 
              stop_charpos = 0, 
              prev_stop = 0, 
              base_level_stop = 0, 
              cmp_it = {
                stop_pos = 0, 
                id = 0, 
                ch = 0, 
                rule_idx = 0, 
                lookback = 0, 
                nglyphs = 0, 
                reversed_p = false, 
                charpos = 0, 
                nchars = 0, 
                nbytes = 0, 
                from = 0, 
                to = 0, 
                width = 0
              }, 
              face_id = 0, 
              u = {
                image = {
                  object = 0, 
                  slice = {
                    x = 0, 
                    y = 0, 
                    width = 0, 
                    height = 0
                  }, 
                  image_id = 0
                }, 
                comp = {
                  object = 0
                }, 
                stretch = {
                  object = 0
                }
              }, 
              position = {
                charpos = 0, 
                bytepos = 0
              }, 
              current = {
                pos = {
                  charpos = 0, 
                  bytepos = 0
                }, 
                overlay_string_index = 0, 
                string_pos = {
                  charpos = 0, 
                  bytepos = 0
                }, 
                dpvec_index = 0
              }, 
              from_overlay = 0, 
              area = LEFT_MARGIN_AREA, 
              method = GET_FROM_BUFFER, 
              paragraph_embedding = NEUTRAL_DIR, 
              multibyte_p = 0, 
              string_from_display_prop_p = 0, 
              string_from_prefix_prop_p = 0, 
              display_ellipsis_p = 0, 
              avoid_cursor_p = 0, 
              bidi_p = 0, 
              from_disp_prop_p = 0, 
              line_wrap = TRUNCATE, 
              voffset = 0, 
              space_width = 0, 
              font_height = 0
            }, {
              string = 0, 
              string_nchars = 0, 
              end_charpos = 0, 
              stop_charpos = 0, 
              prev_stop = 0, 
              base_level_stop = 0, 
              cmp_it = {
                stop_pos = 0, 
                id = 0, 
                ch = 0, 
                rule_idx = 0, 
                lookback = 0, 
                nglyphs = 0, 
                reversed_p = false, 
                charpos = 0, 
                nchars = 0, 
                nbytes = 0, 
                from = 0, 
                to = 0, 
                width = 0
              }, 
              face_id = 0, 
              u = {
                image = {
                  object = 0, 
                  slice = {
                    x = 0, 
                    y = 0, 
                    width = 0, 
                    height = 0
                  }, 
                  image_id = 0
                }, 
                comp = {
                  object = 0
                }, 
                stretch = {
                  object = 0
                }
              }, 
              position = {
                charpos = 0, 
                bytepos = 0
              }, 
              current = {
                pos = {
                  charpos = 0, 
                  bytepos = 0
                }, 
                overlay_string_index = 0, 
                string_pos = {
                  charpos = 0, 
                  bytepos = 0
                }, 
                dpvec_index = 0
              }, 
              from_overlay = 0, 
              area = LEFT_MARGIN_AREA, 
              method = GET_FROM_BUFFER, 
              paragraph_embedding = NEUTRAL_DIR, 
              multibyte_p = 0, 
              string_from_display_prop_p = 0, 
              string_from_prefix_prop_p = 0, 
              display_ellipsis_p = 0, 
              avoid_cursor_p = 0, 
              bidi_p = 0, 
              from_disp_prop_p = 0, 
              line_wrap = TRUNCATE, 
              voffset = 0, 
              space_width = 0, 
              font_height = 0
            }}, 
          sp = 0, 
          selective = 0, 
          what = IT_CHARACTER, 
          face_id = 0, 
          selective_display_ellipsis_p = 1, 
          ctl_arrow_p = 1, 
          face_box_p = 0, 
          start_of_box_run_p = 0, 
          end_of_box_run_p = 0, 
          overlay_strings_at_end_processed_p = 0, 
          ignore_overlay_strings_at_pos_p = 0, 
          glyph_not_available_p = 0, 
          starts_in_middle_of_char_p = 0, 
          face_before_selective_p = 0, 
          constrain_row_ascent_descent_p = 0, 
          line_wrap = WINDOW_WRAP, 
          base_face_id = 0, 
          c = 0, 
          len = 0, 
          cmp_it = {
            stop_pos = 1, 
            id = -1, 
            ch = -2, 
            rule_idx = 0, 
            lookback = 0, 
            nglyphs = 0, 
            reversed_p = false, 
            charpos = 0, 
            nchars = 0, 
            nbytes = 0, 
            from = 0, 
            to = 0, 
            width = 0
          }, 
          char_to_display = 0, 
          glyphless_method = GLYPHLESS_DISPLAY_THIN_SPACE, 
          image_id = 0, 
          slice = {
            x = 11987922, 
            y = 11987922, 
            width = 11987922, 
            height = 11987922
          }, 
          space_width = 11987922, 
          voffset = 0, 
          tab_width = 2, 
          font_height = 11987922, 
          object = 20504165, 
          position = {
            charpos = 1, 
            bytepos = 1
          }, 
          truncation_pixel_width = 0, 
          continuation_pixel_width = 6, 
          first_visible_x = 0, 
          last_visible_x = 1332, 
          last_visible_y = 39244413, 
          extra_line_spacing = 0, 
          max_extra_line_spacing = 0, 
          override_ascent = -1, 
          override_descent = 0, 
          override_boff = 0, 
          glyph_row = 0x0, 
          area = TEXT_AREA, 
          nglyphs = 6, 
          pixel_width = 0, 
          ascent = 0, 
          descent = 0, 
          max_ascent = 0, 
          max_descent = 0, 
          phys_ascent = 0, 
          phys_descent = 0, 
          max_phys_ascent = 0, 
          max_phys_descent = 0, 
          current_x = 0, 
          continuation_lines_width = 0, 
          eol_pos = {
            charpos = 0, 
            bytepos = 0
          }, 
          current_y = 0, 
          first_vpos = 0, 
          vpos = 0, 
          hpos = 0, 
          left_user_fringe_bitmap = 0, 
          right_user_fringe_bitmap = 0, 
          left_user_fringe_face_id = 0, 
          right_user_fringe_face_id = 0, 
          bidi_p = 0, 
          bidi_it = {
            bytepos = 0, 
            charpos = 0, 
            ch = 0, 
            nchars = 0, 
            ch_len = 0, 
            type = UNKNOWN_BT, 
            type_after_w1 = UNKNOWN_BT, 
            orig_type = UNKNOWN_BT, 
            resolved_level = 0, 
            invalid_levels = 0, 
            invalid_rl_levels = 0, 
            prev = {
              bytepos = 0, 
              charpos = 0, 
              type = UNKNOWN_BT, 
              type_after_w1 = UNKNOWN_BT, 
              orig_type = UNKNOWN_BT
            }, 
            last_strong = {
              bytepos = 0, 
              charpos = 0, 
              type = UNKNOWN_BT, 
              type_after_w1 = UNKNOWN_BT, 
              orig_type = UNKNOWN_BT
            }, 
            next_for_neutral = {
              bytepos = 0, 
              charpos = 0, 
              type = UNKNOWN_BT, 
              type_after_w1 = UNKNOWN_BT, 
              orig_type = UNKNOWN_BT
            }, 
            prev_for_neutral = {
              bytepos = 0, 
              charpos = 0, 
              type = UNKNOWN_BT, 
              type_after_w1 = UNKNOWN_BT, 
              orig_type = UNKNOWN_BT
            }, 
            next_for_ws = {
              bytepos = 0, 
              charpos = 0, 
              type = UNKNOWN_BT, 
              type_after_w1 = UNKNOWN_BT, 
              orig_type = UNKNOWN_BT
            }, 
            next_en_pos = 0, 
            next_en_type = UNKNOWN_BT, 
            ignore_bn_limit = 0, 
            sor = NEUTRAL_DIR, 
            scan_dir = 0, 
            disp_pos = 0, 
            disp_prop = 0, 
            stack_idx = 0, 
            level_stack = {{
                level = 0, 
                override = NEUTRAL_DIR
              } <repeats 64 times>}, 
            string = {
              lstring = 11987922, 
              s = 0x0, 
              schars = 0, 
              bufpos = 0, 
              from_disp_str = 0, 
              unibyte = 0
            }, 
            paragraph_dir = NEUTRAL_DIR, 
            separator_limit = 0, 
            prev_was_pdf = 0, 
            first_elt = 0, 
            new_paragraph = 0, 
            frame_window_p = 0
          }, 
          paragraph_embedding = L2R
        }
        height = 0
        start = <optimized out>
        f = 0x1178410
        window_height_changed_p = 0
#22 0x00000000004444f0 in display_echo_area_1 (a1=<optimized out>, a2=<optimized out>, a3=<optimized out>, a4=<optimized out>)
    at /home/sds/src/emacs/trunk/src/xdisp.c:10233
        i1 = 18326576
        w = 0x117a430
        window = <optimized out>
        start = {
          charpos = 5, 
          bytepos = 20504165
        }
        window_height_changed_p = 0
#23 0x0000000000428dea in with_echo_area_buffer (w=0x117a430, which=<optimized out>, fn=0x4444e0 <display_echo_area_1>, 
    a1=18326576, a2=11987922, a3=0, a4=0) at /home/sds/src/emacs/trunk/src/xdisp.c:10026
        buffer = 20504165
        this_one = <optimized out>
        the_other = <optimized out>
        clear_buffer_p = 1
        rc = <optimized out>
        count = 5
#24 0x0000000000445e3b in display_echo_area (w=0x117a430) at /home/sds/src/emacs/trunk/src/xdisp.c:10203
        no_message_p = 1
        window_height_changed_p = <optimized out>
        count = 4
#25 echo_area_display (update_frame_p=0) at /home/sds/src/emacs/trunk/src/xdisp.c:10797
        mini_window = 18326581
        w = 0x117a430
        f = 0x1178410
        window_height_changed_p = 0
        sf = <optimized out>
#26 0x0000000000444cb7 in redisplay_internal () at /home/sds/src/emacs/trunk/src/xdisp.c:13138
        window_height_changed_p = <optimized out>
        w = 0x1179420
        sw = 0x1179420
        fr = <optimized out>
        pending = 0
        must_finish = 0
        tlbufpos = <optimized out>
        tlendpos = <optimized out>
        number_of_visible_frames = <optimized out>
        count = 2
        count1 = <optimized out>
        sf = 0x1178410
        polling_stopped_here = 0
        old_frame = 18318357
        consider_all_windows_p = 1
        update_miniwindow_p = 0
#27 0x00000000004ebeb2 in read_char (commandflag=1, nmaps=3, maps=0x7fffffffcc80, prev_event=11987922, 
    used_mouse_menu=0x7fffffffce10, end_time=0x0) at /home/sds/src/emacs/trunk/src/keyboard.c:2498
        echo_current = 1
        c = <optimized out>
        jmpcount = <optimized out>
        local_getcjmp = {{
            __jmpbuf = {11987922, -8635915982820796378, 11987922, 0, 1, 20060608, 8635914765628938278, -8635914125938059226}, 
            __mask_was_saved = 0, 
            __saved_mask = {
              __val = {213, 1, 12174050, 60963270, 5933900, 47251909, 211, 47251909, 5931525, 12020850, 212, 12020850, 12020850, 
                60963270, 5933900, 47251909}
            }
          }}
        save_jump = {{
            __jmpbuf = {0, 0, 0, 0, 0, 0, 0, 0}, 
            __mask_was_saved = 0, 
            __saved_mask = {
              __val = {0 <repeats 16 times>}
            }
          }}
        key_already_recorded = 0
        tem = <optimized out>
        save = <optimized out>
        previous_echo_area_message = 11987922
        also_record = 11987922
        reread = 0
        polling_stopped_here = 0
        orig_kboard = 0x13219c0
#28 0x00000000004ee2f2 in read_key_sequence (keybuf=0x7fffffffce70, prompt=11987922, dont_downcase_last=0, 
    can_return_switch_frame=1, fix_current_buffer=1, bufsize=30) at /home/sds/src/emacs/trunk/src/keyboard.c:9356
        interrupted_kboard = 0x13219c0
        interrupted_frame = 0x1178410
        key = <optimized out>
        used_mouse_menu = 0
        echo_local_start = 0
        last_real_key_start = 0
        keys_local_start = 0
        local_first_binding = 0
        from_string = 11987922
        count = 2
        t = 0
        echo_start = 0
        keys_start = 0
        nmaps = <optimized out>
        nmaps_allocated = 3
        defs = 0x7fffffffcc50
        submaps = 0x7fffffffcc80
        orig_local_map = 23940326
        orig_keymap = 11987922
        localized_local_map = 0
        first_binding = 0
        first_unbound = 31
        mock_input = 0
        fkey = {
          parent = 18997190, 
          map = 18997190, 
          start = 0, 
          end = 0
        }
        keytran = {
          parent = 11966902, 
          map = 11966902, 
          start = 0, 
          end = 0
        }
        indec = {
          parent = 18997174, 
          map = 18997174, 
          start = 0, 
          end = 0
        }
        shift_translated = 0
        delayed_switch_frame = 11987922
        original_uppercase = 11987922
        original_uppercase_position = -1
        dummyflag = 0
        starting_buffer = 0x2d101c0
        fake_prefixed_keys = 11987922
#29 0x00000000004f038a in command_loop_1 () at /home/sds/src/emacs/trunk/src/keyboard.c:1500
        cmd = <optimized out>
        keybuf = {12, 12, 11987922, -2097869542680334848, 12040802, 11987970, 11987922, 11987922, 12039794, 2, 140737488342816, 
          5728436, 0, 8646209, 1346896097, -2097869542680334848, 140737353947624, 66172950, 11987922, 11987922, 4294967295, 
          140737488344784, 140737488342864, 5130856, 15355712, 66172950, 11987922, 5131203, 4611686018695757824, 5532162}
        i = <optimized out>
        prev_modiff = 1618
        prev_buffer = 0x2973540
#30 0x0000000000556f38 in internal_condition_case (bfun=0x4f01b0 <command_loop_1>, handlers=12039698, hfun=0x4e4ab0 <cmd_error>)
    at /home/sds/src/emacs/trunk/src/eval.c:1319
        val = <optimized out>
        c = {
          tag = 11987922, 
          val = 11987922, 
          next = 0x7fffffffd160, 
          gcpro = 0x0, 
          jmp = {{
              __jmpbuf = {15355712, -8635915539518253018, 11987922, 140737488344504, 4294967295, 140737488344784, 
                8635914765530372134, -8635914054480226266}, 
              __mask_was_saved = 0, 
              __saved_mask = {
                __val = {140737353918688, 140737353947624, 5225237, 4294967295, 0, 0, 15355712, 8597480, 0, 4294967295, 
                  140737488344784, 0, 140737351944052, 1, 0, 140737284769664}
              }
            }}, 
          backlist = 0x0, 
          handlerlist = 0x0, 
          lisp_eval_depth = 0, 
          pdlcount = 2, 
          poll_suppress_count = 1, 
          interrupt_input_blocked = 0, 
          byte_stack = 0x0
        }
        h = {
          handler = 12039698, 
          var = 11987922, 
          chosen_clause = 11987970, 
          tag = 0x7fffffffcfe0, 
          next = 0x0
        }
#31 0x00000000004e2a7e in command_loop_2 (ignore=<optimized out>) at /home/sds/src/emacs/trunk/src/keyboard.c:1195
        val = 1
#32 0x0000000000556e18 in internal_catch (tag=<error reading variable: Cannot access memory at address 0x3b>, 
    func=0x4e2a60 <command_loop_2>, arg=11987922) at /home/sds/src/emacs/trunk/src/eval.c:1076
        c = {
          tag = 12035570, 
          val = 11987922, 
          next = 0x0, 
          gcpro = 0x0, 
          jmp = {{
              __jmpbuf = {15355712, -8635915539518253018, 11987922, 140737488344504, 4294967295, 140737488344784, 
                8635914765310171174, -8635914054585608154}, 
              __mask_was_saved = 0, 
              __saved_mask = {
                __val = {0, 0, 0, 0, 0, 0, 5898163, 0, 18722600, 140737488343712, 140737488343720, 0, 140737488343712, 6273846, 
                  11987922, 140737488343720}
              }
            }}, 
          backlist = 0x0, 
          handlerlist = 0x0, 
          lisp_eval_depth = 0, 
          pdlcount = 2, 
          poll_suppress_count = 1, 
          interrupt_input_blocked = 0, 
          byte_stack = 0x0
        }
#33 0x00000000004e4587 in command_loop () at /home/sds/src/emacs/trunk/src/keyboard.c:1174
No locals.
#34 recursive_edit_1 () at /home/sds/src/emacs/trunk/src/keyboard.c:795
        count = 1
        val = 11987922
#35 0x00000000004e48c4 in Frecursive_edit () at /home/sds/src/emacs/trunk/src/keyboard.c:859
        count = 0
        buffer = 11987922
#36 0x000000000041008a in main (argc=1, argv=<optimized out>) at /home/sds/src/emacs/trunk/src/emacs.c:1647
        dummy = 0
        stack_bottom_variable = 0 '\000'
        do_initial_setlocale = <optimized out>
        skip_args = 0
        rlim = {
          rlim_cur = 8720000, 
          rlim_max = 18446744073709551615
        }
        no_loadup = false
        junk = 0x0
        dname_arg = 0x0
        ch_to_dir = 0x7ffff3ddee40 "\212'"

Lisp Backtrace:
"window--resize-child-windows" (0xffff99b0)
"window--resize-this-window" (0xffff9bb0)
"window--resize-this-window" (0xffff9db0)
"window--resize-root-window-vertically" (0xffff9f98)

^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-09-06  2:31                                         ` Sam Steingold
@ 2012-09-06  3:13                                           ` Sam Steingold
  2012-09-06  5:15                                           ` Werner LEMBERG
  1 sibling, 0 replies; 37+ messages in thread
From: Sam Steingold @ 2012-09-06  3:13 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 12251

I removed the patch, now I cannot do anything at all in my emacs,
which was just rebuilt from bzr tip
"109897 yamaoka@jpl.org-20120906022021-zn1p7x11kl8s4x5o"
I get this on every attempt to switch a buffer in the *Scratch* window

Debugger entered--Lisp error: (wrong-type-argument listp #<killed buffer>)
  assq-delete-all(#<buffer  *temp*-531046> (#<killed buffer> .
#<killed buffer>))
  unrecord-window-buffer(#<window 11 on *scratch*> #<buffer  *temp*-531046>)
  replace-buffer-in-windows(#<buffer  *temp*-531046>)
  kill-buffer(#<buffer  *temp*-531046>)
.....
  help-highlight-arguments("(list-buffers &optional ARG)" "Display a
list of existing buffers.\nThe list is displayed in a buffer named
\"*Buffer List*\".\nSee `buffer-menu' for details about the Buffer
Menu buffer.\n\nBy default, all buffers are listed except those whose
names start\nwith a space (which are for internal use).  With prefix
argument\nARG, show only buffers that are visiting files.")
  help-fns--signature(list-buffers "Display a list of existing
buffers.\nThe list is displayed in a buffer named \"*Buffer
List*\".\nSee `buffer-menu' for details about the Buffer Menu
buffer.\n\nBy default, all buffers are listed except those whose names
start\nwith a space (which are for internal use).  With prefix
argument\nARG, show only buffers that are visiting files."
#[(&optional arg) "\301\302\b!!\207" [arg display-buffer
list-buffers-noselect] 3 2401604 "P"] list-buffers)
  describe-function-1(list-buffers)
  describe-function(list-buffers)
  call-interactively(describe-function nil nil)


-- 
Sam Steingold <http://sds.podval.org> <http://www.childpsy.net/>





^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-09-05 19:56                                       ` Sam Steingold
  2012-09-06  2:31                                         ` Sam Steingold
@ 2012-09-06  5:04                                         ` Eli Zaretskii
  2012-09-06  7:20                                         ` martin rudalics
  2 siblings, 0 replies; 37+ messages in thread
From: Eli Zaretskii @ 2012-09-06  5:04 UTC (permalink / raw)
  To: Sam Steingold; +Cc: 12251

> Date: Wed, 5 Sep 2012 15:56:08 -0400
> From: Sam Steingold <sds@gnu.org>
> Cc: Werner LEMBERG <wl@gnu.org>, rudalics@gmx.at, 12251@debbugs.gnu.org
> 
> On Sat, Sep 1, 2012 at 5:36 AM, Eli Zaretskii <eliz@gnu.org> wrote:
> >> On Thu, Aug 30, 2012 at 4:03 AM, martin rudalics <rudalics@gmx.at> wrote:
> >> >> I am running
> >> >> (emacs-bzr-version "109806
> >> >> schwab@linux-m68k.org-20120828160850-hft2a31ibkjr9uks")
> >> >> with your patch.
> >> >
> >> > And did you get a crash or the "window ... is not a live window"
> >> > with that?
> >>
> >> no crashes, no errors.
> >> yet.
> >
> > So do we still have a problem or problems with note_mouse_movement
> > that I need to look into?
> 
> emacs just hang when I sent an email.
> it keep raising an error (the top and bottom lines are blue - visual bell).
> the emacs has just been rebuilt.
> $ bzr revno
> 109892
> I also applied your patch.
> 
> ^Z
> Program received signal SIGTSTP, Stopped (user).
> 0x00007ffff3eba8fc in pselect () from /lib/x86_64-linux-gnu/libc.so.6
> (gdb) where
> #0  0x00007ffff3eba8fc in pselect () from /lib/x86_64-linux-gnu/libc.so.6
> #1  0x00000000004b998f in XTflash (f=0x1175d50) at
> /home/sds/src/emacs/trunk/src/xterm.c:3178
> #2  XTring_bell (f=0x1175d50) at /home/sds/src/emacs/trunk/src/xterm.c:3246
> #3  0x00000000004e4a4f in cmd_error_internal (data=54077670,
> context=0x7fffffffcf50 "")
>     at /home/sds/src/emacs/trunk/src/keyboard.c:1138
> #4  0x00000000004e4bc3 in cmd_error (data=54077670) at
> /home/sds/src/emacs/trunk/src/keyboard.c:1071
> #5  0x0000000000556f69 in internal_condition_case (bfun=0x4f01b0
> <command_loop_1>, handlers=12039698, hfun=0x4e4ab0 <cmd_error>)
>     at /home/sds/src/emacs/trunk/src/eval.c:1309
> #6  0x00000000004e2a7e in command_loop_2 (ignore=<optimized out>) at
> /home/sds/src/emacs/trunk/src/keyboard.c:1195
> #7  0x0000000000556e18 in internal_catch (tag=<error reading variable:
> Cannot access memory at address 0xffffffffffffffe0>,
>     func=0x4e2a60 <command_loop_2>, arg=11987922) at
> /home/sds/src/emacs/trunk/src/eval.c:1076
> #8  0x00000000004e4587 in command_loop () at
> /home/sds/src/emacs/trunk/src/keyboard.c:1174
> #9  recursive_edit_1 () at /home/sds/src/emacs/trunk/src/keyboard.c:795
> #10 0x00000000004e48c4 in Frecursive_edit () at
> /home/sds/src/emacs/trunk/src/keyboard.c:859
> #11 0x000000000041008a in main (argc=1, argv=<optimized out>) at
> /home/sds/src/emacs/trunk/src/emacs.c:1647

This doesn't seem related to mouse highlight at all.





^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-09-06  2:31                                         ` Sam Steingold
  2012-09-06  3:13                                           ` Sam Steingold
@ 2012-09-06  5:15                                           ` Werner LEMBERG
  1 sibling, 0 replies; 37+ messages in thread
From: Werner LEMBERG @ 2012-09-06  5:15 UTC (permalink / raw)
  To: sds; +Cc: 12251


> I get a consistent crash after I send an e-mail.  sometimes it's
> just an endless loop of errors (like in my previous mail) and I have
> to kill emacs myself, sometimes it's a hard crash (attached).

For me, it doesn't crash consistently, but something introduced within
the last two months has decreased the stability of Emacs on my
GNU/Linux platform from essentially zero crashes to one crash all two
days...


    Werner





^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-09-05 19:56                                       ` Sam Steingold
  2012-09-06  2:31                                         ` Sam Steingold
  2012-09-06  5:04                                         ` Eli Zaretskii
@ 2012-09-06  7:20                                         ` martin rudalics
  2012-09-06  7:32                                           ` martin rudalics
  2 siblings, 1 reply; 37+ messages in thread
From: martin rudalics @ 2012-09-06  7:20 UTC (permalink / raw)
  To: Sam Steingold; +Cc: 12251

 > emacs just hang when I sent an email.
 > it keep raising an error (the top and bottom lines are blue - visual bell).
 > the emacs has just been rebuilt.
 > $ bzr revno
 > 109892

So you want to use window configurations after 109890?  No chance.
Please revert to 109888.

martin





^ permalink raw reply	[flat|nested] 37+ messages in thread

* bug#12251: 24.2.50; crash in note_mouse_highlight
  2012-09-06  7:20                                         ` martin rudalics
@ 2012-09-06  7:32                                           ` martin rudalics
  0 siblings, 0 replies; 37+ messages in thread
From: martin rudalics @ 2012-09-06  7:32 UTC (permalink / raw)
  To: Sam Steingold; +Cc: 12251

 > So you want to use window configurations after 109890?  No chance.
 > Please revert to 109888.

Dmitry has just reverted his change in revision 109898.  Please use
this.  Window configurations are not usable in [109890...109897].

martin





^ permalink raw reply	[flat|nested] 37+ messages in thread

end of thread, other threads:[~2012-09-06  7:32 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-21 18:20 bug#12251: 24.2.50; crash in note_mouse_highlight Sam Steingold
2012-08-21 18:42 ` Eli Zaretskii
2012-08-21 19:02   ` Sam Steingold
2012-08-21 19:22     ` Eli Zaretskii
2012-08-22  2:43       ` Sam Steingold
2012-08-22 17:09         ` Eli Zaretskii
2012-08-22 17:29           ` Sam Steingold
2012-08-22 21:12             ` Sam Steingold
2012-08-23  8:48           ` martin rudalics
2012-08-23 13:19             ` Sam Steingold
2012-08-23 17:18               ` martin rudalics
2012-08-24 20:33                 ` Sam Steingold
2012-08-25 13:40                   ` martin rudalics
2012-08-27 19:01                     ` Sam Steingold
2012-08-27 19:05                       ` Sam Steingold
2012-08-27 21:10                         ` martin rudalics
2012-08-28 16:35                         ` Sam Steingold
2012-08-28 17:05                           ` martin rudalics
2012-08-29  9:34                             ` martin rudalics
2012-08-29 14:42                               ` Sam Steingold
2012-08-30  8:03                                 ` martin rudalics
2012-08-30 11:02                                   ` Sam Steingold
2012-09-01  9:36                                     ` Eli Zaretskii
2012-09-05 19:56                                       ` Sam Steingold
2012-09-06  2:31                                         ` Sam Steingold
2012-09-06  3:13                                           ` Sam Steingold
2012-09-06  5:15                                           ` Werner LEMBERG
2012-09-06  5:04                                         ` Eli Zaretskii
2012-09-06  7:20                                         ` martin rudalics
2012-09-06  7:32                                           ` martin rudalics
2012-08-30 12:39                                   ` Sam Steingold
2012-08-30 12:49                                     ` martin rudalics
2012-09-01  9:40               ` Eli Zaretskii
2012-08-23 16:20             ` Eli Zaretskii
2012-08-23 17:19               ` martin rudalics
2012-08-23 18:43                 ` Eli Zaretskii
2012-08-24  9:44                   ` martin rudalics

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).