Subject: RE: bug#9723: 24.0.50; Emacs Clipboard crash

From: Joseph Jones <[email-masked]>
Date: Sun, 12 Feb 2012 14:13:18 -0800

(gdb) pit
cur=635852 pos=0 start=634607 end=6 stop=6 face=13 nov=1 sp=2 ch=' ' next=GET_FROM_STRING[0]
BIDI: base_stop=0 prev_stop=0 level=0
vpos=47 hpos=121 y=47 lvy=57 x=624 vx=503-624 w=1 a+d=0+1=1 max=0+1=1
stack[0]: GET_FROM_BUFFER[635851]
stack[1]: GET_FROM_STRING[1]

56: edges=(632703,632714),r2l=0,cont=0,trunc=(0,0),at_zv=1
(gdb) print *it->w
$2 = {
  header = {
    size = 1073745975,
    next = {
      buffer = 0x3446c00,
      vector = 0x3446c00
    }
  },
  frame = 54815749,
  mini_p = 54741018,
  next = 54814725,
  prev = 54741018,
  hchild = 54741018,
  vchild = 54741018,
  parent = 54741018,
  left_col = 0,
  top_line = 4,
  total_lines = 232,
  total_cols = 512,
  normal_lines = 54727727,
  normal_cols = 54727735,
  new_total = 232,
  new_normal = 54741018,
  buffer = 94267397,
  start = 54769715,
  pointm = 54769739,
  force_start = 54741018,
  optional_new_start = 54741018,
  hscroll = 2012,
  min_hscroll = 0,
  use_time = 1292,
  sequence_number = 4,
  temslot = 0,
  last_modified = 0,
  last_overlay_modified = 0,
  last_point = 2530856,
  last_had_star = 54741042,
  vertical_scroll_bar = 54741018,
  left_margin_cols = 24,
  right_margin_cols = 54741018,
  left_fringe_width = 54741018,
  right_fringe_width = 54741018,
  fringes_outside_margins = 54741018,
  scroll_bar_width = 54741018,
  vertical_scroll_bar_type = 54741042,
  last_mark_x = 54741018,
  last_mark_y = 54741018,
  window_end_pos = 0,
  window_end_vpos = 224,
  window_end_valid = 54741018,
  update_mode_line = 54741042,
  start_at_line_beg = 54741042,
  display_table = 54741018,
  dedicated = 54741018,
  base_line_number = 25244,
  base_line_pos = 2486108,
  region_showing = 54741018,
  column_number_displayed = 54741018,
  redisplay_end_trigger = 54741018,
  combination_limit = 54741018,
  prev_buffers = 94427926,
  next_buffers = 54741018,
  window_parameters = 94427958,
  current_matrix = 0x3714f80,
  desired_matrix = 0x3714000,
  nrows_scale_factor = 1,
  ncols_scale_factor = 1,
  last_cursor = {
    x = 11,
    y = 56,
    hpos = 11,
    vpos = 56
  },
  cursor = {
    x = 122,
    y = 56,
    hpos = 122,
    vpos = -1
  },
  phys_cursor = {
    x = 0,
    y = 0,
    hpos = 0,
    vpos = 0
  },
  phys_cursor_type = -1,
  phys_cursor_width = -1,
  phys_cursor_ascent = 0,
  phys_cursor_height = 0,
  phys_cursor_on_p = 0,
  cursor_off_p = 0,
  last_cursor_off_p = 0,
  must_be_updated_p = 0,
  pseudo_window_p = 0,
  frozen_window_start_p = 0,
  vscroll = 0,
  window_end_bytepos = 0
}
(gdb)

(gdb) pmtxrows it->w->current_matrix
0: edges=(628376,628438),r2l=0,cont=0,trunc=(0,0),at_zv=0
1: edges=(628438,628457),r2l=0,cont=0,trunc=(0,0),at_zv=0
2: edges=(628457,628483),r2l=0,cont=0,trunc=(0,0),at_zv=0
3: edges=(628483,628524),r2l=0,cont=0,trunc=(0,0),at_zv=0
4: edges=(628524,628679),r2l=0,cont=0,trunc=(0,1),at_zv=0
5: edges=(628679,628743),r2l=0,cont=0,trunc=(0,0),at_zv=0
6: edges=(628743,628812),r2l=0,cont=0,trunc=(0,0),at_zv=0
7: edges=(628812,628853),r2l=0,cont=0,trunc=(0,0),at_zv=0
8: edges=(628853,629015),r2l=0,cont=0,trunc=(0,1),at_zv=0
9: edges=(629015,629082),r2l=0,cont=0,trunc=(0,0),at_zv=0
10: edges=(629082,629154),r2l=0,cont=0,trunc=(0,0),at_zv=0
11: edges=(629154,629195),r2l=0,cont=0,trunc=(0,0),at_zv=0
12: edges=(629195,629364),r2l=0,cont=0,trunc=(0,1),at_zv=0
13: edges=(629364,629435),r2l=0,cont=0,trunc=(0,0),at_zv=0
14: edges=(629435,629511),r2l=0,cont=0,trunc=(0,0),at_zv=0
15: edges=(629511,629578),r2l=0,cont=0,trunc=(0,0),at_zv=0
16: edges=(629578,629596),r2l=0,cont=0,trunc=(0,0),at_zv=0
17: edges=(629596,629627),r2l=0,cont=0,trunc=(0,0),at_zv=0
18: edges=(629627,629668),r2l=0,cont=0,trunc=(0,0),at_zv=0
19: edges=(629668,629834),r2l=0,cont=0,trunc=(0,1),at_zv=0
20: edges=(629834,629902),r2l=0,cont=0,trunc=(0,0),at_zv=0
21: edges=(629902,629975),r2l=0,cont=0,trunc=(0,0),at_zv=0
22: edges=(629975,630016),r2l=0,cont=0,trunc=(0,0),at_zv=0
23: edges=(630016,630178),r2l=0,cont=0,trunc=(0,1),at_zv=0
24: edges=(630178,630245),r2l=0,cont=0,trunc=(0,0),at_zv=0
25: edges=(630245,630317),r2l=0,cont=0,trunc=(0,0),at_zv=0
26: edges=(630317,630395),r2l=0,cont=0,trunc=(0,0),at_zv=0
27: edges=(630395,630413),r2l=0,cont=0,trunc=(0,0),at_zv=0
28: edges=(630413,630455),r2l=0,cont=0,trunc=(0,0),at_zv=0
29: edges=(630455,630496),r2l=0,cont=0,trunc=(0,0),at_zv=0
30: edges=(630496,630679),r2l=0,cont=0,trunc=(0,1),at_zv=0
31: edges=(630679,630758),r2l=0,cont=0,trunc=(0,0),at_zv=0
32: edges=(630758,630842),r2l=0,cont=0,trunc=(0,0),at_zv=0
33: edges=(630842,630883),r2l=0,cont=0,trunc=(0,0),at_zv=0
34: edges=(630883,631041),r2l=0,cont=0,trunc=(0,1),at_zv=0
35: edges=(631041,631106),r2l=0,cont=0,trunc=(0,0),at_zv=0
36: edges=(631106,631176),r2l=0,cont=0,trunc=(0,0),at_zv=0
37: edges=(631176,631217),r2l=0,cont=0,trunc=(0,0),at_zv=0
38: edges=(631217,631362),r2l=0,cont=0,trunc=(0,1),at_zv=0
39: edges=(631362,631425),r2l=0,cont=0,trunc=(0,0),at_zv=0
40: edges=(631425,631493),r2l=0,cont=0,trunc=(0,0),at_zv=0
41: edges=(631493,631534),r2l=0,cont=0,trunc=(0,0),at_zv=0
42: edges=(631534,631693),r2l=0,cont=0,trunc=(0,1),at_zv=0
43: edges=(631693,631734),r2l=0,cont=0,trunc=(0,0),at_zv=0
44: edges=(631734,631888),r2l=0,cont=0,trunc=(0,1),at_zv=0
45: edges=(631888,631958),r2l=0,cont=0,trunc=(0,0),at_zv=0
46: edges=(631958,632033),r2l=0,cont=0,trunc=(0,0),at_zv=0
47: edges=(632033,632074),r2l=0,cont=0,trunc=(0,0),at_zv=0
48: edges=(632074,632232),r2l=0,cont=0,trunc=(0,1),at_zv=0
49: edges=(632232,632306),r2l=0,cont=0,trunc=(0,0),at_zv=0
50: edges=(632306,632385),r2l=0,cont=0,trunc=(0,0),at_zv=0
51: edges=(632385,632426),r2l=0,cont=0,trunc=(0,0),at_zv=0
52: edges=(632426,632564),r2l=0,cont=0,trunc=(0,1),at_zv=0
53: edges=(632564,632613),r2l=0,cont=0,trunc=(0,0),at_zv=0
54: edges=(632613,632662),r2l=0,cont=0,trunc=(0,0),at_zv=0
55: edges=(632662,632703),r2l=0,cont=0,trunc=(0,0),at_zv=0
56: edges=(632703,632714),r2l=0,cont=0,trunc=(0,0),at_zv=1

-----Original Message-----
From: Eli Zaretskii [mailto:[email-masked]] 
Sent: Sunday, February 12, 2012 8:40 AM
To: Joseph Jones
Cc: [email-masked]
Subject: Re: bug#9723: 24.0.50; Emacs Clipboard crash

> From: Joseph Jones <[email-masked]>
> CC: "[email-masked]" <[email-masked]>
> Date: Sat, 11 Feb 2012 17:50:41 -0800
> 
> *** Open Emacs in an NT cmd shell prompt. In Emacs, open up a cmd shell prompt. Start something that will cause a huge amount of text and scrolling. I run a build in the command prompt and then just wait for it to crash.

Any estimation of the length of output that is needed to have a crash?
Also, would just "type LARGE_SOME_FILE" do, for example?

> > #0  0x01259f9f in append_glyph (it=0x82ad3c) at term.c:1491
> 
> In this frame #0 of thread 1, what do the following commands produce?
> 
>   (gdb) print glyph
>   (gdb) print i
>   (gdb) print it->area
>   (gdb) print it->glyph_row->used[it->area]
> 
> ***
> (gdb) f 0
> #0  0x01259f9f in append_glyph (it=0x82acec) at term.c:1491
> 1491    in term.c
> (gdb) print glyph
> $1 = (struct glyph *) 0x0
> (gdb) print i
> $2 = 0
> (gdb) print it->area
> $3 = LEFT_MARGIN_AREA

This doesn't make any sense.  Maybe again some snafu with frame dimensions?

Please type "source .gdbinit" (unless you started GDB from a directory where that file lives), and then go to this frame:

  #4  0x012125ec in display_line (it=0x82c890) at xdisp.c:19369

and type these commands:

  (gdb) pit
  (gdb) print *it->w
  (gdb) pmtxrows it->w->current_matrix