<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>14388</bug_id>
          
          <creation_ts>2021-05-10 03:21:22 +0000</creation_ts>
          <short_desc>AB-INT PTEST: valgrind failed  helgrind/tests/hg05_race2</short_desc>
          <delta_ts>2022-04-23 00:34:44 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Package Testing (ptest)</product>
          <component>ptest</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>AB-INT</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chee Yang">chee.yang.lee</reporter>
          <assigned_to name="Randy MacLeod">randy.macleod</assigned_to>
          <cc>alexandre.belloni</cc>
    
    <cc>jay.shen.teoh</cc>
    
    <cc>jon.mason</cc>
    
    <cc>leonardo.sandoval</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>oobitots</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>90331</commentid>
    <comment_count>0</comment_count>
    <who name="Chee Yang">chee.yang.lee</who>
    <bug_when>2021-05-10 03:21:22 +0000</bug_when>
    <thetext>Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/qemux86-64-ptest/build/meta/lib/oeqa/core/decorator/__init__.py&quot;, line 36, in wrapped_f
    return func(*args, **kwargs)
  File &quot;/home/pokybuild/yocto-worker/qemux86-64-ptest/build/meta/lib/oeqa/core/decorator/__init__.py&quot;, line 36, in wrapped_f
    return func(*args, **kwargs)
  File &quot;/home/pokybuild/yocto-worker/qemux86-64-ptest/build/meta/lib/oeqa/core/decorator/__init__.py&quot;, line 36, in wrapped_f
    return func(*args, **kwargs)
  File &quot;/home/pokybuild/yocto-worker/qemux86-64-ptest/build/meta/lib/oeqa/runtime/cases/ptest.py&quot;, line 25, in test_ptestrunner_expectfail
    self.do_ptestrunner()
  File &quot;/home/pokybuild/yocto-worker/qemux86-64-ptest/build/meta/lib/oeqa/runtime/cases/ptest.py&quot;, line 112, in do_ptestrunner
    self.fail(failmsg)
AssertionError: Failed ptests:
{&apos;valgrind&apos;: [&apos;helgrind/tests/hg05_race2&apos;]}

https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/2069/steps/12/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90350</commentid>
    <comment_count>1</comment_count>
    <who name="Chee Yang">chee.yang.lee</who>
    <bug_when>2021-05-12 09:31:34 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/2076/steps/12/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90352</commentid>
    <comment_count>2</comment_count>
    <who name="Chee Yang">chee.yang.lee</who>
    <bug_when>2021-05-12 11:54:57 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/2077/steps/12/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90354</commentid>
    <comment_count>3</comment_count>
    <who name="Chee Yang">chee.yang.lee</who>
    <bug_when>2021-05-12 12:15:39 +0000</bug_when>
    <thetext>another occurance with different test
{&apos;valgrind&apos;: [&apos;helgrind/tests/tc09_bad_unlock&apos;]}
qemux86-64-ptest
ubuntu2004-ty-2

https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/2080/steps/12/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90414</commentid>
    <comment_count>4</comment_count>
    <who name="Jon Mason">jon.mason</who>
    <bug_when>2021-05-19 01:25:14 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/2096/steps/12/logs/stdio

qemux86-64-ptest
tumbleweed-ty-1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90486</commentid>
    <comment_count>5</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2021-05-27 13:01:06 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/2112/

qemux86-64-ptest
tumbleweed-ty-3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90537</commentid>
    <comment_count>6</comment_count>
    <who name="Tony Tascioglu">tony.tascioglu</who>
    <bug_when>2021-05-31 16:33:31 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/2112/
&gt; 
&gt; qemux86-64-ptest
&gt; tumbleweed-ty-3

Note: that link is incomplete, the build log is available at https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/2112/steps/12/logs/stdio

Interestingly, it&apos;s not just the hg05 test failing this time, I&apos;ll look into the drd test as well to see if there&apos;s a similarity.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90538</commentid>
    <comment_count>7</comment_count>
    <who name="Tony Tascioglu">tony.tascioglu</who>
    <bug_when>2021-05-31 16:40:37 +0000</bug_when>
    <thetext>I have contacted upstream about the failing hg05_race2 test, and it looks like it has been happening for a while.

Here is the original upstream report: https://bugs.kde.org/show_bug.cgi?id=345121

I have been able to reproduce the failing test for both hg05 and tc09, running it with their testing harness usually causes it to fail within a few runs, and it consistently produces the invalid output if run using strace -f. Both of the tests fail with outputs differing by 1/2 lines.

The diffs for the invalid output from qemu, an Intel desktop and my Ryzen laptop fail in the same way, so I don&apos;t think it&apos;s specific to our build process.
That being said, it does have to do with the ordering of threads required for an unwinding step them as per upstream.

I&apos;ll see if I can come up with a solution or workaround to stop the failing builds.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90636</commentid>
    <comment_count>8</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2021-06-16 00:59:01 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/2169/steps/12/logs/stdio

qemux86-64-ptest
tumbleweed-ty-3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90959</commentid>
    <comment_count>9</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2021-07-16 21:56:17 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/2274/steps/12/logs/stdio

qemux86-64-ptest debian10-ty-2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90985</commentid>
    <comment_count>10</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2021-07-22 13:18:59 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/2279/steps/12/logs/stdio

qemux86-64-ptest debian10-ty-2

&apos;valgrind&apos;: [&apos;helgrind/tests/hg05_race2&apos;, &apos;helgrind/tests/tc09_bad_unlock&apos;]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91079</commentid>
    <comment_count>11</comment_count>
    <who name="Teoh Jay Shen">jay.shen.teoh</who>
    <bug_when>2021-08-02 00:10:43 +0000</bug_when>
    <thetext>These two ptests were also failing on QA for yocto-3.3.2.rc2 : 

1. ptestresult.valgrind.helgrind/tests/hg05_race2: PASSED -&gt; FAILED
2. ptestresult.valgrind.helgrind/tests/tc09_bad_unlock: PASSED -&gt; FAILED</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91119</commentid>
    <comment_count>12</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-08-05 14:44:03 +0000</bug_when>
    <thetext>backport taskset work-around to 3.3 please Tony.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91243</commentid>
    <comment_count>13</comment_count>
    <who name="Tony Tascioglu">tony.tascioglu</who>
    <bug_when>2021-08-20 13:22:11 +0000</bug_when>
    <thetext>(In reply to comment #12)
&gt; backport taskset work-around to 3.3 please Tony.

The change was already backported to Hardknott (3.3) some time ago:

http://cgit.openembedded.org/openembedded-core/commit/meta/recipes-devtools/valgrind/valgrind/?h=hardknott&amp;id=79ec1d73a107277586d3d8e9c0d46dfc0ac2b0d8

http://cgit.openembedded.org/openembedded-core/commit/meta/recipes-devtools/valgrind/valgrind/?h=hardknott&amp;id=f076edb7515ba2ecfc0adbfdf30ae5a9aa96e231

It&apos;s not perfect, and the tests do still fail occasionally, but it does seem to improve the situation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91895</commentid>
    <comment_count>14</comment_count>
    <who name="Chee Yang">chee.yang.lee</who>
    <bug_when>2021-11-06 03:41:01 +0000</bug_when>
    <thetext>hardknott

{&apos;valgrind&apos;: [&apos;helgrind/tests/hg05_race2&apos;, &apos;helgrind/tests/tc09_bad_unlock&apos;]}

https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/2786/steps/12/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92231</commentid>
    <comment_count>15</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2022-01-06 15:53:22 +0000</bug_when>
    <thetext>need to backport the taskset depenedency to previous releases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92616</commentid>
    <comment_count>16</comment_count>
    <who name="Oleksiy Obitotskyy">oobitots</who>
    <bug_when>2022-02-21 09:52:36 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/3133/steps/13/logs/stdio

qemux86-64-ptest ubuntu1604-ty-1

WARNING: core-image-sato-sdk-ptest-1.0-r0 do_testimage: There were failing ptests.
Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/qemux86-64-ptest/build/meta/lib/oeqa/core/decorator/__init__.py&quot;, line 36, in wrapped_f
    return func(*args, **kwargs)
  File &quot;/home/pokybuild/yocto-worker/qemux86-64-ptest/build/meta/lib/oeqa/core/decorator/__init__.py&quot;, line 36, in wrapped_f
    return func(*args, **kwargs)
  File &quot;/home/pokybuild/yocto-worker/qemux86-64-ptest/build/meta/lib/oeqa/core/decorator/__init__.py&quot;, line 36, in wrapped_f
    return func(*args, **kwargs)
  File &quot;/home/pokybuild/yocto-worker/qemux86-64-ptest/build/meta/lib/oeqa/runtime/cases/ptest.py&quot;, line 25, in test_ptestrunner_expectfail
    self.do_ptestrunner()
  File &quot;/home/pokybuild/yocto-worker/qemux86-64-ptest/build/meta/lib/oeqa/runtime/cases/ptest.py&quot;, line 112, in do_ptestrunner
    self.fail(failmsg)
AssertionError: Failed ptests:
{&apos;valgrind&apos;: [&apos;helgrind/tests/hg05_race2&apos;, &apos;helgrind/tests/tc09_bad_unlock&apos;]}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93139</commentid>
    <comment_count>17</comment_count>
    <who name="Leonardo Sandoval">leonardo.sandoval</who>
    <bug_when>2022-04-20 22:44:17 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/3401/steps/12/logs/stdio

│ ubuntu1604-ty-1  │ Non-SSD │</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93148</commentid>
    <comment_count>18</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2022-04-21 06:53:22 +0000</bug_when>
    <thetext>(In reply to comment #17)
&gt; https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/3401/steps/
&gt; 12/logs/stdio
&gt; 
&gt; │ ubuntu1604-ty-1  │ Non-SSD │

Just to note, the above was hardknott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93178</commentid>
    <comment_count>19</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2022-04-23 00:34:44 +0000</bug_when>
    <thetext>hardknott is at EOL and I think this particualar issue is worked-around in later branches.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>