<?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>15042</bug_id>
          
          <creation_ts>2023-02-23 14:42:24 +0000</creation_ts>
          <short_desc>AB-INT: oe-selftest hangs</short_desc>
          <delta_ts>2023-02-23 15:46:31 +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>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>AB-INT</status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandre Belloni">alexandre.belloni</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>alexandre.belloni</cc>
    
    <cc>richard.purdie</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>94989</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2023-02-23 14:42:24 +0000</bug_when>
    <thetext>From RP:

https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/4815

Looking at the bitbake-cookerdaemon.log, we see:

to-worker/oe-selftest-fedora/build/build-st-1756321&apos;, &apos;OLDPWD&apos;: &apos;/home/pokybuild/yocto-worker/oe-selftest-fedora/build&apos;}, [&apos;/home/pokybuild/yocto-worker/oe-selfte
st-fedora/build/bitbake/bin/bitbake&apos;, &apos;-e&apos;]]
1758267 15:58:48.269660 Command Completed (socket: True)
1758267 15:58:48.269853 Running command [&apos;getVariable&apos;, &apos;BBINCLUDELOGS&apos;]
Exception in thread Thread-1 (idle_thread):
Traceback (most recent call last):
  File &quot;/usr/lib64/python3.10/threading.py&quot;, line 1016, in _bootstrap_inner
    self.run()
  File &quot;/usr/lib64/python3.10/threading.py&quot;, line 953, in run
    self._target(*self._args, **self._kwargs)
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/bitbake/lib/bb/server/process.py&quot;, line 408, in idle_thread
    self.cooker.process_inotify_updates()
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/bitbake/lib/bb/cooker.py&quot;, line 256, in process_inotify_updates
    n.read_events()
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/bitbake/lib/pyinotify.py&quot;, line 1207, in read_events
    if fcntl.ioctl(self._fd, termios.FIONREAD, buf_, 1) == -1:
OSError: [Errno 9] Bad file descriptor
1758267 15:58:48.694198 Command Completed (socket: True)
1758267 15:58:48.694547 Running command [&apos;getVariable&apos;, &apos;BBINCLUDELOGS_LINES&apos;]
1758267 15:58:48.694993 Command Completed (socket: True)
1758267 15:58:48.695184 Running command [&apos;getSetVariable&apos;, &apos;BB_CONSOLELOG&apos;]

and then pings are keeping things alive but it looks like the idle thread has crashed. I saved the log into ~/saved.

(gdb) py-bt
Traceback (most recent call first):
  &lt;built-in method select of module object at remote 0x7fa4fe92dad0&gt;
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/bitbake/lib/bb/server/process.py&quot;, line 481, in idle_commands
    return select.select(fds,[],[],nextsleep)[0]
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/bitbake/lib/bb/server/process.py&quot;, line 318, in main
    ready = self.idle_commands(.1, fds)
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/bitbake/lib/bb/server/process.py&quot;, line 153, in run
    ret = self.main()
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/bitbake/lib/bb/server/process.py&quot;, line 655, in execServer
    server.run()
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/bitbake/bin/bitbake-server&quot;, line 54, in &lt;module&gt;
    bb.server.process.execServer(lockfd, readypipeinfd, lockname, sockname, timeout, xmlrpcinterface, profile)
(gdb) info threads
  Id   Target Id                                    Frame
* 1    Thread 0x7fa4ff411740 (LWP 1758267) &quot;Cooker&quot; 0x00007fa4fed0841c in select () from /lib64/libc.so.6

which shows the idle thread is missing due to the exception.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94990</commentid>
    <comment_count>1</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2023-02-23 14:47:56 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#builders/86/builds/4825/steps/14/logs/stdio

oe-selftest-fedora fedora36-ty-3

Was also hung, also terminated by RP</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94997</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2023-02-23 15:46:31 +0000</bug_when>
    <thetext>https://git.yoctoproject.org/poky/commit/?id=7244bf24573252fde6506da8a3f883e6c416d5ad
https://git.yoctoproject.org/poky/commit/?id=76db0baba26a5da5382f7cc44c64eb705e24e638</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>