This bug report will be sent to the XEmacs Development Team,
not to your local site managers!!
Please write in English, because the XEmacs maintainers do not have
translators to read other languages for them.
Please describe as succinctly as possible:
- What happened.
- What you thought should have happened.
- Precisely what you were doing at the time.
Please also include any C or lisp back-traces that you may have.
================================================================
Dear Bug Team!
marking the whole buffer with the Perl script included below (there
isn't much to see in it) and pressing C-M-\
(indent-region-or-balanced-expression) reliably crashes XEmacs; the
stack trace is
(if ... ... ...) (beginning-of-line 2)) (if (fboundp ...) (imenu-progress-message pm 100)
(message nil)))
# bind (h-a-c cperl-update-end cperl-update-start)
(let (cperl-update-start cperl-update-end (h-a-c after-change-functions)) (let (st comm
old-comm-indent new-comm-indent p pp i empty ... after-change-functions ... ...) (if h-a-c
...) (goto-char start) (setq old-comm-indent ... new-comm-indent old-comm-indent)
(goto-char start) (setq end ...) (or ... ...) (or ... ...) (while ... ... ... ... ...) (if
... ... ...)) (if after-change-functions (save-excursion ...)))
# (unwind-protect ...)
(save-excursion (let (cperl-update-start cperl-update-end ...) (let ... ... ... ... ...
... ... ... ... ...) (if after-change-functions ...)))
# bind (end start)
cperl-indent-region(1 206)
# bind (column end start)
indent-region(1 206 nil)
#<compiled-function nil "...(15)" [region-active-p indent-region
region-beginning region-end nil indent-balanced-expression] 4 1021290 "">()
# bind (command-debug-status)
call-interactively(indent-region-or-balanced-expression)
# (condition-case ... . error)
# (catch top-level ...)
The problematic input is
#!/usr/bin/perl -w
use XML::SemanticDiff;
my $diff = XML::SemanticDiff->new();
foreach my $change ($diff->compare($ARGV[0], $ARGV[1])) {
print "$change->{message} in context $change->{context}\n";
}
================================================================
System Info to help track down your bug:
---------------------------------------
uname -a: Linux linux 2.4.0 #3 Sun Jan 28 20:49:46 GMT 2001 i686 unknown
./configure '--with-widgets=yes' '--with-mule'
XEmacs 21.5-b6 "bok choi" configured for `i686-pc-linux'.
Compilation / Installation:
Source code location: /usr/local/cvs.src/xemacs/xemacs-21.5
Installation prefix: /usr/local
Operating system description file: `s/linux.h'
Machine description file: `m/intel386.h'
Compiler: gcc -g -O3 -Wall -Wno-switch -Winline
-Wmissing-prototypes -Wsign-compare -Wshadow
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.
Compiling in support for the Athena widget set:
- Athena headers location: X11/Xaw
- Athena library to link: Xaw
Using Lucid menubars.
Using Lucid scrollbars.
Using Athena dialog boxes.
Using Athena 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 GNU DBM.
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.
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.
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/site-packages/lisp/patcher
/usr/local/lib/xemacs/xemacs-packages/lisp/xemacs-devel/patcher
/usr/local/lib/xemacs/mule-packages/lisp/mule-base/viet-util
/usr/local/lib/xemacs-21.5-b6/lisp/mule/viet-util
/usr/local/lib/xemacs/mule-packages/lisp/mule-base/korea-util
/usr/local/lib/xemacs-21.5-b6/lisp/mule/korea-util
/usr/local/lib/xemacs/mule-packages/lisp/mule-base/japan-util
/usr/local/lib/xemacs-21.5-b6/lisp/mule/japan-util
/usr/local/lib/xemacs/mule-packages/lisp/mule-base/ethio-util
/usr/local/lib/xemacs-21.5-b6/lisp/mule/ethio-util
/usr/local/lib/xemacs/mule-packages/lisp/mule-base/cyril-util
/usr/local/lib/xemacs-21.5-b6/lisp/mule/cyril-util
/usr/local/lib/xemacs/mule-packages/lisp/mule-base/china-util
/usr/local/lib/xemacs-21.5-b6/lisp/mule/china-util)
Installed XEmacs Packages:
-------------------------
((xemacs-devel:version 1.43 :type single-file)
(xemacs-base :version 1.61 :type regular)
(w3 :version 1.22 :type regular)
(vm :version 7.0 :type regular)
(vc-cc :version 1.18 :type regular)
(text-modes :version 1.37 :type single-file)
(speedbar :version 1.22 :type regular)
(sh-script :version 1.14 :type regular)
(semantic :version 1.11 :type regular)
(psgml :version 1.26 :type regular)
(ps-print :version 1.03 :type regular)
(prog-modes
:version
1
.49
:type
single-file)
(pcl-cvs :version 1.6 :type regular)
(net-utils :version 1.23 :type single-file)
(mew :version 1.14 :type regular)
(mailcrypt :version 2.09 :type regular)
(mail-lib :version 1.43 :type regular)
(jde :version 1.32 :type regular)
(ispell :version 1.24 :type regular)
(ilisp :version 1.2 :type regular)
(igrep :version 1.08 :type regular)
(gnus :version 1.57 :type regular)
(games :version 1.13 :type regular)
(fsf-compat :version 1.11 :type single-file)
(eterm :version 1.13 :type regular)
(emerge :version 1.09 :type regular)
(elib :version 1.1 :type single-file)
(eieio :version 1.02 :type regular)
(efs :version 1.28 :type regular)
(edit-utils :version 1.76 :type single-file)
(ediff :version 1.39 :type regular)
(edebug :version 1.14 :type regular)
(dired :version 1.12 :type regular)
(debug :version 1.14 :type regular)
(cc-mode :version 1.28 :type regular)
(calendar :version 1.18 :type regular)
(mule-base :version 1.39 :type regular)
(leim :version 1.17 :type regular))
Features:
--------
(mail-abbrevs xemacsbug shadow sendmail rfc822 cus-face overlay remem
xemacs-devel-autoloads xemacs-base-autoloads w3-autoloads vm-autoloads
vc-cc-autoloads text-modes-autoloads speedbar-autoloads
sh-script-autoloads semantic-autoloads psgml-autoloads
ps-print-autoloads prog-modes-autoloads pcl-cvs-autoloads
net-utils-autoloads mew-autoloads mailcrypt-autoloads
mail-lib-autoloads jde-autoloads ispell-autoloads ilisp-autoloads
igrep-autoloads gnus-autoloads games-autoloads fsf-compat-autoloads
eterm-autoloads emerge-autoloads elib-autoloads eieio-autoloads
efs-autoloads edit-utils-autoloads ediff-autoloads edebug-autoloads
dired-autoloads debug-autoloads cc-mode-autoloads calendar-autoloads
mule-base-autoloads leim-autoloads src-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 env
text-props frame obsolete cus-start custom widget cl-extra mini-cl cl
cl-19 packages backquote very-early-lisp unicode lucid-scrollbars
cut-buffer lucid-menubars athena-dialogs x c-balloon-help tty-frames
tty toolbar esd-sound 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:
-----------------
M-x r e p o TAB button1 button1up RET
Recent messages (most recent first):
-----------------------------------
Loading xemacsbug...done
Loading xemacsbug...
Making completion list...
Loading remem.el...done
Loading remem.el...
Loading cus-face...done
Loading cus-face...
Loading remem.el...done
Loading remem.el...