"Henry S. Thompson" <ht(a)inf.ed.ac.uk> writes:
First note that as per the body of this message, this is b32, not b29,
and in fact is up-to-date wrt mercurial:
changeset: 5678:b0d40183ac79
tag: tip
user: Aidan Kehoe <kehoea(a)parhasard.net>
date: Sun Aug 12 11:32:36 2012 +0100
I'm _way_ out of my depth here, but it's Friday and displacement
activity is the order of the afternoon, so I took the backtrace at
face value, read all the comments at the beginning of regex.c, and
concluded there is a real bug. The attached patch has allowed me to
run for an hour w/o a crash, so I offer it to you for your
consideration.
Here are what I take to be the key parts of the backtrace:
Fatal error: assertion failed, file alloc.c, line 402,
!regex_malloc_disallowed
. . .
#3 assert_failed (file=<value optimized out>, line=<value optimized
out>,
expr=<value optimized out>) at emacs.c:4093
. . .
#6 0x0000000000418544 in old_alloc_sized_lcrecord (size=784,
implementation=0xa1e540) at alloc.c:707
#7 0x00000000004459b2 in make_char_table_entry (initval=10739040)
at chartab.c:758
#8 0x0000000000445c0e in put_char_table (table=37220912,
range=<value optimized out>, val=7) at chartab.c:1234
#9 0x00000000006dd706 in copy_if_not_already_present
(range=0x7fffffff9bc0,
unused_table=<value optimized out>, val=7, arg=0x237f230) at
syntax.c:2333
. . .
#12 0x00000000006dd3d6 in update_just_this_syntax_table
(table=37218528)
at syntax.c:2372
#13 0x00000000006743fe in update_mirror_syntax_if_dirty
(bufp=0x1190828,
string1=0x1b5bdd0 ...) at syntax.h:83
#14 SYNTAX_CODE (bufp=0x1190828,
string1=0x1b5bdd0 ...) at syntax.h:94
#15 re_match_2_internal (bufp=0x1190828, ...) at regex.c:5696
I.e., in some obscure circumstances, ISALPHA (and friends) can cause a
malloc.
Sigh.
ht
--
Henry S. Thompson, School of Informatics, University of Edinburgh
10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: ht(a)inf.ed.ac.uk
URL:
http://www.ltg.ed.ac.uk/~ht/
[mail from me _always_ has a .sig like this -- mail without it is forged spam]
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta