From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#57789: Emacs 28.1 clone build with native compilation crashes on s390x Date: Sun, 18 Sep 2022 08:33:08 +0300 Message-ID: <83pmftz1pn.fsf@gnu.org> 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: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37250"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, 57789@debbugs.gnu.org To: Rob Browning Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 18 07:34:16 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 1oZmwZ-0009Uo-V1 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Sep 2022 07:34:16 +0200 Original-Received: from localhost ([::1]:57856 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZmwY-000064-8u for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Sep 2022 01:34:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58042) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZmwP-00005u-00 for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2022 01:34:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48477) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oZmwM-0004VS-Mq for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2022 01:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oZmwM-0004aB-C2 for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2022 01:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Sep 2022 05:34: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.166347920317568 (code B ref 57789); Sun, 18 Sep 2022 05:34:02 +0000 Original-Received: (at 57789) by debbugs.gnu.org; 18 Sep 2022 05:33:23 +0000 Original-Received: from localhost ([127.0.0.1]:47555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZmvj-0004ZG-4j for submit@debbugs.gnu.org; Sun, 18 Sep 2022 01:33:23 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45070) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZmvg-0004Z2-Mg for 57789@debbugs.gnu.org; Sun, 18 Sep 2022 01:33:21 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58056) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZmvb-0004TI-3x; Sun, 18 Sep 2022 01:33:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=b68E7V5jy2XPMw/ClKFd2lSlem/y/SYeq8GJXR+KmFo=; b=kkOAnx/ZlU2PtJQ4EIVu eZnqvFYXyg4Jw+h1SpAG6qLDdk4t3tkFBVcSXB8Vl26CKD8yp1utKInx6dhiBRnb4e9lMsgtCAYVZ DCGYYoouUaPBjjDwuM6BH0mKswmzoxMaYx0b9aaG9JFRLO6EfA03R7XE/seyruG2ZfSL1JpUxfOfi nsoPrWZI5ptEC6NKYKvhP2hF/ZCvUnzQ5taZcJBKM/YBLl13rCDbnxQ2uBfydn5qYdMKSnJnBH8qg gDJHPShlUXJeL0rdp/Aezz6Bs2Wd5WzELufk4aoxkQf7L9n5MDYa42VBuFUqK4iCX6jU8f4EMd2Px sjcvR64BwZjkkQ==; Original-Received: from [87.69.77.57] (port=2809 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZmvT-0003RN-Gy; Sun, 18 Sep 2022 01:33:14 -0400 In-Reply-To: <87tu55k90g.fsf@trouble.defaultvalue.org> (message from Rob Browning on 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:242919 Archived-At: > From: Rob Browning > Cc: Eli Zaretskii , 57789@debbugs.gnu.org > Date: Sat, 17 Sep 2022 16:04:31 -0500 > > Gerd Möllmann writes: > > > Looking at Rob's backtrace, > > > > #0 mark_object (arg=) at alloc.c:6809 > > #1 0x000002aa001a8ee6 in mark_objects (n=, obj=0x2aa00ac54a8) at alloc.c:6607 > > #2 mark_vectorlike (header=0x2aa00ac54a0) at alloc.c:6382 > > #3 0x000002aa001a8ee6 in mark_objects (n=, obj=0x2aa007f4ca8) at alloc.c:6607 > > #4 mark_vectorlike (header=0x2aa007f4ca0) at alloc.c:6382 > > #5 0x000002aa001a8ee6 in mark_objects (n=, obj=0x2aa007c3b10) at alloc.c:6607 > > #6 mark_vectorlike (header=0x2aa007c3b08) at alloc.c:6382 > > #7 0x000002aa001a7c3e in visit_static_gc_roots (visitor=...) 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". The code where this happens is this: for (int i = 0; i < staticidx; i++) visitor.visit (staticvec[i], GC_ROOT_STATICPRO, visitor.data); So one way of knowing which staticpro is being handled here is to see what is the value of 'i' and look at staticvec[i]. I'm guessing that 'i' is also "optimized out", though, so 2 possible ways forward: . disassemble visit_static_gc_roots, find in which register or where on the stack or in memory is 'i; or staticvec[i] stored, and go from there; or . add a printf to the above loop to show the value of 'i', and re-run the build, fingers crossed, hoping that the additional printf won't make the crash go away. Once you know which staticpro is being processed here, we'd need to examine its contents and try to figure out which parts cause the crash in GC. Thanks.