[4078] in testers
emacs core dump
daemon@ATHENA.MIT.EDU (John Hawkinson)
Fri May 21 02:33:55 1999
Date: Fri, 21 May 1999 02:33:43 -0400 (EDT)
Message-Id: <199905210633.CAA15257@bobbi-harlow.mit.edu>
To: testers@MIT.EDU
From: John Hawkinson <jhawk@MIT.EDU>
I just had emacs core dump while I was in ediscuss, just after I had
lowered my emacs window:
[bobbi-harlow!jhawk] ~>
[1] Abort emacs -f discuss (core dumped)
[bobbi-harlow!jhawk] /var/tmp> mv core.jhawk core.emacs
[bobbi-harlow!jhawk] /var/tmp> gdb `which emacs` core.emacs
GNU gdb 4.17
Copyright 1998 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 "sparc-sun-solaris2.6"...
Core was generated by `emacs -f discuss'.
Program terminated with signal 6, Abort.
Reading symbols from /usr/openwin/lib/libXaw.so.5...done.
Reading symbols from /usr/openwin/lib/libXmu.so.4...done.
Reading symbols from /usr/openwin/lib/libXt.so.4...done.
Reading symbols from /usr/openwin/lib/libSM.so.6...done.
Reading symbols from /usr/openwin/lib/libICE.so.6...done.
Reading symbols from /usr/openwin/lib/libXext.so.0...done.
Reading symbols from /usr/openwin/lib/libX11.so.4...done.
Reading symbols from /usr/lib/libresolv.so.2...done.
Reading symbols from /usr/lib/libsocket.so.1...done.
Reading symbols from /usr/lib/libnsl.so.1...done.
Reading symbols from /usr/lib/libkstat.so.1...done.
Reading symbols from /usr/lib/libm.so.1...done.
Reading symbols from /usr/lib/libc.so.1...done.
Reading symbols from /usr/lib/libdl.so.1...done.
Reading symbols from /usr/lib/libmp.so.2...done.
Reading symbols from /usr/lib/nss_files.so.1...done.
#0 0xef40800c in _kill ()
(gdb) where
#0 0xef40800c in _kill ()
#1 0xdd2e4 in fatal_error_signal (sig=6) at emacs.c:246
#2 <signal handler called>
#3 0xef40800c in _kill ()
#4 0xdd30c in abort () at emacs.c:274
#5 0x118ebc in buf_charpos_to_bytepos (b=0x50ecf8, charpos=18380)
at marker.c:139
#6 0x14aa20 in compute_motion (from=18165, fromvpos=0, fromhpos=0,
did_motion=0, to=18379, tovpos=32768, tohpos=32768, width=79, hscroll=0,
tab_offset=0, win=0x4324d8) at indent.c:1418
#7 0x14c1cc in vmotion (from=18379, vtarget=-35, w=0x4324d8) at indent.c:1697
#8 0x7c414 in Frecenter (arg=35) at window.c:3183
#9 0x1953ec in Ffuncall (nargs=2, args=0xefffe980) at eval.c:2453
#10 0x1eb998 in Fbyte_code (bytestr=807738144, vector=1076173692, maxdepth=4)
at bytecode.c:432
#11 0x195eac in funcall_lambda (fun=1076173552, nargs=1, arg_vector=0xefffed74)
at eval.c:2640
#12 0x195608 in Ffuncall (nargs=2, args=0xefffed70) at eval.c:2501
#13 0x18f25c in Fcall_interactively (function=271514724,
record_flag=271513884, keys=1076925768) at callint.c:788
#14 0xf222c in Fcommand_execute (cmd=271514724, record_flag=271513884,
keys=271513884, special=271513884) at keyboard.c:7887
#15 0xe2c38 in command_loop_1 () at keyboard.c:1495
#16 0x191d40 in internal_condition_case (bfun=0xe11a8 <command_loop_1>,
handlers=271514364, hfun=0xe0bc8 <cmd_error>) at eval.c:1157
#17 0xe0fa8 in command_loop_2 () at keyboard.c:1091
#18 0x1916ac in internal_catch (tag=271514340, func=0xe0f84 <command_loop_2>,
arg=271513884) at eval.c:932
#19 0xe0f40 in command_loop () at keyboard.c:1070
#20 0xe08c0 in recursive_edit_1 () at keyboard.c:820
#21 0xe0a68 in Frecursive_edit () at keyboard.c:868
#22 0xdede8 in main (argc=3, argv=0xeffff634, envp=0xeffff644) at emacs.c:1309
(gdb) up 5
#5 0x118ebc in buf_charpos_to_bytepos (b=0x50ecf8, charpos=18380)
at marker.c:139
marker.c:139: No such file or directory.
(gdb) shell attach source
attach: /afs/dev.mit.edu/source/src-current attached to /mit/source for filesystem source
(gdb) dir /mit/source/third/emacs
Source directories searched: /mit/source/third/emacs:$cdir:$cwd
(gdb) list
134 Lisp_Object tail;
135 int best_above, best_above_byte;
136 int best_below, best_below_byte;
137
138 if (charpos < BUF_BEG (b) || charpos > BUF_Z (b))
139 abort ();
140
141 best_above = BUF_Z (b);
142 best_above_byte = BUF_Z_BYTE (b);
143
(gdb) print b
$1 = (struct buffer *) 0x50ecf8
(gdb) print *b
$2 = {size = 537002069, next = 0x4c6c18, own_text = {
beg = 0x5530a8 " Flags Meeting name\n ----- ", '-' <repeats 12 times>, "\n X #### new meetings/announcements (Connection refused: localhost.mit.edu)\n New_meetings, new_meetings\n Everybody, eve\n Athena"..., gpt = 18342, z = 18379, gpt_byte = 18342, z_byte = 18379,
gap_size = 1713, modiff = 2447, save_modiff = 0, overlay_modiff = 23,
intervals = 0x0, markers = 542417044}, text = 0x50ed00, pt = 18379,
pt_byte = 18379, begv = 1, begv_byte = 1, zv = 18379, zv_byte = 18379,
base_buffer = 0x0, local_var_flags = 40, modtime = 0,
auto_save_modified = 0, auto_save_failure_time = -1,
last_window_start = 16334, clip_changed = 0, newline_cache = 0x0,
width_run_cache = 0x0, undo_list = 1347699820, name = 810394392,
filename = 271513884, directory = 810394032, backed_up = 271513884,
save_length = 0, auto_save_file_name = 271513884, read_only = 271513932,
mark = 542173504, local_var_alist = 1347532412, major_mode = 273286188,
mode_name = 810289940, mode_line_format = 1345631820, keymap = 1346989596,
abbrev_table = 271513884, syntax_table = 1076851520,
category_table = 1076853088, case_fold_search = 271513932, tab_width = 8,
fill_column = 70, left_margin = 0, auto_fill_function = 271513884,
buffer_file_type = 271513884, downcase_table = 1076857632,
upcase_table = 1077285392, case_canon_table = 1077301232,
case_eqv_table = 1077374120, truncate_lines = 271513884,
ctl_arrow = 271513932, direction_reversed = 271513884,
selective_display = 2, selective_display_ellipses = 271513932,
minor_modes = 271513884, overwrite_mode = 271513884,
abbrev_mode = 271513884, display_table = 271513884, mark_active = 271513932,
overlays_before = 271513884, overlays_after = 271513884,
overlay_center = 18340, enable_multibyte_characters = 271513932,
buffer_file_coding_system = 271513884, file_format = 271513884,
cache_long_line_scans = 271513884, width_table = 271513884,
pt_marker = 271513884, begv_marker = 271513884, zv_marker = 271513884,
point_before_scroll = 271513884, file_truename = 271513884,
invisibility_spec = 271513932, last_selected_window = 1078142168,
display_count = 20, display_time = 1347699876, extra2 = 271513884,
extra3 = 271513884}
(gdb) print charpos
$3 = 18380
(gdb) print charpos-b->zv
$4 = 1
off-by-one error? I don't know or understand any of this code and
am too tired to look.
Core dump is /var/tmp/core.emacs on bobbi-harlow, lemme know if you want
it and can't get to it.
--jhawk