In article <878wnk7gqb.fsf@xxxxxxxxxxx>, Chong Yidong <cyd@xxxxxxxxxxxxxxxxx>
> Kenichi Handa <handa@xxxxxxxx> writes:
> > It seems that `pattern' is correct, but `bufp->buffer' is
> > the compiled code for some of jkr-compr related regexp.
> > Could you please find why that happens?
> I think the problem is that regex_compile can call load_charset, which
> can call regex_compile. I think regex_compile is not designed to be
> called recursively, leading to memory corruption.
Ah! That is a likely cause of the bug. I'll find a way to
avoid loading charset at that moment.