The works:
Fatal error: assertion failed, file buffer.h, line 617, (x) >= ((Charbpos) 1)
&& x <= ((buf)->text->bufz + 0)
Lisp backtrace follows:
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
scan-lists(11026 -1 1)
# bind (inc arg)
up-list(-1)
# bind (arg)
backward-up-list(1)
byte-code("..." [backward-up-list 1 t] 2)
# (condition-case ... . ((error)))
# bind (inenclosing-p inclass-p special-brace-list injava-inher keyword tmpsymbol
inswitch-p c-in-literal-cache placeholder syntax lim char-after-ip char-before-ip
containing-sexp literal state fullstate case-fold-search indent-point)
# (unwind-protect ...)
# (unwind-protect ...)
c-guess-basic-syntax()
# bind (c-parsing-error shift-amt quiet syntax)
c-indent-line()
#<compiled-function nil "...(3)" [indent-line-function] 1 1059269
nil>()
# bind (bod indent-function arg)
c-indent-command(1)
# bind (command-debug-status)
call-interactively(c-indent-command)
# (condition-case ... . error)
# (catch top-level ...)
C backtrace:
#0 0x405a1b01 in __kill () from /lib/i686/libc.so.6
#1 0x405a18da in raise (sig=6) at ../sysdeps/posix/raise.c:27
#2 0x405a3082 in abort () at ../sysdeps/generic/abort.c:88
#3 0x080d8177 in really_abort () at emacs.c:4256
#4 0x080d7033 in assert_failed (file=0x82df768 "buffer.h", line=617,
expr=0x82df840 "(x) >= ((Charbpos) 1) && x <=
((buf)->text->bufz + 0)") at emacs.c:3607
#5 0x080fea23 in charbpos_to_bytebpos (buf=0x875afe0, x=0) at buffer.h:617
#6 0x080ff15e in buffer_or_string_charxpos_to_bytexpos (obj=141930464, pos=0) at
buffer.h:762
#7 0x082254ed in update_syntax_cache (cache=0x875b258, cpos=0, count=1) at syntax.c:443
#8 0x08100f40 in UPDATE_SYNTAX_CACHE_FORWARD (cache=0x875b258, pos=0) at syntax.h:322
#9 0x08226a72 in find_start_of_comment (buf=0x875afe0, from=1, stop=1, comstyle=0) at
syntax.c:970
#10 0x08228321 in scan_lists (buf=0x875afe0, from=6750, count=-1, depth=1, sexpflag=0,
noerror=0) at syntax.c:1577
#11 0x08228776 in Fscan_lists (from=22053, count=-1, depth=3, buffer=1082975516,
noerror=1082975516) at syntax.c:1698
#12 0x080de439 in Ffuncall (nargs=4, args=0xbfffdde4) at eval.c:3758
#13 0x080a17ad in execute_optimized_program (
program=0x886fb60
"\t¬\003Â\021\tÃV«\004ª\002Ä\030\tÃU?\024Å`\bÂ#®\004Æ\t!b\210\t\bZ\211\021ªé)\207",
stack_depth=5,
constants_data=0x4097df3c) at bytecode.c:675
#14 0x080e3c83 in funcall_compiled_function (fun=1084231860, nargs=1, args=0xbfffe008) at
eval.c:3395
#15 0x080de617 in Ffuncall (nargs=2, args=0xbfffe004) at eval.c:3793
#16 0x080a17ad in execute_optimized_program (program=0x886fb40
"Á\b®\002Â[!\207°\204j@A", stack_depth=2, constants_data=0x4097df68)
at bytecode.c:675
#17 0x080e3c83 in funcall_compiled_function (fun=1084231904, nargs=1, args=0xbfffe218) at
eval.c:3395
#18 0x080de617 in Ffuncall (nargs=2, args=0xbfffe214) at eval.c:3793
#19 0x080a17ad in execute_optimized_program (program=0xbfffe340 "ÀÁ!\210Â\207",
stack_depth=2, constants_data=0x8711608)
at bytecode.c:675
#20 0x080a66cb in Fbyte_code (instructions=142348316, constants=141628920, stack_depth=5)
at bytecode.c:2343
#21 0x080dd905 in Feval (form=143164392) at eval.c:3540
#22 0x080daa90 in condition_case_1 (handlers=143164500, bfun=0x80dd120 <Feval>,
barg=143164392,
hfun=0x80dabb0 <run_condition_case_handlers>, harg=1082975516) at eval.c:1864
#23 0x080daf93 in condition_case_3 (bodyform=143164392, var=1082975516,
handlers=143164500) at eval.c:1949
#24 0x080a2d6f in execute_rare_opcode (stack_ptr=0xbfffe674, program_ptr=0x8950d83
"«\017`\fV«\nÇu\210ÓÇw\210`\024\201Ë",
opcode=Bcondition_case) at bytecode.c:1200
#25 0x080a14b5 in execute_optimized_program (
program=0x8950150 "\212\214Æy\210`\032Ç\036jÈ
\211\036R\036HÇ\211\036S\eÇ\211\036G\036AÇ\211\031\035Ç\211\034\036kÇ\211\036W\036EÇ\211\036Z\036MÇ\036FÉ\016H\n\"\036BÇ\036L\212\214~\210\016B«(\016BÆHb\210Ê\016_ËP!«\032ÌÍ!\211\036cÎ\230«\006Ï\026Lª\n\016cÐ\230«\004Ñ\026L)*\212\nb\210ÒÇw\210ÓÇx\210\016H«.\013¬+\016H@\023\016HA\026H\013:«\020\013A`U«\006\013@\023ªâÇ\023ªÞ\013eX¬\006\013\nY«ÔÇ\023ªÐ)\013®\016\016R@:«\a\016R@A®\002e\021\nb\210ÓÇw\210Çf\026A"...,
stack_depth=8, constants_data=0x8848738) at bytecode.c:581
#26 0x080e3c83 in funcall_compiled_function (fun=142899780, nargs=0, args=0xbfffe8a8) at
eval.c:3395
#27 0x080de617 in Ffuncall (nargs=1, args=0xbfffe8a4) at eval.c:3793
#28 0x080a17ad in execute_optimized_program (
program=0x88acb88 "Æ\035\t«5Æ\e\b®\006\n®\003Ç
\032È\n!\034É\016\025!¬\013\016\026«\aÊË\n\f#\210\fÌ
Z\025Í\r!\210ÎÏ!\210\013+®\002\013\023ª Ð\034\212ÑyÐU«\fÒÓ!¬öÔ \210Ì \024)\fÌ
Z\025Í\r!\210)\r)\207", stack_depth=4, constants_data=0x8848cf8) at bytecode.c:675
#29 0x080e3c83 in funcall_compiled_function (fun=142900044, nargs=0, args=0xbfffeac8) at
eval.c:3395
#30 0x080de617 in Ffuncall (nargs=1, args=0xbfffeac4) at eval.c:3793
#31 0x080a17ad in execute_optimized_program (program=0x890a0d0 "\b \207",
stack_depth=1, constants_data=0x40976ff8)
at bytecode.c:675
#32 0x080e3c83 in funcall_compiled_function (fun=1084213644, nargs=0, args=0xbfffecd8) at
eval.c:3395
#33 0x080de617 in Ffuncall (nargs=1, args=0xbfffecd4) at eval.c:3793
#34 0x080a17ad in execute_optimized_program (
program=0x88a5a40 "\212ÆÇ!«N\016!«JÈ\035\r¬?\214~\210É`ÊÇ
ÈË%\025)o«\006e\211\025ªê\r¬\024ÌÈx\036\034Í\016\034!«\006Î
\210`\025)ªÓ\rÏU¬Î\rfÐa¬È\rb\210È\211\025«Ã\rb\210)ª\004Î
\210\016\035«\013Ñ\016\035!«\005Ï\225b\210`)\016\036«\005ÒKª\002Ó\e\036\037\016\036«I\016\"«E\212Ô
\210i)È\211\032\034\031Õ \210\212Ô
\210i)\tZ\021\212\bËa«\004Ïy\210`\024Ö`×\"®\002db\210`\022\fb\210×y\210`\024)\n\fV\aØ\f\n\tÙ$+ª+\b¬\023\212ÚÈx\210n)"...,
stack_depth=7, constants_data=0x875bd60) at bytecode.c:675
#35 0x080e3c83 in funcall_compiled_function (fun=143555904, nargs=1, args=0xbfffeef4) at
eval.c:3395
#36 0x080de617 in Ffuncall (nargs=2, args=0xbfffeef0) at eval.c:3793
#37 0x080a8578 in Fcall_interactively (function=143633468, record_flag=1082975516,
keys=1082975516) at callint.c:994
#38 0x080dc829 in Fcommand_execute (cmd=143633468, record_flag=1082975516,
keys=1082975516) at eval.c:3054
#39 0x080f36e6 in execute_command_event (command_builder=0x84dc3b0, event=142820708) at
event-stream.c:4331
#40 0x080f3fc1 in Fdispatch_event (event=142820708) at event-stream.c:4651
#41 0x080aff8c in Fcommand_loop_1 () at cmdloop.c:582
#42 0x080afd51 in command_loop_1 (dummy=1082975516) at cmdloop.c:501
#43 0x080daa90 in condition_case_1 (handlers=1082973308, bfun=0x80afd20
<command_loop_1>, barg=1082975516,
hfun=0x80af93c <cmd_error>, harg=1082975516) at eval.c:1864
#44 0x080afa54 in command_loop_3 () at cmdloop.c:264
#45 0x080afa77 in command_loop_2 (dummy=1082975516) at cmdloop.c:275
#46 0x080da583 in internal_catch (tag=1082734628, func=0x80afa6c <command_loop_2>,
arg=1082975516, threw=0x0, thrown_tag=0x0)
at eval.c:1487
#47 0x080afb6c in initial_command_loop (load_me=1082975516) at cmdloop.c:313
#48 0x080d5bc8 in sort_args (argc=2, argv=0xbffff584) at emacs.c:2344
#49 0x080d673e in main (argc=2, argv=0xbffff584, envp=0xbffff590) at emacs.c:2720
#50 0x4058f647 in __libc_start_main (main=0x80d66b4 <main>, argc=2,
ubp_av=0xbffff584, init=0x808a4dc <_init>,
fini=0x829fe00 <_fini>, rtld_fini=0x4000dcd4 <_dl_fini>,
stack_end=0xbffff57c) at ../sysdeps/generic/libc-start.c:129
(gdb) print *buf
$2 = {header = {lheader = {type = 0x18, mark = 0x0, c_readonly = 0x0, lisp_readonly = 0x0,
unused = 0x0}, next = 0x882e768,
uid = 0x1a8d, free = 0x0}, own_text = {
beg = 0x88acd18 "/*\n Sega system16 and friends hardware\n\n", ' '
<repeats 15 times>, "CPU Tiles Sprites Priority Color SCPU
Sound", ' ' <repeats 16 times>, "Other\nSystem C 68000
315-5313", ' ' <repeats 23 times>, "315-52"...,
gpt = 0x1652d, z = 0x1652d, bufz = 0x1652d, gap_size = 0x27d0, end_gap_size = 0x0,
modiff = 0x5, save_modiff = 0x5,
mule_bufmin = 0x1, mule_bufmax = 0x1, mule_bytmin = 0x1, mule_bytmax = 0x1,
mule_shifter = 0x0, mule_three_p = 0x0,
mule_charbpos_cache = {0x1 <repeats 16 times>}, mule_bytebpos_cache = {0x1
<repeats 16 times>}, entirely_one_byte_p = 0x1,
num_ascii_chars = 0x1652c, num_8_bit_fixed_chars = 0x1652c, num_16_bit_fixed_chars =
0x1652c, format = FORMAT_DEFAULT,
line_number_cache = 0x408ce51c, changes = 0x875b1d0}, text = 0x875afec, pt = 0x2b12,
bufpt = 0x2b12, begv = 0x1, bufbegv = 0x1,
zv = 0x1652d, bufzv = 0x1652d, face_change = 0x1f5, buffer_local_face_property = 0x0,
changes = 0x875b1e8, markers = 0x87de0ac,
extent_info = 0x875b200, syntax_cache = 0x875b258, base_buffer = 0x0, indirect_children
= 0x408ce51c,
local_var_flags = 0xffffffff, modtime = 0x3d577075, auto_save_modified = 0x4,
auto_save_failure_time = 0xffffffff,
last_window_start = 0x1, name = 0x870e7cc, filename = 0x8767634, directory = 0x870ea8c,
backed_up = 0x408ce51c,
saved_size = 0x2ca59, auto_save_file_name = 0x883329c, read_only = 0x408ce51c, mark =
0x854026c, local_var_alist = 0x88e1948,
major_mode = 0x408c53cc, mode_name = 0x85941f4, modeline_format = 0x408d6c88, keymap =
0x87e3d30, abbrev_table = 0x87c97c0,
syntax_table = 0x88a02b0, mirror_syntax_table = 0x88a0758, category_table = 0x40a166a0,
buffer_file_coding_system = 0x40a11804,
case_fold_search = 0x408ce51c, tab_width = 0x11, fill_column = 0x8d, left_margin = 0x1,
auto_fill_function = 0x408ce51c,
case_table = 0x40a3218c, truncate_lines = 0x408ce51c, ctl_arrow = 0x408986b4,
selective_display = 0x408ce51c,
selective_display_ellipses = 0x408cdf04, overwrite_mode = 0x408ce51c, abbrev_mode =
0x408cdf04, undo_list = 0x408ce51c,
file_format = 0x408ce51c, point_marker = 0x8540284, point_before_scroll = 0x408ce51c,
file_truename = 0x870ea5c,
invisibility_spec = 0x408cdf04, generated_modeline_string = 0x870e81c,
modeline_extent_table = 0x882e788}
(gdb) print x
$3 = 0x0
Config (cvs of an hour ago or so, I updated to see if it was
reproducible with the current version):
uname -a: Linux
zalem.puupuu.org 2.4.19 #1 Mon Aug 12 00:12:50 EDT 2002 i686 unknown
../xemacs-21.5/configure '--prefix=/home/galibert' '--cflags=-g -Wall
-Wno-switch' '--pdump' '--with-mule'
XEmacs 21.5-b8 "broccoli" configured for `i686-pc-linux'.
Compilation / Installation:
Source code location: /home/galibert/xemacs/xemacs-21.5
Installation prefix: /home/galibert
Operating system description file: `s/linux.h'
Machine description file: `m/intel386.h'
Compiler: gcc -g -Wall -Wno-switch
Relocating allocator for buffers: no
GNU version of malloc: yes
- Using Doug Lea's new malloc from the GNU C Library.
Window System:
Compiling in support for the X window system:
- X Windows headers location: /usr/X11R6/include
- X Windows libraries location: /usr/X11R6/lib
- Handling WM_COMMAND properly.
Using Lucid menubars.
Using Lucid scrollbars.
Using Motif dialog boxes.
Using Motif native widgets.
TTY:
Compiling in support for ncurses.
Compiling in support for GPM (General Purpose Mouse).
Images:
Compiling in support for GIF images (builtin).
Compiling in support for XPM images.
Compiling in support for PNG images.
Compiling in support for JPEG images.
Compiling in support for TIFF images.
Sound:
Compiling in support for sound (native).
Compiling in support for ESD (Enlightened Sound Daemon).
Databases:
Compiling in support for Berkeley database.
Compiling in support for LDAP.
Compiling in support for PostgreSQL.
- Using PostgreSQL header file: pgsql/libpq-fe.h
- Using PostgreSQL V7 bindings.
Internationalization:
Compiling in support for Mule (multi-lingual Emacs).
Compiling in support for XIM (X11R5+ I18N input method).
- Using raw Xlib to provide XIM support.
Compiling in support for Canna on Mule.
Compiling in support for the WNN input method on Mule.
Mail:
Compiling in support for "dot-locking" mail spool file locking method.
Other Features:
Inhibiting IPv6 canonicalization at startup.
Compiling in support for dynamic shared object modules.
Using the new portable dumper.
Compiling in support for extra debugging code.
WARNING: ---------------------------------------------------------
WARNING: Compiling in support for runtime error checking.
WARNING: XEmacs will run noticeably more slowly as a result.
WARNING: Error checking is on by default for XEmacs beta releases.
WARNING: ---------------------------------------------------------
How to reproduce it:
Decompress the attached file and load it in C mode. Go to line 381
(second line of the sys16_tile_vh_start prototype) and press TAB to
indent the line. Boom.
OG.