From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#57789: Emacs 28.1 clone build with native compilation crashes on s390x Date: Sun, 18 Sep 2022 07:22:45 +0200 Message-ID: References: <87h71aix5r.fsf@trouble.defaultvalue.org> <83tu5a3cdw.fsf@gnu.org> <87pmfxhfoz.fsf@trouble.defaultvalue.org> <87mtb1hfl6.fsf@trouble.defaultvalue.org> <87tu55k90g.fsf@trouble.defaultvalue.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30361"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) Cc: 57789@debbugs.gnu.org, Eli Zaretskii To: Rob Browning Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 18 07:23:14 2022 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 1oZmlu-0007js-AM for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Sep 2022 07:23:14 +0200 Original-Received: from localhost ([::1]:35374 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZmlt-0006kH-0H for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Sep 2022 01:23:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51364) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZmli-0006hf-Ob for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2022 01:23:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48460) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oZmli-0002p1-Fy for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2022 01:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oZmli-0004E5-27 for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2022 01:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Sep 2022 05:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57789 X-GNU-PR-Package: emacs Original-Received: via spool by 57789-submit@debbugs.gnu.org id=B57789.166347857716216 (code B ref 57789); Sun, 18 Sep 2022 05:23:02 +0000 Original-Received: (at 57789) by debbugs.gnu.org; 18 Sep 2022 05:22:57 +0000 Original-Received: from localhost ([127.0.0.1]:47538 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZmlc-0004DU-OK for submit@debbugs.gnu.org; Sun, 18 Sep 2022 01:22:57 -0400 Original-Received: from mail-wr1-f47.google.com ([209.85.221.47]:41827) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZmlb-0004DH-D3 for 57789@debbugs.gnu.org; Sun, 18 Sep 2022 01:22:55 -0400 Original-Received: by mail-wr1-f47.google.com with SMTP id t14so42201717wrx.8 for <57789@debbugs.gnu.org>; Sat, 17 Sep 2022 22:22:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date; bh=2oOVIV1aAkUOVpaY9FcVlfS9FuQMCM3odg9T0xaTz9c=; b=AC+LWRbcLRLo5R9Vgy9Nu+DR4KDtP4BhxA5LSjVdJqj2ht32jy8Wjd8m05/LzskvEh 7HUr/7woqQDiUXhiDqLKfDYGzK6/YZEBwQOs4BCzjRBbB2QTnaE8ceJCYf7I8fZv5gqD UojJZTJWKFZ5BySurwkpLHZn5AVlyGvs4lEujdhWH15NZOyg42fuj+h5weukYuU782aM nlt4gcLRaS0k42HtYr+NkBTKpB23oHumXkZiJ8+W2qKw/qUDOTmX9Jw+mo5Aoeg5Llb4 E/+8c7XN6vp7tgF+BQC+SbP2MJQ2dLNsg99NvS90z8cALAmF1RuVJ8+5eNl4yvAOFK77 jx6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date; bh=2oOVIV1aAkUOVpaY9FcVlfS9FuQMCM3odg9T0xaTz9c=; b=gO3ik1Qbn9sVf9PQLhgWUNgCzrztNa3ukz8JW1POog9ag1hAmVN3a1vfU1s+OUVae/ TdQp8vPOok0Xp991mWhZdROBdWFAjKKfoWon/GAfSF20crmwWU3G3jCIZ0tKsOAaLNEe 6YYl88ZeRDabqF0ZlwNiNNiAi4Ix94c3ny/XFtIC287VqlxiVZfm90uiM1+JTfhWfiQ+ IX8EuVLr3ma17vg+z6YIAnl4XVf3XdrgsSYGshcKhz0mvwef4UyZrAT22qq1aSwT84GG TNkOfsxbWX9+BTpn5Na52XY2PPjH79nXOezhctUbALJQ/BqHM27T/dl7H8UCv+6IC75N H3JQ== X-Gm-Message-State: ACrzQf0AZkCakyCwKCFG1kOGdKKYon/OPb4xhXV0jiQmGVMsBORp5R18 E/5LYRxGofoGYb/PrD9A5u/7okNOdjZdWA== X-Google-Smtp-Source: AMsMyM5QUYHhlBSU3cvXem20TvRq+Roh4HpqxArQ0edUFFWMBY6RxZyFhOtSdh72FZykRcfzI+BUlA== X-Received: by 2002:a05:6000:178e:b0:22a:d7be:3878 with SMTP id e14-20020a056000178e00b0022ad7be3878mr7307328wrg.91.1663478567818; Sat, 17 Sep 2022 22:22:47 -0700 (PDT) Original-Received: from Mini.fritz.box (pd9e3614c.dip0.t-ipconnect.de. [217.227.97.76]) by smtp.gmail.com with ESMTPSA id g3-20020a056000118300b00228c375d81bsm1510099wrx.2.2022.09.17.22.22.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Sep 2022 22:22:47 -0700 (PDT) In-Reply-To: <87tu55k90g.fsf@trouble.defaultvalue.org> (Rob Browning's message of "Sat, 17 Sep 2022 16:04:31 -0500") 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:242918 Archived-At: Rob Browning writes: > Gerd M=C3=B6llmann writes: > >> Looking at Rob's backtrace,=20 >> >> #0 mark_object (arg=3D) at alloc.c:6809 >> #1 0x000002aa001a8ee6 in mark_objects (n=3D, obj=3D0x2aa= 00ac54a8) at alloc.c:6607 >> #2 mark_vectorlike (header=3D0x2aa00ac54a0) at alloc.c:6382 >> #3 0x000002aa001a8ee6 in mark_objects (n=3D, obj=3D0x2aa= 007f4ca8) at alloc.c:6607 >> #4 mark_vectorlike (header=3D0x2aa007f4ca0) at alloc.c:6382 >> #5 0x000002aa001a8ee6 in mark_objects (n=3D, obj=3D0x2aa= 007c3b10) at alloc.c:6607 >> #6 mark_vectorlike (header=3D0x2aa007c3b08) at alloc.c:6382 >> #7 0x000002aa001a7c3e in visit_static_gc_roots (visitor=3D...) at alloc= .c:5926 >> >> and seeing frame#7, would it be a way forward to determine which >> staticpro (I assume it is a staticpro) that is? Maybe that can give a >> clue which one can then use together with a bisect, perhaps? > > Not completely sure I followed, but moving up to that frame and printing > visitor didn't work: "optimized out". Sorry, I thought another Emacs developer would chime in, when I wrote that. Let me try to explain what I'm after. Frame#7, the call to visit_static_gc_roots shows that we are at the very beginning of a GC, recursively marking everything that we know must survice the GC. void visit_static_gc_roots (struct gc_root_visitor visitor) { visit_buffer_root (visitor, &buffer_defaults, GC_ROOT_BUFFER_LOCAL_DEFAULT); visit_buffer_root (visitor, &buffer_local_symbols, GC_ROOT_BUFFER_LOCAL_NAME); for (int i =3D 0; i < ARRAYELTS (lispsym); i++) { Lisp_Object sptr =3D builtin_lisp_symbol (i); visitor.visit (&sptr, GC_ROOT_C_SYMBOL, visitor.data); } for (int i =3D 0; i < staticidx; i++) visitor.visit (staticvec[i], GC_ROOT_STATICPRO, visitor.data); } First interesting thing would be where in this function we are when the crash happens. I was assuming it is somewhere in the last for-loop, for reasons, but that doesn't have to be the case. If I'm right, we are currently in the process of marking Lisp objects referenced from C variables that are known to contains Lisp objects. Such variables are added to staticvec with a call to staticpro. That's what the staticpro in my last mail menat. But let's first see where in visit_... we are.