From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.bugs Subject: bug#41755: feature/native-comp (master?): temacs crash in GC during mark phase Date: Sun, 7 Jun 2020 20:18:09 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="2459"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Paul Eggert , 41755@debbugs.gnu.org, Andrea Corallo To: Nicolas =?UTF-8?Q?B=C3=A9rtolo?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 07 22:19:12 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ji1l9-0000Ym-Un for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Jun 2020 22:19:11 +0200 Original-Received: from localhost ([::1]:33832 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ji1l8-0005uP-W9 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Jun 2020 16:19:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35080) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ji1l1-0005tw-1m for bug-gnu-emacs@gnu.org; Sun, 07 Jun 2020 16:19:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43474) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ji1l0-0002In-Oi for bug-gnu-emacs@gnu.org; Sun, 07 Jun 2020 16:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ji1l0-000430-Kw for bug-gnu-emacs@gnu.org; Sun, 07 Jun 2020 16:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Pip Cet Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Jun 2020 20:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41755 X-GNU-PR-Package: emacs Original-Received: via spool by 41755-submit@debbugs.gnu.org id=B41755.159156113115534 (code B ref 41755); Sun, 07 Jun 2020 20:19:02 +0000 Original-Received: (at 41755) by debbugs.gnu.org; 7 Jun 2020 20:18:51 +0000 Original-Received: from localhost ([127.0.0.1]:55019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ji1kp-00042U-FV for submit@debbugs.gnu.org; Sun, 07 Jun 2020 16:18:51 -0400 Original-Received: from mail-ot1-f52.google.com ([209.85.210.52]:34681) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ji1ko-00042H-QG for 41755@debbugs.gnu.org; Sun, 07 Jun 2020 16:18:51 -0400 Original-Received: by mail-ot1-f52.google.com with SMTP id b18so11981347oti.1 for <41755@debbugs.gnu.org>; Sun, 07 Jun 2020 13:18:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=3xQiyn3PlTAkUIe4f0tPumPM7VodpZ5QZICTlTA/+fU=; b=UvU7BNl0Y/UTCHr/ZqfY3GQ7gWlUvoCWSC77/JtyFeRisMLVgo3jols12UA6PyAYZM XO3Ur2qL0hL4vMavKRfiMLSPZTq9ilcr+nd7AkMKGLVN/7cq/BdndUXvaesy0EO3vS3t JOJR3OTutIitOC0fp9ByOgaq0j9Sau3I8yDh7hf1StwKLKfCYhRLOjwY+dAzNWWfm7pK PGPZVO0x5Z1XX1k9QzevgHpoAtr1v9mW0vwemowH8FypEkSQ+qiJrezCzQx96o81lT3t w+f5PKPj5cFfGyPZ8EeXl/mhUWrK7WUJN0mlr4MbaGb2u6j6iqC9N9C4zfGCoSsNA+ot zfWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=3xQiyn3PlTAkUIe4f0tPumPM7VodpZ5QZICTlTA/+fU=; b=arUha+VkTmk0jalw8rKFreEmeI1QdaCy2aG8GmhNDmRQg6ZMVUd0H6ll9cECY1MT4a SdT1TEyXoeOwpKmXq/HNkayO3a0e4neeN+ykNK6LL4PuzW6zZN19hofpYC3AWjWvhNic xGkVA1q8QSRgeTnRRQAZU9Zuy+yRyCVS81rSHv/ugp99KR4wsqHlJftbWTVXn0Runy6A yPHKH7c6XYYj9vIc+bMipjYIb1UjNz4NRam62uvSgNJzrOhKCaKPmYfO6KKCfYhyHk1t Hli+5KPwIvOcWD5FApLd9frVlIObd9ljRXFGvGT8oi+2rD3BVZo/XnVjIEvW7Kw7d7Rs G6mw== X-Gm-Message-State: AOAM530t8ciwHwvl5sBo1PLCtdZqhT0JIPnA0HtVIPKRkM/0LZhG4wvD ULMXxbDV8/Ta/BQ6xla18nD+6VoqpQYQLJufzls= X-Google-Smtp-Source: ABdhPJxIqdEl9T/doioc7Q7I+HG6p2ke6pPFNaSPBuEBMMJ5+Ec/qjpyK2/HQ275njCd7h2Ya7g/9Hm71OpztIb5Rfk= X-Received: by 2002:a9d:6a44:: with SMTP id h4mr15630873otn.287.1591561125156; Sun, 07 Jun 2020 13:18:45 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:181710 Archived-At: On Sun, Jun 7, 2020 at 7:58 PM Nicolas B=C3=A9rtolo wrote: > I can confirm that what I found was this issue. > > > Does it happen for non-optimized builds? Also, what symbol is at > > Lisp_Object value 0xb4f0 (i.e. iQwhatever =3D=3D 405)? > > I haven't been able to reproduce it in non-optimized builds. But you still have last_marked in your build, right? That would be a good starting point to find out which object was marked and what was actually on the stack there... > What I understand so far is that the GC begins marking the stack of the m= ain > thread and it takes some data in the stack as a pointer to valid Lisp dat= a. That's my understanding as well. In Andrea's case, it looks like something was marked as though it were a symbol, but it was actually pointing back to the stack... > It > starts following all the pointers and it eventually SIGSEGVs. I have seen= it > crash trying to read symbols, conses and strings. Is it always a symbol that's found on the stack by mark_maybe_*, though?