emacs21 aborts while typing

Bug #85146 reported by czapszys
2
Affects Status Importance Assigned to Milestone
emacs21 (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Binary package hint: emacs21

A few times per day, when I'm typing or scrolling with the keyboard, emacs aborts and dumps core.
I rebuilt a not-stripped emacs21 on to get a stack trace. Here it is:

(gdb) bt
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7b7aba6 in kill () from /lib/tls/i686/cmov/libc.so.6
#2 0x080de909 in fatal_error_signal (sig=6)
    at /home/czapszys/tmp/src/emacs21-21.4a/src/emacs.c:354
#3 <signal handler called>
#4 0xffffe410 in __kernel_vsyscall ()
#5 0xb7b7aba6 in kill () from /lib/tls/i686/cmov/libc.so.6
#6 0x080dd13b in abort () at /home/czapszys/tmp/src/emacs21-21.4a/src/emacs.c:387
#7 0x0806c559 in try_window_id (w=0x84d1ae8)
    at /home/czapszys/tmp/src/emacs21-21.4a/src/xdisp.c:12026
#8 0x080712db in redisplay_window (window=1213012712, just_this_one_p=1)
    at /home/czapszys/tmp/src/emacs21-21.4a/src/xdisp.c:10260
#9 0x0807370b in redisplay_internal (preserve_echo_area=<value optimized out>)
    at /home/czapszys/tmp/src/emacs21-21.4a/src/xdisp.c:8910
#10 0x080e8506 in read_char (commandflag=1, nmaps=2, maps=0xbfdfc680, prev_event=405320748,
    used_mouse_menu=0xbfdfc70c) at /home/czapszys/tmp/src/emacs21-21.4a/src/keyboard.c:2299
#11 0x080e9c2d in read_key_sequence (keybuf=0xbfdfc7c8, bufsize=30, prompt=405320748,
    dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1)
    at /home/czapszys/tmp/src/emacs21-21.4a/src/keyboard.c:8221
#12 0x080ebb5d in command_loop_1 () at /home/czapszys/tmp/src/emacs21-21.4a/src/keyboard.c:1451
#13 0x08139b7d in internal_condition_case (bfun=0x80eb970 <command_loop_1>,
    handlers=405417092, hfun=0x80e5c00 <cmd_error>)
    at /home/czapszys/tmp/src/emacs21-21.4a/src/eval.c:1267
#14 0x080e57b3 in command_loop_2 () at /home/czapszys/tmp/src/emacs21-21.4a/src/keyboard.c:1245
#15 0x08139c32 in internal_catch (tag=405378676, func=0x80e5790 <command_loop_2>,
    arg=405320748) at /home/czapszys/tmp/src/emacs21-21.4a/src/eval.c:1030
#16 0x080e58f7 in command_loop () at /home/czapszys/tmp/src/emacs21-21.4a/src/keyboard.c:1224
#17 0x080e599e in recursive_edit_1 ()
    at /home/czapszys/tmp/src/emacs21-21.4a/src/keyboard.c:950
#18 0x080e5abb in Frecursive_edit ()
    at /home/czapszys/tmp/src/emacs21-21.4a/src/keyboard.c:1006
#19 0x080ddc65 in main (argc=2, argv=0xbfdfcf04, envp=Cannot access memory at address 0xe
)
    at /home/czapszys/tmp/src/emacs21-21.4a/src/emacs.c:1547

The failure seems to be in frame 7.

Micah Cowan (micahcowan)
Changed in emacs21:
importance: Undecided → Medium
status: Unconfirmed → Confirmed
Revision history for this message
Micah Cowan (micahcowan) wrote :

Notes from the backtrace: The crash is due to a call to abort() at xdisp.c:12026 (which emacs then catches and rethrows, in fatal_error_signal() in emacs). It is a deliberate abortion (fall-through assertion) in try_window_id, at the final else clause of:

if (first_unchanged_at_end_row
      && first_unchanged_at_end_row->y < it.last_visible_y
      && !last_text_row_at_end)
 ...
else if (last_text_row_at_end)
 ...
else if (last_text_row)
 ...
else if (first_unchanged_at_end_row == NULL
    && last_text_row == NULL
    && last_text_row_at_end == NULL)
 ...
else
  abort(); // <<=============

try_window_id() has been passed the value "selected_window"; so there must be something wrong with that value or the state of the currently selected window (I'd guess the latter).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.