| Summary: | do_rootfs: The postinstall intercept hook 'update_pixbuf_cache' failed | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Jackie Huang <jackie.huang> | ||||
| Component: | virtual machines | Assignee: | Cristian Iorga <cristian.iorga> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Alexandru Georgescu <alexandru.c.georgescu> | ||||
| Severity: | normal | ||||||
| Priority: | Medium+ | CC: | alexandru.c.georgescu, ntl, richard.purdie | ||||
| Version: | 1.7 | ||||||
| Target Milestone: | 1.8 M3 | ||||||
| Hardware: | x86 | ||||||
| OS: | Multiple | ||||||
| Whiteboard: | |||||||
| OS type for building Yocto: | --- | Type of Regression: | --- | ||||
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |||||
| Attachments: |
|
||||||
|
Description
Jackie Huang
2014-09-18 09:06:50 UTC
We need more data to investigate this issue. Can you please observe the host system log (via dmesg) when this issue happens and attach to this bug report any suspicious messages? Maybe at some point during the run of "update_pixbuf_cache" postinstall the system is out of memory? Also, as I was unable to reproduce the issue, can you please refine more the conditions needed for this issue to reproduce? Can the specs of the host build machine in any way impact the reproducibility of this issue? Limited amount of RAM, maybe? Regards, Cristian More info is needed in order to investigate this issue. (In reply to comment #3) > More info is needed in order to investigate this issue. I tried several builds but was unable to reproduce the issue yet, maybe it has been fixed somewhere? Anyway, I will keep and eye on it for some days, if it can be reproduced again, I will close the issue. I think I'm seeing the same issue. In my case the qemu-arm process grows without bound; I've seen it get to ~7GB before manually killing it. Presumably in the submitter's case it gets killed by the kernel eventually.
I can recreate it by enabling ptest, i.e. adding to local.conf:
DISTRO_FEATURES_append = " ptest"
EXTRA_IMAGE_FEATURES += "ptest-pkgs"
$ ps -o pid,vsize,rss,%mem,size,args $(pidof qemu-arm)
PID VSZ RSS %MEM SIZE COMMAND
2708 1874472 1817896 11.0 1848884 qemu-arm -r 2.6.32 -L /home/nathanl/build/poky/tmp/work/beaglebone-poky-linux-gnueabi/core-image-minimal/1.0-r0/rootfs -E LD_LIBRARY_PATH=/home/nathanl/build/poky/tmp/work/beaglebone-poky-linux-gnueabi/core-image-minimal/1.0-r0/rootfs//usr/lib:/home/nathanl/build/poky/tmp/work/beaglebone-poky-linux-gnueabi/core-image-minimal/1.0-r0/rootfs//lib /home/nathanl/build/poky/tmp/work/beaglebone-poky-linux-gnueabi/core-image-minimal/1.0-r0/rootfs/usr/bin/gdk-pixbuf-query-loaders
I have an strace log of the qemu-arm process which I will attach. It appears to be something to do with the udev ptest support?
I tested with b813bdebb36501500e86fea5f7e15b4b15ea0902 (qemu/libc-package: Fix qemu option handling) applied but this did not seem to help.
Created attachment 2302 [details]
strace of qemu-arm update_pixbuf_cache
Is this still needinfo? Based on new info added to bug report, investigation restarted. Qemu user mode emulation that is used during the postinstall phase of image creation will fail due to looping infinitely on udev ptest. See strace of qemu-arm update_pixbuf_cache attachment. I am able to reproduce it by adding: DISTRO_FEATURES_append = " ptest" EXTRA_IMAGE_FEATURES += "ptest-pkgs" to local.conf. A related open issue seems to be open in qemu bugs report tool: LD_PREFIX option reads directories recursively in an endless loop https://bugs.launchpad.net/qemu/+bug/1245703 "If I run qemu user emulation with -L /path/to/my/sysroot/ in which also the proc and dev filesystem is mounted QEMU eats my memory until it gets killed by the kernel. According to the strace output it follows the symbolic links in the proc filesystem running forever in a recursive loop." Quote: "Yeah, this -L code is just busted. It's really only intended to work with extremely simple sysroot directories which don't have weird stuff like proc mounts or symlinks and aren't very big." "extremely simple sysroot" directorie is not our case, as such, the issue manifests in our case. Please note that this QEMU issue has been opened on 2013-10-28, confirmed, but no resolution has been given. |