emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Crash in cc mode and/or auto-fill-mode


From: Edwin Stearns
Subject: Crash in cc mode and/or auto-fill-mode
Date: Sun, 05 Feb 2006 14:25:25 -0500
User-agent: Thunderbird 1.5 (Windows/20051201)

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 address@hidden mailing
list.

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

Recent cvs emacs crashes with the following procedure.

emacs -Q

Evaluate the following:

(defun my-c-mode-common-hook ()
  (define-key c-mode-base-map "\r" 'c-context-line-break)
  (setq c-block-comment-prefix "** ")
  (auto-fill-mode))

(add-hook 'c-mode-common-hook 'my-c-mode-common-hook)


C-x C-f foo.c

Where foo.c is a new file.

insert:

/*****

Then press RET twice.

On the second return emacs crashes with the following message:

Fatal error (6)Aborted


gdb bt full:

#0  abort () at emacs.c:464
No locals.
#1  0x081734d2 in set_point_both (buffer=0x854fef8, charpos=8,
bytepos=8) at intervals.c:2037
        to = 0x87c5ed4
        from = 0x0
        toprev = 0x87c5ed4
        fromprev = 0x87c5ed4
        buffer_point = 137413625
        old_position = 7
        backwards = 0
        have_overlays = 135506397
        original_position = -1073754200
#2  0x0810e90c in internal_self_insert (c=10, noautofill=0) at cmds.c:532
        hairy = 1
        tem = 7
        overwrite = 137413625
        string = 137413625
        len = 1
        str = "\n\320\377\277"
        chars_to_delete = 0
        spaces_to_insert = 0
#3  0x0810e472 in Fself_insert_command (n=0) at cmds.c:359
No locals.
#4  0x0813ad03 in Ffuncall (nargs=2, args=0xbfffd0a4) at eval.c:2879
        fun = 135908840
        funcar = 7
        numargs = 1
        lisp_numargs = 7
        val = 7
        backtrace = {
  next = 0xbfffd170,
  function = 0xbfffd0a0,
  args = 0xbfffd0a4,
  nargs = 1,
  evalargs = 0 '\0',
  debug_on_exit = 0 '\0'
}
        internal_args = (Lisp_Object *) 0xbfffd0a4
        i = 7
#5  0x08161118 in Fbyte_code (bytestr=137647153, vector=1,
maxdepth=-1073753952) at bytecode.c:694
        op = 1
        vectorp = (Lisp_Object *) 0x8214d20
        stack = {
  pc = 0x8214ccc "\210+\016$\203\256",
  top = 0xbfffd0a4,
  bottom = 0xbfffd0a0,
  byte_string = 136399915,
  byte_string_start = 0x8214c38 "\306 \210o?\205i",
  constants = 136400156,
  next = 0xbfffd1e0
}
        top = (Lisp_Object *) 0xbfffd0a0
        result = 7
#6  0x0813afe1 in funcall_lambda (fun=136399868, nargs=1,
arg_vector=0xbfffd1c4) at eval.c:3066
        val = 7
        syms_left = 137413625
        next = 136399864
        i = 1
        optional = 1
        rest = 0
#7  0x0813abe3 in Ffuncall (nargs=2, args=0xbfffd1c0) at eval.c:2934
        fun = 136399868
        funcar = 7
        numargs = 1
        lisp_numargs = 7
        val = 7
        backtrace = {
  next = 0xbfffd280,
  function = 0xbfffd1c0,
  args = 0xbfffd1c4,
  nargs = 1,
  evalargs = 0 '\0',
  debug_on_exit = 0 '\0'
}
        internal_args = (Lisp_Object *) 0xbfffd1c0
        i = 7
#8  0x08161118 in Fbyte_code (bytestr=140878969, vector=1,
maxdepth=-1073753664) at bytecode.c:694
        op = 1
        vectorp = (Lisp_Object *) 0x85a51f0
        stack = {
  pc = 0x8796aa3 "\207",
  top = 0xbfffd1c4,
  bottom = 0xbfffd1c0,
  byte_string = 139554859,
  byte_string_start = 0x8796a90 "\302 \210\b\203\v",
  constants = 140136940,
  next = 0xbfffd300
}
        top = (Lisp_Object *) 0xbfffd1c0
        result = 7
#9  0x0813afe1 in funcall_lambda (fun=140137076, nargs=0,
arg_vector=0xbfffd2d4) at eval.c:3066
        val = 7
        syms_left = 137413625
        next = 140137072
        i = 0
        optional = 0
        rest = 0
#10 0x0813abe3 in Ffuncall (nargs=1, args=0xbfffd2d0) at eval.c:2934
        fun = 140137076
        funcar = 7
        numargs = 0
        lisp_numargs = 7
        val = 7
        backtrace = {
  next = 0xbfffd3a0,
  function = 0xbfffd2d0,
  args = 0xbfffd2d4,
  nargs = 0,
  evalargs = 0 '\0',
  debug_on_exit = 0 '\0'
}
        internal_args = (Lisp_Object *) 0xbfffd2d0
        i = 7
#11 0x08161118 in Fbyte_code (bytestr=140878993, vector=0,
maxdepth=-1073753392) at bytecode.c:694
        op = 0
        vectorp = (Lisp_Object *) 0x858c238
        stack = {
  pc = 0x87969a8
"address@hidden"\204\356\001\346\026D\347\026E\202\356\001\324\350\016D\"\204\356\001\351\026D\352\026E\212\353
\210i)\026F\f
\210\016E\203\020\002\016E\354\232\204\020\002\355u\210\327\016E!\210\340u\210\016Fj\210\327\016D!\210\356
+\202\177\002\v9\203I\002\212\307
\035\310\211\0366\0367\310\0368\311\211\0369\036:\311\036;\357\216\316
\205B\002`.\t\211\023\202J\002\v\203b\002\336\360!\204V\002\361
\210\362\016G?\205^\002\340!\202\177\002\212\342
\210\336\363!\203s\002\355y\364U\204f\002\365 )\036F\f \210\016"...,
  top = 0xbfffd2d0,
  bottom = 0xbfffd2d0,
  byte_string = 139554923,
  byte_string_start = 0x87967f4 "\b\306\t\n\v\e\032\031\034\030\307
\035\310\211\0366\0367\310\0368\311\211\0369\036:\311\036;\312\216\016<\310=\204\256",

  constants = 140034612,
  next = 0xbfffd420
}
        top = (Lisp_Object *) 0xbfffd2d0
        result = 7
#12 0x0813afe1 in funcall_lambda (fun=140035020, nargs=2,
arg_vector=0xbfffd3f4) at eval.c:3066
        val = 7
        syms_left = 137413625
        next = 140035016
        i = 2
        optional = 1
        rest = 0
#13 0x0813abe3 in Ffuncall (nargs=3, args=0xbfffd3f0) at eval.c:2934
        fun = 140035020
        funcar = 7
        numargs = 2
        lisp_numargs = 7
        val = 7
        backtrace = {
  next = 0xbfffd4c0,
  function = 0xbfffd3f0,
  args = 0xbfffd3f4,
  nargs = 2,
  evalargs = 0 '\0',
  debug_on_exit = 0 '\0'
}
        internal_args = (Lisp_Object *) 0xbfffd3f0
        i = 7
#14 0x08161118 in Fbyte_code (bytestr=140207992, vector=2,
maxdepth=-1073753104) at bytecode.c:694
        op = 2
        vectorp = (Lisp_Object *) 0x866a190
        stack = {
  pc = 0x8796cc7 "*\202\305",
  top = 0xbfffd3f8,
  bottom = 0xbfffd3f0,
  byte_string = 139623907,
  byte_string_start = 0x8796c28 "\306\211\030\031\n\032\307
\e\310\211\034\035\310\036\035\306\211\036\036\036\037\306\036
\311\216\312\306\211\310#\020\313\b!\211\021\314=\206\220",
  constants = 140943756,
  next = 0x0
}
        top = (Lisp_Object *) 0xbfffd3f0
        result = 7
#15 0x0813afe1 in funcall_lambda (fun=140944020, nargs=0,
arg_vector=0xbfffd544) at eval.c:3066
        val = 7
        syms_left = 137413625
        next = 140944016
        i = 0
        optional = 0
        rest = 0
#16 0x0813abe3 in Ffuncall (nargs=1, args=0xbfffd540) at eval.c:2934
        fun = 140944020
        funcar = 7
        numargs = 0
        lisp_numargs = 7
        val = 7
        backtrace = {
  next = 0xbfffd6d0,
  function = 0xbfffd540,
  args = 0xbfffd544,
  nargs = 0,
  evalargs = 0 '\0',
  debug_on_exit = 0 '\0'
}
        internal_args = (Lisp_Object *) 0xbfffd540
        i = 7
#17 0x08136999 in Fcall_interactively (function=139726033,
record_flag=137413625, keys=137453836) at callint.c:884
        val = 7
        args = (Lisp_Object *) 0xbfffd540
        visargs = (Lisp_Object *) 0xbfffd530
        argstrings = (unsigned char **) 0xbfffd520
        fun = 7
        specs = 137413625
        teml = 139726033
        up_event = 137413625
        enable = 137413625
        next_event = 1
        prefix_arg = 137413625
        string = (unsigned char *) 0xbfffd551 ""
        tem = (unsigned char *) 0xbfffd551 ""
        varies = (int *) 0xbfffd510
        i = 1
        j = 139726033
        count = 0
        foo = 7
        prompt1 = '\0' <repeats 40 times>,
"\250\323\377\277\371\3030\b\371\3030\b\001\000\000\000\250\325\377\277\371\3030\b\210\021+\b\004\000\000\000\000\000\000\000\371\3030\b}\021+\b\000\000\000\000\220\323\377\277\321\fT\b\371\3030\b"
        arg_from_tty = 0
        gcpro1 = {
  next = 0x0,
  var = 0x0,
  nvars = 0
}
        gcpro2 = {
  next = 0x0,
  var = 0x0,
  nvars = 0
}
        gcpro3 = {
  next = 0x0,
  var = 0x0,
  nvars = 1
}
        gcpro4 = {
  next = 0x0,
  var = 0x0,
  nvars = 1
}
        gcpro5 = {
  next = 0x0,
  var = 0x0,
  nvars = 0
}
        key_count = 1
        record_then_fail = 0
        save_this_command = 139726033
        save_last_command = 139726033
        save_this_original_command = 139726033
        save_real_this_command = 139726033
#18 0x080e9337 in Fcommand_execute (cmd=139726033,
record_flag=137413625, keys=137413625, special=137413625) at keyboard.c:9751
        final = 140944016
        tem = 7
        prefixarg = 137413625
        backtrace = {
  next = 0x0,
  function = 0x82ff1d0,
  args = 0xbfffd710,
  nargs = 1,
  evalargs = 0 '\0',
  debug_on_exit = 0 '\0'
}
#19 0x080dec7c in command_loop_1 () at keyboard.c:1786
        cmd = 2
        lose = 1
        nonundocount = 0
        keybuf = {104, 48, 32, 1107365492, 1107344736, 1107309504,
1075684608, 19, 1075686544, 1073781057, 134530770, 1075684532,
1073780987, 1073829104, 1075683968, 0,
  0, -1073752260, -1073752400, 0, 1075642368, 0, 32, 1107365492,
1107344736, 1107309504, 1075684608, 0, 1, -1073751400}
        i = 1
        no_direct = 7
        prev_modiff = 69
        prev_buffer = (struct buffer *) 0x854fef8
        was_locked = 0
        already_adjusted = 0
#20 0x081392b6 in internal_condition_case (bfun=0x80de93c
<command_loop_1>, handlers=137457953, hfun=0x80de4c0 <cmd_error>) at
eval.c:1465
        val = 7
        c = {
  tag = 137413625,
  val = 137413625,
  next = 0xbfffd930,
  gcpro = 0x0,
  jmp = {{
      __jmpbuf = {0, 1, -1073751400, -1073751816, -1073752096, 135500369},
      __mask_was_saved = 0,
      __saved_mask = {
        __val = {135416312, 135699444, 335544320, 0, 110932256,
3221215472, 1073829624, 0, 0, 1107340896, 1075684608, 0 <repeats 14
times>, 1073776031, 1073829104, 6569,
          1073829624, 3221215488, 1073792003, 1073830036}
      }
    }},
  backlist = 0x0,
  handlerlist = 0x0,
  lisp_eval_depth = 0,
  pdlcount = 2,
  poll_suppress_count = 1,
  interrupt_input_blocked = 0,
  byte_stack = 0x0
}
        h = {
  handler = 137457953,
  var = 137413625,
  chosen_clause = 1,
  tag = 0xbfffd810,
  next = 0x0
}
#21 0x080de7c2 in command_loop_2 () at keyboard.c:1323
        val = 7
#22 0x08138e1d in internal_catch (tag=7, func=0x80de7a4
<command_loop_2>, arg=137413625) at eval.c:1211
        c = {
  tag = 137454209,
  val = 137413625,
  next = 0x0,
  gcpro = 0x0,
  jmp = {{
      __jmpbuf = {0, 1, -1073751400, -1073751528, -1073751776, 135499250},
      __mask_was_saved = 0,
      __saved_mask = {
        __val = {16, 0, 139787504, 8, 8, 3221215288, 135416363,
139787504, 8, 8, 137430584, 139787523, 140050840, 3221215304, 8,
3221215586, 137573306, 137595385,
          137445200, 3221215736, 135437456, 137595385, 137573306,
137413625, 137445200, 0, 0, 0, 137573304, 137400093, 137413625, 3221215752}
      }
    }},
  backlist = 0x0,
  handlerlist = 0x0,
  lisp_eval_depth = 0,
  pdlcount = 2,
  poll_suppress_count = 1,
  interrupt_input_blocked = 0,
  byte_stack = 0x0
}
#23 0x080de779 in command_loop () at keyboard.c:1302
No locals.
#24 0x080de278 in recursive_edit_1 () at keyboard.c:995
        val = 0
#25 0x080de398 in Frecursive_edit () at keyboard.c:1056
        buffer = 7
#26 0x080dcb7b in main (argc=2, argv=0xbfffdd24) at emacs.c:1789
        dummy = 0
        stack_bottom_variable = 0 '\0'
        do_initial_setlocale = 1
        skip_args = 0
        rlim = {
  rlim_cur = 8388608,
  rlim_max = 18446744073709551615
}
        no_loadup = 0
        junk = 0x0
#27 0x42015704 in __libc_start_main () from /lib/tls/libc.so.6
No symbol table info available.

Lisp Backtrace:
"self-insert-command"
"newline"
0x85a5274 PVEC_COMPILED
"c-indent-new-comment-line"
"c-context-line-break"
"call-interactively"


Edwin Stearns

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/22.0.50/etc/DEBUG for instructions.


In GNU Emacs 22.0.50.24 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2006-01-30 on localhost.localdomain
X server distributor `The XFree86 Project, Inc', version 11.0.40300000
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_US.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  auto-compression-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  line-number-mode: t

Recent input:
M-x f e <backspace> <backspace> r e b o r <backspace>
<backspace> <backspace> p o r <tab> <return>

Recent messages:
(emacs)
For information about the GNU Project and its goals, type C-h C-p.
Loading emacsbug...
Loading regexp-opt...done
Loading emacsbug...done








reply via email to

[Prev in Thread] Current Thread [Next in Thread]