Subject: 25.0.50; emacs segfaults when keyboard-coding-system is set to 'raw-text from within a xterm

From: Olaf Rogalsky <[email-masked]>
Date: Wed, 07 Jan 2015 22:16:38 +0100

The following crashes emacs when started from a xterm:

emacs -Q -nw
(set-keyboard-coding-system 'raw-text)
<PRESS some key>

=>
Fatal error 6: Aborted
Backtrace:
emacs[0x50608b]
emacs[0x4ec37e]
emacs[0x504d7e]
emacs[0x504f83]
emacs[0x505029]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x10340)[0x7fa694519340]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x39)[0x7fa694179bb9]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x148)[0x7fa69417cfc8]
/lib/x86_64-linux-gnu/libc.so.6(+0x73e14)[0x7fa6941b6e14]
/lib/x86_64-linux-gnu/libc.so.6(+0x7eb77)[0x7fa6941c1b77]
/lib/x86_64-linux-gnu/libc.so.6(realloc+0x2a2)[0x7fa6941c6c12]
emacs[0x546692]
emacs[0x48b5d1]
emacs[0x48b9fa]
emacs[0x493dcb]
emacs[0x49852c]
emacs[0x4f7a1f]
emacs[0x4f8cef]
emacs[0x4fa910]
emacs[0x55fdde]
emacs[0x4ec9ae]
emacs[0x55fceb]
emacs[0x4ec966]
emacs[0x4f100c]
emacs[0x4f134d]
emacs[0x417ff8]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7fa694164ec5]
emacs[0x418abc]
Abgebrochen (Speicherabzug geschrieben)

I attached a gdb log of the error.

------------------------------------------------------------------

In GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8)
 of 2014-12-13 on blaubaer
Repository revision: 30f603836c64a045fa59b5258d09b99da582eb75
System Description:	Ubuntu 14.04.1 LTS

Configured using:
 `configure --prefix /home/olaf/local --with-x-toolkit=gtk3
 --without-gconf --without-gsettings'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS NOTIFY ACL
LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB

Important settings:
  value of $LANG: de_DE.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Emacs-Lisp

Minor modes in effect:
  savehist-mode: t
  global-page-break-lines-mode: t
  page-break-lines-mode: t
  rainbow-delimiters-mode: t
  indent-guide-global-mode: t
  indent-guide-mode: t
  global-auto-complete-mode: t
  auto-complete-mode: t
  recentf-mode: t
  xterm-clip-mode: t
  xterm-mouse-mode: t
  auto-compile-on-load-mode: t
  auto-compile-on-save-mode: t
  auto-compile-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  size-indication-mode: t
  column-number-mode: t
  line-number-mode: t

Recent messages:
Mark activated
Mark set
Auto-saving...done
Mark set
mu4e-user-agent
Saving file /home/olaf/.emacs.d/lisp/my-email.el...
Wrote /home/olaf/.emacs.d/lisp/my-email.el
Wrote /home/olaf/.emacs.d/lisp/my-email.elc
Wrote /home/olaf/.emacs.d/lisp/my-email.{el,elc}
Making completion list...

Load-path shadows:
/home/olaf/.local/share/emacs/site-lisp/mu4e/mu4e-meta hides /home/olaf/local/share/emacs/site-lisp/mu4e/mu4e-meta
/home/olaf/.local/share/emacs/site-lisp/mu4e/mu4e-main hides /home/olaf/local/share/emacs/site-lisp/mu4e/mu4e-main
/home/olaf/.local/share/emacs/site-lisp/mu4e/org-mu4e hides /home/olaf/local/share/emacs/site-lisp/mu4e/org-mu4e
/home/olaf/.local/share/emacs/site-lisp/mu4e/mu4e-speedbar hides /home/olaf/local/share/emacs/site-lisp/mu4e/mu4e-speedbar
/home/olaf/.local/share/emacs/site-lisp/mu4e/mu4e-utils hides /home/olaf/local/share/emacs/site-lisp/mu4e/mu4e-utils
/home/olaf/.local/share/emacs/site-lisp/mu4e/mu4e-headers hides /home/olaf/local/share/emacs/site-lisp/mu4e/mu4e-headers
/home/olaf/.local/share/emacs/site-lisp/mu4e/mu4e-contrib hides /home/olaf/local/share/emacs/site-lisp/mu4e/mu4e-contrib
/home/olaf/.local/share/emacs/site-lisp/mu4e/mu4e-vars hides /home/olaf/local/share/emacs/site-lisp/mu4e/mu4e-vars
/home/olaf/.local/share/emacs/site-lisp/mu4e/mu4e-mark hides /home/olaf/local/share/emacs/site-lisp/mu4e/mu4e-mark
/home/olaf/.local/share/emacs/site-lisp/mu4e/mu4e-proc hides /home/olaf/local/share/emacs/site-lisp/mu4e/mu4e-proc
/home/olaf/.local/share/emacs/site-lisp/mu4e/mu4e-draft hides /home/olaf/local/share/emacs/site-lisp/mu4e/mu4e-draft
/home/olaf/.local/share/emacs/site-lisp/mu4e/mu4e-about hides /home/olaf/local/share/emacs/site-lisp/mu4e/mu4e-about
/home/olaf/.local/share/emacs/site-lisp/mu4e/mu4e-lists hides /home/olaf/local/share/emacs/site-lisp/mu4e/mu4e-lists
/home/olaf/.local/share/emacs/site-lisp/mu4e/mu4e-view hides /home/olaf/local/share/emacs/site-lisp/mu4e/mu4e-view
/home/olaf/.local/share/emacs/site-lisp/mu4e/mu4e-compose hides /home/olaf/local/share/emacs/site-lisp/mu4e/mu4e-compose
/home/olaf/.local/share/emacs/site-lisp/mu4e/mu4e-message hides /home/olaf/local/share/emacs/site-lisp/mu4e/mu4e-message
/home/olaf/.local/share/emacs/site-lisp/mu4e/mu4e hides /home/olaf/local/share/emacs/site-lisp/mu4e/mu4e
/home/olaf/.local/share/emacs/site-lisp/mu4e/mu4e-actions hides /home/olaf/local/share/emacs/site-lisp/mu4e/mu4e-actions

Features:
(shadow emacsbug thingatpt gnutls network-stream nsm starttls tls
mailalias mail-extr sort debug eieio-opt find-func pp help-mode
mule-util my-email mu4e mu4e-speedbar speedbar sb-image ezimage dframe
mu4e-main mu4e-view browse-url mu4e-headers mu4e-compose mu4e-draft
mu4e-actions ido rfc2368 smtpmail auth-source eieio eieio-core gnus-util
password-cache sendmail mu4e-mark mu4e-message html2text mu4e-proc
mu4e-utils doc-view image-mode mu4e-lists mu4e-about mu4e-vars message
cl-macs dired format-spec rfc822 mml mml-sec mm-decode mm-bodies
mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mailabbrev mail-utils gmm-utils mailheader hl-line cl gv
mu4e-meta xterm flymake compile comint ring disp-table my-tests
my-key-bindings my-packages savehist saveplace page-break-lines paren
mic-paren rainbow-delimiters rainbow-mode ansi-color color key-chord
indent-guide browse-kill-ring loccur easy-mmode auto-complete edmacro
kmacro popup epa-file epa derived epg recentf tree-widget wid-edit linum
xterm-clip xt-mouse my-defaults my-functions time-date
sanityinc-tomorrow-eighties-theme color-theme-sanityinc-tomorrow delsel
cus-start cus-load info easymenu package epg-config jka-compr
auto-compile byte-opt advice help-fns packed bytecomp byte-compile
cl-extra cl-loaddefs cl-lib cconv tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd
fontset image regexp-opt fringe tabulated-list newcomment elisp-mode
lisp-mode prog-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind gfilenotify dynamic-setting font-render-setting move-toolbar
gtk x-toolkit x multi-tty emacs)

Memory information:
((conses 16 275205 34549)
 (symbols 48 30854 0)
 (miscs 40 135 1052)
 (strings 32 63052 7907)
 (string-bytes 1 1693613)
 (vectors 16 29282)
 (vector-slots 8 1348115 233947)
 (floats 8 330 1084)
 (intervals 56 6315 712)
 (buffers 976 22)
 (heap 1024 55850 3859))
-- 
Olaf Rogalsky
Schwörhausgasse 5
89073 Ulm