Bug 13394 - qemu-arm hang whilst generating image
Summary: qemu-arm hang whilst generating image
Status: RESOLVED OBSOLETE
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 2.7
Hardware: x86 Multiple
: Medium normal
Target Milestone: 3.0
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2019-06-12 13:02 UTC by Richard Purdie
Modified: 2019-11-07 17:58 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Purdie 2019-06-12 13:02:21 UTC
User mode qemu-arm demonstrated a hang whilst building an image, the build was running for 11 hours:

https://autobuilder.yoctoproject.org/typhoon/#/builders/38/builds/696

its jammed in a core-image-lsb do_rootfs

systemd(1)─┬─Cooker(32736)─┬─PRServ(32741)───{PRServ}(32742)
           │               ├─Worker(33255)───{Worker}(33370)
           │               ├─pseudo(9143)───Worker (Fakeroo(9148)─┬─core-image-lsb-(47468)───update_font_cac(13042)───qemuwrapper(13044)───+
           │               │                                      └─{Worker (Fakeroo}(9181)


$ pstree -p 47468
core-image-lsb-(47468)───update_font_cac(13042)───qemuwrapper(13044)───qemu-arm(13046)───{qemu-arm}(13048)



042 ?        SN     0:00 /bin/sh /home/pokybuild/yocto-worker/qemuarm-lsb/build/build/tmp/work/qemuarm-poky-linux-gnueabi/core-image-lsb-s
13044 ?        SN     0:00 /bin/sh /home/pokybuild/yocto-worker/qemuarm-lsb/build/build/tmp/work/qemuarm-poky-linux-gnueabi/core-image-lsb-s
13046 ?        RNl  21115276:03 qemu-arm -r 3.2.0 -E LD_LIBRARY_PATH=/home/pokybuild/yocto-worker/qemuarm-lsb/build/build/tmp/work/qemuarm-p
15274 ?        I      0:00 [kworker/36:2]



rpurdie@tumbleweed-ty-1:~> cat /proc/13046/cmdline 
qemu-arm-r3.2.0-ELD_LIBRARY_PATH=/home/pokybuild/yocto-worker/qemuarm-lsb/build/build/tmp/work/qemuarm-poky-linux-gnueabi/core-image-lsb-sdk/1.0-r0/rootfs/usr/lib:/home/pokybuild/yocto-worker/qemuarm-lsb/build/build/tmp/work/qemuarm-poky-linux-gnueabi/core-image-lsb-sdk/1.0-r0/rootfs/lib-L/home/pokybuild/yocto-worker/qemuarm-lsb/build/build/tmp/work/qemuarm-poky-linux-gnueabi/core-image-lsb-sdk/1.0-r0/rootfs-EFC_DEBUG=1/home/pokybuild/yocto-worker/qemuarm-lsb/build/build/tmp/work/qemuarm-poky-linux-gnueabi/core-image-lsb-sdk/1.0-r0/rootfs/usr/libexec/fc-cache--sysroot=/home/pokybuild/yocto-worker/qemuarm-lsb/build/build/tmp/work/qemuarm-poky-linux-gnueabi/core-image-lsb-sdk/1.0-r0/rootfs--system-only-v
Comment 1 Richard Purdie 2019-06-12 13:04:34 UTC
Worker is tumbleweed-ty-1 and the qemu-arm process is using 100% cpu.
Comment 2 Richard Purdie 2019-06-12 13:10:47 UTC
Top shows its been running for:

13046 pokybui+  25   5 4320852  12860   7832 R 100.0 0.010  5124107h qemu-arm 

which is about 805 years.
Comment 3 Randy MacLeod 2019-06-13 14:57:07 UTC
This may be a rare bug that only happens once. Richard may gather more information about the cpu hogging process.
Comment 4 Michael Halstead 2019-06-18 21:56:28 UTC
I updated the kernel shortly after this bug was filed and the problem has not yet repeated. Tumbleweed is running recent kernels (5.1.5 last week & currently 5.1.7) so we will see new bugs that may never repeat.
Comment 5 Richard Purdie 2019-11-07 15:59:32 UTC
We believe this was fixed by the kernel changes, it hasn't reappeared so closing, we can reopen if it reoccurs.