From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 108478 invoked by alias); 3 Jun 2017 09:01:26 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 107365 invoked by uid 89); 3 Jun 2017 09:01:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=02jun2017, 02Jun2017, H*f:sk:25e3954, H*MI:sk:25e3954 X-HELO: sender-of-o52.zoho.com Received: from sender-of-o52.zoho.com (HELO sender-of-o52.zoho.com) (135.84.80.217) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 03 Jun 2017 09:01:23 +0000 Received: from [192.168.0.101] (180.151.119.249 [180.151.119.249]) by mx.zohomail.com with SMTPS id 1496480472149416.58388328315004; Sat, 3 Jun 2017 02:01:12 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: About hang in gcov_exit with gnu arm toolchain From: Reetesh Ranjan In-Reply-To: <25e39543-b4c7-c63d-80c7-69896b9100a4@acm.org> Date: Sat, 03 Jun 2017 09:01:00 -0000 Cc: gcc-patches@gcc.gnu.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <3C59484E-355F-48B9-A025-8D53520791EF@piaxis.tech> <25e39543-b4c7-c63d-80c7-69896b9100a4@acm.org> To: Nathan Sidwell X-ZohoMailClient: External X-SW-Source: 2017-06/txt/msg00166.txt.bz2 Hi Nathan, Please see comments inline. > On 02-Jun-2017, at 5:14 PM, Nathan Sidwell wrote: >=20 > hi, >=20 >> I have opened this bug https://bugs.launchpad.net/gcc-arm-embedded/+bug/= 1694644 as per the findings I had.=20 >=20 > This is Canonical's bug tracker and you seem to be reporting a defect wit= h their build of gcc. If that is the case, you should be talking with Cano= nical. As you can see in the bug, they have redirected me to talk to gcc. Please a= dvise on how to proceed. >=20 > The gcc bug tracker is https://gcc.gnu.org/bugzilla/. >=20 >=20 > The diff you provide there seems to be detecting when you've looped 2^32 = times, because somethings scrogging the object list to become circular. Tha= t's the actual defect that needs fixing. I studied the gcc/ and libgcc/ code. I cannot make out why this is happenin= g, though the debugging session does show this clearly. What I am trying to= do with the patch is to show what was required to make things work; howeve= r, as you said it is not the fix for the core issue. About 2^32 times: yes if we had 2^32 files in any given project, it would d= efinitely iterate that many times and fail. In what I saw with my debugging= , the circular list contains as many elements as the number of source files= in a project, and the loop iterates that many times. There could be a bett= er way to iterate through a circular list, though. >=20 > nathan >=20 > --=20 > Nathan Sidwell