Subject: Re: bug#26961: 26.0.50; Possible timming issue in regex-tests.el

From: Eli Zaretskii <[email-masked]>
Date: Wed, 17 May 2017 19:32:24 +0300

> From: Tino Calancha <[email-masked]>
> Date: Wed, 17 May 2017 22:55:51 +0900
> 
> > ;;; II) This one fails in Debian-9, but it works in Fedora-25:
> > emacs --batch -L ":." -l ert -l src/regex-tests.el \
> > --eval '(let (arg) (ert-run-tests-batch-and-exit arg))'
> 
> > In GNU Emacs 26.0.50 (build 5, x86_64-pc-linux-gnu, GTK+ Version 3.22.11)
> > Repository revision: f7c07930b581b1bcfdfb1874b6883233516bdf11
> > Windowing system distributor 'The X.Org Foundation', version 11.0.11902000
> > System Description:	Debian GNU/Linux 9.0 (stretch)
> I can reproduce the issue after compile Emacs without optimizations.
> Following is the backtrace after Emacs crash:
> 
> (gdb) run -batch -L ":../test" -l ert -l ../test/src/regex-tests.el -eval '(let (arg) (ert-run-tests-batch-and-exit arg))'
> 
> Starting program: /home/calancha/soft/emacs-master/src/bootstrap-emacs -batch -L ":../test" -l ert -l ../test/src/regex-tests.el -eval '(let (arg) (ert-run-tests-batch-and-exit arg))'

It doesn't crash for me (but one of the tests does fail).

> #0  terminate_due_to_signal (sig=6, backtrace_limit=40) at emacs.c:363
> #1  0x00000000005c1191 in emacs_abort () at sysdep.c:2371
> #2  0x0000000000629189 in mark_object (arg=XIL(0x7fffffffbc54)) at alloc.c:6428
> #3  0x00000000006299ae in mark_object (arg=XIL(0x2f44ac3)) at alloc.c:6667
> #4  0x0000000000625a6c in mark_maybe_object (obj=XIL(0x2f44ac3)) at alloc.c:4788
> #5  0x0000000000625e47 in mark_memory (start=0x7fffffff6b70, end=0x7fffffffe08f) at alloc.c:4940
> #6  0x0000000000625e7c in mark_stack (bottom=0x7fffffffe08f "", end=0x7fffffff6b70 "\200\214!\001") at alloc.c:5138
> #7  0x00000000006e01dc in mark_one_thread (thread=0xe1b2a0 <main_thread>) at thread.c:603
> #8  0x00000000006e0371 in mark_threads_callback (ignore=0x0) at thread.c:634
> #9  0x0000000000625ec4 in flush_stack_call_func (func=0x6e02de <mark_threads_callback>, arg=0x0) at alloc.c:5165
> #10 0x00000000006e03a3 in mark_threads () at thread.c:641
> #11 0x0000000000627e8b in garbage_collect_1 (end=0x7fffffff6d50) at alloc.c:5942
> #12 0x0000000000628562 in Fgarbage_collect () at alloc.c:6108

Are you up to the task of debugging GC?  See etc/DEBUG for some
advice.

Thanks.