<?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>13123</bug_id>
          
          <creation_ts>2019-01-07 02:07:31 +0000</creation_ts>
          <short_desc>package.PackageTests.test_gdb_hardlink_debug failed</short_desc>
          <delta_ts>2022-10-27 15:05:53 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Functional (self) Testing</product>
          <component>oe-selftest</component>
          <version>2.7</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</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>4.2 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chen Qi">Qi.Chen</reporter>
          <assigned_to name="Randy MacLeod">randy.macleod</assigned_to>
          <cc>alexandre.belloni</cc>
    
    <cc>castro8583bennett</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>raj.khem</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
    
    <cc>steve</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>82688</commentid>
    <comment_count>0</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2019-01-07 02:07:31 +0000</bug_when>
    <thetext>&apos;oe-selftest -r package.PackageTests.test_gdb_hardlink_debug&apos; fails. 
Below is some output from oe-selftest.
[snip]
2018-12-26 09:27:58,440 - oe-selftest - INFO - test_gdb_hardlink_debug (package.PackageTests)
2018-12-26 09:37:55,333 - oe-selftest - INFO - gdbtest /usr/bin/hello1
2018-12-26 09:37:59,904 - oe-selftest - ERROR - GDB result:
1: Reading symbols from /usr/bin/hello1...Reading symbols from /usr/bin/.debug/hello4...done.
done.
(gdb) Breakpoint 1 at 0x1060: file /usr/include/bits/stdio2.h, line 107.
(gdb) Starting program: /usr/bin/hello1

Breakpoint 1, main () at /usr/include/bits/stdio2.h:107
107    /usr/include/bits/stdio2.h: No such file or directory.
(gdb) Continuing.
Hello World!
[Inferior 1 (process 312) exited normally]
(gdb)
2018-12-26 09:38:00,907 - oe-selftest - INFO -  ... FAIL
[snip]

The hello world problem is as follows.
$ cat meta-selftest/recipes-test/selftest-hardlink/selftest-hardlink/hello.c
#include &lt;stdio.h&gt;

int main() {
    printf(&quot;Hello World!\n&quot;);
} 


Two ways to reproduce the problem:

I) reproduce it via oe-selftest
1) . oe-init-build-env build-selftest
2) SANITY_TESTED_DISTROS = &quot;&quot;
3) oe-selftest -r package.PackageTests.test_gdb_hardlink_debug

II) reproduce it manually
1) add meta-selftest to bblayers.conf
2) IMAGE_INSTALL_append = &quot; selftest-hardlink selftest-hardlink-dbg selftest-hardlink-gdb&quot;
3) bitbake core-image-minimal
4) On target:
     gdb /usr/bin/hello1
     (gdb) b main</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82730</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-01-10 15:43:34 +0000</bug_when>
    <thetext>Add glibc-dev to the IMAGE_INSTALL?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82747</commentid>
    <comment_count>2</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2019-01-11 01:46:36 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Add glibc-dev to the IMAGE_INSTALL?

I tried this, but it did not work.

On qemux86:
1: Reading symbols from /usr/bin/hello1...Reading symbols from /usr/bin/.debug/hello4...done.
done.
(gdb) Breakpoint 1 at 0x1060: file /usr/include/bits/stdio2.h, line 107.
(gdb) Starting program: /usr/bin/hello1

Breakpoint 1, main () at /usr/include/bits/stdio2.h:107
107      return __printf_chk (__USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack ());
(gdb) Continuing.
Hello World!
[Inferior 1 (process 309) exited normally]
(gdb)
2018-12-29 10:58:11,538 - oe-selftest - INFO -  ... FAIL

For qemux86-64, things are the same.

Best Regards,
Chen Qi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84298</commentid>
    <comment_count>3</comment_count>
    <who name="Castro B">castro8583bennett</who>
    <bug_when>2019-06-21 06:56:43 +0000</bug_when>
    <thetext>Hi Chen Qi i also have the same issue
may i know if you have now the solution? Thanks!

Castro B,
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84303</commentid>
    <comment_count>4</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2019-06-21 07:05:05 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; Hi Chen Qi i also have the same issue
&gt; may i know if you have now the solution? Thanks!
&gt; 
&gt; Castro B,
&gt; 

Unfortunately no. No progress has been made on this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88051</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2020-08-27 10:28:16 +0000</bug_when>
    <thetext>*** Bug 13676 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88171</commentid>
    <comment_count>6</comment_count>
    <who name="Steve Sakoman">steve</who>
    <bug_when>2020-09-18 07:20:49 +0000</bug_when>
    <thetext>Another occurrence (oe-selftest-ubuntu, ubuntu1804-ty-2)

https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/1388</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88172</commentid>
    <comment_count>7</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-09-18 07:23:52 +0000</bug_when>
    <thetext>And another: https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/1390/steps/8/logs/step2d (master-next, oe-selftest-ubuntu, ubuntu1804-ty-1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88174</commentid>
    <comment_count>8</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-09-18 11:05:00 +0000</bug_when>
    <thetext>Both recent failures were run_serial timing out (with a 60s timeout). Maybe we need to give these more time as they&apos;re perhaps conflicting with other boot process startup?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88418</commentid>
    <comment_count>9</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-10-19 06:03:56 +0000</bug_when>
    <thetext>2020-10-17 14:55:48,626 - oe-selftest - INFO - gdbtest /usr/bin/hello1
2020-10-17 14:56:48,684 - oe-selftest - ERROR - GDB result:
0: Reading symbols from /usr/bin/hello1...
Reading symbols from /usr/bin/.debug/hello1...
(gdb) Breakpoint 1 at 0x1050: file /usr/include/bits/stdio2.h, line 110.
(gdb) Starting program: /usr/bin/hello1 
&lt;&lt;&lt; run_serial(): command timed out after 60 seconds without output &gt;&gt;&gt;
2020-10-17 14:56:49,743 - oe-selftest - INFO - package.PackageTests.test_gdb_hardlink_debug (subunit.RemotedTestCase)
2020-10-17 14:56:49,744 - oe-selftest - INFO -  ... FAIL
2020-10-17 14:56:49,744 - oe-selftest - INFO - 6: 6/12 217/416 (377.96s) (package.PackageTests.test_gdb_hardlink_debug)
2020-10-17 14:56:49,744 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-ubuntu/build/meta/lib/oeqa/selftest/cases/package.py&quot;, line 150, in test_gdb_hardlink_debug
    self.fail(&apos;GDB %s failed&apos; % binary)
  File &quot;/usr/lib/python3.6/unittest/case.py&quot;, line 670, in fail
    raise self.failureException(msg)
AssertionError: GDB /usr/bin/hello1 failed

from https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/1475 on ubuntu1804-ty-3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88445</commentid>
    <comment_count>10</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-10-21 03:36:21 +0000</bug_when>
    <thetext>Another case from dunfell: https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/1483/steps/8/logs/step2d</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88650</commentid>
    <comment_count>11</comment_count>
    <who name="Steve Sakoman">steve</who>
    <bug_when>2020-11-20 14:36:27 +0000</bug_when>
    <thetext>Another case from dunfell (oe-selftest-ubuntu, ubuntu1804-ty-3)

https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/1584/steps/9/logs/step2d</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88804</commentid>
    <comment_count>12</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-12-22 22:31:59 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/1674/steps/14/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89731</commentid>
    <comment_count>13</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-03-25 01:15:38 +0000</bug_when>
    <thetext>I wonder if I have out-waited this bug or if people have just stopped reporting on it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90367</commentid>
    <comment_count>14</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-05-13 15:03:51 +0000</bug_when>
    <thetext>Not seen in ages, reopen if new data.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90638</commentid>
    <comment_count>15</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2021-06-16 01:12:25 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/2159/steps/14/logs/stdio

  File &quot;/home/pokybuild/yocto-worker/oe-selftest-ubuntu/build/meta/lib/oeqa/selftest/cases/package.py&quot;, line 150, in test_gdb_hardlink_debug
    self.fail(&apos;GDB %s failed&apos; % binary)
  File &quot;/usr/lib/python3.6/unittest/case.py&quot;, line 670, in fail
    raise self.failureException(msg)
AssertionError: GDB /usr/bin/hello1 failed


2021-05-22 12:58:37,814 - oe-selftest - INFO - gdbtest /usr/bin/hello1
2021-05-22 12:59:37,871 - oe-selftest - ERROR - GDB result:
0: &lt;&lt;&lt; run_serial(): command timed out after 60 seconds without output &gt;&gt;&gt;

The timeout is still an issue :(

oe-selftest-ubuntu
ubuntu1804-ty-1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90880</commentid>
    <comment_count>16</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-07-08 12:54:46 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/2298
looks like a related failure.

I did check and found nothing unusual in any logs I could find.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91473</commentid>
    <comment_count>17</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-09-19 18:59:11 +0000</bug_when>
    <thetext>FWIW this selftest always fails with the error in the original report if MACHINE=qeuarm64. That may not be the cause of the autobuilder failures but does explain some of the issues.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91523</commentid>
    <comment_count>18</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2021-09-23 14:42:20 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/2546/steps/14/logs/stdio
oe-selftest-centos centos8-ty-1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92255</commentid>
    <comment_count>19</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2022-01-07 16:44:48 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/2851/steps/14/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92277</commentid>
    <comment_count>20</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2022-01-12 18:17:15 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/2862/steps/14/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92684</commentid>
    <comment_count>21</comment_count>
    <who name="Steve Sakoman">steve</who>
    <bug_when>2022-02-26 16:00:48 +0000</bug_when>
    <thetext>After quite some time not seeing this on dunfell, it happened once again:

https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/3181/steps/14/logs/stdio

oe-selftest-debian debian9-ty-2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92752</commentid>
    <comment_count>22</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2022-03-10 10:00:56 +0000</bug_when>
    <thetext>ubuntu1804-ty-3 master-next (non-SSD)

https://autobuilder.yoctoproject.org/typhoon/#builders/87/builds/3247/steps/14/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94269</commentid>
    <comment_count>23</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2022-10-27 15:05:53 +0000</bug_when>
    <thetext>Closing since it happens so rarely. If it happens again, please re-open.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>