This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: About hang in gcov_exit with gnu arm toolchain


Hi Nathan,

Please see comments inline.

> On 02-Jun-2017, at 5:14 PM, Nathan Sidwell <nathan@acm.org> wrote:
> 
> hi,
> 
>> I have opened this bug https://bugs.launchpad.net/gcc-arm-embedded/+bug/1694644 as per the findings I had. 
> 
> This is Canonical's bug tracker and you seem to be reporting a defect with their build of gcc.  If that is the case, you should be talking with Canonical.

As you can see in the bug, they have redirected me to talk to gcc. Please advise on how to proceed.

> 
> The gcc bug tracker is https://gcc.gnu.org/bugzilla/.
> 
> 
> 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. That's the actual defect that needs fixing.

I studied the gcc/ and libgcc/ code. I cannot make out why this is happening, 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; however, 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 definitely 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 better way to iterate through a circular list, though.

> 
> nathan
> 
> -- 
> Nathan Sidwell



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]