Subject: 23.0.60; Emacs frequently crashes when using MEW

From: KOIE Hidetaka (鯉江英隆) <[email-masked]>
Date: Thu, 07 Aug 2008 18:34:11 +0900 (JST)

Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the [email-masked] mailing list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

    Emacs frequently crashes when using MEW (it is a mailer).
    I'm using Emacs in TTY.

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/usr/local/share/emacs/23.0.60/etc/DEBUG for instructions.

--------------------begin--------------------
Current directory is ~/work/emacs/o/src/
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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 "amd64-marcel-freebsd"...
Core was generated by `emacs'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/libXaw3d.so.8...done.
Loaded symbols for /usr/local/lib/libXaw3d.so.8
Reading symbols from /usr/local/lib/libXmu.so.6...done.
Loaded symbols for /usr/local/lib/libXmu.so.6
Reading symbols from /usr/local/lib/libXt.so.6...done.
Loaded symbols for /usr/local/lib/libXt.so.6
Reading symbols from /usr/local/lib/libSM.so.6...done.
Loaded symbols for /usr/local/lib/libSM.so.6
Reading symbols from /usr/local/lib/libICE.so.6...done.
Loaded symbols for /usr/local/lib/libICE.so.6
Reading symbols from /usr/local/lib/libXext.so.6...done.
Loaded symbols for /usr/local/lib/libXext.so.6
Reading symbols from /usr/local/lib/libtiff.so.4...done.
Loaded symbols for /usr/local/lib/libtiff.so.4
Reading symbols from /usr/local/lib/libjpeg.so.9...done.
Loaded symbols for /usr/local/lib/libjpeg.so.9
Reading symbols from /usr/local/lib/libpng.so.5...done.
Loaded symbols for /usr/local/lib/libpng.so.5
Reading symbols from /lib/libz.so.4...done.
Loaded symbols for /lib/libz.so.4
Reading symbols from /lib/libm.so.5...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /usr/local/lib/libungif.so.5...done.
Loaded symbols for /usr/local/lib/libungif.so.5
Reading symbols from /usr/local/lib/libXpm.so.4...done.
Loaded symbols for /usr/local/lib/libXpm.so.4
Reading symbols from /usr/local/lib/libX11.so.6...done.
Loaded symbols for /usr/local/lib/libX11.so.6
Reading symbols from /usr/local/lib/libXft.so.2...done.
Loaded symbols for /usr/local/lib/libXft.so.2
Reading symbols from /usr/local/lib/libXrender.so.1...done.
Loaded symbols for /usr/local/lib/libXrender.so.1
Reading symbols from /usr/local/lib/libfontconfig.so.1...done.
Loaded symbols for /usr/local/lib/libfontconfig.so.1
Reading symbols from /usr/local/lib/libfreetype.so.9...done.
Loaded symbols for /usr/local/lib/libfreetype.so.9
Reading symbols from /usr/local/lib/librsvg-2.so.2...done.
Loaded symbols for /usr/local/lib/librsvg-2.so.2
Reading symbols from /usr/local/lib/libgdk_pixbuf-2.0.so.0...done.
Loaded symbols for /usr/local/lib/libgdk_pixbuf-2.0.so.0
Reading symbols from /usr/local/lib/libcairo.so.2...done.
Loaded symbols for /usr/local/lib/libcairo.so.2
Reading symbols from /usr/local/lib/libgobject-2.0.so.0...done.
Loaded symbols for /usr/local/lib/libgobject-2.0.so.0
Reading symbols from /usr/local/lib/libgmodule-2.0.so.0...done.
Loaded symbols for /usr/local/lib/libgmodule-2.0.so.0
Reading symbols from /usr/local/lib/libglib-2.0.so.0...done.
Loaded symbols for /usr/local/lib/libglib-2.0.so.0
Reading symbols from /usr/local/lib/libiconv.so.3...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /usr/local/lib/libdbus-1.so.3...done.
Loaded symbols for /usr/local/lib/libdbus-1.so.3
Reading symbols from /lib/libutil.so.7...done.
Loaded symbols for /lib/libutil.so.7
Reading symbols from /lib/libncurses.so.7...done.
Loaded symbols for /lib/libncurses.so.7
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /usr/local/lib/libXp.so.6...done.
Loaded symbols for /usr/local/lib/libXp.so.6
Reading symbols from /usr/local/lib/libXau.so.6...done.
Loaded symbols for /usr/local/lib/libXau.so.6
Reading symbols from /usr/local/lib/libXdmcp.so.6...done.
Loaded symbols for /usr/local/lib/libXdmcp.so.6
Reading symbols from /usr/lib/librpcsvc.so.4...done.
Loaded symbols for /usr/lib/librpcsvc.so.4
Reading symbols from /usr/local/lib/libexpat.so.6...done.
Loaded symbols for /usr/local/lib/libexpat.so.6
Reading symbols from /usr/local/lib/libgsf-1.so.114...done.
Loaded symbols for /usr/local/lib/libgsf-1.so.114
Reading symbols from /usr/local/lib/libcroco-0.6.so.3...done.
Loaded symbols for /usr/local/lib/libcroco-0.6.so.3
Reading symbols from /usr/local/lib/libxml2.so.5...done.
Loaded symbols for /usr/local/lib/libxml2.so.5
Reading symbols from /usr/local/lib/libpangocairo-1.0.so.0...done.
Loaded symbols for /usr/local/lib/libpangocairo-1.0.so.0
Reading symbols from /usr/local/lib/libpangoft2-1.0.so.0...done.
Loaded symbols for /usr/local/lib/libpangoft2-1.0.so.0
Reading symbols from /usr/local/lib/libpango-1.0.so.0...done.
Loaded symbols for /usr/local/lib/libpango-1.0.so.0
Reading symbols from /usr/local/lib/libgio-2.0.so.0...done.
Loaded symbols for /usr/local/lib/libgio-2.0.so.0
Reading symbols from /lib/libthr.so.3...done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /usr/local/lib/libpixman-1.so.9...done.
Loaded symbols for /usr/local/lib/libpixman-1.so.9
Reading symbols from /usr/local/lib/libintl.so.8...done.
Loaded symbols for /usr/local/lib/libintl.so.8
Reading symbols from /usr/local/lib/libpcre.so.0...done.
Loaded symbols for /usr/local/lib/libpcre.so.0
Reading symbols from /usr/lib/libbz2.so.3...done.
Loaded symbols for /usr/lib/libbz2.so.3
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x0000000802bfa7ec in kill () from /lib/libc.so.7
[New Thread 0x9e3200 (LWP 100250)]
Environment variable "DISPLAY" not defined.
TERM = dumb
Breakpoint 1 at 0x4ce990: file /home/koie/work/emacs/src/emacs.c, line 416.
Breakpoint 2 at 0x4e9990: file /home/koie/work/emacs/src/sysdep.c, line 1130.
(gdb) bt full
#0  0x0000000802bfa7ec in kill () from /lib/libc.so.7
No symbol table info available.
#1  0x00000000004d0114 in fatal_error_signal (sig=Variable "sig" is not available.
) at /home/koie/work/emacs/src/emacs.c:388
No locals.
#2  <signal handler called>
No symbol table info available.
#3  0x00000000004f5784 in gap_left (charpos=38, bytepos=38, newgap=Variable "newgap" is not available.
) at /home/koie/work/emacs/src/insdel.c:182
	to = (unsigned char *) 0x80071b7f8 "0 / 6=EF=EF       =\r\n=E1=C4=CD=C9=CE=C9=D3=D4=D2 . =DA=C4=C1=CE,=20\r\n         =EB=CC=C1=D3=D3 =F7", ' ' <repeats 15 times>, "7 5=EF=EF$/=CD 2,=20\r\n         1=EF =EF=EF=EF$/=CD 2  =20\r\n", ' ' <repeats 15 times>, "=EB=E1=EC=F5=F"...
	from = (unsigned char *) 0x80071c027 ""
	i = 8154
	new_s1 = 8192
#4  0x00000000004f7f53 in del_range_2 (from=37, from_byte=37, to=38, to_byte=38, ret_string=0) at /home/koie/work/emacs/src/insdel.c:1967
	nchars_del = 1
	deletion = Variable "deletion" is not available.
(gdb) bt
#0  0x0000000802bfa7ec in kill () from /lib/libc.so.7
#1  0x00000000004d0114 in fatal_error_signal (sig=Variable "sig" is not available.
) at /home/koie/work/emacs/src/emacs.c:388
#2  <signal handler called>
#3  0x00000000004f5784 in gap_left (charpos=38, bytepos=38, newgap=Variable "newgap" is not available.
) at /home/koie/work/emacs/src/insdel.c:182
#4  0x00000000004f7f53 in del_range_2 (from=37, from_byte=37, to=38, to_byte=38, ret_string=0) at /home/koie/work/emacs/src/insdel.c:1967
#5  0x0000000000476182 in decode_coding (coding=0x31ce800) at /home/koie/work/emacs/src/coding.c:6030
#6  0x0000000000476cf7 in decode_coding_object (coding=0x31ce800, src_object=9820161, from=0, from_byte=0, to=Variable "to" is not available.
) at /home/koie/work/emacs/src/coding.c:7224
#7  0x0000000000573404 in read_process_output (proc=15321348, channel=6) at /home/koie/work/emacs/src/process.c:5302
#8  0x0000000000577a82 in wait_reading_process_output (time_limit=150, microsecs=0, read_kbd=-1, do_display=1, wait_for_cell=9820161, wait_proc=0x0, just_wait_proc=0) at /home/koie/work/emacs/src/process.c:4993
#9  0x0000000000410ce5 in sit_for (timeout=1200, reading=1, do_display=1) at /home/koie/work/emacs/src/dispnew.c:6619
#10 0x00000000004dcd49 in read_char (commandflag=1, nmaps=3, maps=0x7fffffffe320, prev_event=Variable "prev_event" is not available.
) at /home/koie/work/emacs/src/keyboard.c:2895
#11 0x00000000004de3ab in read_key_sequence (keybuf=0x7fffffffe4d0, bufsize=30, prompt=9820161, dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1) at /home/koie/work/emacs/src/keyboard.c:9349
#12 0x00000000004e0542 in command_loop_1 () at /home/koie/work/emacs/src/keyboard.c:1620
#13 0x000000000053b07f in internal_condition_case (bfun=0x4e0390 <command_loop_1>, handlers=9927137, hfun=0x4da410 <cmd_error>) at /home/koie/work/emacs/src/eval.c:1511
#14 0x00000000004d978a in command_loop_2 () at /home/koie/work/emacs/src/keyboard.c:1338
#15 0x000000000053b197 in internal_catch (tag=Variable "tag" is not available.
) at /home/koie/work/emacs/src/eval.c:1247
#16 0x00000000004da253 in command_loop () at /home/koie/work/emacs/src/keyboard.c:1317
#17 0x00000000004da5ec in recursive_edit_1 () at /home/koie/work/emacs/src/keyboard.c:942
#18 0x00000000004da74f in Frecursive_edit () at /home/koie/work/emacs/src/keyboard.c:1004
#19 0x00000000004cf877 in main (argc=1, argv=0x7fffffffe950) at /home/koie/work/emacs/src/emacs.c:1689
(gdb) xbacktrace
(gdb) i lo
No symbol table info available.
(gdb) up
#1  0x00000000004d0114 in fatal_error_signal (sig=Variable "sig" is not available.
) at /home/koie/work/emacs/src/emacs.c:388
(gdb) i lo
No locals.
(gdb) up
#2  <signal handler called>
(gdb) i lo
No symbol table info available.
(gdb) up
#3  0x00000000004f5784 in gap_left (charpos=38, bytepos=38, newgap=Variable "newgap" is not available.
) at /home/koie/work/emacs/src/insdel.c:182
(gdb) i lo
to = (unsigned char *) 0x80071b7f8 "0 / 6=EF=EF       =\r\n=E1=C4=CD=C9=CE=C9=D3=D4=D2 . =DA=C4=C1=CE,=20\r\n         =EB=CC=C1=D3=D3 =F7", ' ' <repeats 15 times>, "7 5=EF=EF$/=CD 2,=20\r\n         1=EF =EF=EF=EF$/=CD 2  =20\r\n", ' ' <repeats 15 times>, "=EB=E1=EC=F5=F"...
from = (unsigned char *) 0x80071c027 ""
i = 8154
new_s1 = 8192
(gdb) up
#4  0x00000000004f7f53 in del_range_2 (from=37, from_byte=37, to=38, to_byte=38, ret_string=0) at /home/koie/work/emacs/src/insdel.c:1967
(gdb) i lo
      nchars_del = 1
deletion = Variable "deletion" is not available.
(gdb) up
#5  0x0000000000476182 in decode_coding (coding=0x31ce800) at /home/koie/work/emacs/src/coding.c:6030
(gdb) i lo
pos = Variable "pos" is not available.
(gdb) up
#6  0x0000000000476cf7 in decode_coding_object (coding=0x31ce800, src_object=9820161, from=0, from_byte=0, to=Variable "to" is not available.
) at /home/koie/work/emacs/src/coding.c:7224
(gdb) i lo
count = Variable "count" is not available.
(gdb) up
#7  0x0000000000573404 in read_process_output (proc=15321348, channel=6) at /home/koie/work/emacs/src/process.c:5302
(gdb) i lo
odeactivate = 9820161
text = Variable "text" is not available.
(gdb) up
#8  0x0000000000577a82 in wait_reading_process_output (time_limit=150, microsecs=0, read_kbd=-1, do_display=1, wait_for_cell=9820161, wait_proc=0x0, just_wait_proc=0) at /home/koie/work/emacs/src/process.c:4993
(gdb) i lo
old_timers_run = Variable "old_timers_run" is not available.
(gdb) up
#9  0x0000000000410ce5 in sit_for (timeout=1200, reading=1, do_display=1) at /home/koie/work/emacs/src/dispnew.c:6619
(gdb) i lo
sec = 150
usec = 0
(gdb) up
#10 0x00000000004dcd49 in read_char (commandflag=1, nmaps=3, maps=0x7fffffffe320, prev_event=Variable "prev_event" is not available.
) at /home/koie/work/emacs/src/keyboard.c:2895
(gdb) i lo
tem0 = Variable "tem0" is not available.
(gdb) up
#11 0x00000000004de3ab in read_key_sequence (keybuf=0x7fffffffe4d0, bufsize=30, prompt=9820161, dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1) at /home/koie/work/emacs/src/keyboard.c:9349
(gdb) i lo
interrupted_kboard = (KBOARD *) 0xa08d00
key = 1
used_mouse_menu = 0
echo_local_start = 0
last_real_key_start = 0
keys_local_start = 0
local_first_binding = 0
from_string = 9820161
count = 2
t = 0
echo_start = 0
keys_start = 0
nmaps = 3
nmaps_allocated = 3
defs = (Lisp_Object * volatile) 0x7fffffffe2f0
submaps = (Lisp_Object * volatile) 0x7fffffffe320
orig_local_map = 18955109
orig_keymap = 9820161
localized_local_map = 0
first_binding = 0
first_unbound = 31
mock_input = 0
fkey = {
  parent = 10449317, 
  map = 10449317, 
  start = 0, 
  end = 0
}
keytran = {
  parent = 9808661, 
  map = 9808661, 
  start = 0, 
  end = 0
}
indec = {
  parent = 10449477, 
  map = 10449477, 
  start = 0, 
  end = 0
}
shift_translated = 0
delayed_switch_frame = 9820161
original_uppercase = 64
original_uppercase_position = -1
starting_buffer = (struct buffer *) 0x1247c00
fake_prefixed_keys = 9820161
(gdb) up
#12 0x00000000004e0542 in command_loop_1 () at /home/koie/work/emacs/src/keyboard.c:1620
(gdb) i lo
cmd = Variable "cmd" is not available.
(gdb) up
#13 0x000000000053b07f in internal_condition_case (bfun=0x4e0390 <command_loop_1>, handlers=9927137, hfun=0x4da410 <cmd_error>) at /home/koie/work/emacs/src/eval.c:1511
(gdb) i lo
val = Variable "val" is not available.
(gdb) up
#14 0x00000000004d978a in command_loop_2 () at /home/koie/work/emacs/src/keyboard.c:1338
(gdb) i lo
val = 61
(gdb) up
#15 0x000000000053b197 in internal_catch (tag=Variable "tag" is not available.
) at /home/koie/work/emacs/src/eval.c:1247
(gdb) i lo
c = {
  tag = 9909041, 
  val = 9820161, 
  next = 0x0, 
  gcpro = 0x0, 
  jmp = {{
      _jb = {5484939, 0, 140737488348952, 10571808, 10571776, 140737488349512, 140737488349520, 140737488349400, 34789244928895, 10247105, 9820161, 5424764}
    }}, 
  backlist = 0x0, 
  handlerlist = 0x0, 
  lisp_eval_depth = 0, 
  pdlcount = 2, 
  poll_suppress_count = 0, 
  interrupt_input_blocked = 0, 
  byte_stack = 0x0
}
(gdb) up
#16 0x00000000004da253 in command_loop () at /home/koie/work/emacs/src/keyboard.c:1317
(gdb) i lo
No locals.
(gdb) up
#17 0x00000000004da5ec in recursive_edit_1 () at /home/koie/work/emacs/src/keyboard.c:942
(gdb) i lo
val = Variable "val" is not available.
(gdb) up
#18 0x00000000004da74f in Frecursive_edit () at /home/koie/work/emacs/src/keyboard.c:1004
(gdb) i lo
count = Variable "count" is not available.
(gdb) up
#19 0x00000000004cf877 in main (argc=1, argv=0x7fffffffe950) at /home/koie/work/emacs/src/emacs.c:1689
(gdb) i lo
displayname = 0x0
count_before = Variable "count_before" is not available.
(gdb) up
Initial frame selected; you cannot go up.
(gdb) quit

Debugger finished
--------------------end--------------------

In GNU Emacs 23.0.60.1 (x86_64-unknown-freebsd8.0, X toolkit, Xaw3d scroll bars)
 of 2008-08-06 on guriandgura
configured using `configure  '--without-pop' '--without-xim' '--with-x-toolkit=lucid''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ja_JP.eucJP
  value of $XMODIFIERS: nil
  locale-coding-system: japanese-iso-8bit-unix
  default-enable-multibyte-characters: t