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.
In XEmacs 21.2 (beta35) "Nike" [Lucid] (i686-pc-linux) of Sun Jul 23 2000 on
sauna.ton.tut.fi
configured using `configure --cache-file=/dev/null --with-dialogs=athena
--prefix=/opt/local'
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:
eval
(string-match "\\(\\.\\=\\)" ".")
This problem does not seem to be affected by OS version, also it
is present when compiled with gcc 2.95.2 and latest snapshot. I
see this also when I compile without optimisations (-O0). I
don't know which version first has the problem. But version I
currently use 21.1.4 does not die in this assert and outputs
'nil'. There does not seem to be any difference between
'-vanilla' and using my normal .emacs.
I guess this can be tested by others with following patch.
Index: tests/automated/lisp-tests.el
===================================================================
RCS file: /usr/CVSroot/XEmacs/xemacs-20/tests/automated/Attic/lisp-tests.el,v
retrieving revision 1.1.2.12
diff -u -r1.1.2.12 lisp-tests.el
--- lisp-tests.el 2000/02/13 10:29:26 1.1.2.12
+++ lisp-tests.el 2000/07/23 18:23:40
@@ -831,6 +831,8 @@
(Assert (equal (split-string "foo,,bar" ",+") '("foo"
"bar")))
(Assert (equal (split-string ",foo,,bar," ",+") '(""
"foo" "bar" "")))
+(Assert (not (string-match "\\(\\.\\=\\)" ".")))
+
;;-----------------------------------------------------
;; Test near-text buffer functions.
;;-----------------------------------------------------
Recent keystrokes:
misc-user
Recent messages (most recent first):
Loading footnote...
Loading emacsbug...done
Loading emacsbug...
Loading time...done
Loading time...
Loading /home/maage/xemacs/options.el...done
Loading font...done
Loading font...
`where-was-i-db' enabled.
Loading where-was-i-db...done
Fatal error: assertion failed, file /usr/src/xemacs/xemacs_21_2/src/insdel.c, line 1122, (
x) >= BI_BUF_BEG (buf) && x <= BI_BUF_Z (buf)
Fatal error (6).
Your files have been auto-saved.
Use `M-x recover-session' to recover them.
If you have access to the PROBLEMS file that came with your
version of XEmacs, please check to see if your crash is described
there, as there may be a workaround available.
Otherwise, please report this bug by running the send-pr
script included with XEmacs, or selecting `Send Bug Report'
from the help menu.
As a last resort send ordinary email to `crashes(a)xemacs.org'.
*MAKE SURE* to include the information in the command
M-x describe-installation.
If at all possible, *please* try to obtain a C stack backtrace;
it will help us immensely in determining what went wrong.
To do this, locate the core file that was produced as a result
of this crash (it's usually called `core' and is located in the
directory in which you started the editor, or maybe in your home
directory), and type
gdb /usr/src/xemacs_21_2.build/src/xemacs core
then type `where' when the debugger prompt comes up.
(If you don't have GDB on your system, you might have DBX,
or XDB, or SDB. A similar procedure should work for all of
these. Ask your system administrator if you need more help.)
Lisp backtrace follows:
string-match("\\(\\.\\=\\)" ".")
eval((string-match "\\(\\.\\=\\)" "."))
# bind (eval-expression-insert-value expression)
#<compiled-function (expression &optional eval-expression-insert-value)
"...(18)" [eval expression values prin1 eval-expression-insert-value t] 3 767078
(list (read-from-minibuffer "Eval: " nil read-expression-map t ...)
current-prefix-arg)>((string-match "\\(\\.\\=\\)" ".") nil)
call-interactively(eval-expression)
# (condition-case ... . error)
# (catch top-level ...)
zsh: 6219 abort (core dumped) ./src/xemacs
#0 0x40376d41 in __kill () from /lib/libc.so.6
(gdb) where
#0 0x40376d41 in __kill () from /lib/libc.so.6
#1 0x80b7084 in fatal_error_signal (sig=6)
at /usr/src/xemacs/xemacs_21_2/src/emacs.c:514
#2 0x40376c68 in __restore ()
at ../sysdeps/unix/sysv/linux/i386/sigaction.c:127
#3 0x403780d8 in abort () at ../sysdeps/generic/abort.c:88
#4 0x80b9f15 in assert_failed (
file=0x8265f20 "/usr/src/xemacs/xemacs_21_2/src/insdel.c", line=1122,
expr=0x8265fa0 "( x) >= BI_BUF_BEG (buf) && x <= BI_BUF_Z
(buf)")
at /usr/src/xemacs/xemacs_21_2/src/emacs.c:3118
#5 0x81669f4 in bytind_to_bufpos (buf=0x8320b78, x=1688246)
at /usr/src/xemacs/xemacs_21_2/src/insdel.c:1122
#6 0x81b07a2 in re_match_2_internal (bufp=0x82aa8d0, string1=0x0, size1=0,
string2=0x89fe10c ".", size2=1, pos=0, regs=0x82ab934, stop=1)
at /usr/src/xemacs/xemacs_21_2/src/regex.c:5511
#7 0x81ac796 in sys_re_search_2 (bufp=0x82aa8d0, string1=0x0, size1=0,
string2=0x89fe10c ".", size2=1, startpos=0, range=1, regs=0x82ab934,
stop=1) at /usr/src/xemacs/xemacs_21_2/src/regex.c:4074
#8 0x81b11b8 in sys_re_search (bufp=0x82aa8d0, string=0x89fe10c ".", size=1,
startpos=0, range=1, regs=0x82ab934)
at /usr/src/xemacs/xemacs_21_2/src/regex.c:3865
#9 0x81b1c23 in string_match_1 (regexp=143985756, string=143985772,
start=137233100, buf=0x8320b78, posix=0)
at /usr/src/xemacs/xemacs_21_2/src/search.c:397
#10 0x81b5c8e in Fstring_match (regexp=143985756, string=143985772,
start=137233100, buffer=137233100)
at /usr/src/xemacs/xemacs_21_2/src/search.c:420
#11 0x80bea04 in Feval (form=144168028)
at /usr/src/xemacs/xemacs_21_2/src/eval.c:3014
#12 0x80bf348 in Ffuncall (nargs=2, args=0xbfffea04)
at /usr/src/xemacs/xemacs_21_2/src/eval.c:3214
#13 0x80937db in execute_optimized_program (
program=0x8a4bab8 "=c0\t!\nB\022=c3\n@\f=ab\004p=aa\002=c5\"\207",
stack_depth=3,
constants_data=0x83e9bf8) at /usr/src/xemacs/xemacs_21_2/src/bytecode.c:745
#14 0x809339c in funcall_compiled_function (fun=138297216, nargs=2,
args=0xbfffeb64) at /usr/src/xemacs/xemacs_21_2/src/bytecode.c:517
#15 0x80bf4d0 in Ffuncall (nargs=3, args=0xbfffeb60)
at /usr/src/xemacs/xemacs_21_2/src/eval.c:3249
#16 0x80bfb8c in Fapply (nargs=2, args=0xbfffebe8)
at /usr/src/xemacs/xemacs_21_2/src/eval.c:3486
#17 0x80c27c7 in apply1 (fn=138297216, arg=143760960)
at /usr/src/xemacs/xemacs_21_2/src/eval.c:3839
#18 0x809755e in Fcall_interactively (function=138318956,
record_flag=137233100, keys=137233100)
at /usr/src/xemacs/xemacs_21_2/src/callint.c:394
#19 0x80bddc6 in Fcommand_execute (cmd=138318956, record=137233100,
keys=137233100) at /usr/src/xemacs/xemacs_21_2/src/eval.c:2652
#20 0x80fc42c in execute_command_event (command_builder=0x836ee70,
event=141870892) at /usr/src/xemacs/xemacs_21_2/src/event-stream.c:3838
#21 0x80fcfef in Fdispatch_event (event=144687836)
at /usr/src/xemacs/xemacs_21_2/src/event-stream.c:4157
#22 0x809da85 in Fcommand_loop_1 ()
at /usr/src/xemacs/xemacs_21_2/src/cmdloop.c:579
#23 0x80bc2d4 in condition_case_1 (handlers=137233196,
bfun=0x809dcc0 <command_loop_1>, barg=137233100,
hfun=0x809dd80 <cmd_error>, harg=137233100)
at /usr/src/xemacs/xemacs_21_2/src/eval.c:1640
#24 0x809df76 in command_loop_2 (dummy=137233100)
at /usr/src/xemacs/xemacs_21_2/src/cmdloop.c:256
#25 0x80bc0cc in internal_catch (tag=137304860,
func=0x809df30 <command_loop_2>, arg=137233100, threw=0x0)
at /usr/src/xemacs/xemacs_21_2/src/eval.c:1306
#26 0x809d23e in initial_command_loop (load_me=137233100)
at /usr/src/xemacs/xemacs_21_2/src/cmdloop.c:305
#27 0x80b80d5 in xemacs_21_2_b35_i686_pc_linux ()
at /usr/src/xemacs/xemacs_21_2/src/emacs.c:2155
#28 0x80b8914 in main () at /usr/src/xemacs/xemacs_21_2/src/emacs.c:2584
#29 0x403709cb in __libc_start_main (main=0x80b8810 <main>, argc=1,
argv=0xbffff254, init=0x807e500 <_init>, fini=0x822093c <_fini>,
rtld_fini=0x4000ae60 <_dl_fini>, stack_end=0xbffff24c)
at ../sysdeps/generic/libc-start.c:92
--
//Markus