Received: by 10.223.176.5 with SMTP id f5csp68610wra; Fri, 2 Feb 2018 16:55:24 -0800 (PST) X-Google-Smtp-Source: AH8x227tagotcV6fQuc582lErwZdBze+yYPqLNFPmvhSy9o75wELgREMNSq64k4NuKoLRZT1WZmG X-Received: by 2002:a17:902:52f:: with SMTP id 44-v6mr35853520plf.65.1517619324291; Fri, 02 Feb 2018 16:55:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517619324; cv=none; d=google.com; s=arc-20160816; b=OGbLPDrtU6KH+Gz5ITVvEj6g9uxE6C+UGrjpGE6Y80Iwrj6sBiUwD2if/CLfPIlNY2 7tkNsWeyLvRWpdB3BUpXP3u+pYUhZUCcUa2cPKQ/pFY9QLwLe3rlr6QWdFJHSZ4z7WAR ERqDgyN4HQB5rxZD5H2aU2CkdfSOm151hdemR3hIyR1ACvg6Pk1Nc0fmcu96HAoJQd7D mg7oHk4Psak9+RQCxQNkCsCN2jH4nd1wLDBXz2UMbSS6ZOhRrb5k36L1B63Ct5MWSZEg unKr0oupdfAcJfgC09wTJH9UFy431sp3d93RASPhQSDG/heJ3ZOMuIqsJKj6xw+cxvZC 9qgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=zqzPDpq2xuOMQRwskqNFwm/kiPcA/42XbZAvjim4Hmk=; b=Z+rAXwcqajOAW1bylzaoSrxaKZRsvHZGFHrSg5rRXJTFzYzRPhJ7aw2JEp1baPe+a4 VsAu5w6Zt1Gjtgoyyx0IHqUhFe0VdC0C4K0iQtG6l9Rnk20/YpO69+ZFaO2/gFCgZ6/l SQdXxwEpg44J84nt9dbaZV8+uRvDB9kYH/VlP9DxDxfwd/Gj4mlUOG0Lrk0aD+HqVgeK 3O4KQHN/iiw6IabvAsqUOT1trIFwh1baXr2Wt6lI0iaQ3gaYLKW06582HBIuuzlDTjFV VNxtEtl/GTHU6BG3p4ZPHrpfItLX6ZZYRjgFeUbPaTqp3Ce3XpV6NaIF5SUNHJKmspXu wipw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gentoo.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a6-v6si713800pll.495.2018.02.02.16.54.16; Fri, 02 Feb 2018 16:55:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gentoo.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752000AbeBBXC3 (ORCPT + 99 others); Fri, 2 Feb 2018 18:02:29 -0500 Received: from smtp.gentoo.org ([140.211.166.183]:36286 "EHLO smtp.gentoo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751804AbeBBXCZ (ORCPT ); Fri, 2 Feb 2018 18:02:25 -0500 Received: from sf (trofi-1-pt.tunnel.tserv1.lon2.ipv6.he.net [IPv6:2001:470:1f1c:a0f::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: slyfox) by smtp.gentoo.org (Postfix) with ESMTPSA id B89AD335C60; Fri, 2 Feb 2018 23:02:23 +0000 (UTC) Date: Fri, 2 Feb 2018 23:02:20 +0000 From: Sergei Trofimovich To: "Luck, Tony" Cc: Fenghua Yu , linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ia64: fix ptrace(PTRACE_GETREGS) (unbreaks strace, gdb) Message-ID: <20180202230220.13b74e8c@sf> In-Reply-To: <20180202222231.23favlxecnxcencr@agluck-desk> References: <20180202221224.16597-1-slyfox@gentoo.org> <20180202222231.23favlxecnxcencr@agluck-desk> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2 Feb 2018 14:22:32 -0800 "Luck, Tony" wrote: > On Fri, Feb 02, 2018 at 10:12:24PM +0000, Sergei Trofimovich wrote: > > The strace breakage looks like that: > > ./strace: get_regs: get_regs_error: Input/output error > > > > It happens because ia64 needs to load unwind tables > > to read certain registers. Unwind tables fail to load > > due to GCC quirk on the following code: > > > > extern char __end_unwind[]; > > const struct unw_table_entry *end = (struct unw_table_entry *)table_end; > > table->end = segment_base + end[-1].end_offset; > > > > GCC does not generate correct code for this single memory > > reference after constant propagation (see https://gcc.gnu.org/PR84184). > > I'm not seeing this ... probably because I build with > a pre-historic 4.3.4 version of gcc. > > Do you know which version(s) are affected? I'm not looking > for an exhaustive list, just the one on which you found this > would be good. > > -Tony Original bug https://bugs.gentoo.org/518130 claims regression appeared around gcc-4.5. Locally am seeing the problem with gcc-6.4.0, gcc-7.2.0 and gcc-8 (HEAD). -- Sergei