Bug 707 - BitBake hanging hard waiting on Futex
Summary: BitBake hanging hard waiting on Futex
Status: RESOLVED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: unspecified
Hardware: All Multiple
: Medium normal
Target Milestone: 1.0 M4
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
: 729 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-02-11 03:45 UTC by Wolfgang Denk
Modified: 2011-02-23 03:53 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfgang Denk 2011-02-11 03:45:52 UTC
I'm trying to build poky-image-sato-sdk for a PPC machine; I'm using a custom recipy for U-Boot to get a specific version. My build is based on current master: git commit ID b42ba2f

I missed that commit 27b3f08 "uboot: move license data into recipe with SRC_URI" removed the LICENSE entry from u-boot.inc, and I did not have such an entry in my own recipy.

This triggers an "interesting" failure mode: bitbake will print:

Pseudo is not present but is required, building this first before the main build
Parsing recipes...ERROR: This recipe does not have the LICENSE field set (u-boot)

and then hang.  It hangs hard and cannot be interrupted by pressing ^C; also, there are a number of zombie processes:

10868 pts/1    S+     0:00  |           \_ -bash
10871 pts/1    S+     0:00  |           |   \_ /bin/sh /home/wd/git/poky/work/scripts/bitbake -v poky-image-sato-sdk
10876 pts/1    Sl+    0:01  |           |       \_ python /home/wd/git/poky/work/bitbake/bin/bitbake pseudo-native -c populate_sysroot
10879 pts/1    Z+     0:08  |           |           \_ [python] <defunct>
10880 pts/1    Z+     0:15  |           |           \_ [python] <defunct>
10881 pts/1    Z+     0:15  |           |           \_ [python] <defunct>
10882 pts/1    Z+     0:13  |           |           \_ [python] <defunct>
10883 pts/1    Z+     0:15  |           |           \_ [python] <defunct>
10884 pts/1    Z+     0:15  |           |           \_ [python] <defunct>
10885 pts/1    Z+     0:14  |           |           \_ [python] <defunct>
10886 pts/1    Z+     0:14  |           |           \_ [python] <defunct>
10869 pts/1    S+     0:00  |           \_ tee BITBAKE-poky-image-sato-sdk.LOG

Checking with strace I see that bitbake is waiting on some Futex, which apperarently never will be released.

I think bitbake should never reach such a state; a SIGINT should be sufficient to stop it.
Comment 1 Richard Purdie 2011-02-23 03:52:30 UTC
*** Bug 729 has been marked as a duplicate of this bug. ***
Comment 2 Richard Purdie 2011-02-23 03:53:04 UTC
This should be fixed with http://git.pokylinux.org/cgit.cgi/poky/commit/?id=56a92105fe6b779c69bccd44c2cff8f21cafdfbd