================================================================
Dear Bug Team!
I've been editing some XSLT stylesheet and tried to set
selective display (with C-u 20 C-x $). xemacs crashed with
assertion failure:
================================================================
Fatal error: assertion failed, file buffer.h, line 617, (x) >= ((Charbpos) 1) && x <= ((buf)->text->bufz + 0)
Fatal error (6).
Your files have been auto-saved.
Use `M-x recover-session' to recover them.
Your version of XEmacs was distributed with a PROBLEMS file that may describe
your crash, and with luck a workaround. Please check it first, but do report
the crash anyway.
Please report this bug by invoking M-x report-emacs-bug, or by selecting
`Send Bug Report' from the Help menu. If that won't work, send ordinary
email to `crashes(a)xemacs.org'. *MAKE SURE* to include this entire output
from this crash, especially including the Lisp backtrace, as well as the
XEmacs configuration from M-x describe-installation (or equivalently, the
file `Installation' in the top of the build tree).
*Please* try *hard* to obtain a C stack backtrace; without it, we are unlikely
to be able to analyze the problem. Locate the core file produced as a result
of this crash (often called `core' or `core.<process-id>', and located in
the directory in which you started XEmacs or your home directory), and type
gdb /usr/local/bin/xemacs core
then type `where' at the debugger prompt. No GDB on your system? You may
have DBX, or XDB, or SDB. (Ask your system administrator if you need help.)
If no core file was produced, enable them (often with `ulimit -c unlimited')
in case of future recurrance of the crash.
Lisp backtrace follows:
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
center-to-window-line(35 nil)
# bind (window n)
recenter(35)
# bind (current-vpos arg)
set-selective-display(20)
# bind (command-debug-status)
call-interactively(set-selective-display)
(dispatch-event "[internal]")
# (condition-case ... . error)
# (catch top-level ...)
================================================================
No core was produced, so I run `ulimit -c unlimited' and tried
to reproduce the error, which wasn't difficult (it does depend
on the prefix parameter to set-selective-display, but I don't
know whether it's specific to the XSLT stylesheet; I can send
the stylesheet if you want it). This time I got a core, from
which gdb shows the following backtrace:
================================================================
#0 0x4059cdf1 in kill () from /lib/libc.so.6
#1 0x080f8daf in fatal_error_signal (sig=6) at emacs.c:3513
#2 <signal handler called>
#3 0x4059cdf1 in kill () from /lib/libc.so.6
#4 0x4059cbd8 in raise () from /lib/libc.so.6
#5 0x4059e4d9 in abort () from /lib/libc.so.6
#6 0x080f88db in really_abort () at emacs.c:4363
#7 0x080f783a in assert_failed (file=0x8366412 "buffer.h", line=6,
expr=0xbfffe064 " ") at emacs.c:3699
#8 0x08254d56 in create_text_block (w=0x8564108, dl=0x888b690,
byte_start_pos=8658, prop=0xbfffe79c, type=0) at buffer.h:617
#9 0x082766a9 in generate_display_line (w=0x8564108, dl=0x888b690, bounds=1,
start_pos=8649, prop=0xbfffe79c, type=2) at buffer.h:615
#10 0x0827345d in regenerate_window (w=0x8564108, start_pos=8649, point=0,
type=2) at redisplay.c:5638
#11 0x082615e3 in update_line_start_cache (w=0x8564108, from=5824, to=7792,
point=5824, no_regen=0) at redisplay.c:8625
#12 0x082603bd in point_in_line_start_cache (w=0x8564108, point=5824,
min_past=12) at redisplay.c:7932
#13 0x08260c5e in start_with_point_on_display_line (w=0x8564108, point=5824,
line=12) at redisplay.c:8388
#14 0x08340bb5 in Fcenter_to_window_line (n=12, window=5824) at lisp.h:2460
#15 0x080fe788 in Ffuncall (nargs=3, args=0x19) at eval.c:3843
#16 0x080a8052 in execute_optimized_program (
program=0x8885c68 "Â\t:?\002\t\b\"\210\t?\aÃÄ\b!Å\"\207", stack_depth=8,
constants_data=0x407a346c) at bytecode.c:609
#17 0x08106023 in funcall_compiled_function (fun=1082304008, nargs=1,
args=0xbfffebe8) at opaque.h:36
#18 0x080fe6cc in Ffuncall (nargs=2, args=0xbfffebe4) at eval.c:3881
#19 0x080a8052 in execute_optimized_program (
program=0x8839610 "\nÃa«\005ÄÅ!\210\214e`}\210Æ b\210ÇÈ !)\031\b\004É\b!\022Ê\t!\210)ËÌ ÆÌ !\"\210ÍÎÃ\"\210Ï\nÃ\"\210ÍÐÃ\"\207!", stack_depth=4,
constants_data=0x40789ad8) at bytecode.c:609
#20 0x08106023 in funcall_compiled_function (fun=1082239240, nargs=1,
args=0xbfffed54) at opaque.h:36
#21 0x080fe6cc in Ffuncall (nargs=2, args=0xbfffed50) at eval.c:3881
#22 0x080ad793 in Fcall_interactively (function=1080856608,
record_flag=1081004592, keys=1081004592) at callint.c:995
#23 0x080fcca1 in Fcommand_execute (cmd=1080856608, record_flag=1081004592,
keys=1081004592) at eval.c:3106
#24 0x0811d0b2 in execute_command_event (command_builder=0x860ac50,
event=142826080) at event-stream.c:4209
#25 0x081173a2 in Fdispatch_event (event=142826080) at event-stream.c:4561
#26 0x080c06a8 in Fcommand_loop_1 () at cmdloop.c:573
#27 0x080fb47d in condition_case_1 (handlers=1081002504,
bfun=0x80c0c60 <command_loop_1>, barg=1081004592,
#28 0x080c0ea4 in command_loop_2 (dummy=1081004592) at cmdloop.c:252
#29 0x080fb32a in internal_catch (tag=0, func=0x80c0e50 <command_loop_2>,
arg=1081004592, threw=0x0, thrown_tag=0x0) at eval.c:1527
#30 0x080c09bf in initial_command_loop (load_me=0) at cmdloop.c:301
#31 0x080f6a9d in xemacs_21_5_b15_i686_pc_linux (argc=2, argv=0xbffff464,
envp=0xbffff470, restart=0) at emacs.c:2373
#32 0x080f75f2 in main () at emacs.c:2865
#33 0x4058b4a2 in __libc_start_main () from /lib/libc.so.6
================================================================
System Info to help track down your bug:
---------------------------------------
uname -a: Linux linux 2.4.19-4GB #1 Wed Sep 25 18:58:10 UTC 2002 i686 unknown
./configure '--with-mule'
XEmacs 21.5-b15 "celery" (+CVS-20030905) configured for `i686-pc-linux'.
Compilation / Installation:
Source code location: /usr/local/src/xemacs/xemacs-21.5
Installation prefix: /usr/local
Operating system description file: `s/linux.h'
Machine description file: `m/intel386.h'
Compiler: gcc -Wall -Wno-switch -Winline -Wmissing-prototypes -Wsign-compare -Wundef -Wstrict-prototypes -Wpacked -Wshadow -Wmissing-declarations -g -O3
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/X11/include
- X Windows libraries location: /usr/X11/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).
Databases:
Compiling in support for Berkeley database.
Compiling in support for GNU DBM.
Internationalization:
Compiling in support for Mule (multi-lingual Emacs).
Compiling in support for XIM (X11R5+ I18N input method).
- Using Motif to provide XIM support.
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: ---------------------------------------------------------
Load-Path Lisp Shadows:
----------------------
(/usr/local/lib/xemacs/mule-packages/lisp/mule-base/ethio-util
/usr/local/lib/xemacs-21.5-b15/lisp/mule/ethio-util
/usr/local/lib/xemacs/mule-packages/lisp/mule-base/china-util
/usr/local/lib/xemacs-21.5-b15/lisp/mule/china-util
/usr/local/lib/xemacs/mule-packages/lisp/mule-base/cyril-util
/usr/local/lib/xemacs-21.5-b15/lisp/mule/cyril-util
/usr/local/lib/xemacs/mule-packages/lisp/mule-base/korea-util
/usr/local/lib/xemacs-21.5-b15/lisp/mule/korea-util
/usr/local/lib/xemacs/mule-packages/lisp/mule-base/viet-util
/usr/local/lib/xemacs-21.5-b15/lisp/mule/viet-util
/usr/local/lib/xemacs/mule-packages/lisp/mule-base/japan-util
/usr/local/lib/xemacs-21.5-b15/lisp/mule/japan-util)
Installed XEmacs Packages:
-------------------------
((xslide:version 1.08 :type regular)
(xemacs-devel :version 1.58 :type single-file)
(xemacs-base :version 1.78 :type regular)
(w3 :version 1.28 :type regular)
(vm :version 7.14 :type regular)
(vc :version 1.37 :type regular)
(text-modes :version 1.61 :type single-file)
(supercite :version 1.19 :type regular)
(speedbar :version 1.26 :type regular)
(sieve :version 1.13 :type regular)
(sh-script :version 1.17 :type regular)
(semantic :version 1.17 :type regular)
(sasl :version 1.13 :type regular)
(rmail :version 1.13 :type regular)
(python-modes :version 1.02 :type single-file)
(psgml :version 1.4 :type regular)
(prog-modes :version 1.79 :type single-file)
(perl-modes :version 1.04 :type single-file)
(pcl-cvs :version 1.64 :type regular)
(os-utils :version 1.31 :type single-file)
(net-utils :version 1.32 :type single-file)
(mmm-mode :version 1.0 :type regular)
(misc-games :version 1.16 :type single-file)
(mh-e :version 1.23 :type regular)
(mail-lib :version 1.57 :type regular)
(jde :version 1.45 :type regular)
(ispell :version 1.24 :type regular)
(ilisp :version 1.32 :type regular)
(hm--html-menus :version 1.21 :type regular)
(gnats :version 1.15 :type regular)
(fsf-compat :version 1.12 :type single-file)
(eterm :version 1.14 :type regular)
(elib :version 1.1 :type single-file)
(eieio :version 1.04 :type regular)
(efs :version 1.29 :type regular)
(edit-utils :version 2.07 :type single-file)
(ediff :version 1.47 :type regular)
(edebug :version 1.18 :type regular)
(ecrypto :version 0.13 :type regular)
(dired :version 1.14 :type regular)
(debug :version 1.16 :type regular)
(cc-mode :version 1.39 :type regular)
(calendar :version 1.21 :type regular)
(calc :version 1.23 :type regular)
(bbdb :version 1.23 :type regular)
(apel :version 1.26 :type regular)
(mule-base :version 1.43 :type regular)
(leim :version 1.2 :type regular)
(latin-unity :version 1.07 :type regular))
Installed Modules:
-----------------
Features:
--------
(mail-abbrevs xemacsbug shadow sendmail rfc822 advice advice-preload
font-lock cus-face xslide-autoloads xemacs-devel-autoloads
xemacs-base-autoloads w3-autoloads vm-autoloads vc-autoloads
text-modes-autoloads supercite-autoloads speedbar-autoloads
sieve-autoloads sh-script-autoloads semantic-autoloads sasl-autoloads
rmail-autoloads python-modes-autoloads psgml-autoloads
prog-modes-autoloads perl-modes-autoloads pcl-cvs-autoloads
os-utils-autoloads net-utils-autoloads mmm-mode-autoloads
misc-games-autoloads mh-e-autoloads mail-lib-autoloads jde-autoloads
ispell-autoloads ilisp-autoloads hm--html-menus-autoloads
gnats-autoloads fsf-compat-autoloads eterm-autoloads elib-autoloads
eieio-autoloads efs-autoloads edit-utils-autoloads ediff-autoloads
edebug-autoloads ecrypto-autoloads dired-autoloads debug-autoloads
cc-mode-autoloads calendar-autoloads calc-autoloads bbdb-autoloads
apel-autoloads mule-base-autoloads leim-autoloads
latin-unity-autoloads modules-autoloads mule-autoloads lisp-autoloads
loadhist rsz-minibuf auto-show fontl-hooks x-iso8859-1 tibetan lao
devanagari indian slovenian czech romanian ccl code-cmds gutter-items
menubar-items x-menubar mode-motion mouse behavior itimer auto-save
lisp-mode easymenu iso8859-1 page buff-menu lib-complete cus-file
derived newcomment env text-props frame obsolete cus-start custom
widget cl-extra mini-cl cl cl-19 packages backquote unicode
lucid-scrollbars cut-buffer lucid-menubars motif-dialogs x
c-balloon-help tty-frames tty toolbar native-sound scrollbar
unix-processes multicast network-streams subprocesses modules
menu-accelerator-support menubar berkeley-db dbm md5 xemacs xim mule
gutter tiff png gif jpeg xpm xbm lisp-float-type file-coding linux
dialog devices window-system base64)
Recent keystrokes:
-----------------
button1 button1up M-x r e p o r t - x e m a TAB RE
T
Recent messages (most recent first):
-----------------------------------
Auto save file for draft message exists; consider M-x mail-recover
Loading xemacsbug...done
Loading xemacsbug...
Loading advice...done
Loading advice...
Loading cus-face...done
Loading cus-face...