From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#26961: 26.0.50; Possible timming issue in regex-tests.el Date: Thu, 18 May 2017 16:00:31 +0900 Message-ID: <874lwi3b00.fsf@calancha-pc> References: <87inkz23aw.fsf@calancha-pc> <878tlvy4d4.fsf@calancha-pc> <83bmqr5trb.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1495090885 14171 195.159.176.226 (18 May 2017 07:01:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 18 May 2017 07:01:25 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 26961@debbugs.gnu.org, tino.calancha@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 18 09:01:19 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBFR1-0003Ug-G9 for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 May 2017 09:01:19 +0200 Original-Received: from localhost ([::1]:52059 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dBFR3-0001Ms-RV for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 May 2017 03:01:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55155) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dBFQu-0001MT-3D for bug-gnu-emacs@gnu.org; Thu, 18 May 2017 03:01:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dBFQk-0005s1-Go for bug-gnu-emacs@gnu.org; Thu, 18 May 2017 03:01:12 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49126) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dBFQk-0005rw-CO for bug-gnu-emacs@gnu.org; Thu, 18 May 2017 03:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dBFQj-0006pa-Ry for bug-gnu-emacs@gnu.org; Thu, 18 May 2017 03:01:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 May 2017 07:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26961 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 26961-submit@debbugs.gnu.org id=B26961.149509084526229 (code B ref 26961); Thu, 18 May 2017 07:01:01 +0000 Original-Received: (at 26961) by debbugs.gnu.org; 18 May 2017 07:00:45 +0000 Original-Received: from localhost ([127.0.0.1]:51803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBFQT-0006ox-Dv for submit@debbugs.gnu.org; Thu, 18 May 2017 03:00:45 -0400 Original-Received: from mail-pf0-f174.google.com ([209.85.192.174]:35149) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBFQQ-0006ok-2H for 26961@debbugs.gnu.org; Thu, 18 May 2017 03:00:42 -0400 Original-Received: by mail-pf0-f174.google.com with SMTP id n23so19204256pfb.2 for <26961@debbugs.gnu.org>; Thu, 18 May 2017 00:00:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=rXSQDWdHH4qp/MVhC5wDe/AkV+FA/XpqTma9UB0Ix/w=; b=ruPAzNmnXr8efmhD9EaYPScGa13/cPuOShiv5LgdFKqh9wVxQLDgPdIuWwGAVouX8r EmCSsjwXHhNTw0+wSQjPxUD8raK5rcasSREP+fSrqjpCJF5YHTUXE1BzEukwJ7eYDlWa +qE/OS7H7NLCODYR6h2COODZcENYbSsjwPTeJLOn07D23rTkmers2bjaAMNjQkYBx81J 5YR7PfXSlRTE+hUu98ysYGFyjywMhsm73r8SkgI4UkAiAEtSWxS7apfUVq9qWhWAFxug rPCknCDwHFYnUi8WvvJaNNKVo2ZlWXEtYBP2GEBf9Nxf11Ry0F2nviMJb9blHxZ0KqU7 SNfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=rXSQDWdHH4qp/MVhC5wDe/AkV+FA/XpqTma9UB0Ix/w=; b=BVRZ7mmdELDvA4HvNjE5yFTEjilydMP+mcNoRd/6p4/0So+8P5PFLvOBoTrmpHr2T8 y9497jqSZeFgekwQ3Gi0/A7GiM9MdYs2iv/1I4rZEAsSv5TbAqkTi6d4+nZeSynj3S// aXoyOIeJqcR6ekbDMB4wiBbBBvlAegkZCbhtC2Y0G8hRvbGeUv6rdfSXgPI3RrNf5p6h qUlp5HheE4d927JkN5sYAdkjy5JCog/VY8mT6D6vFqyxIwcuei408yENTDJ6JzYUI8mB vckvn/re9vTGuo2om+vGeXCyiTAxvnF4phiRpp5Kv5fXZ7GALuaYS5vZHg27h4wu1WWK 13jg== X-Gm-Message-State: AODbwcDfhssfv2vnndkAhg8MicfuE8lPJU1dQnZ7m+jCSFwwN4ZHhhre GJvOoHLfz3pcjA== X-Received: by 10.99.184.2 with SMTP id p2mr2899647pge.126.1495090835925; Thu, 18 May 2017 00:00:35 -0700 (PDT) Original-Received: from calancha-pc (222.139.137.133.dy.bbexcite.jp. [133.137.139.222]) by smtp.gmail.com with ESMTPSA id 15sm8134965pfj.59.2017.05.18.00.00.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 18 May 2017 00:00:34 -0700 (PDT) In-Reply-To: <83bmqr5trb.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 17 May 2017 19:32:24 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:132597 Archived-At: Eli Zaretskii 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 ) 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 , 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 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)