From: Tino Calancha <tino.calancha@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 26961@debbugs.gnu.org, tino.calancha@gmail.com
Subject: bug#26961: 26.0.50; Possible timming issue in regex-tests.el
Date: Thu, 18 May 2017 16:00:31 +0900 [thread overview]
Message-ID: <874lwi3b00.fsf@calancha-pc> (raw)
In-Reply-To: <83bmqr5trb.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 17 May 2017 19:32:24 +0300")
Eli Zaretskii <eliz@gnu.org> writes:
>> > ;;; 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))'
>
>> #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.
The problem arise from the recursive call in mark_object:
mark_object (ptr->car);
In my example recipe, such call not always satisfy the sanity
checks.
With the following patch, i cannot reproduce the issue anymore.
commit 5d0ac7e21e5dbb5128310a3a5017795321f71736
Author: Tino Calancha <tino.calancha@gmail.com>
Date: Thu May 18 15:44:10 2017 +0900
* src/alloc.c (mark_object): Use mark_maybe_object (Bug#26961).
diff --git a/src/alloc.c b/src/alloc.c
index faa14eebb3..8555e3f4e4 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -6664,7 +6664,7 @@ mark_object (Lisp_Object arg)
cdr_count = 0;
goto loop;
}
- mark_object (ptr->car);
+ mark_maybe_object (ptr->car);
obj = ptr->u.cdr;
cdr_count++;
if (cdr_count == mark_object_loop_halt)
next prev parent reply other threads:[~2017-05-18 7:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-17 10:19 bug#26961: 26.0.50; Possible timming issue in regex-tests.el Tino Calancha
2017-05-17 13:55 ` Tino Calancha
2017-05-17 16:32 ` Eli Zaretskii
2017-05-18 7:00 ` Tino Calancha [this message]
2017-05-18 7:50 ` Andreas Schwab
2017-05-18 15:04 ` Eli Zaretskii
2017-05-19 3:31 ` Tino Calancha
2017-05-19 7:14 ` Eli Zaretskii
2017-05-19 11:38 ` Tino Calancha
2017-05-20 10:04 ` Eli Zaretskii
2017-05-20 11:20 ` Tino Calancha
2017-05-20 11:54 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874lwi3b00.fsf@calancha-pc \
--to=tino.calancha@gmail.com \
--cc=26961@debbugs.gnu.org \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).