bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Emacs 21.2.1 (RH7.3) abort in xdisp.c (redisplay_window)


From: Edward J. Huff
Subject: Emacs 21.2.1 (RH7.3) abort in xdisp.c (redisplay_window)
Date: Wed, 19 Jun 2002 06:05:39 -0400

Emacs 21.2.1 (RH7.3) abort in xdisp.c (redisplay_window)

This is RedHat 7.3 (newly installed, install everything, and with
updates as of June 6, on a P4).  This does not crash emacs 20.7.1 on
RedHat 7.2 on an AMD-K6-2.

Here is a short list of operations which causes emacs 21.2.1 to
abort().  Basically, with DISPLAY undefined, (e.g. on a character cell
console) create two small buffers, run ediff on them, and with the
cursor in the one-line ediff control buffer, type

   C-h i SPC

This also happens if you simply start emacs, split the *scratch*
buffer into two windows, and type C-x ^ until the bottom window
has only one line, switch to that window, and enter C-h i SPC.

If you make the window two lines tall, then C-h i SPC works normally:
the first line is the info header line, and the second line is text
from the buffer.  If you switch to the other buffer, enter C-x ^,
switch back and press SPC, emacs aborts.

To get better debug info, I rebuilt emacs from the SRPM with -g and
without -O2, ran it in one virtual console, and got to the point where
the abort() would occur upon pressing SPC.  Then I attached to it
under gdb on another vc.  I put a breakpoint at xdisp.c
(redisplay_window), and entered the SPC on the first vc.  

We get to this code in xdisp.c with w->cursor.vpos == -1 and
w->frozen_window_start_p == 0.  window_height turns
out to be zero.  

      if (w->cursor.vpos < 0 && !w->frozen_window_start_p)
        {
          /* If point does not appear, try to move point so it does
             appear. The desired matrix has been built above, so we
             can use it here.  */
          int window_height;
          struct glyph_row *row;

          window_height = window_box_height (w) / 2;
          row = MATRIX_FIRST_TEXT_ROW (w->desired_matrix);
          while (MATRIX_ROW_BOTTOM_Y (row) < window_height)
            ++row;

          TEMP_SET_PT_BOTH (MATRIX_ROW_START_CHARPOS (row),
                            MATRIX_ROW_START_BYTEPOS (row));

TEMP_SET_PT_BOTH goes to
temp_set_point_both (buffer=0x84e7b70, charpos=0, bytepos=0)
at intervals.c:1846 where charpos turns out to be less than
BUF_BEGV (buffer) since the *info* buffer is narrowed.

  if (charpos > BUF_ZV (buffer) || charpos < BUF_BEGV (buffer))
    abort ();

[root@deck root]# cd /usr/src/redhat/BUILD/emacs-21.2/src/
[root@deck src]# gdb /var/tmp/emacs-21.2-root/usr/bin/emacs 6885
GNU gdb Red Hat Linux (5.1.90CVS-5)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...
Attaching to program: /var/tmp/emacs-21.2-root/usr/bin/emacs, process 6885
Reading symbols from /usr/X11R6/lib/libXaw3d.so.7...done.
[...]
0x420e187e in select () from /lib/i686/libc.so.6
Environment variable "DISPLAY" not defined.
TERM = dumb
Breakpoint 1 at 0x8106366: file emacs.c, line 387.
Breakpoint 2 at 0x80e0569: file xterm.c, line 12018.
(gdb) br redisplay_window
Breakpoint 3 at 0x807419a: file xdisp.c, line 9932.
(gdb) contin
Continuing.

Breakpoint 3, redisplay_window (window=1213440280, just_this_one_p=1)
    at xdisp.c:9932
9932      struct window *w = XWINDOW (window);
(gdb) s
9933      struct frame *f = XFRAME (w->frame);
(gdb) 
9934      struct buffer *buffer = XBUFFER (w->buffer);
(gdb) 
9935      struct buffer *old = current_buffer;
(gdb) 
9941      int current_matrix_up_to_date_p = 0;
(gdb) 
9942      int temp_scroll_step = 0;
(gdb) 
9943      int count = BINDING_STACK_SIZE ();
(gdb) 
9946      SET_TEXT_POS (lpoint, PT, PT_BYTE);
(gdb) 
9947      opoint = lpoint;
(gdb) 
9955      specbind (Qinhibit_point_motion_hooks, Qt);
(gdb) print w
$1 = (struct window *) 0x853a118
(gdb) print *w
$2 = {
  size = 536875074, 
  vec_next = 0x8404590, 
  frame = 1211141840, 
  mini_p = 405737916, 
  next = 405737916, 
  prev = 1212876656, 
  hchild = 405737916, 
  vchild = 405737916, 
  parent = 1212171664, 
  left = 0, 
  top = 22, 
  height = 2, 
  width = 80, 
  buffer = 1213102960, 
  start = 676507612, 
  pointm = 676507592, 
  force_start = 405737964, 
  optional_new_start = 405737916, 
  hscroll = 0, 
  min_hscroll = 0, 
  use_time = 56, 
  sequence_number = 6, 
  temslot = 405737916, 
  last_modified = 0, 
  last_overlay_modified = 0, 
  last_point = 275, 
  last_had_star = 405737916, 
  vertical_scroll_bar = 405737916, 
  left_margin_width = 405737916, 
  right_margin_width = 405737916, 
  last_mark_x = 405737916, 
  last_mark_y = 405737916, 
  window_end_pos = 0, 
  window_end_vpos = 0, 
  window_end_valid = 1213102960, 
  update_mode_line = 405737964, 
  start_at_line_beg = 405737964, 
  display_table = 405737916, 
  dedicated = 405737916, 
  base_line_number = 1, 
  base_line_pos = 275, 
  region_showing = 405737916, 
  column_number_displayed = 405737916, 
  redisplay_end_trigger = 405737916, 
  too_small_ok = 405737916, 
  orig_height = 405737916, 
  orig_top = 405737916, 
  current_matrix = 0x853a4a0, 
  desired_matrix = 0x853a250, 
  last_cursor = {
    x = 80, 
    y = 0, 
    hpos = 80, 
    vpos = 1
  }, 
  cursor = {
    x = 80, 
    y = 0, 
    hpos = 80, 
    vpos = 1
  }, 
  phys_cursor = {
    x = 0, 
    y = 0, 
    hpos = 0, 
    vpos = 0
  }, 
  phys_cursor_type = -1, 
  phys_cursor_ascent = 405737916, 
  phys_cursor_height = 405737916, 
  phys_cursor_on_p = 0, 
  cursor_off_p = 0, 
  last_cursor_off_p = 0, 
  must_be_updated_p = 0, 
  pseudo_window_p = 0, 
  vscroll = 0, 
  window_end_bytepos = 0, 
  frozen_window_start_p = 0, 
  height_fixed_p = 0
}
(gdb) watch w->cursor.vpos
Hardware watchpoint 4: w->cursor.vpos
(gdb) contin
Continuing.
Hardware watchpoint 4: w->cursor.vpos

Old value = 1
New value = -1
try_window (window=1213440280, pos={charpos = 276, bytepos = 276})
    at xdisp.c:10599
10599     overlay_arrow_seen = 0;
(gdb) finish
Run till exit from #0  try_window (window=1213440280, pos=
      {charpos = 276, bytepos = 276}) at xdisp.c:10599
0x080748d5 in redisplay_window (window=1213440280, just_this_one_p=1)
    at xdisp.c:10152
10152         if (!try_window (window, startp))
Value returned is $3 = 1
(gdb) s
10159         if (w->cursor.vpos < 0 && !w->frozen_window_start_p)
(gdb) print w->frozen_window_start_p
$4 = 0
(gdb) s
10167             window_height = window_box_height (w) / 2;
(gdb) s
window_box_height (w=0x853a118) at xdisp.c:865
865       struct frame *f = XFRAME (w->frame);
(gdb) 
866       int height = XFASTINT (w->height) * CANON_Y_UNIT (f);
(gdb) 
876       if (WINDOW_WANTS_MODELINE_P (w))
(gdb) 
879             = (w->current_matrix && w->current_matrix->rows
(gdb) 
882           if (ml_row && ml_row->mode_line_p)
(gdb) 
883             height -= ml_row->height;
(gdb) 
888       if (WINDOW_WANTS_HEADER_LINE_P (w))
(gdb) 
891             = (w->current_matrix && w->current_matrix->rows
(gdb) 
894           if (hl_row && hl_row->mode_line_p)
(gdb) 
895             height -= hl_row->height;
(gdb) 
900       return height;
(gdb) print height
$5 = 0
(gdb) s
901     }
(gdb) 
redisplay_window (window=1213440280, just_this_one_p=1) at xdisp.c:10168
10168             row = MATRIX_FIRST_TEXT_ROW (w->desired_matrix);
(gdb) print window_height
$6 = 0
(gdb) s
10169             while (MATRIX_ROW_BOTTOM_Y (row) < window_height)
(gdb) print row
$7 = (struct glyph_row *) 0x853a764
(gdb) print *row
$8 = {
  glyphs = {0x84a2260, 0x84a2260, 0x84a28a0, 0x84a28a0}, 
  used = {0, 80, 0}, 
  x = 0, 
  y = 0, 
  pixel_width = 79, 
  ascent = 0, 
  height = 1, 
  phys_ascent = 0, 
  phys_height = 1, 
  visible_height = 1, 
  hash = 207509869, 
  start = {
    pos = {
      charpos = 0, 
      bytepos = 0
    }, 
    overlay_string_index = 0, 
    string_pos = {
      charpos = 0, 
      bytepos = 0
    }, 
    dpvec_index = 0
  }, 
  end = {
    pos = {
      charpos = 0, 
      bytepos = 0
    }, 
    overlay_string_index = 0, 
    string_pos = {
      charpos = 0, 
      bytepos = 0
    }, 
    dpvec_index = 0
  }, 
  enabled_p = 0, 
  inverse_p = 0, 
  truncated_on_left_p = 0, 
  truncated_on_right_p = 0, 
  overlay_arrow_p = 0, 
  continued_p = 0, 
  displays_text_p = 0, 
  ends_at_zv_p = 0, 
  fill_line_p = 0, 
  indicate_empty_line_p = 0, 
  contains_overlapping_glyphs_p = 0, 
  full_width_p = 1, 
  mode_line_p = 1, 
  overlapped_p = 0, 
  ends_in_middle_of_char_p = 0, 
  starts_in_middle_of_char_p = 0, 
  overlapping_p = 0, 
  mouse_face_p = 0, 
  ends_in_newline_from_string_p = 0, 
  continuation_lines_width = 0
}
(gdb) print row->glyphs
$9 = {0x84a2260, 0x84a2260, 0x84a28a0, 0x84a28a0}
(gdb) print row->glyphs[0]
$10 = (struct glyph *) 0x84a2260
(gdb) print row->glyphs[0][0]
$11 = {
  charpos = 0, 
  object = 942766380, 
  pixel_width = 1, 
  voffset = 0, 
  type = 0, 
  multibyte_p = 0, 
  left_box_line_p = 0, 
  right_box_line_p = 0, 
  overlaps_vertically_p = 0, 
  padding_p = 0, 
  glyph_not_available_p = 0, 
  face_id = 1, 
  u = {
    ch = 45, 
    cmp_id = 45, 
    img_id = 45, 
    stretch = {
      height = 45, 
      ascent = 0
    }, 
    val = 45
  }
}
(gdb) s
10172             TEMP_SET_PT_BOTH (MATRIX_ROW_START_CHARPOS (row),
(gdb) 
temp_set_point_both (buffer=0x84e7b70, charpos=0, bytepos=0)
    at intervals.c:1846
1846      if (BUF_ZV (buffer) == BUF_ZV_BYTE (buffer)
(gdb) 
1850      if (charpos > bytepos)
(gdb) 
1853      if (charpos > BUF_ZV (buffer) || charpos < BUF_BEGV (buffer))
(gdb) 
1854        abort ();
(gdb) 
------------------------------------------------------------





[ejhuff@deck ejhuff]$ mkdir emacs-bug
[ejhuff@deck ejhuff]$ cd emacs-bug
[ejhuff@deck emacs-bug]$ ulimit -c unlimited
[ejhuff@deck emacs-bug]$ echo test1 > test1
[ejhuff@deck emacs-bug]$ echo test2 > test2
[ejhuff@deck emacs-bug]$ emacs test*

ESC ` t 1 T CR CR C-h i SPC

[ejhuff@deck emacs-bug]$ ls -l
[...]
-rw-------    1 ejhuff   ejhuff    4284416 Jun 18 20:48 core.6055
-rw-rw-r--    1 ejhuff   ejhuff          6 Jun 18 20:45 test1
-rw-rw-r--    1 ejhuff   ejhuff          6 Jun 18 20:45 test2

[ejhuff@deck emacs-bug]$ emacs --version
GNU Emacs 21.2.1
Copyright (C) 2001 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
[ejhuff@deck emacs-bug]$ 


[ejhuff@deck emacs-bug]$ rpm -qi -f /usr/bin/emacs
Name        : emacs                        Relocations: (not relocateable)
Version     : 21.2                              Vendor: Red Hat, Inc.
Release     : 2                             Build Date: Mon 08 Apr 2002 
06:58:02 PM EDT
Install date: Mon 17 Jun 2002 03:56:38 PM EDT      Build Host: 
porky.devel.redhat.com
Group       : Applications/Editors          Source RPM: emacs-21.2-2.src.rpm
Size        : 31466318                         License: GPL
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL         : http://www.gnu.org/software/emacs/
Summary     : The GNU Emacs text editor.
Description :
[...]

Current directory is /home/ejhuff/emacs-bug/
GNU gdb Red Hat Linux (5.1.90CVS-5)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux".
(gdb) file /usr/bin/emacs
Reading symbols from /usr/bin/emacs...done.
(gdb) core-file core.6055
Core was generated by `emacs test1 test2'.
Program terminated with signal 6, Aborted.
Reading symbols from /usr/X11R6/lib/libXaw3d.so.7...done.
Loaded symbols for /usr/X11R6/lib/libXaw3d.so.7
Reading symbols from /usr/X11R6/lib/libXmu.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXmu.so.6
Reading symbols from /usr/X11R6/lib/libXt.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXt.so.6
Reading symbols from /usr/X11R6/lib/libSM.so.6...done.
Loaded symbols for /usr/X11R6/lib/libSM.so.6
Reading symbols from /usr/X11R6/lib/libICE.so.6...done.
Loaded symbols for /usr/X11R6/lib/libICE.so.6
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXext.so.6
Reading symbols from /usr/lib/libtiff.so.3...done.
Loaded symbols for /usr/lib/libtiff.so.3
Reading symbols from /usr/lib/libjpeg.so.62...done.
Loaded symbols for /usr/lib/libjpeg.so.62
Reading symbols from /usr/lib/libpng.so.2...done.
Loaded symbols for /usr/lib/libpng.so.2
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/i686/libm.so.6...done.
Loaded symbols for /lib/i686/libm.so.6
Reading symbols from /usr/lib/libungif.so.4...done.
Loaded symbols for /usr/lib/libungif.so.4
Reading symbols from /usr/X11R6/lib/libXpm.so.4...done.
Loaded symbols for /usr/X11R6/lib/libXpm.so.4
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.6
Reading symbols from /usr/lib/libncurses.so.5...done.
Loaded symbols for /usr/lib/libncurses.so.5
Reading symbols from /lib/i686/libc.so.6...done.
Loaded symbols for /lib/i686/libc.so.6
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
#0  0x42029241 in kill () from /lib/i686/libc.so.6
(gdb) info stack
#0  0x42029241 in kill () from /lib/i686/libc.so.6
#1  0x080d62d4 in fatal_error_signal ()
#2  <signal handler called>
#3  0x42029241 in kill () from /lib/i686/libc.so.6
#4  0x080d62f8 in abort ()
#5  0x081684ae in temp_set_point_both ()
#6  0x0806a916 in redisplay_window ()
#7  0x08067fb3 in redisplay_internal ()
#8  0x08066ded in redisplay ()
#9  0x080da3b5 in read_char ()
#10 0x080e123f in read_key_sequence ()
#11 0x080d8e74 in command_loop_1 ()
#12 0x0812e13c in internal_condition_case ()
#13 0x080d8a18 in command_loop_2 ()
#14 0x0812dcb6 in internal_catch ()
#15 0x080d8994 in command_loop ()
#16 0x080d84dd in recursive_edit_1 ()
#17 0x080d860f in Frecursive_edit ()
#18 0x080d74bb in main ()
#19 0x42017499 in __libc_start_main () from /lib/i686/libc.so.6
(gdb) up
#1  0x080d62d4 in fatal_error_signal ()
(gdb) up
#2  <signal handler called>
(gdb) up
#3  0x42029241 in kill () from /lib/i686/libc.so.6
(gdb) up
#4  0x080d62f8 in abort ()
(gdb) up
#5  0x081684ae in temp_set_point_both ()
(gdb) info locals
No symbol table info available.
(gdb) info registers
eax            0x0      0
ecx            0x6      6
edx            0xbfffe684       -1073748348
ebx            0x17a7   6055
esp            0xbfffe670       0xbfffe670
ebp            0xbfffeaa8       0xbfffeaa8
esi            0x84e72d8        139358936
edi            0x84fc9b0        139446704
eip            0x81684ae        0x81684ae
eflags         0x207    519
cs             0x23     35
ss             0x2b     43
ds             0x2b     43
es             0x2b     43
fs             0x2b     43
gs             0x2b     43
fctrl          0x6b     107
fstat          0xe0012  917522
ftag           0x1af89  110473
fiseg          0x823bc00        136559616
fioff          0x18     24
foseg          0x110011 1114129
fooff          0x1af90  110480
fop            0x8064810        134629392
xmm0           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {1.32282575e-42, 
    1.28572217e-39, 1.54842079e-40, 5.04103038e-34}}
xmm1           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {5.60519386e-45, 
    1.92856924e-39, 1.54865901e-40, 4.29246456e-34}}
xmm2           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {1.51340234e-43, 
    1.28572217e-39, 1.54891124e-40, 5.03118378e-34}}
xmm3           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {5.60519386e-45, 
    1.92856924e-39, 1.5490794e-40, 4.59602312e-34}}
xmm4           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {3.36311631e-44, 
    1.56122726e-39, 1.54934565e-40, 4.02841179e-34}}
xmm5           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {5.88545355e-43, 
    1.28572217e-39, 1.54954183e-40, 4.14772447e-34}}
xmm6           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {6.47399891e-43, 
    1.28572217e-39, 1.54973801e-40, 5.03702452e-34}}
xmm7           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {5.60519386e-45, 
    1.92856924e-39, 1.5500463e-40, 5.03118562e-34}}
mxcsr          0x4      4
orig_eax       0x25     37
(gdb) up
#6  0x0806a916 in redisplay_window ()
(gdb) info registers
eax            0x0      0
ecx            0x6      6
edx            0xbfffe684       -1073748348
ebx            0x8375da4        137846180
esp            0xbfffe670       0xbfffe670
ebp            0xbfffed38       0xbfffed38
esi            0x84e72d8        139358936
edi            0x84fc9b0        139446704
eip            0x806a916        0x806a916
eflags         0x207    519
cs             0x23     35
ss             0x2b     43
ds             0x2b     43
es             0x2b     43
fs             0x2b     43
gs             0x2b     43
fctrl          0x6b     107
fstat          0xe0012  917522
ftag           0x1af89  110473
fiseg          0x823bc00        136559616
fioff          0x18     24
foseg          0x110011 1114129
fooff          0x1af90  110480
fop            0x8064810        134629392
xmm0           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {1.32282575e-42, 
    1.28572217e-39, 1.54842079e-40, 5.04103038e-34}}
xmm1           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {5.60519386e-45, 
    1.92856924e-39, 1.54865901e-40, 4.29246456e-34}}
xmm2           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {1.51340234e-43, 
    1.28572217e-39, 1.54891124e-40, 5.03118378e-34}}
xmm3           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {5.60519386e-45, 
    1.92856924e-39, 1.5490794e-40, 4.59602312e-34}}
xmm4           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {3.36311631e-44, 
    1.56122726e-39, 1.54934565e-40, 4.02841179e-34}}
xmm5           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {5.88545355e-43, 
    1.28572217e-39, 1.54954183e-40, 4.14772447e-34}}
xmm6           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {6.47399891e-43, 
    1.28572217e-39, 1.54973801e-40, 5.03702452e-34}}
xmm7           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {5.60519386e-45, 
    1.92856924e-39, 1.5500463e-40, 5.03118562e-34}}
mxcsr          0x4      4
orig_eax       0x25     37
(gdb) 

Current directory is /usr/src/redhat/BUILD/emacs-21.2/src/
GNU gdb Red Hat Linux (5.1.90CVS-5)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...
Attaching to program: /var/tmp/emacs-21.2-root/usr/bin/emacs, process 17335
Reading symbols from /usr/X11R6/lib/libXaw3d.so.7...done.
Loaded symbols for /usr/X11R6/lib/libXaw3d.so.7
Reading symbols from /usr/X11R6/lib/libXmu.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXmu.so.6
Reading symbols from /usr/X11R6/lib/libXt.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXt.so.6
Reading symbols from /usr/X11R6/lib/libSM.so.6...done.
Loaded symbols for /usr/X11R6/lib/libSM.so.6
Reading symbols from /usr/X11R6/lib/libICE.so.6...done.
Loaded symbols for /usr/X11R6/lib/libICE.so.6
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXext.so.6
Reading symbols from /usr/lib/libtiff.so.3...done.
Loaded symbols for /usr/lib/libtiff.so.3
Reading symbols from /usr/lib/libjpeg.so.62...done.
Loaded symbols for /usr/lib/libjpeg.so.62
Reading symbols from /usr/lib/libpng.so.2...done.
Loaded symbols for /usr/lib/libpng.so.2
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/i686/libm.so.6...done.
Loaded symbols for /lib/i686/libm.so.6
Reading symbols from /usr/lib/libungif.so.4...done.
Loaded symbols for /usr/lib/libungif.so.4
Reading symbols from /usr/X11R6/lib/libXpm.so.4...done.
Loaded symbols for /usr/X11R6/lib/libXpm.so.4
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.6
Reading symbols from /usr/lib/libncurses.so.5...done.
Loaded symbols for /usr/lib/libncurses.so.5
Reading symbols from /lib/i686/libc.so.6...done.
Loaded symbols for /lib/i686/libc.so.6
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
0x420e187e in select () from /lib/i686/libc.so.6
Environment variable "DISPLAY" not defined.
TERM = dumb
Breakpoint 1 at 0x80d62e6: file emacs.c, line 387.
Breakpoint 2 at 0x80ba9d5: file xterm.c, line 12018.
(gdb) contin
Continuing.

Breakpoint 1, abort () at emacs.c:387
(gdb) info stack
#0  abort () at emacs.c:387
#1  0x081684ae in temp_set_point_both (buffer=0x83712f8, charpos=0, bytepos=0)
    at intervals.c:1854
#2  0x0806a916 in redisplay_window (window=1212909728, just_this_one_p=1)
    at xdisp.c:10172
#3  0x08067fb3 in redisplay_internal (preserve_echo_area=0) at xdisp.c:8888
#4  0x08066ded in redisplay () at xdisp.c:8273
#5  0x080da3b5 in read_char (commandflag=1, nmaps=2, maps=0xbffff370, 
    prev_event=405254588, used_mouse_menu=0xbffff3a8) at keyboard.c:2272
#6  0x080e123f in read_key_sequence (keybuf=0xbffff4d0, bufsize=30, 
    prompt=405254588, dont_downcase_last=0, can_return_switch_frame=1, 
    fix_current_buffer=1) at keyboard.c:8180
#7  0x080d8e74 in command_loop_1 () at keyboard.c:1440
#8  0x0812e13c in internal_condition_case (bfun=0x80d8b60 <command_loop_1>, 
    handlers=405350908, hfun=0x80d8740 <cmd_error>) at eval.c:1267
#9  0x080d8a18 in command_loop_2 () at keyboard.c:1245
#10 0x0812dcb6 in internal_catch (tag=405312516, 
    func=0x80d89f0 <command_loop_2>, arg=405254588) at eval.c:1030
#11 0x080d8994 in command_loop () at keyboard.c:1224
#12 0x080d84dd in recursive_edit_1 () at keyboard.c:950
#13 0x080d860f in Frecursive_edit () at keyboard.c:1006
#14 0x080d74bb in main (argc=1, argv=0xbffffa94, envp=0xbffffa9c)
    at emacs.c:1547
#15 0x42017499 in __libc_start_main () from /lib/i686/libc.so.6
(gdb) up
#1  0x081684ae in temp_set_point_both (buffer=0x83712f8, charpos=0, bytepos=0)
    at intervals.c:1854
(gdb) print buffer
$1 = (struct buffer *) 0x83712f8
(gdb) print *buffer
$2 = {
  size = 537002092, 
  next = 0x84a1930, 
  own_text = {
    beg = 0x8523088 "$Id: dir,v 1.2 1996/09/24 18:43:01 karl Exp $\nThis is the 
file .../info/dir, which contains the topmost node of the\nInfo hierarchy.  The 
first time you invoke Info you start off\nlooking at that node, "..., 
    gpt = 20527, 
    z = 20527, 
    gpt_byte = 20527, 
    z_byte = 20527, 
    gap_size = 2000, 
    modiff = 351, 
    save_modiff = 351, 
    overlay_modiff = 1, 
    beg_unchanged = 20526, 
    end_unchanged = 0, 
    unchanged_modified = 351, 
    overlay_unchanged_modified = 1, 
    intervals = 0x852ba40, 
    markers = 673960792
  }, 
  text = 0x8371300, 
  pt = 276, 
  pt_byte = 276, 
  begv = 275, 
  begv_byte = 275, 
  zv = 20527, 
  zv_byte = 20527, 
  base_buffer = 0x0, 
  local_flags = 
"\0\0\0\0\001\0\0\0\001\0\0\0\0\001\0\001\0\0\0\0\0\0\0\0\0\001\0\0\030\0\0\0\336\0\0\0\220\0\0\0
 \0\0\0\034\340&\bh\025", 
  modtime = 0, 
  auto_save_modified = 0, 
  auto_save_failure_time = -1, 
  last_window_start = 1, 
  clip_changed = 0, 
  newline_cache = 0x0, 
  width_run_cache = 0x0, 
  prevent_redisplay_optimizations_p = 0, 
  undo_list = 405254636, 
  name = 944874668, 
  filename = 405254588, 
  directory = 944909828, 
  backed_up = 405254588, 
  save_length = 0, 
  auto_save_file_name = 405254588, 
  read_only = 405254636, 
  mark = 676030612, 
  local_var_alist = 1481834852, 
  major_mode = 407606604, 
  mode_name = 944858924, 
  mode_line_format = 1479391172, 
  header_line_format = 407616196, 
  keymap = 1481589612, 
  abbrev_table = 1212147104, 
  syntax_table = 1212147384, 
  category_table = 1210603176, 
  case_fold_search = 405254636, 
  tab_width = 8, 
  fill_column = 70, 
  left_margin = 0, 
  auto_fill_function = 405254588, 
  buffer_file_type = 405254588, 
  downcase_table = 1210605272, 
  upcase_table = 1211658680, 
  case_canon_table = 1211755784, 
  case_eqv_table = 1211770760, 
  truncate_lines = 405254588, 
  ctl_arrow = 405254636, 
  direction_reversed = 405254588, 
  selective_display = 405254588, 
  selective_display_ellipses = 405254636, 
  minor_modes = 405254588, 
  overwrite_mode = 405254588, 
  abbrev_mode = 405254588, 
  display_table = 405254588, 
  mark_active = 405254636, 
  overlays_before = 405254588, 
  overlays_after = 405254588, 
  overlay_center = 275, 
  enable_multibyte_characters = 405254636, 
  buffer_file_coding_system = 405795596, 
  file_format = 405254588, 
  cache_long_line_scans = 405254588, 
  width_table = 405254588, 
  pt_marker = 405254588, 
  begv_marker = 405254588, 
  zv_marker = 405254588, 
  point_before_scroll = 405254588, 
  file_truename = 405254588, 
  invisibility_spec = 405254636, 
  last_selected_window = 1212909728, 
  display_count = 1, 
  left_margin_width = 0, 
  right_margin_width = 0, 
  indicate_empty_lines = 405254588, 
  display_time = 1481470468, 
  scroll_up_aggressively = 405254588, 
  scroll_down_aggressively = 405254588, 
  cursor_type = 405254636, 
  extra_line_spacing = 405254588
}
(gdb) print buffer->zv
$3 = 20527
(gdb) print charpos
$4 = 0
(gdb) print buffer->begv
$5 = 275
(gdb) up
#2  0x0806a916 in redisplay_window (window=1212909728, just_this_one_p=1)
    at xdisp.c:10172
(gdb) info locals
window_height = 137827064
row = (struct glyph_row *) 0x84e69d4
w = (struct window *) 0x84b88a0
f = (struct frame *) 0x8292ed0
buffer = (struct buffer *) 0x83712f8
old = (struct buffer *) 0x83712f8
lpoint = {
  charpos = 276, 
  bytepos = 276
}
opoint = {
  charpos = 276, 
  bytepos = 276
}
startp = {
  charpos = 276, 
  bytepos = 276
}
update_mode_line = 1
tem = 0
it = {
  window = 0, 
  w = 0x0, 
  f = 0x0, 
  method = 0, 
  stop_charpos = 0, 
  end_charpos = 0, 
  s = 0x0, 
  string_nchars = 0, 
  region_beg_charpos = 0, 
  region_end_charpos = 0, 
  redisplay_end_trigger_charpos = 0, 
  multibyte_p = 0, 
  header_line_p = 0, 
  string_from_display_prop_p = 0, 
  dp = 0x0, 
  dpvec = 0x0, 
  dpend = 0x0, 
  dpvec_char_len = 0, 
  saved_face_id = 0, 
  ctl_chars = {0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 4, 0, 8, 0, 0, 0}, 
  current = {
    pos = {
      charpos = 0, 
      bytepos = 0
    }, 
    overlay_string_index = 0, 
    string_pos = {
      charpos = 0, 
      bytepos = 138655368
    }, 
    dpvec_index = 673784504
  }, 
  overlay_strings = {136913592, 136917712, 673784504}, 
  n_overlay_strings = -1073747048, 
  string = 135235405, 
  stack = {{
      stop_charpos = 673784504, 
      face_id = 0, 
      string = 138655360, 
      pos = {
        pos = {
          charpos = 405254588, 
          bytepos = 673830460
        }, 
        overlay_string_index = 138655360, 
        string_pos = {
          charpos = -1073747000, 
          bytepos = 673784504
        }, 
        dpvec_index = 136917304
      }, 
      end_charpos = 1211998336, 
      string_nchars = -1073747000, 
      area = 134628464, 
      multibyte_p = 0, 
      string_from_display_prop_p = 0, 
      display_ellipsis_p = 0, 
      space_width = 1210659536, 
      voffset = 1, 
      font_height = 1
    }, {
      stop_charpos = 138655360, 
      face_id = 405254588, 
      string = 137827064, 
      pos = {
        pos = {
          charpos = 400000, 
          bytepos = 673784544
        }, 
        overlay_string_index = 137827064, 
        string_pos = {
          charpos = -1073746936, 
          bytepos = 135399012
        }, 
        dpvec_index = 405368524
      }, 
      end_charpos = 673784544, 
      string_nchars = 400000, 
      area = 137827064, 
      multibyte_p = 0, 
      string_from_display_prop_p = 0, 
      display_ellipsis_p = 0, 
      space_width = 673784544, 
      voffset = 0, 
      font_height = 1
    }}, 
  sp = 137827064, 
  selective_display_ellipsis_p = 0, 
  ctl_arrow_p = 0, 
  selective = 405368524, 
  what = 405254588, 
  face_id = 405368524, 
  face_box_p = 1, 
  start_of_box_run_p = 1, 
  end_of_box_run_p = 0, 
  overlay_strings_at_end_processed_p = 0, 
  glyph_not_available_p = 0, 
  starts_in_middle_of_char_p = 0, 
  face_before_selective_p = 0, 
  base_face_id = -1073746856, 
  c = 135465361, 
  len = 405368524, 
  cmp_id = 400000, 
  cmp_len = 0, 
  char_to_display = 1, 
  image_id = 4, 
  space_width = 405254588, 
  voffset = 0, 
  font_height = 0, 
  object = 673784544, 
  position = {
    charpos = 400000, 
    bytepos = 1
  }, 
  truncate_lines_p = 1, 
  tab_width = 0, 
  truncation_pixel_width = 12600, 
  continuation_pixel_width = 2089, 
  first_visible_x = 0, 
  last_visible_x = -1073746808, 
  last_visible_y = 405254588, 
  extra_line_spacing = 0, 
  glyph_row = 0x0, 
  area = 3221220488, 
  nglyphs = 134629060, 
  pixel_width = 3, 
  ascent = 405254588, 
  descent = 0, 
  max_ascent = 134628961, 
  max_descent = 136916688, 
  phys_ascent = 1, 
  phys_descent = 3, 
  max_phys_ascent = 136917304, 
  max_phys_descent = 136916688, 
  current_x = 1210659128, 
  continuation_lines_width = -1073746760, 
  current_y = 134632204, 
  vpos = 136917304, 
  hpos = 137827064
}
current_matrix_up_to_date_p = 0
temp_scroll_step = 0
rc = 0
(gdb) up
#3  0x08067fb3 in redisplay_internal (preserve_echo_area=0) at xdisp.c:8888
(gdb) down
#2  0x0806a916 in redisplay_window (window=1212909728, just_this_one_p=1)
    at xdisp.c:10172
(gdb) br redisplay_window
Breakpoint 3 at 0x8069ee3: file xdisp.c, line 9942.
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y

Starting program: /var/tmp/emacs-21.2-root/usr/bin/emacs -geometry 80x40+0+0
tty5: No such file or directory.

Program exited with code 01.
You can't do that without a process to debug.
(gdb) attach 17500
Attaching to program: /var/tmp/emacs-21.2-root/usr/bin/emacs, process 17500
Reading symbols from /usr/X11R6/lib/libXaw3d.so.7...done.
Loaded symbols for /usr/X11R6/lib/libXaw3d.so.7
Reading symbols from /usr/X11R6/lib/libXmu.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXmu.so.6
Reading symbols from /usr/X11R6/lib/libXt.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXt.so.6
Reading symbols from /usr/X11R6/lib/libSM.so.6...done.
Loaded symbols for /usr/X11R6/lib/libSM.so.6
Reading symbols from /usr/X11R6/lib/libICE.so.6...done.
Loaded symbols for /usr/X11R6/lib/libICE.so.6
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXext.so.6
Reading symbols from /usr/lib/libtiff.so.3...done.
Loaded symbols for /usr/lib/libtiff.so.3
Reading symbols from /usr/lib/libjpeg.so.62...done.
Loaded symbols for /usr/lib/libjpeg.so.62
Reading symbols from /usr/lib/libpng.so.2...done.
Loaded symbols for /usr/lib/libpng.so.2
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/i686/libm.so.6...done.
Loaded symbols for /lib/i686/libm.so.6
Reading symbols from /usr/lib/libungif.so.4...done.
Loaded symbols for /usr/lib/libungif.so.4
Reading symbols from /usr/X11R6/lib/libXpm.so.4...done.
Loaded symbols for /usr/X11R6/lib/libXpm.so.4
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.6
Reading symbols from /usr/lib/libncurses.so.5...done.
Loaded symbols for /usr/lib/libncurses.so.5
Reading symbols from /lib/i686/libc.so.6...done.
Loaded symbols for /lib/i686/libc.so.6
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
0x420e187e in select () from /lib/i686/libc.so.6
(gdb) info br
Num Type           Disp Enb Address    What
1   breakpoint     keep y   0x080d62e6 in abort at emacs.c:387
2   breakpoint     keep y   0x080ba9d5 in x_error_quitter at xterm.c:12018
3   breakpoint     keep y   0x08069ee3 in redisplay_window at xdisp.c:9942
(gdb) contin
Continuing.

Breakpoint 3, redisplay_window (window=1210658816, just_this_one_p=0)
    at xdisp.c:9942
(gdb) contin
Continuing.

Breakpoint 3, redisplay_window (window=1211714440, just_this_one_p=0)
    at xdisp.c:9942
(gdb) 
Continuing.

Breakpoint 3, redisplay_window (window=1210659128, just_this_one_p=0)
    at xdisp.c:9942
(gdb) 
Continuing.

Breakpoint 3, redisplay_window (window=1210659128, just_this_one_p=1)
    at xdisp.c:9942
(gdb) 
Continuing.

Breakpoint 3, redisplay_window (window=1210658816, just_this_one_p=0)
    at xdisp.c:9942
(gdb) 
Continuing.

Breakpoint 3, redisplay_window (window=1211714440, just_this_one_p=0)
    at xdisp.c:9942
(gdb) 
Continuing.

Breakpoint 3, redisplay_window (window=1210659128, just_this_one_p=0)
    at xdisp.c:9942
(gdb) 
Continuing.

Breakpoint 3, redisplay_window (window=1210658816, just_this_one_p=0)
    at xdisp.c:9942
(gdb) 
Continuing.

Breakpoint 3, redisplay_window (window=1211714440, just_this_one_p=0)
    at xdisp.c:9942
(gdb) 
Continuing.

Breakpoint 3, redisplay_window (window=1210659128, just_this_one_p=0)
    at xdisp.c:9942
(gdb) 
Continuing.

Breakpoint 3, redisplay_window (window=1210658816, just_this_one_p=0)
    at xdisp.c:9942
(gdb) 
Continuing.

Breakpoint 3, redisplay_window (window=1211714440, just_this_one_p=0)
    at xdisp.c:9942
(gdb) 
Continuing.

Breakpoint 3, redisplay_window (window=1210659128, just_this_one_p=0)
    at xdisp.c:9942
(gdb) 
Continuing.

Breakpoint 3, redisplay_window (window=1210658816, just_this_one_p=0)
    at xdisp.c:9942
(gdb) 
Continuing.

Breakpoint 3, redisplay_window (window=1211714440, just_this_one_p=0)
    at xdisp.c:9942
(gdb) 
Continuing.

Breakpoint 3, redisplay_window (window=1210659128, just_this_one_p=0)
    at xdisp.c:9942
(gdb) 
Continuing.

Breakpoint 3, redisplay_window (window=1211714440, just_this_one_p=0)
    at xdisp.c:9942
(gdb) 
Continuing.

Breakpoint 3, redisplay_window (window=1212922320, just_this_one_p=0)
    at xdisp.c:9942
(gdb) 
Continuing.

Breakpoint 3, redisplay_window (window=1212956832, just_this_one_p=0)
    at xdisp.c:9942
(gdb) 
Continuing.

Breakpoint 3, redisplay_window (window=1210659128, just_this_one_p=0)
    at xdisp.c:9942
(gdb) 
Continuing.

Breakpoint 3, redisplay_window (window=1211714440, just_this_one_p=0)
    at xdisp.c:9942
(gdb) 
Continuing.

Breakpoint 3, redisplay_window (window=1212922320, just_this_one_p=0)
    at xdisp.c:9942
(gdb) 
Continuing.

Breakpoint 3, redisplay_window (window=1212956832, just_this_one_p=0)
    at xdisp.c:9942
(gdb) 
Continuing.

Breakpoint 3, redisplay_window (window=1210659128, just_this_one_p=0)
    at xdisp.c:9942
(gdb) 
Continuing.

Breakpoint 3, redisplay_window (window=1212956832, just_this_one_p=1)
    at xdisp.c:9942
(gdb) info locals
w = (struct window *) 0x1
f = (struct frame *) 0x0
buffer = (struct buffer *) 0x0
old = (struct buffer *) 0x0
lpoint = {
  charpos = 0, 
  bytepos = 405254588
}
opoint = {
  charpos = 0, 
  bytepos = 0
}
startp = {
  charpos = -1, 
  bytepos = 0
}
update_mode_line = -1
tem = 1212956832
it = {
  window = 0, 
  w = 0x0, 
  f = 0x0, 
  method = 0, 
  stop_charpos = 0, 
  end_charpos = 0, 
  s = 0x0, 
  string_nchars = 0, 
  region_beg_charpos = 0, 
  region_end_charpos = 0, 
  redisplay_end_trigger_charpos = 0, 
  multibyte_p = 0, 
  header_line_p = 0, 
  string_from_display_prop_p = 0, 
  dp = 0x0, 
  dpvec = 0x0, 
  dpend = 0x0, 
  dpvec_char_len = 0, 
  saved_face_id = 0, 
  ctl_chars = {0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 4, 0, 8, 0, 0, 0}, 
  current = {
    pos = {
      charpos = 0, 
      bytepos = 0
    }, 
    overlay_string_index = 0, 
    string_pos = {
      charpos = 0, 
      bytepos = 138655368
    }, 
    dpvec_index = 673784504
  }, 
  overlay_strings = {136913592, 136917712, 673784504}, 
  n_overlay_strings = -1073747096, 
  string = 135235405, 
  stack = {{
      stop_charpos = 673784504, 
      face_id = 0, 
      string = 138655360, 
      pos = {
        pos = {
          charpos = 405254588, 
          bytepos = 673830460
        }, 
        overlay_string_index = 138655360, 
        string_pos = {
          charpos = -1073747048, 
          bytepos = 673784504
        }, 
        dpvec_index = 136917304
      }, 
      end_charpos = 1211998336, 
      string_nchars = -1073747048, 
      area = 134628464, 
      multibyte_p = 0, 
      string_from_display_prop_p = 0, 
      display_ellipsis_p = 0, 
      space_width = 1210659536, 
      voffset = 1, 
      font_height = 1
    }, {
      stop_charpos = 138655360, 
      face_id = 405254588, 
      string = 139020848, 
      pos = {
        pos = {
          charpos = 400000, 
          bytepos = 673784544
        }, 
        overlay_string_index = 139020848, 
        string_pos = {
          charpos = -1073746984, 
          bytepos = 135399012
        }, 
        dpvec_index = 405368524
      }, 
      end_charpos = 673784544, 
      string_nchars = 400000, 
      area = 139020848, 
      multibyte_p = 0, 
      string_from_display_prop_p = 0, 
      display_ellipsis_p = 0, 
      space_width = 673784544, 
      voffset = 0, 
      font_height = 1
    }}, 
  sp = 139020848, 
  selective_display_ellipsis_p = 0, 
  ctl_arrow_p = 0, 
  selective = 405368524, 
  what = 405254588, 
  face_id = 405368524, 
  face_box_p = 1, 
  start_of_box_run_p = 1, 
  end_of_box_run_p = 0, 
  overlay_strings_at_end_processed_p = 0, 
  glyph_not_available_p = 0, 
  starts_in_middle_of_char_p = 0, 
  face_before_selective_p = 0, 
  base_face_id = -1073746904, 
  c = 135465361, 
  len = 405368524, 
  cmp_id = 400000, 
  cmp_len = 0, 
  char_to_display = 1, 
  image_id = 4, 
  space_width = 405254588, 
  voffset = 0, 
  font_height = 0, 
  object = 673784544, 
  position = {
    charpos = 400000, 
    bytepos = 1
  }, 
  truncate_lines_p = 1, 
  tab_width = 0, 
  truncation_pixel_width = 12600, 
  continuation_pixel_width = 2089, 
  first_visible_x = 0, 
  last_visible_x = -1073746856, 
  last_visible_y = 405254588, 
  extra_line_spacing = 0, 
  glyph_row = 0x0, 
  area = 3221220440, 
  nglyphs = 134629060, 
  pixel_width = 3, 
  ascent = 405254588, 
  descent = 0, 
  max_ascent = 134628961, 
  max_descent = 136916688, 
  phys_ascent = 1, 
  phys_descent = 3, 
  max_phys_ascent = 136917304, 
  max_phys_descent = 136916688, 
  current_x = 1210659128, 
  continuation_lines_width = -1073746808, 
  current_y = 134632204, 
  vpos = 136917304, 
  hpos = 139020848
}
current_matrix_up_to_date_p = -1
temp_scroll_step = 0
rc = 1212956832
(gdb) s
(gdb) s
(gdb) 
(gdb) info frame
Stack level 0, frame at 0xbfffec88:
 eip = 0x8069ef1 in redisplay_window (xdisp.c:9955); saved eip 0x8067fb3
 called by frame at 0xbffff108
 source language c.
 Arglist at 0xbfffec88, args: window=1212956832, just_this_one_p=1
 Locals at 0xbfffec88, Previous frame's sp is 0x0
 Saved registers:
  ebp at 0xbfffec88, eip at 0xbfffec8c
(gdb) s
(gdb) s
(gdb) s
(gdb) 
(gdb) 
(gdb) 
(gdb) 
(gdb) 
(gdb) 
(gdb) 
(gdb) 
(gdb) 
(gdb) 
(gdb) 
(gdb) 
(gdb) 
(gdb) 
(gdb) info locals
w = (struct window *) 0x84c40a0
f = (struct frame *) 0x8292ed0
buffer = (struct buffer *) 0x8494a30
old = (struct buffer *) 0x8494a30
lpoint = {
  charpos = 276, 
  bytepos = 276
}
opoint = {
  charpos = 276, 
  bytepos = 0
}
startp = {
  charpos = -1, 
  bytepos = 0
}
update_mode_line = -1
tem = 405254636
it = {
  window = 0, 
  w = 0x0, 
  f = 0x0, 
  method = 0, 
  stop_charpos = 0, 
  end_charpos = 0, 
  s = 0x0, 
  string_nchars = 0, 
  region_beg_charpos = 0, 
  region_end_charpos = 0, 
  redisplay_end_trigger_charpos = 0, 
  multibyte_p = 0, 
  header_line_p = 0, 
  string_from_display_prop_p = 0, 
  dp = 0x0, 
  dpvec = 0x0, 
  dpend = 0x0, 
  dpvec_char_len = 0, 
  saved_face_id = 0, 
  ctl_chars = {0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 4, 0, 8, 0, 0, 0}, 
  current = {
    pos = {
      charpos = 0, 
      bytepos = 0
    }, 
    overlay_string_index = 0, 
    string_pos = {
      charpos = 0, 
      bytepos = 138655368
    }, 
    dpvec_index = 673784504
  }, 
  overlay_strings = {136913592, 136917712, 673784504}, 
  n_overlay_strings = -1073747096, 
  string = 135235405, 
  stack = {{
      stop_charpos = 673784504, 
      face_id = 0, 
      string = 138655360, 
      pos = {
        pos = {
          charpos = 405254588, 
          bytepos = 673830460
        }, 
        overlay_string_index = 138655360, 
        string_pos = {
          charpos = -1073747048, 
          bytepos = 673784504
        }, 
        dpvec_index = 136917304
      }, 
      end_charpos = 1211998336, 
      string_nchars = -1073747048, 
      area = 134628464, 
      multibyte_p = 0, 
      string_from_display_prop_p = 0, 
      display_ellipsis_p = 0, 
      space_width = 1210659536, 
      voffset = 1, 
      font_height = 1
    }, {
      stop_charpos = 138655360, 
      face_id = 405254588, 
      string = 139020848, 
      pos = {
        pos = {
          charpos = 400000, 
          bytepos = 673784544
        }, 
        overlay_string_index = 139020848, 
        string_pos = {
          charpos = -1073746984, 
          bytepos = 135399012
        }, 
        dpvec_index = 405368524
      }, 
      end_charpos = 673784544, 
      string_nchars = 400000, 
      area = 139020848, 
      multibyte_p = 0, 
      string_from_display_prop_p = 0, 
      display_ellipsis_p = 0, 
      space_width = 673784544, 
      voffset = 0, 
      font_height = 1
    }}, 
  sp = 139020848, 
  selective_display_ellipsis_p = 0, 
  ctl_arrow_p = 0, 
  selective = 405368524, 
  what = 405254588, 
  face_id = 405368524, 
  face_box_p = 1, 
  start_of_box_run_p = 1, 
  end_of_box_run_p = 0, 
  overlay_strings_at_end_processed_p = 0, 
  glyph_not_available_p = 0, 
  starts_in_middle_of_char_p = 0, 
  face_before_selective_p = 0, 
  base_face_id = -1073746904, 
  c = 135465361, 
  len = 405368524, 
  cmp_id = 400000, 
  cmp_len = 0, 
  char_to_display = 1, 
  image_id = 4, 
  space_width = 405254588, 
  voffset = 0, 
  font_height = 0, 
  object = 673784544, 
  position = {
    charpos = 400000, 
    bytepos = 1
  }, 
  truncate_lines_p = 1, 
  tab_width = 0, 
  truncation_pixel_width = 12600, 
  continuation_pixel_width = 2089, 
  first_visible_x = 0, 
  last_visible_x = -1073746856, 
  last_visible_y = 405254588, 
  extra_line_spacing = 0, 
  glyph_row = 0x0, 
  area = 3221220440, 
  nglyphs = 134629060, 
  pixel_width = 3, 
  ascent = 405254588, 
  descent = 0, 
  max_ascent = 134628961, 
  max_descent = 136916688, 
  phys_ascent = 1, 
  phys_descent = 3, 
  max_phys_ascent = 136917304, 
  max_phys_descent = 136916688, 
  current_x = 1210659128, 
  continuation_lines_width = -1073746808, 
  current_y = 134632204, 
  vpos = 136917304, 
  hpos = 139020848
}
current_matrix_up_to_date_p = -1
temp_scroll_step = 0
rc = 405254636
(gdb) info frame
Stack level 0, frame at 0xbfffec88:
 eip = 0x8069f6a in redisplay_window (xdisp.c:9947); saved eip 0x8067fb3
 called by frame at 0xbffff108
 source language c.
 Arglist at 0xbfffec88, args: window=1212956832, just_this_one_p=1
 Locals at 0xbfffec88, Previous frame's sp is 0x0
 Saved registers:
  ebp at 0xbfffec88, eip at 0xbfffec8c
(gdb) s
(gdb) s
(gdb) s
(gdb) 
specbind (symbol=405460468, value=405254636) at eval.c:2909
(gdb) finish
Run till exit from #0  specbind (symbol=405460468, value=405254636)
    at eval.c:2909
redisplay_window (window=1212956832, just_this_one_p=1) at xdisp.c:8323
(gdb) s
(gdb) 
(gdb) 
(gdb) 
(gdb) 
(gdb) 
(gdb) 
check_point_in_composition (prev_buf=0x8494a30, prev_pt=275, buf=0x8494a30, 
    pt=276) at xdisp.c:8290
(gdb) finish
Run till exit from #0  check_point_in_composition (prev_buf=0x8494a30, 
    prev_pt=275, buf=0x8494a30, pt=276) at xdisp.c:8290
0x0806a0a3 in redisplay_window (window=1212956832, just_this_one_p=1)
    at xdisp.c:8348
Value returned is $6 = 0
(gdb) s
(gdb) info frame
Stack level 0, frame at 0xbfffec88:
 eip = 0x806a0c6 in redisplay_window (xdisp.c:9960); saved eip 0x8067fb3
 called by frame at 0xbffff108
 source language c.
 Arglist at 0xbfffec88, args: window=1212956832, just_this_one_p=1
 Locals at 0xbfffec88, Previous frame's sp is 0x0
 Saved registers:
  ebp at 0xbfffec88, eip at 0xbfffec8c
(gdb) s
(gdb) 
(gdb) print update_mode_line
$7 = 1
(gdb) print update_mode_lines 
$8 = 0
(gdb) print buffer->clip_changed
$9 = 0
(gdb) print w->update_mode_line
$10 = 405254636
(gdb) s
set_buffer_internal_1 (b=0x8494a30) at buffer.c:1630
(gdb) finish
Run till exit from #0  set_buffer_internal_1 (b=0x8494a30) at buffer.c:1630
redisplay_window (window=1212956832, just_this_one_p=1) at xdisp.c:10000
(gdb) print opoint
$11 = {
  charpos = 276, 
  bytepos = 276
}
(gdb) print current_buffer->pt
$12 = 276
(gdb) print current_buffer->pt_byte
$13 = 276
(gdb) s
(gdb) print current_matrix_up_to_date_p 
$14 = -1
(gdb) s
(gdb) s
(gdb) s
(gdb) s
(gdb) s
(gdb) print current_matrix_up_to_date_p 
$15 = 0
(gdb) print opoint
$16 = {
  charpos = 276, 
  bytepos = 276
}
(gdb) print windows_or_buffers_changed 
$17 = 0
(gdb) s
(gdb) print w
$18 = (struct window *) 0x84c40a0
(gdb) print check_window_end
No symbol "check_window_end" in current context.
(gdb) print clear_glyph_matrix 
$19 = {void (struct glyph_matrix *)} 0x804fea0 <clear_glyph_matrix>
(gdb) print w->column_number_displayed
$20 = 405254588
(gdb) print current_buffer->pt
$21 = 276
(gdb) print w->last_point
$22 = 275
(gdb) print update_mode_line
$23 = 1
(gdb) print w->last_modified
$24 = 0
(gdb) print w->last_overlay_modified 
$25 = 0
(gdb) print current_buffer->text->modiff
$26 = 351
(gdb) print current_buffer->text->overlay_modiff
$27 = 1
(gdb) s
(gdb) s
(gdb) s
(gdb) s
(gdb) print window
$28 = 1212956832
(gdb) print selected_window 
$29 = 1212956832
(gdb) s
(gdb) s
(gdb) print current_buffer->width_run_cache
$30 = (struct region_cache *) 0x0
(gdb) s
(gdb) print current_buffer
$31 = (struct buffer *) 0x8494a30
(gdb) print w->start
$32 = 676022416
(gdb) print (union Lisp_Misc *) w->start
$33 = (union Lisp_Misc *) 0x284b4890
(gdb) print (&((union Lisp_Misc *) w->start)->u_marker)
$34 = (struct Lisp_Marker *) 0x284b4890
(gdb) print *(&((union Lisp_Misc *) w->start)->u_marker)
Cannot access memory at address 0x284b4890
(gdb) pr w->start
(gdb) print w->start
$38 = 676022416
(gdb) pr
(gdb) print *(&((union Lisp_Misc *) (w->start&0x0fffffff))->u_marker)
$39 = {
  type = 24236, 
  spacer = 0, 
  insertion_type = 0, 
  buffer = 0x8494a30, 
  chain = 676022396, 
  charpos = 276, 
  bytepos = 276
}
(gdb) up
#1  0x08067fb3 in redisplay_internal (preserve_echo_area=0) at xdisp.c:8888
(gdb) down
#0  redisplay_window (window=1212956832, just_this_one_p=1) at xdisp.c:10095
(gdb) print current_buffer
$40 = (struct buffer *) 0x8494a30
(gdb) print startp
$41 = {
  charpos = -1, 
  bytepos = 0
}
(gdb) s
(gdb) print startp
$42 = {
  charpos = -1, 
  bytepos = 0
}
(gdb) s
marker_position (marker=676022416) at marker.c:790
(gdb) s
(gdb) s
(gdb) s
(gdb) s
marker_byte_position (marker=676022416) at marker.c:805
(gdb) s
(gdb) s
(gdb) s
(gdb) s
(gdb) print i
$43 = 276
(gdb) s
(gdb) finish
Run till exit from #0  marker_byte_position (marker=676022416) at marker.c:815
redisplay_window (window=1212956832, just_this_one_p=1) at xdisp.c:10102
Value returned is $44 = 276
(gdb) print startp
$45 = {
  charpos = 276, 
  bytepos = 0
}
(gdb) s
(gdb) print startp
$46 = {
  charpos = 276, 
  bytepos = 0
}
(gdb) s
(gdb) print startp
$47 = {
  charpos = 276, 
  bytepos = 276
}
(gdb) print w->optional_new_start
$48 = 405254588
(gdb) print current_buffer->begv
$49 = 275
(gdb) print current_buffer->zv
$50 = 20527
(gdb) s
(gdb) print Qnil
$51 = 405254588
(gdb) print w->force_start
$52 = 405254636
(gdb) print w->frozen_window_start_p
$53 = 0
(gdb) s
(gdb) print w->force_start
$54 = 405254636
(gdb) s
(gdb) print w->force_start
$55 = 405254588
(gdb) print w->vscroll
$56 = 0
(gdb) print w->window_end_valid
$57 = 1212762672
(gdb) s
(gdb) s
(gdb) print current_matrix_up_to_date_p 
$58 = 0
(gdb) print w->base_line_number 
$59 = 1
(gdb) s
(gdb) s
(gdb) 
(gdb) print w->base_line_number 
$60 = 405254588
(gdb) info frame
Stack level 0, frame at 0xbfffec88:
 eip = 0x806a6b3 in redisplay_window (xdisp.c:10143); saved eip 0x8067fb3
 called by frame at 0xbffff108
 source language c.
 Arglist at 0xbfffec88, args: window=1212956832, just_this_one_p=1
 Locals at 0xbfffec88, Previous frame's sp is 0x0
 Saved registers:
  ebp at 0xbfffec88, eip at 0xbfffec8c
(gdb) s
(gdb) s
(gdb) s
(gdb) s
(gdb) s
(gdb) print startp
$61 = {
  charpos = 276, 
  bytepos = 276
}
(gdb) print current_buffer->begv
$62 = 275
(gdb) print current_buffer->begv_byte
$63 = 275
(gdb) s
try_window (window=1212956832, pos={charpos = 276, bytepos = 276})
    at xdisp.c:10592
(gdb) finish
Run till exit from #0  try_window (window=1212956832, pos=
      {charpos = 276, bytepos = 276}) at xdisp.c:10592
0x0806a714 in redisplay_window (window=1212956832, just_this_one_p=1)
    at xdisp.c:10152
Value returned is $64 = 1
(gdb) s
(gdb) up
#1  0x08067fb3 in redisplay_internal (preserve_echo_area=0) at xdisp.c:8888
(gdb) down
#0  redisplay_window (window=1212956832, just_this_one_p=1) at xdisp.c:10159
(gdb) print w->cursor
$65 = {
  x = 47, 
  y = 0, 
  hpos = 47, 
  vpos = -1
}
(gdb) print w->frozen_window_start_p 
$66 = 0
(gdb) s
(gdb) s
(gdb) up
#1  0x08067fb3 in redisplay_internal (preserve_echo_area=0) at xdisp.c:8888
(gdb) down
#0  redisplay_window (window=1212956832, just_this_one_p=1) at xdisp.c:866
(gdb) s
(gdb) print height
$67 = 2
(gdb) s
(gdb) s
(gdb) print ml_row
$68 = (struct glyph_row *) 0x84c4c64
(gdb) print ml_row[0]
$69 = {
  glyphs = {0x842c608, 0x842c608, 0x842cc48, 0x842cc48}, 
  used = {0, 80, 0}, 
  x = 0, 
  y = 0, 
  pixel_width = 79, 
  ascent = 0, 
  height = 1, 
  phys_ascent = 0, 
  phys_height = 1, 
  visible_height = 1, 
  hash = 207509869, 
  start = {
    pos = {
      charpos = 0, 
      bytepos = 0
    }, 
    overlay_string_index = 0, 
    string_pos = {
      charpos = 0, 
      bytepos = 0
    }, 
    dpvec_index = 0
  }, 
  end = {
    pos = {
      charpos = 0, 
      bytepos = 0
    }, 
    overlay_string_index = 0, 
    string_pos = {
      charpos = 0, 
      bytepos = 0
    }, 
    dpvec_index = 0
  }, 
  enabled_p = 1, 
  inverse_p = 0, 
  truncated_on_left_p = 0, 
  truncated_on_right_p = 0, 
  overlay_arrow_p = 0, 
  continued_p = 0, 
  displays_text_p = 0, 
  ends_at_zv_p = 0, 
  fill_line_p = 0, 
  indicate_empty_line_p = 0, 
  contains_overlapping_glyphs_p = 0, 
  full_width_p = 1, 
  mode_line_p = 1, 
  overlapped_p = 0, 
  ends_in_middle_of_char_p = 0, 
  starts_in_middle_of_char_p = 0, 
  overlapping_p = 0, 
  mouse_face_p = 0, 
  ends_in_newline_from_string_p = 0, 
  continuation_lines_width = 0
}
(gdb) print ml_row->mode_line_p
$70 = 1
(gdb) print height
$71 = 2
(gdb) print ml_row->height
$72 = 1
(gdb) s
(gdb) s
(gdb) print height
$73 = 1
(gdb) s
(gdb) s
(gdb) print hl_row
$74 = (struct glyph_row *) 0x84c4bf0
(gdb) print *hl_row
$75 = {
  glyphs = {0x842bfc8, 0x842bfc8, 0x842c608, 0x842c608}, 
  used = {0, 80, 0}, 
  x = 0, 
  y = 0, 
  pixel_width = 80, 
  ascent = 0, 
  height = 1, 
  phys_ascent = 0, 
  phys_height = 1, 
  visible_height = 1, 
  hash = 107355835, 
  start = {
    pos = {
      charpos = 0, 
      bytepos = 0
    }, 
    overlay_string_index = 0, 
    string_pos = {
      charpos = 0, 
      bytepos = 0
    }, 
    dpvec_index = 0
  }, 
  end = {
    pos = {
      charpos = 0, 
      bytepos = 0
    }, 
    overlay_string_index = 0, 
    string_pos = {
      charpos = 0, 
      bytepos = 0
    }, 
    dpvec_index = 0
  }, 
  enabled_p = 1, 
  inverse_p = 0, 
  truncated_on_left_p = 0, 
  truncated_on_right_p = 0, 
  overlay_arrow_p = 0, 
  continued_p = 0, 
  displays_text_p = 0, 
  ends_at_zv_p = 0, 
  fill_line_p = 0, 
  indicate_empty_line_p = 0, 
  contains_overlapping_glyphs_p = 0, 
  full_width_p = 1, 
  mode_line_p = 1, 
  overlapped_p = 0, 
  ends_in_middle_of_char_p = 0, 
  starts_in_middle_of_char_p = 0, 
  overlapping_p = 0, 
  mouse_face_p = 0, 
  ends_in_newline_from_string_p = 0, 
  continuation_lines_width = 0
}
(gdb) print hl_row->mode_line_p
$76 = 1
(gdb) print height
$77 = 1
(gdb) print hl_row->height
$78 = 1
(gdb) s
(gdb) s
(gdb) print height
$79 = 405254588
(gdb) print window_height
$80 = 1
(gdb) print w->desired_matrix
$81 = (struct glyph_matrix *) 0x84c41d8
(gdb) print w->desired_matrix->rows
$82 = (struct glyph_row *) 0x84c4678
(gdb) print w->desired_matrix->rows->mode_line_p
$83 = 1
(gdb) print row
$84 = (struct glyph_row *) 0x1827b1bc
(gdb) s
(gdb) 
(gdb) print row
$85 = (struct glyph_row *) 0x1827b1bc
(gdb) up
#1  0x08067fb3 in redisplay_internal (preserve_echo_area=0) at xdisp.c:8888
(gdb) down
#0  redisplay_window (window=1212956832, just_this_one_p=1) at xdisp.c:10167
(gdb) s
(gdb) print window_height
$86 = 0
(gdb) print w
$87 = (struct window *) 0x84c40a0
(gdb) up
#1  0x08067fb3 in redisplay_internal (preserve_echo_area=0) at xdisp.c:8888
(gdb) down
#0  redisplay_window (window=1212956832, just_this_one_p=1) at xdisp.c:10168
(gdb) s
(gdb) print row
$88 = (struct glyph_row *) 0x84c46ec
(gdb) print *row
$89 = {
  glyphs = {0x84229c0, 0x84229c0, 0x8423000, 0x8423000}, 
  used = {0, 80, 0}, 
  x = 0, 
  y = 0, 
  pixel_width = 79, 
  ascent = 0, 
  height = 1, 
  phys_ascent = 0, 
  phys_height = 1, 
  visible_height = 1, 
  hash = 207509869, 
  start = {
    pos = {
      charpos = 0, 
      bytepos = 0
    }, 
    overlay_string_index = 0, 
    string_pos = {
      charpos = 0, 
      bytepos = 0
    }, 
    dpvec_index = 0
  }, 
  end = {
    pos = {
      charpos = 0, 
      bytepos = 0
    }, 
    overlay_string_index = 0, 
    string_pos = {
      charpos = 0, 
      bytepos = 0
    }, 
    dpvec_index = 0
  }, 
  enabled_p = 0, 
  inverse_p = 0, 
  truncated_on_left_p = 0, 
  truncated_on_right_p = 0, 
  overlay_arrow_p = 0, 
  continued_p = 0, 
  displays_text_p = 0, 
  ends_at_zv_p = 0, 
  fill_line_p = 0, 
  indicate_empty_line_p = 0, 
  contains_overlapping_glyphs_p = 0, 
  full_width_p = 1, 
  mode_line_p = 1, 
  overlapped_p = 0, 
  ends_in_middle_of_char_p = 0, 
  starts_in_middle_of_char_p = 0, 
  overlapping_p = 0, 
  mouse_face_p = 0, 
  ends_in_newline_from_string_p = 0, 
  continuation_lines_width = 0
}
(gdb) print row->y
$90 = 0
(gdb) print row->height
$91 = 1
(gdb) print window_height
$92 = 0
(gdb) s
(gdb) print row->start.pos.charpos
$93 = 0
(gdb) print row->start.pos.bytepos
$94 = 0
(gdb) up
#1  0x08067fb3 in redisplay_internal (preserve_echo_area=0) at xdisp.c:8888
(gdb) down
#0  redisplay_window (window=1212956832, just_this_one_p=1) at xdisp.c:10172
(gdb) s
temp_set_point_both (buffer=0x8494a30, charpos=0, bytepos=0)
    at intervals.c:1846
(gdb) s
(gdb) s
(gdb) print buffer->zv
$95 = 20527
(gdb) print buffer->begv
$96 = 275
(gdb) print charpos
$97 = 0
(gdb) s
(gdb) s

Breakpoint 1, abort () at emacs.c:387
(gdb) up
#1  0x081684ae in temp_set_point_both (buffer=0x8494a30, charpos=0, bytepos=0)
    at intervals.c:1854
(gdb) up
#2  0x0806a916 in redisplay_window (window=1212956832, just_this_one_p=1)
    at xdisp.c:10172
(gdb) up
#3  0x08067fb3 in redisplay_internal (preserve_echo_area=0) at xdisp.c:8888
(gdb) up
#4  0x08066ded in redisplay () at xdisp.c:8273
(gdb) up
#5  0x080da3b5 in read_char (commandflag=1, nmaps=2, maps=0xbffff340, 
    prev_event=405254588, used_mouse_menu=0xbffff378) at keyboard.c:2272
(gdb) 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]