Mercurial > hg > xemacs-beta
diff tests/reproduce-bugs.el @ 4322:f70e56bb52a7
src/search.c (simple_search): Fix underrun in reverse search.
Add braces to avoid future whitespace bogosity.
(search_buffer): Clarify decision to use boyer_moore or not.
tests/reproduce-bugs.el: Bug 10 to test for the underrun.
author | Stephen J. Turnbull <stephen@xemacs.org> |
---|---|
date | Mon, 10 Dec 2007 01:13:36 -0800 |
parents | 98e54edf3ab2 |
children | 2511b50f39c6 |
line wrap: on
line diff
--- a/tests/reproduce-bugs.el Mon Dec 10 00:57:19 2007 -0800 +++ b/tests/reproduce-bugs.el Mon Dec 10 01:13:36 2007 -0800 @@ -72,6 +72,26 @@ ;;;; Bugs follow: ;;; ------------------------------------------------------------------ +;;; Crash in search due to backward movement +;;; Need Mule build with error checking in 21.5.28. +;;; Fatal error: assertion failed, +;;; file /Users/steve/Software/XEmacs/alioth/xemacs/src/search.c, line 1487, +;;; (this_pos) > ((Bytebpos) 1) && this_pos <= ((buf)->text->z + 0) +;;; Reported: <475B104F.2070807@barco.com> +;;; <87hcixwkh4.fsf@uwakimon.sk.tsukuba.ac.jp> +;;; Fixed: <87hcixwkh4.fsf@uwakimon.sk.tsukuba.ac.jp> +(defbug 10 + (switch-to-buffer (get-buffer-create "*crash me*")) + ;; doozy is the keystroke version of the keyboard macro + ;; "IAI" C-b C-b C-s C-x + (let ((doozy [;;(control ?x) ?b ?j ?u ?n ?k return + ?I ?A ?I + (control ?b) (control ?b) + (control ?s) (control ?w)])) + (execute-kbd-macro doozy))) + + +;;; ------------------------------------------------------------------ ;;; Crash on trace-function ;;; Fatal error: assertion failed, file src/eval.c, line 1405, abort() (defbug 1