public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Problem using gcov
@ 2018-02-21 13:33 Alexander Fichtinger
  2018-02-22  9:43 ` Martin Liška
  0 siblings, 1 reply; 12+ messages in thread
From: Alexander Fichtinger @ 2018-02-21 13:33 UTC (permalink / raw)
  To: gcc

Hi guys,

 
we have faced an error while using the gcov tool.

We have the following C-code:



    LC_TD_DINT caseSelector;

    caseSelector = LC_this->LC_VD_X;

    if ((caseSelector==(LC_TD_DINT)1L)||(caseSelector==(LC_TD_DINT)2L)||((caseSelector>=(LC_TD_DINT)33L) && (caseSelector<=(LC_TD_DINT)44L)))

    {

      LC_this->LC_VD_X = (LC_TD_INT)3;

      if ((LC_TD_BOOL)(LC_this->LC_VD_INPUT_VAR == (LC_TD_INT)2))

      {

        LC_this->LC_VD_Y = (LC_TD_INT)666;

      }

    }

    else

    {

      LC_this->LC_VD_X = (LC_TD_INT)4;

    }

 
 
 
 
 
When we use gcov (with options –bcfu) we got the following result (in the c.gcov file):

 
 
-:   19:    LC_TD_DINT caseSelector;

        1:   20:    caseSelector = LC_this->LC_VD_X;

        1:   21:    if ((caseSelector==(LC_TD_DINT)1L)||(caseSelector==(LC_TD_DINT)2L)||((caseSelector>=(LC_TD_DINT)33L) && (caseSelector<=(LC_TD_DINT)44L)))

branch  0 taken 1 (fallthrough)

branch  1 taken 0

branch  2 taken 0 (fallthrough)

branch  3 taken 1

branch  4 never executed

branch  5 never executed

branch  6 never executed

branch  7 never executed

        -:   22:    {

        1:   23:      LC_this->LC_VD_X = (LC_TD_INT)3;

        2:   24:      if ((LC_TD_BOOL)(LC_this->LC_VD_INPUT_VAR == (LC_TD_INT)2))

branch  0 taken 1 (fallthrough)

branch  1 taken 0

unconditional  2 taken 1

        -:   25:      {

        1:   26:        LC_this->LC_VD_Y = (LC_TD_INT)666;

unconditional  0 taken 1

        -:   27:      }

        -:   28:    }

        -:   29:    else

        -:   30:    {

    #####:   31:      LC_this->LC_VD_X = (LC_TD_INT)4;

unconditional  0 never executed

        -:   32:    }

 
 
 
 
 
When you look at line 23 it is called 1 time. Line 24 is called 2 times (the bold one).
We already looked in the disassembly but did not see a reason why the line should be executed 2 times.

Can anyone help here, please?

Kind regards,
Alex



 

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Problem using gcov
  2018-02-21 13:33 Problem using gcov Alexander Fichtinger
@ 2018-02-22  9:43 ` Martin Liška
       [not found]   ` <kcim.5a93e1c0.2b51.26a60a650176b62e@v-srvkopano.ow.ks>
  0 siblings, 1 reply; 12+ messages in thread
From: Martin Liška @ 2018-02-22  9:43 UTC (permalink / raw)
  To: Alexander Fichtinger, gcc

On 02/21/2018 02:33 PM, Alexander Fichtinger wrote:
> When you look at line 23 it is called 1 time. Line 24 is called 2 times (the bold one).
> We already looked in the disassembly but did not see a reason why the line should be executed 2 times.
> 
> Can anyone help here, please?
> 
> Kind regards,
> Alex

Hi.

Sure, can you please send a self-contained test-case that I can run?

Thank you,
Martin

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: AW: Problem using gcov
       [not found]   ` <kcim.5a93e1c0.2b51.26a60a650176b62e@v-srvkopano.ow.ks>
@ 2018-02-26 13:57     ` Martin Liška
  2018-02-26 14:03       ` AW: " Alexander Fichtinger
  0 siblings, 1 reply; 12+ messages in thread
From: Martin Liška @ 2018-02-26 13:57 UTC (permalink / raw)
  To: Alexander Fichtinger, gcc

On 02/26/2018 11:30 AM, Alexander Fichtinger wrote:
> Hi Martin,
> 
> sorry that it took me so long to create the standalone sample, but I was very busy the last few days.
> 
> 
> We can reproduce the strange behavior in a standalone scenario.
> 
> I've provided it in the attachments.
> In the ZIP-file there is also a README.txt which contains the commands which I called.
> 
> And the line with the "strange" execution count is also mentioned.
> 
> Thank you and kind regards,
> 
> Alexander
> 
> 
> -----UrsprĂźngliche Nachricht-----
> Von: Martin Liška [mailto:mliska@suse.cz] 
> Gesendet: Donnerstag, 22. Februar 2018 10:43
> An: Alexander Fichtinger <alexander.fichtinger@logicals.com>; gcc@gcc.gnu.org
> Betreff: Re: Problem using gcov
> 
> On 02/21/2018 02:33 PM, Alexander Fichtinger wrote:
>> When you look at line 23 it is called 1 time. Line 24 is called 2 times (the bold one).
>> We already looked in the disassembly but did not see a reason why the line should be executed 2 times.
>>
>> Can anyone help here, please?
>>
>> Kind regards,
>> Alex
> 
> Hi.
> 
> Sure, can you please send a self-contained test-case that I can run?
> 
> Thank you,
> Martin
> 

No problem, I can confirm the problem:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84572

Martin

^ permalink raw reply	[flat|nested] 12+ messages in thread

* AW: AW: Problem using gcov
  2018-02-26 13:57     ` AW: " Martin Liška
@ 2018-02-26 14:03       ` Alexander Fichtinger
  2018-02-26 14:27         ` Jonathan Wakely
  2018-02-26 14:35         ` AW: " Martin Liška
  0 siblings, 2 replies; 12+ messages in thread
From: Alexander Fichtinger @ 2018-02-26 14:03 UTC (permalink / raw)
  To: Martin Liška, gcc

Thanks Martin!

I've seen that the target milestone for this bug is 8.0.

When is 8.0 going to be released?

Thanks and kind regards,
Alexander

-----Ursprüngliche Nachricht-----
Von: gcc-owner@gcc.gnu.org [mailto:gcc-owner@gcc.gnu.org] Im Auftrag von Martin Liška
Gesendet: Montag, 26. Februar 2018 14:57
An: Alexander Fichtinger <alexander.fichtinger@logicals.com>; gcc@gcc.gnu.org
Betreff: Re: AW: Problem using gcov

On 02/26/2018 11:30 AM, Alexander Fichtinger wrote:
> Hi Martin,
> 
> sorry that it took me so long to create the standalone sample, but I was very busy the last few days.
> 
> 
> We can reproduce the strange behavior in a standalone scenario.
> 
> I've provided it in the attachments.
> In the ZIP-file there is also a README.txt which contains the commands which I called.
> 
> And the line with the "strange" execution count is also mentioned.
> 
> Thank you and kind regards,
> 
> Alexander
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: Martin Liška [mailto:mliska@suse.cz] 
> Gesendet: Donnerstag, 22. Februar 2018 10:43
> An: Alexander Fichtinger <alexander.fichtinger@logicals.com>; gcc@gcc.gnu.org
> Betreff: Re: Problem using gcov
> 
> On 02/21/2018 02:33 PM, Alexander Fichtinger wrote:
>> When you look at line 23 it is called 1 time. Line 24 is called 2 times (the bold one).
>> We already looked in the disassembly but did not see a reason why the line should be executed 2 times.
>>
>> Can anyone help here, please?
>>
>> Kind regards,
>> Alex
> 
> Hi.
> 
> Sure, can you please send a self-contained test-case that I can run?
> 
> Thank you,
> Martin
> 

No problem, I can confirm the problem:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84572

Martin

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: AW: Problem using gcov
  2018-02-26 14:03       ` AW: " Alexander Fichtinger
@ 2018-02-26 14:27         ` Jonathan Wakely
  2018-02-26 14:35         ` AW: " Martin Liška
  1 sibling, 0 replies; 12+ messages in thread
From: Jonathan Wakely @ 2018-02-26 14:27 UTC (permalink / raw)
  To: Alexander Fichtinger; +Cc: Martin Liška, gcc

On 26 February 2018 at 14:02, Alexander Fichtinger wrote:
> Thanks Martin!
>
> I've seen that the target milestone for this bug is 8.0.
>
> When is 8.0 going to be released?

The version number 8.0 is used for snapshots from trunk in version
control, the actual release will be 8.1, see
https://gcc.gnu.org/develop.html#num_scheme
(Bugzilla doesn't know this though, and so "8.0" means "before the 8.1
release").

GCC major releases happen annually, some time around April.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: AW: AW: Problem using gcov
  2018-02-26 14:03       ` AW: " Alexander Fichtinger
  2018-02-26 14:27         ` Jonathan Wakely
@ 2018-02-26 14:35         ` Martin Liška
  2018-02-26 14:41           ` AW: " Alexander Fichtinger
  1 sibling, 1 reply; 12+ messages in thread
From: Martin Liška @ 2018-02-26 14:35 UTC (permalink / raw)
  To: Alexander Fichtinger, gcc

On 02/26/2018 03:02 PM, Alexander Fichtinger wrote:
> Thanks Martin!
> 
> I've seen that the target milestone for this bug is 8.0.

I did, but as described in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84572#c1
I'm not planning to fix it in the next releases. It's just a minor issue in GCOV
infrastructure.

Thank you for understanding,
Martin

> 
> When is 8.0 going to be released?
> 
> Thanks and kind regards,
> Alexander
> 
> -----UrsprĂźngliche Nachricht-----
> Von: gcc-owner@gcc.gnu.org [mailto:gcc-owner@gcc.gnu.org] Im Auftrag von Martin Liška
> Gesendet: Montag, 26. Februar 2018 14:57
> An: Alexander Fichtinger <alexander.fichtinger@logicals.com>; gcc@gcc.gnu.org
> Betreff: Re: AW: Problem using gcov
> 
> On 02/26/2018 11:30 AM, Alexander Fichtinger wrote:
>> Hi Martin,
>>
>> sorry that it took me so long to create the standalone sample, but I was very busy the last few days.
>>
>>
>> We can reproduce the strange behavior in a standalone scenario.
>>
>> I've provided it in the attachments.
>> In the ZIP-file there is also a README.txt which contains the commands which I called.
>>
>> And the line with the "strange" execution count is also mentioned.
>>
>> Thank you and kind regards,
>>
>> Alexander
>>
>>
>> -----UrsprĂźngliche Nachricht-----
>> Von: Martin Liška [mailto:mliska@suse.cz] 
>> Gesendet: Donnerstag, 22. Februar 2018 10:43
>> An: Alexander Fichtinger <alexander.fichtinger@logicals.com>; gcc@gcc.gnu.org
>> Betreff: Re: Problem using gcov
>>
>> On 02/21/2018 02:33 PM, Alexander Fichtinger wrote:
>>> When you look at line 23 it is called 1 time. Line 24 is called 2 times (the bold one).
>>> We already looked in the disassembly but did not see a reason why the line should be executed 2 times.
>>>
>>> Can anyone help here, please?
>>>
>>> Kind regards,
>>> Alex
>>
>> Hi.
>>
>> Sure, can you please send a self-contained test-case that I can run?
>>
>> Thank you,
>> Martin
>>
> 
> No problem, I can confirm the problem:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84572
> 
> Martin
> 

^ permalink raw reply	[flat|nested] 12+ messages in thread

* AW: AW: AW: Problem using gcov
  2018-02-26 14:35         ` AW: " Martin Liška
@ 2018-02-26 14:41           ` Alexander Fichtinger
  2018-02-27  8:13             ` Martin Liška
  0 siblings, 1 reply; 12+ messages in thread
From: Alexander Fichtinger @ 2018-02-26 14:41 UTC (permalink / raw)
  To: Martin Liška, gcc

Ok, thanks for the info.

I just saw the description in the bug-report.
When we document this for our customers, it's ok, I think. 

Thanks and kind regards,
Alexander

-----Ursprüngliche Nachricht-----
Von: gcc-owner@gcc.gnu.org [mailto:gcc-owner@gcc.gnu.org] Im Auftrag von Martin Liška
Gesendet: Montag, 26. Februar 2018 15:36
An: Alexander Fichtinger <alexander.fichtinger@logicals.com>; gcc@gcc.gnu.org
Betreff: Re: AW: AW: Problem using gcov

On 02/26/2018 03:02 PM, Alexander Fichtinger wrote:
> Thanks Martin!
> 
> I've seen that the target milestone for this bug is 8.0.

I did, but as described in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84572#c1
I'm not planning to fix it in the next releases. It's just a minor issue in GCOV infrastructure.

Thank you for understanding,
Martin

> 
> When is 8.0 going to be released?
> 
> Thanks and kind regards,
> Alexander
> 
> -----Ursprüngliche Nachricht-----
> Von: gcc-owner@gcc.gnu.org [mailto:gcc-owner@gcc.gnu.org] Im Auftrag 
> von Martin Liška
> Gesendet: Montag, 26. Februar 2018 14:57
> An: Alexander Fichtinger <alexander.fichtinger@logicals.com>; 
> gcc@gcc.gnu.org
> Betreff: Re: AW: Problem using gcov
> 
> On 02/26/2018 11:30 AM, Alexander Fichtinger wrote:
>> Hi Martin,
>>
>> sorry that it took me so long to create the standalone sample, but I was very busy the last few days.
>>
>>
>> We can reproduce the strange behavior in a standalone scenario.
>>
>> I've provided it in the attachments.
>> In the ZIP-file there is also a README.txt which contains the commands which I called.
>>
>> And the line with the "strange" execution count is also mentioned.
>>
>> Thank you and kind regards,
>>
>> Alexander
>>
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Martin Liška [mailto:mliska@suse.cz]
>> Gesendet: Donnerstag, 22. Februar 2018 10:43
>> An: Alexander Fichtinger <alexander.fichtinger@logicals.com>; 
>> gcc@gcc.gnu.org
>> Betreff: Re: Problem using gcov
>>
>> On 02/21/2018 02:33 PM, Alexander Fichtinger wrote:
>>> When you look at line 23 it is called 1 time. Line 24 is called 2 times (the bold one).
>>> We already looked in the disassembly but did not see a reason why the line should be executed 2 times.
>>>
>>> Can anyone help here, please?
>>>
>>> Kind regards,
>>> Alex
>>
>> Hi.
>>
>> Sure, can you please send a self-contained test-case that I can run?
>>
>> Thank you,
>> Martin
>>
> 
> No problem, I can confirm the problem:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84572
> 
> Martin
> 


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: AW: AW: AW: Problem using gcov
  2018-02-26 14:41           ` AW: " Alexander Fichtinger
@ 2018-02-27  8:13             ` Martin Liška
  2018-02-27 10:01               ` AW: " Alexander Fichtinger
  0 siblings, 1 reply; 12+ messages in thread
From: Martin Liška @ 2018-02-27  8:13 UTC (permalink / raw)
  To: Alexander Fichtinger, gcc

On 02/26/2018 03:41 PM, Alexander Fichtinger wrote:
> Ok, thanks for the info.
> 
> I just saw the description in the bug-report.
> When we document this for our customers, it's ok, I think. 

Thanks for understanding. I would just note that there's couple of similar issues
you probably want to be aware of:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83434
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83505
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83587
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83616
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83678
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83813
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83813

Martin

> 
> Thanks and kind regards,
> Alexander
> 
> -----UrsprĂźngliche Nachricht-----
> Von: gcc-owner@gcc.gnu.org [mailto:gcc-owner@gcc.gnu.org] Im Auftrag von Martin Liška
> Gesendet: Montag, 26. Februar 2018 15:36
> An: Alexander Fichtinger <alexander.fichtinger@logicals.com>; gcc@gcc.gnu.org
> Betreff: Re: AW: AW: Problem using gcov
> 
> On 02/26/2018 03:02 PM, Alexander Fichtinger wrote:
>> Thanks Martin!
>>
>> I've seen that the target milestone for this bug is 8.0.
> 
> I did, but as described in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84572#c1
> I'm not planning to fix it in the next releases. It's just a minor issue in GCOV infrastructure.
> 
> Thank you for understanding,
> Martin
> 
>>
>> When is 8.0 going to be released?
>>
>> Thanks and kind regards,
>> Alexander
>>
>> -----UrsprĂźngliche Nachricht-----
>> Von: gcc-owner@gcc.gnu.org [mailto:gcc-owner@gcc.gnu.org] Im Auftrag 
>> von Martin Liška
>> Gesendet: Montag, 26. Februar 2018 14:57
>> An: Alexander Fichtinger <alexander.fichtinger@logicals.com>; 
>> gcc@gcc.gnu.org
>> Betreff: Re: AW: Problem using gcov
>>
>> On 02/26/2018 11:30 AM, Alexander Fichtinger wrote:
>>> Hi Martin,
>>>
>>> sorry that it took me so long to create the standalone sample, but I was very busy the last few days.
>>>
>>>
>>> We can reproduce the strange behavior in a standalone scenario.
>>>
>>> I've provided it in the attachments.
>>> In the ZIP-file there is also a README.txt which contains the commands which I called.
>>>
>>> And the line with the "strange" execution count is also mentioned.
>>>
>>> Thank you and kind regards,
>>>
>>> Alexander
>>>
>>>
>>> -----UrsprĂźngliche Nachricht-----
>>> Von: Martin Liška [mailto:mliska@suse.cz]
>>> Gesendet: Donnerstag, 22. Februar 2018 10:43
>>> An: Alexander Fichtinger <alexander.fichtinger@logicals.com>; 
>>> gcc@gcc.gnu.org
>>> Betreff: Re: Problem using gcov
>>>
>>> On 02/21/2018 02:33 PM, Alexander Fichtinger wrote:
>>>> When you look at line 23 it is called 1 time. Line 24 is called 2 times (the bold one).
>>>> We already looked in the disassembly but did not see a reason why the line should be executed 2 times.
>>>>
>>>> Can anyone help here, please?
>>>>
>>>> Kind regards,
>>>> Alex
>>>
>>> Hi.
>>>
>>> Sure, can you please send a self-contained test-case that I can run?
>>>
>>> Thank you,
>>> Martin
>>>
>>
>> No problem, I can confirm the problem:
>> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84572
>>
>> Martin
>>
> 
> 

^ permalink raw reply	[flat|nested] 12+ messages in thread

* AW: AW: AW: AW: Problem using gcov
  2018-02-27  8:13             ` Martin Liška
@ 2018-02-27 10:01               ` Alexander Fichtinger
  2018-02-27 12:43                 ` Martin Liška
  0 siblings, 1 reply; 12+ messages in thread
From: Alexander Fichtinger @ 2018-02-27 10:01 UTC (permalink / raw)
  To: Martin Liška, gcc

Ok, thanks for the information.

Do we get all coverage-related problems when we monitor the Bugs with the Component "gcov-profile"?
Or are there other components concerning coverage?

We are using gcov in our Testframework (used for Automotive software) in order to determine the Code-Coverage, 
so it is important for us to know if there are any bugs which could compromise the reported test coverage.


Thanks and kind regards,
Alexander

-----Ursprüngliche Nachricht-----
Von: gcc-owner@gcc.gnu.org [mailto:gcc-owner@gcc.gnu.org] Im Auftrag von Martin Liška
Gesendet: Dienstag, 27. Februar 2018 09:01
An: Alexander Fichtinger <alexander.fichtinger@logicals.com>; gcc@gcc.gnu.org
Betreff: Re: AW: AW: AW: Problem using gcov

On 02/26/2018 03:41 PM, Alexander Fichtinger wrote:
> Ok, thanks for the info.
> 
> I just saw the description in the bug-report.
> When we document this for our customers, it's ok, I think. 

Thanks for understanding. I would just note that there's couple of similar issues you probably want to be aware of:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83434
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83505
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83587
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83616
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83678
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83813
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83813

Martin

> 
> Thanks and kind regards,
> Alexander
> 
> -----Ursprüngliche Nachricht-----
> Von: gcc-owner@gcc.gnu.org [mailto:gcc-owner@gcc.gnu.org] Im Auftrag 
> von Martin Liška
> Gesendet: Montag, 26. Februar 2018 15:36
> An: Alexander Fichtinger <alexander.fichtinger@logicals.com>; 
> gcc@gcc.gnu.org
> Betreff: Re: AW: AW: Problem using gcov
> 
> On 02/26/2018 03:02 PM, Alexander Fichtinger wrote:
>> Thanks Martin!
>>
>> I've seen that the target milestone for this bug is 8.0.
> 
> I did, but as described in 
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84572#c1
> I'm not planning to fix it in the next releases. It's just a minor issue in GCOV infrastructure.
> 
> Thank you for understanding,
> Martin
> 
>>
>> When is 8.0 going to be released?
>>
>> Thanks and kind regards,
>> Alexander
>>
>> -----Ursprüngliche Nachricht-----
>> Von: gcc-owner@gcc.gnu.org [mailto:gcc-owner@gcc.gnu.org] Im Auftrag 
>> von Martin Liška
>> Gesendet: Montag, 26. Februar 2018 14:57
>> An: Alexander Fichtinger <alexander.fichtinger@logicals.com>;
>> gcc@gcc.gnu.org
>> Betreff: Re: AW: Problem using gcov
>>
>> On 02/26/2018 11:30 AM, Alexander Fichtinger wrote:
>>> Hi Martin,
>>>
>>> sorry that it took me so long to create the standalone sample, but I was very busy the last few days.
>>>
>>>
>>> We can reproduce the strange behavior in a standalone scenario.
>>>
>>> I've provided it in the attachments.
>>> In the ZIP-file there is also a README.txt which contains the commands which I called.
>>>
>>> And the line with the "strange" execution count is also mentioned.
>>>
>>> Thank you and kind regards,
>>>
>>> Alexander
>>>
>>>
>>> -----Ursprüngliche Nachricht-----
>>> Von: Martin Liška [mailto:mliska@suse.cz]
>>> Gesendet: Donnerstag, 22. Februar 2018 10:43
>>> An: Alexander Fichtinger <alexander.fichtinger@logicals.com>;
>>> gcc@gcc.gnu.org
>>> Betreff: Re: Problem using gcov
>>>
>>> On 02/21/2018 02:33 PM, Alexander Fichtinger wrote:
>>>> When you look at line 23 it is called 1 time. Line 24 is called 2 times (the bold one).
>>>> We already looked in the disassembly but did not see a reason why the line should be executed 2 times.
>>>>
>>>> Can anyone help here, please?
>>>>
>>>> Kind regards,
>>>> Alex
>>>
>>> Hi.
>>>
>>> Sure, can you please send a self-contained test-case that I can run?
>>>
>>> Thank you,
>>> Martin
>>>
>>
>> No problem, I can confirm the problem:
>> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84572
>>
>> Martin
>>
> 
> 


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: AW: AW: AW: AW: Problem using gcov
  2018-02-27 10:01               ` AW: " Alexander Fichtinger
@ 2018-02-27 12:43                 ` Martin Liška
  2018-02-27 12:53                   ` AW: " Alexander Fichtinger
  0 siblings, 1 reply; 12+ messages in thread
From: Martin Liška @ 2018-02-27 12:43 UTC (permalink / raw)
  To: Alexander Fichtinger, gcc

On 02/27/2018 09:13 AM, Alexander Fichtinger wrote:
> Ok, thanks for the information.
> 
> Do we get all coverage-related problems when we monitor the Bugs with the Component "gcov-profile"?
> Or are there other components concerning coverage?

Yes, I mark all gcov bugs with this component.

> 
> We are using gcov in our Testframework (used for Automotive software) in order to determine the Code-Coverage, 
> so it is important for us to know if there are any bugs which could compromise the reported test coverage.

Understand that!
Martin

> 
> 
> Thanks and kind regards,
> Alexander
> 
> -----UrsprĂźngliche Nachricht-----
> Von: gcc-owner@gcc.gnu.org [mailto:gcc-owner@gcc.gnu.org] Im Auftrag von Martin Liška
> Gesendet: Dienstag, 27. Februar 2018 09:01
> An: Alexander Fichtinger <alexander.fichtinger@logicals.com>; gcc@gcc.gnu.org
> Betreff: Re: AW: AW: AW: Problem using gcov
> 
> On 02/26/2018 03:41 PM, Alexander Fichtinger wrote:
>> Ok, thanks for the info.
>>
>> I just saw the description in the bug-report.
>> When we document this for our customers, it's ok, I think. 
> 
> Thanks for understanding. I would just note that there's couple of similar issues you probably want to be aware of:
> 
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83434
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83505
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83587
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83616
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83678
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83813
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83813
> 
> Martin
> 
>>
>> Thanks and kind regards,
>> Alexander
>>
>> -----UrsprĂźngliche Nachricht-----
>> Von: gcc-owner@gcc.gnu.org [mailto:gcc-owner@gcc.gnu.org] Im Auftrag 
>> von Martin Liška
>> Gesendet: Montag, 26. Februar 2018 15:36
>> An: Alexander Fichtinger <alexander.fichtinger@logicals.com>; 
>> gcc@gcc.gnu.org
>> Betreff: Re: AW: AW: Problem using gcov
>>
>> On 02/26/2018 03:02 PM, Alexander Fichtinger wrote:
>>> Thanks Martin!
>>>
>>> I've seen that the target milestone for this bug is 8.0.
>>
>> I did, but as described in 
>> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84572#c1
>> I'm not planning to fix it in the next releases. It's just a minor issue in GCOV infrastructure.
>>
>> Thank you for understanding,
>> Martin
>>
>>>
>>> When is 8.0 going to be released?
>>>
>>> Thanks and kind regards,
>>> Alexander
>>>
>>> -----UrsprĂźngliche Nachricht-----
>>> Von: gcc-owner@gcc.gnu.org [mailto:gcc-owner@gcc.gnu.org] Im Auftrag 
>>> von Martin Liška
>>> Gesendet: Montag, 26. Februar 2018 14:57
>>> An: Alexander Fichtinger <alexander.fichtinger@logicals.com>;
>>> gcc@gcc.gnu.org
>>> Betreff: Re: AW: Problem using gcov
>>>
>>> On 02/26/2018 11:30 AM, Alexander Fichtinger wrote:
>>>> Hi Martin,
>>>>
>>>> sorry that it took me so long to create the standalone sample, but I was very busy the last few days.
>>>>
>>>>
>>>> We can reproduce the strange behavior in a standalone scenario.
>>>>
>>>> I've provided it in the attachments.
>>>> In the ZIP-file there is also a README.txt which contains the commands which I called.
>>>>
>>>> And the line with the "strange" execution count is also mentioned.
>>>>
>>>> Thank you and kind regards,
>>>>
>>>> Alexander
>>>>
>>>>
>>>> -----UrsprĂźngliche Nachricht-----
>>>> Von: Martin Liška [mailto:mliska@suse.cz]
>>>> Gesendet: Donnerstag, 22. Februar 2018 10:43
>>>> An: Alexander Fichtinger <alexander.fichtinger@logicals.com>;
>>>> gcc@gcc.gnu.org
>>>> Betreff: Re: Problem using gcov
>>>>
>>>> On 02/21/2018 02:33 PM, Alexander Fichtinger wrote:
>>>>> When you look at line 23 it is called 1 time. Line 24 is called 2 times (the bold one).
>>>>> We already looked in the disassembly but did not see a reason why the line should be executed 2 times.
>>>>>
>>>>> Can anyone help here, please?
>>>>>
>>>>> Kind regards,
>>>>> Alex
>>>>
>>>> Hi.
>>>>
>>>> Sure, can you please send a self-contained test-case that I can run?
>>>>
>>>> Thank you,
>>>> Martin
>>>>
>>>
>>> No problem, I can confirm the problem:
>>> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84572
>>>
>>> Martin
>>>
>>
>>
> 
> 

^ permalink raw reply	[flat|nested] 12+ messages in thread

* AW: AW: AW: AW: AW: Problem using gcov
  2018-02-27 12:43                 ` Martin Liška
@ 2018-02-27 12:53                   ` Alexander Fichtinger
  0 siblings, 0 replies; 12+ messages in thread
From: Alexander Fichtinger @ 2018-02-27 12:53 UTC (permalink / raw)
  To: Martin Liška, gcc

Ok, thank you.

Alexander

-----Ursprüngliche Nachricht-----
Von: gcc-owner@gcc.gnu.org [mailto:gcc-owner@gcc.gnu.org] Im Auftrag von Martin Liška
Gesendet: Dienstag, 27. Februar 2018 13:39
An: Alexander Fichtinger <alexander.fichtinger@logicals.com>; gcc@gcc.gnu.org
Betreff: Re: AW: AW: AW: AW: Problem using gcov

On 02/27/2018 09:13 AM, Alexander Fichtinger wrote:
> Ok, thanks for the information.
> 
> Do we get all coverage-related problems when we monitor the Bugs with the Component "gcov-profile"?
> Or are there other components concerning coverage?

Yes, I mark all gcov bugs with this component.

> 
> We are using gcov in our Testframework (used for Automotive software) 
> in order to determine the Code-Coverage, so it is important for us to know if there are any bugs which could compromise the reported test coverage.

Understand that!
Martin

> 
> 
> Thanks and kind regards,
> Alexander
> 
> -----Ursprüngliche Nachricht-----
> Von: gcc-owner@gcc.gnu.org [mailto:gcc-owner@gcc.gnu.org] Im Auftrag 
> von Martin Liška
> Gesendet: Dienstag, 27. Februar 2018 09:01
> An: Alexander Fichtinger <alexander.fichtinger@logicals.com>; 
> gcc@gcc.gnu.org
> Betreff: Re: AW: AW: AW: Problem using gcov
> 
> On 02/26/2018 03:41 PM, Alexander Fichtinger wrote:
>> Ok, thanks for the info.
>>
>> I just saw the description in the bug-report.
>> When we document this for our customers, it's ok, I think. 
> 
> Thanks for understanding. I would just note that there's couple of similar issues you probably want to be aware of:
> 
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83434
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83505
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83587
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83616
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83678
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83813
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83813
> 
> Martin
> 
>>
>> Thanks and kind regards,
>> Alexander
>>
>> -----Ursprüngliche Nachricht-----
>> Von: gcc-owner@gcc.gnu.org [mailto:gcc-owner@gcc.gnu.org] Im Auftrag 
>> von Martin Liška
>> Gesendet: Montag, 26. Februar 2018 15:36
>> An: Alexander Fichtinger <alexander.fichtinger@logicals.com>;
>> gcc@gcc.gnu.org
>> Betreff: Re: AW: AW: Problem using gcov
>>
>> On 02/26/2018 03:02 PM, Alexander Fichtinger wrote:
>>> Thanks Martin!
>>>
>>> I've seen that the target milestone for this bug is 8.0.
>>
>> I did, but as described in
>> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84572#c1
>> I'm not planning to fix it in the next releases. It's just a minor issue in GCOV infrastructure.
>>
>> Thank you for understanding,
>> Martin
>>
>>>
>>> When is 8.0 going to be released?
>>>
>>> Thanks and kind regards,
>>> Alexander
>>>
>>> -----Ursprüngliche Nachricht-----
>>> Von: gcc-owner@gcc.gnu.org [mailto:gcc-owner@gcc.gnu.org] Im Auftrag 
>>> von Martin Liška
>>> Gesendet: Montag, 26. Februar 2018 14:57
>>> An: Alexander Fichtinger <alexander.fichtinger@logicals.com>;
>>> gcc@gcc.gnu.org
>>> Betreff: Re: AW: Problem using gcov
>>>
>>> On 02/26/2018 11:30 AM, Alexander Fichtinger wrote:
>>>> Hi Martin,
>>>>
>>>> sorry that it took me so long to create the standalone sample, but I was very busy the last few days.
>>>>
>>>>
>>>> We can reproduce the strange behavior in a standalone scenario.
>>>>
>>>> I've provided it in the attachments.
>>>> In the ZIP-file there is also a README.txt which contains the commands which I called.
>>>>
>>>> And the line with the "strange" execution count is also mentioned.
>>>>
>>>> Thank you and kind regards,
>>>>
>>>> Alexander
>>>>
>>>>
>>>> -----Ursprüngliche Nachricht-----
>>>> Von: Martin Liška [mailto:mliska@suse.cz]
>>>> Gesendet: Donnerstag, 22. Februar 2018 10:43
>>>> An: Alexander Fichtinger <alexander.fichtinger@logicals.com>;
>>>> gcc@gcc.gnu.org
>>>> Betreff: Re: Problem using gcov
>>>>
>>>> On 02/21/2018 02:33 PM, Alexander Fichtinger wrote:
>>>>> When you look at line 23 it is called 1 time. Line 24 is called 2 times (the bold one).
>>>>> We already looked in the disassembly but did not see a reason why the line should be executed 2 times.
>>>>>
>>>>> Can anyone help here, please?
>>>>>
>>>>> Kind regards,
>>>>> Alex
>>>>
>>>> Hi.
>>>>
>>>> Sure, can you please send a self-contained test-case that I can run?
>>>>
>>>> Thank you,
>>>> Martin
>>>>
>>>
>>> No problem, I can confirm the problem:
>>> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84572
>>>
>>> Martin
>>>
>>
>>
> 
> 


^ permalink raw reply	[flat|nested] 12+ messages in thread

* problem using GCOV
@ 2001-05-17 12:28 Bon Vipkone
  0 siblings, 0 replies; 12+ messages in thread
From: Bon Vipkone @ 2001-05-17 12:28 UTC (permalink / raw)
  To: gcc

Hi,

I have a problem with using GCOV.  I did gcov test on
C files that are existed on the server.  I ran the
server and ran the test.  Some files, I got the
percentage coverage and some not.  I've checked on the
ones that don't have the coverage information, did the
test again and the code did execute in those files but
still no coverage at all.  The files that were created
for all these files when I compiled with the GCOV
flags are .bb and .bbg.  The files that were created
after I ran the program are the .da files.  After I
test them with gcov command it created .gcov files. 
Any clue why some files not getting any coverage
information even though it is executed already? 
Thanks.




__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2018-02-27 12:43 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-21 13:33 Problem using gcov Alexander Fichtinger
2018-02-22  9:43 ` Martin Liška
     [not found]   ` <kcim.5a93e1c0.2b51.26a60a650176b62e@v-srvkopano.ow.ks>
2018-02-26 13:57     ` AW: " Martin Liška
2018-02-26 14:03       ` AW: " Alexander Fichtinger
2018-02-26 14:27         ` Jonathan Wakely
2018-02-26 14:35         ` AW: " Martin Liška
2018-02-26 14:41           ` AW: " Alexander Fichtinger
2018-02-27  8:13             ` Martin Liška
2018-02-27 10:01               ` AW: " Alexander Fichtinger
2018-02-27 12:43                 ` Martin Liška
2018-02-27 12:53                   ` AW: " Alexander Fichtinger
  -- strict thread matches above, loose matches on Subject: below --
2001-05-17 12:28 problem using GCOV Bon Vipkone

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).