Subject: 23.1; Segmentation fault browsing directory

From: John ff <[email-masked]>
Date: Thu, 19 May 2011 15:46:35 +0100

I am using the version of emacs from the bzr repository -- reported
via older emacs as it is crashing

Under gdb

#0  0x00000000005be2d6 in find_automatic_composition (pos=241, limit=241, 
    start=0x7fffffffd868, end=0x7fffffffd860, gstring=0x7fffffffd858, string=
    11811154) at composite.c:1607
        elt = <value optimized out>
        val = <value optimized out>
        head = 1
        tail = 17991
        stop = <value optimized out>
        fore_check_limit = -262703
        c = <value optimized out>
        window = <value optimized out>
        w = 0xdbe620
        need_adjustment = 0
#1  0x00000000005c2d09 in composition_adjust_point (last_pt=241, new_pt=241)
    at composite.c:1709
        beg = 20981584
        end = 140737488345520
        val = 11811154
        i = <value optimized out>
#2  0x00000000005032ed in command_loop_1 () at keyboard.c:1673
        cmd = <value optimized out>
        keybuf = {11852370, 24, 4611686018427404288, 11662544, 11811154, 
    11977360, 0, 4611686018427518976, 11811154, 5599371, 140737488345744, 
    11662544, 11811154, 11811154, 11977362, 18824710, 140737488347104, 
    4611686018427518976, 11811154, 5599794, 11811154, 5600883, 0, 11811154, 
    64, 5666288, 11811154, 12186898, 140737488345824, 2}
        i = <value optimized out>
        prev_modiff = 1878
        prev_buffer = 0x14bb3b0
#3  0x0000000000566c2e in internal_condition_case (bfun=
    0x502250 <command_loop_1>, handlers=11863490, hfun=0x4f6f50 <cmd_error>)
    at eval.c:1507
        val = <value optimized out>
        c = {tag = 11811154, val = 11811154, next = 0x7fffffffdba0, gcpro = 
    0x0, jmp = {{__jmpbuf = {12444848, -5687443088092621903, 11811154, 
    140737488347104, 0, 1, 5687441741594825649, -5687442207526808655}, 
              __mask_was_saved = 0, __saved_mask = {__val = {140737353966792, 
    0, 4294967295, 140737488345776, 1, 8499864, 0, 0, 1, 0, 140737351953153, 
    1, 0, 4294967297, 140737264084392, 429496731057}}}}, backlist = 0x0, 
    0, 4294967295, 140737488345776, 1, 8499864, 0, 0, 1, 0, 140737351953153, 
    1, 0, 4294967297, 140737264084392, 429496731057}}}}, backlist = 0x0, 
---Type <return> to continue, or q <return> to quit---
          handlerlist = 0x0, lisp_eval_depth = 0, pdlcount = 2, 
          poll_suppress_count = 1, interrupt_input_blocked = 0, byte_stack = 
    0x0}
        h = {handler = 11863490, var = 11811154, chosen_clause = 11811154, 
          tag = 0x7fffffffda30, next = 0x0}
#4  0x00000000004f5a1e in command_loop_2 (ignore=<value optimized out>)
    at keyboard.c:1156
        val = 6
#5  0x0000000000566b08 in internal_catch (tag=11859362, func=
    0x4f5a00 <command_loop_2>, arg=11811154) at eval.c:1261
        c = {tag = 11859362, val = 11811154, next = 0x0, gcpro = 0x0, jmp = {{
              __jmpbuf = {12444848, -5687443088092621903, 11811154, 
    140737488347104, 0, 1, 5687441741645157297, -5687442207558790223}, 
              __mask_was_saved = 0, __saved_mask = {__val = {12080448, 0, 0, 
    1, 5599371, 140737267568344, 140737267568360, 7, 12080450, 11811154, 
    12080448, 140737488347104, 0, 1, 5678076, 11811154}}}}, backlist = 0x0, 
          handlerlist = 0x0, lisp_eval_depth = 0, pdlcount = 2, 
          poll_suppress_count = 1, interrupt_input_blocked = 0, byte_stack = 
    0x0}
#6  0x00000000004f6a1a in command_loop () at keyboard.c:1135
No locals.
#7  recursive_edit_1 () at keyboard.c:756
        val = 11811154
#8  0x00000000004f6d4f in Frecursive_edit () at keyboard.c:820
        buffer = 11811154
#9  0x00000000004f15fb in main (argc=<value optimized out>, 
    argv=<value optimized out>) at emacs.c:1686
        dummy = 0
        stack_bottom_variable = 0 '\000'
        do_initial_setlocale = <value optimized out>
        skip_args = 0
        rlim = {rlim_cur = 8720000, rlim_max = 18446744073709551615}
        no_loadup = 0
        junk = 0x0
        dname_arg = 0x0
        ch_to_dir = 0x0

(gdb) xbacktrace
Undefined command: "xbacktrace".  Try "help".
(gdb) backtrace
#0  0x00000000005be2d6 in find_automatic_composition (pos=241, limit=241, 
    start=0x7fffffffd868, end=0x7fffffffd860, gstring=0x7fffffffd858, string=
    11811154) at composite.c:1607
#1  0x00000000005c2d09 in composition_adjust_point (last_pt=241, new_pt=241)
    at composite.c:1709
#2  0x00000000005032ed in command_loop_1 () at keyboard.c:1673
#3  0x0000000000566c2e in internal_condition_case (bfun=
    0x502250 <command_loop_1>, handlers=11863490, hfun=0x4f6f50 <cmd_error>)
    at eval.c:1507
#4  0x00000000004f5a1e in command_loop_2 (ignore=<value optimized out>)
    at keyboard.c:1156
#5  0x0000000000566b08 in internal_catch (tag=11859362, func=
    0x4f5a00 <command_loop_2>, arg=11811154) at eval.c:1261
#6  0x00000000004f6a1a in command_loop () at keyboard.c:1135
#7  recursive_edit_1 () at keyboard.c:756
#8  0x00000000004f6d4f in Frecursive_edit () at keyboard.c:820
#9  0x00000000004f15fb in main (argc=<value optimized out>, 
    argv=<value optimized out>) at emacs.c:1686

In GNU Emacs 23.1.1 (x86_64-suse-linux-gnu, GTK+ Version 2.20.1)
 of 2010-07-05 on build35
Windowing system distributor `The X.Org Foundation', version 11.0.10800000
configured using `configure  '--with-pop' '--without-hesiod' '--with-kerberos' '--with-kerberos5' '--with-xim' '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--with-x' '--with-sound' '--with-sync-input' '--with-xpm' '--with-jpeg' '--with-tiff' '--with-gif' '--with-png' '--with-rsvg' '--with-dbus' '--without-gpm' '--with-x-toolkit=gtk' '--x-includes=/usr/include' '--x-libraries=/usr/lib64:/usr/share/X11' '--with-xft' '--with-libotf' '--with-m17n-flt' '--build=x86_64-suse-linux' 'build_alias=x86_64-suse-linux' 'CC=gcc-4.3' 'CFLAGS=-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -D_GNU_SOURCE -std=gnu89 -pipe -Wno-pointer-sign -Wno-unused-variable -Wno-unused-label -Wno-unprototyped-calls -fno-optimize-sibling-calls -DSYSTEM_PURESIZE_EXTRA=55000 	 -DSITELOAD_PURESIZE_EXTRA=10000 ' 'LDFLAGS=-Wl,-O2 -Wl,--hash-size=65521''

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: en_GB.UTF-8
  value of $XMODIFIERS: @im=local
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  auto-image-file-mode: t
  display-time-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  global-auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<help-echo> <help-echo> M-m C-x k <return> M-x r e 
p o <tab> <tab> r t <tab> <return>

Recent messages:
Loading uniquify...done
Toggling show-paren-mode off; better pass an explicit argument.
Loading /jpff/mail-filter.el (source)...done
Loading logger...done
Loading /jpff/.myemacs.elc...done
Loading image-file...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Loading mail-extr...done
Parsing /jpff/.mailrc... done
Making completion list...

==John ffitch