Dear Bug Team!
My 21.5 windows build crashes with the following recipe:
xemacs -vanilla z.el
z.el contains:
(defun remove-block (header footer)
"Remove the block of text delineated by header and footer."
(goto-char (point-max))
(let* ((s (search-backward header (point-min) t))
(e (search-forward footer (point-max) t)))
(and s e (kill-region s e))))
(find-file "/tmp/gnuclient-test")
(insert-string "
(setq package-get-package-index-file-location
\"e:\\XEmacs\\XEmacs-21.5-b28\\etc\")
")
(goto-char (point-max))
(remove-block "\n;;; Lines added by gnuclient_setup\n" "\n;;; End of
gnuclient_setup addition\n")
M-x eval-current-buffer and boom! Note that the search should fail.
My lisp is a little rusty and I could easily have made a mistake in
the remove-block routine, but I don't think a crash should occur.
Note that 21.4 behaves as expected.
Lisp backtrace follows:
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
search-backward("\n;;; Lines added by gnuclient_setup\n" 1 t)
(let* ((s (search-backward header (point-min) t)) (e (search-forward
footer (point-max) t))) (and s e (kill-region s e)))
# bind (footer header)
remove-block("\n;;; Lines added by gnuclient_setup\n" "\n;;; End of
gnuclient_setup addition\n")
# (unwind-protect ...)
# (unwind-protect ...)
# bind (standard-output)
eval-buffer(#<buffer "z.el"> nil)
# bind (printflag)
#<compiled-function (&optional printflag) "...(5)" [printflag
eval-buffer] 3 1020680 nil>()
call-interactively(eval-current-buffer)
command-execute(eval-current-buffer t)
# bind (_execute_command_keys_ _execute_command_name_ prefix-arg)
execute-extended-command(nil)
# bind (command-debug-status)
call-interactively(execute-extended-command)
(dispatch-event "[internal]")
# (condition-case ... . error)
# (catch top-level ...)
... and here is the C backtrace:
assert_failed(const char * 0x0165473c, int 1487, const char *
0x016546fc) line 3982
simple_search(buffer * 0x0282e8a8, unsigned char * 0x0082e504, long
36, long 2, long 1, long -1, long 25747920) line 1487 + 107 bytes
search_buffer(buffer * 0x0282e8a8, long 42191620, long 81, long 1,
long -1, int 0, long 25747920, long 25746728, int 0) line 1409 + 33
bytes
search_command(long 42191620, long 3, long 25274672, long 25275488,
long 25275488, int -1, int 0, int 0) line 1161 + 151 bytes
Fsearch_backward(long 42191620, long 3, long 25274672, long 25275488,
long 25275488) line 2122 + 31 bytes
Feval(long 42189844) line 3676 + 309 bytes
FletX(long 42190024) line 1046 + 31 bytes
Feval(long 42189820) line 3648 + 13 bytes
Fprogn(long 42189760) line 954 + 9 bytes
funcall_lambda(long 42190144, int 2, long * 0x0082ebc8) line 4284 + 9 bytes
Feval(long 41303424) line 3788 + 20 bytes
readevalloop(long 41055776, long 40945204, long (long)* 0x010bcffa
Feval(long), int 0) line 1467 + 7 bytes
Feval_buffer(long 41055776, long 25275488) line 1518 + 58 bytes
Ffuncall(int 3, long * 0x0082ef00) line 3928 + 108 bytes
execute_optimized_program(const unsigned char * 0x02872fd0, int 3,
long * 0x01993cc4) line 862 + 16 bytes
funcall_compiled_function(long 27015892, int 0, long * 0x0082f24c)
line 3517 + 73 bytes
Ffuncall(int 1, long * 0x0082f248) line 3967 + 17 bytes
apply1(long 27015892, long 25275488) line 4549 + 11 bytes
Fcall_interactively(long 25242608, long 25274672, long 25275488) line
459 + 13 bytes
Fcommand_execute(long 25242608, long 25274672, long 25275488) line
3138 + 17 bytes
Ffuncall(int 3, long * 0x0082f56c) line 3928 + 142 bytes
execute_optimized_program(const unsigned char * 0x02851e38, int 7,
long * 0x0197c604) line 862 + 16 bytes
funcall_compiled_function(long 26955304, int 1, long * 0x0082f890)
line 3517 + 73 bytes
Ffuncall(int 2, long * 0x0082f88c) line 3967 + 17 bytes
Fcall_interactively(long 25127936, long 25275488, long 25275488) line
994 + 22 bytes
Fcommand_execute(long 25127936, long 25275488, long 25275488) line
3138 + 17 bytes
execute_command_event(command_builder * 0x01e97738, long 42218100)
line 4288 + 25 bytes
Fdispatch_event(long 42218100) line 4600 + 79 bytes
Fcommand_loop_1() line 600 + 9 bytes
command_loop_1(long 25275488) line 511
condition_case_1(long 25272416, long (long)* 0x0108ff70
command_loop_1(long), long 25275488, long (long, long)* 0x0108fbc6
cmd_error(long, long), long 25275488) line 1946 + 7 bytes
command_loop_3() line 262 + 35 bytes
command_loop_2(long 25275488) line 277
internal_catch(long 25006832, long (long)* 0x0108fd16
command_loop_2(long), long 25275488, int * volatile 0x00000000, long *
volatile 0x00000000, long * volatile 0x00000000) line 1552 + 7 bytes
initial_command_loop(long 25275488) line 313 + 29 bytes
xemacs_21_5_b28_i586_pc_win32(int 3, unsigned short * * 0x0082fee4,
unsigned short * * 0x00000000, int 0) line 2669
main(int 3, char * * 0x00f42768, char * * 0x00f42d50) line 3114
XEMACS! mainCRTStartup + 227 bytes
KERNEL32! 7c816fd7()
It's easy for me to reproduce this and I can poke around in the
debugger to answer any questions.
Regards,
Vin
================================================================
System Info to help track down your bug:
---------------------------------------
OS version:
Microsoft Windows XP [Version 5.1.2600]
OS: Windows_NT
XEmacs 21.5-b28 "fuki" (+CVS-20070920) configured for `i586-pc-win32'.
Building XEmacs using "nmake".
Building XEmacs using make flags " ".
Building XEmacs in source tree
"e:\\cygwin\\usr\\local\\src\\xemacs-21.5-2007-09-21".
For src, using compiler "cl -nologo -W3 -DSTRICT -Zi -Od -MD -c -TP
-Ie:\cygwin\usr\local\src\xemacs-21.5-2007-09-21\nt\inc
-Ie:\cygwin\usr\local\src\xemacs-21.5-2007-09-21\src
-I"e:/cygwin/usr/local/src\xpm-3.4k"
-I"e:/cygwin/usr/local/src\xpm-3.4k\lib"
-I"e:/cygwin/usr/local/src\libpng-1.2.8"
-I"e:/cygwin/usr/local/src/zlib"
-I"e:/cygwin/usr/local/src/tiff-3.7.3\libtiff"
-I"e:/cygwin/usr/local/src\jpeg-6b" -I"e:/cygwin/usr/local/src/zlib"
-DHAVE_MS_WINDOWS -DHAVE_MENUBARS -DHAVE_SCROLLBARS -DHAVE_TOOLBARS
-DHAVE_WIDGETS -DHAVE_DIALOGS -DHAVE_XPM -DFOR_MSW -DHAVE_GIF
-DHAVE_PNG -DHAVE_TIFF -DHAVE_JPEG -DHAVE_ZLIB -DHAVE_NATIVE_SOUND
-DMULE -DERROR_CHECK_ALL -DPDUMP -DUSE_KKCC -DSYSTEM_MALLOC
-DDEBUG_XEMACS -D_DEBUG -DWIN32_LEAN_AND_MEAN -DWIN32_NATIVE -Demacs
-DHAVE_CONFIG_H -DPATH_VERSION=\"21.5-b28\"
-DPATH_PROGNAME=\"xemacs\" -DEMACS_VERSION=\"21.5-b28\"
-DEMACS_PROGNAME=\"xemacs\"
-DSTACK_TRACE_EYE_CATCHER=xemacs_21_5_b28_i586_pc_win32
-DPATH_PREFIX=\"..\" -DEMACS_MAJOR_VERSION=21
-DEMACS_MINOR_VERSION=5 -DEMACS_BETA_VERSION=28
-DXEMACS_CODENAME=\""fuki"\"
-DXEMACS_EXTRA_NAME=\"(+CVS-20070920)\"
-DPATH_LATE_PACKAGE_DIRECTORIES=\""e:/XEmacs"\"
-DEMACS_CONFIGURATION=\"i586-pc-win32\"".
For lib-src, using compiler "cl -nologo -W3 -DSTRICT -Zi -Od -MD
-Ie:\cygwin\usr\local\src\xemacs-21.5-2007-09-21\lib-src
-Ie:\cygwin\usr\local\src\xemacs-21.5-2007-09-21\src -DHAVE_CONFIG_H
-DWIN32_NATIVE".
Compiling as C++.
Installing XEmacs in "c:\\Program Files\\XEmacs\\XEmacs-21.5-b28".
Package path is "e:/XEmacs".
Compiling in support for Microsoft Windows native GUI.
Compiling in international (MULE) support.
Compiling in support for XPM images.
Compiling in support for GIF images.
Compiling in support for PNG images.
Compiling in support for TIFF images.
Compiling in support for JPEG images.
Compiling in support for GZIP compression/decompression.
Compiling in support for toolbars.
Compiling in support for dialogs.
Compiling in support for widgets.
Compiling in support for native sounds.
Using portable dumper.
Using system malloc.
Using DLL version of C runtime library.
Compiling in extra internal error-checking.
NOTE: ---------------------------------------------------------
NOTE: Compiling in support for runtime error-checking.
NOTE: XEmacs will run noticeably more slowly as a result.
NOTE: Error-checking is on by default for XEmacs beta releases.
NOTE: ---------------------------------------------------------
Compiling in debugging support (no slowdown).
Using new experimental GC mark algorithms.
Load-Path Lisp Shadows:
----------------------
(e:\XEmacs\xemacs-packages\lisp\xemacs-base\regexp-opt
e:\cygwin\usr\local\src\xemacs-21.5-2007-09-21\lisp\regexp-opt
e:\XEmacs\xemacs-packages\lisp\xemacs-base\easy-mmode
e:\cygwin\usr\local\src\xemacs-21.5-2007-09-21\lisp\easy-mmode)
Internationalization Settings:
-------------------------
Environment:
Value of LC_ALL : nil
Value of LC_COLLATE : C
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 : nil
Lisp locale settings:
current-language-environment => "English"
default-buffer-file-coding-system => mswindows-multibyte-dos
default-process-coding-system => (undecided .
mswindows-multibyte-system-default)
(current-locale) => "English_United States.1252"
keyboard-coding-system => mswindows-multibyte-system-default
terminal-coding-system => mswindows-multibyte-system-default
(coding-priority-list) =>
(no-conversion utf-16-little-endian-bom utf-16-bom utf-8-bom iso-7
utf-8 iso-8-1 iso-8-2 iso-8-designate iso-lock-shift shift-jis
big5 utf-16-little-endian utf-16 ucs-4)
Coding system aliases:
'native is aliased to
mswindows-multibyte-system-default-dos
'file-name is aliased to native
'mswindows-multibyte-system-default is not a coding system alias
Installed XEmacs Packages:
-------------------------
(xemacs-devel ver: 1.76 upstream: No-Upstream-Ver)
(xemacs-base ver: 2.11 upstream: No-Upstream-Ver)
(vc ver: 1.42 upstream: No-Upstream-Ver)
(time ver: 1.14 upstream: 1.17)
(text-modes ver: 1.95 upstream: No-Upstream-Ver)
(texinfo ver: 1.3 upstream: No-Upstream-Ver)
(speedbar ver: 1.28 upstream: 0.14beta4)
(sounds-wav ver: 1.12 upstream: No-Upstream-Ver)
(sh-script ver: 1.22 upstream: 2.0f)
(semantic ver: 1.2 upstream: 1.4.4)
(ruby-modes ver: 1.02 upstream: 1.6.8)
(ps-print ver: 1.11 upstream: 6.5.6)
(prog-modes ver: 2.14 upstream: No-Upstream-Ver)
(perl-modes ver: 1.1 upstream: No-Upstream-Ver)
(pcl-cvs ver: 1.67 upstream: R-2_9_9)
(pc ver: 1.28 upstream: No-Upstream-Ver)
(os-utils ver: 1.39 upstream: No-Upstream-Ver)
(net-utils ver: 1.53 upstream: N/A)
(mail-lib ver: 1.79 upstream: No-Upstream-Ver)
(ispell ver: 1.32 upstream: 3.6)
(igrep ver: 1.15 upstream: 2.111)
(ibuffer ver: 1.09 upstream: No-Upstream-Ver)
(gnus ver: 1.91 upstream: 5.10.8)
(fsf-compat ver: 1.15 upstream: No-Upstream-Ver)
(eieio ver: 1.05 upstream: 0.17)
(efs ver: 1.33 upstream: 1.23)
(edit-utils ver: 2.38 upstream: No-Upstream-Ver)
(ediff ver: 1.71 upstream: 2.75)
(edebug ver: 1.22 upstream: No-Upstream-Ver)
(ecrypto ver: 0.2 upstream: 2.0)
(ecb ver: 1.22 upstream: 2.31)
(easypg ver: 1.01 upstream: 0.0.15)
(dired ver: 1.17 upstream: 7.13)
(debug ver: 1.18 upstream: No-Upstream-Ver)
(cc-mode ver: 1.45 upstream: 5.30.10)
(calc ver: 1.26 upstream: 2.02fX3)
(c-support ver: 1.22 upstream: No-Upstream-Ver)
(riece ver: 1.23 upstream: 3.1.2)
(auctex ver: 2007.0112 upstream: 11.84)
Features:
--------
(mail-abbrevs xemacsbug shadow sendmail rfc822 efs-cu
xemacs-devel-autoloads xemacs-base-autoloads vc-autoloads
time-autoloads text-modes-autoloads texinfo-autoloads
speedbar-autoloads sounds-wav-autoloads sh-script-autoloads
semantic-autoloads ruby-modes-autoloads ps-print-autoloads
prog-modes-autoloads perl-modes-autoloads pcl-cvs-autoloads
pc-autoloads os-utils-autoloads net-utils-autoloads mail-lib-autoloads
ispell-autoloads igrep-autoloads ibuffer-autoloads gnus-autoloads
fsf-compat-autoloads eieio-autoloads efs-autoloads
edit-utils-autoloads ediff-autoloads edebug-autoloads
ecrypto-autoloads ecb-autoloads easypg-autoloads dired-autoloads
debug-autoloads cc-mode-autoloads calc-autoloads c-support-autoloads
riece-autoloads tex-site mule-autoloads auto-autoloads auto-show
fontl-hooks canna-leim tibetan slovenian czech romanian lao devanagari
indian cyrillic code-cmds gutter-items menubar-items x-menubar
dragdrop mode-motion mouse behavior itimer auto-save lisp-mode
easymenu easy-mmode iso8859-1 page buff-menu lib-complete loadhist
cus-file derived newcomment rsz-minibuf env text-props frame obsolete
cus-start custom widget cl-extra cl cl-19 packages backquote unicode
mswindows-scrollbars mswindows toolbar native-sound scrollbar
network-streams subprocesses menu-accelerator-support menubar md5
xemacs mule gutter tiff png gif jpeg xpm xbm lisp-float-type
file-coding dde windows-nt dragdrop-api dialog devices window-system
base64)
Recent keystrokes:
-----------------
button1 button1up M-x r e p o r t - x e m a c s - b
u g RET
Recent messages (most recent first):
-----------------------------------
Warning:
Defaulting to the GNU Emacs-derived `sendmail.el' mail client. This facility,
while part of base XEmacs, is heinously underfeatured, and not going to get
better in the medium term. We include it so that bug reports work without
packages; we suggest that you choose and/or install one of the other mail
clients from packages if you're doing something other than M-x
report-xemacs-bug , or even if you are reporting bugs regularly.
To choose a package from those installed, click on "Options" ->
"Internet" -> "Compose Mail With ..." and decide on one from the
list. Gnus and VM are full-featured and have active user communities.
To disable this warning and stick with the old behavior, you can explicitly
initialize `mail-user-agent' to 'sendmail-user-agent .
Loading xemacsbug...done
Loading xemacsbug...
Loading efs-cu...done
Loading efs-cu...
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta