oe-selftest-fedora in Alexandre's build


Richard Purdie
 

I noticed Alexandre's build on fedora36-ty-3 was hanging in oe-selftest:

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', 'OLDPWD': '/home/pokybuild/yocto-worker/oe-selftest-fedora/build'}, ['/home/pokybuild/yocto-worker/oe-selfte
st-fedora/build/bitbake/bin/bitbake', '-e']]
1758267 15:58:48.269660 Command Completed (socket: True)
1758267 15:58:48.269853 Running command ['getVariable', 'BBINCLUDELOGS']
Exception in thread Thread-1 (idle_thread):
Traceback (most recent call last):
File "/usr/lib64/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/lib64/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/home/pokybuild/yocto-worker/oe-selftest-fedora/build/bitbake/lib/bb/server/process.py", line 408, in idle_thread
self.cooker.process_inotify_updates()
File "/home/pokybuild/yocto-worker/oe-selftest-fedora/build/bitbake/lib/bb/cooker.py", line 256, in process_inotify_updates
n.read_events()
File "/home/pokybuild/yocto-worker/oe-selftest-fedora/build/bitbake/lib/pyinotify.py", 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 ['getVariable', 'BBINCLUDELOGS_LINES']
1758267 15:58:48.694993 Command Completed (socket: True)
1758267 15:58:48.695184 Running command ['getSetVariable', 'BB_CONSOLELOG']

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

which shows the idle thread is missing due to the exception. I'll kill
the remaining process since it will never get anywhere.

Cheers,

Richard