Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated to latest kirkstone has broken wic/etx4 image generation #1593

Closed
JPSGoncalves opened this issue Jun 30, 2023 · 11 comments
Closed

Updated to latest kirkstone has broken wic/etx4 image generation #1593

JPSGoncalves opened this issue Jun 30, 2023 · 11 comments

Comments

@JPSGoncalves
Copy link

I update my meta-freescale layer to latest kirskstone branch of a project that is based on Yocto kirkstone release. After this update i can not generate wic images or even ext4 rootfs images. I needed to updated because of libdrm-imx recipe for new fetch path. All the build steps go without errors, only the wic/ext4 image generation gives a segmentation fault. I could not find what is causing this, so i am asking for help.

The error messages is this

ERROR: _exec_cmd: export PATH=/home/user/yocto/workspace/build-xcomm/tmp/work/xcomm-poky-linux/simple-image-ai-dev/1.0-r0/recipe-sysroot-native/sbin:/home/user/yocto/workspace/build-xcomm/tmp/work/xcomm-poky-linux/simple-image-ai-dev/1.0-r0/recipe-sysroot-native/usr/sbin:/home/user/yocto/workspace/build-xcomm/tmp/work/xcomm-poky-linux/simple-image-ai-dev/1.0-r0/recipe-sysroot-native/usr/bin:/home/user/yocto/workspace/build-xcomm/tmp/work/xcomm-poky-linux/simple-image-ai-dev/1.0-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/home/user/yocto/workspace/build-xcomm/tmp/work/xcomm-poky-linux/simple-image-ai-dev/1.0-r0/recipe-sysroot-native/bin:/home/user/yocto/workspace/build-xcomm/tmp/hosttools:$PATH;export PSEUDO_PREFIX=/home/user/yocto/workspace/build-xcomm/tmp/sysroots-components/x86_64/pseudo-native/usr;export PSEUDO_LOCALSTATEDIR=/home/user/yocto/workspace/build-xcomm/tmp/work/xcomm-poky-linux/simple-image-ai-dev/1.0-r0/rootfs/../pseudo;export PSEUDO_PASSWD=/home/user/yocto/workspace/build-xcomm/tmp/work/xcomm-poky-linux/simple-image-ai-dev/1.0-r0/rootfs;export PSEUDO_NOSYMLINKEXP=1;export PSEUDO_IGNORE_PATHS=/home/user/yocto/workspace/build-xcomm/tmp/work/xcomm-poky-linux/simple-image-ai-dev/1.0-r0/tmp-wic/rootfs_root.2.ext4,/usr/,/etc/,/lib,/dev/,/run/,/home/user/yocto/workspace/build-xcomm/tmp/work/xcomm-poky-linux/simple-image-ai-dev/1.0-r0/temp,/home/user/yocto/workspace/build-xcomm/tmp/work/xcomm-poky-linux/simple-image-ai-dev/1.0-r0/recipe-sysroot,/home/user/yocto/workspace/build-xcomm/sstate-cache,/home/user/yocto/workspace/build-xcomm/tmp/stamps,/home/user/yocto/workspace/build-xcomm/tmp/sstate-control,/home/user/yocto/workspace/build-xcomm/tmp/buildstats,/home/user/yocto/workspace/build-xcomm/tmp/sysroots-components,/home/user/yocto/workspace/build-xcomm/tmp/pkgdata,/home/user/yocto/workspace/build-xcomm/tmp/work/xcomm-poky-linux/simple-image-ai-dev/1.0-r0/deploy-,/home/user/yocto/workspace/build-xcomm/tmp/work/xcomm-poky-linux/simple-image-ai-dev/1.0-r0/sstate-build-package_,/home/user/yocto/workspace/build-xcomm/tmp/work/xcomm-poky-linux/simple-image-ai-dev/1.0-r0/sstate-install-package_,/home/user/yocto/workspace/build-xcomm/tmp/work/xcomm-poky-linux/simple-image-ai-dev/1.0-r0/pkgdata-sysroot,/home/user/yocto/workspace/build-xcomm/tmp/deploy,/home/user/yocto/workspace/build-xcomm/cache,/home/user/yocto/workspace/poky/scripts,/home/user/yocto/workspace/poky/meta/files/common-licenses,/home/user/yocto/workspace/meta-openembedded/meta-oe/licenses,/home/user/yocto/workspace/meta-openembedded/meta-multimedia/licenses,/home/user/yocto/workspace/meta-openembedded/meta-python/licenses,/home/user/yocto/workspace/meta-freescale/custom-licenses,/home/user/yocto/workspace/meta-python2/licenses,/home/user/yocto/workspace/poky/meta/COPYING,/home/user/yocto/workspace/build-xcomm/tmp/work/xcomm-poky-linux/simple-image-ai-dev/1.0-r0/x86_64-deploy-simple-image-ai-dev-populate-sdk,/home/user/yocto/workspace/build-xcomm/tmp/work/xcomm-poky-linux/simple-image-ai-dev/1.0-r0/oe-sdk-repo,/home/user/yocto/workspace/build-xcomm/tmp/work/xcomm-poky-linux/simple-image-ai-dev/1.0-r0/sstate-build-populate_sdk,/home/user/yocto/workspace/build-xcomm/tmp/work/xcomm-poky-linux/simple-image-ai-dev/1.0-r0/build-wic,/home/user/yocto/workspace/build-xcomm/tmp/work/xcomm-poky-linux/simple-image-ai-dev/1.0-r0/intercept_scripts,/home/user/yocto/workspace/build-xcomm/tmp/work/xcomm-poky-linux/simple-image-ai-dev/1.0-r0/oe-rootfs-repo,/home/user/yocto/workspace/build-xcomm/tmp/work/xcomm-poky-linux/simple-image-ai-dev/1.0-r0/sstate-build-image_complete,/home/user/yocto/workspace/build-xcomm/tmp/work/xcomm-poky-linux/simple-image-ai-dev/1.0-r0/simple-image-ai-dev-1.0,/home/user/yocto/workspace/build-xcomm/tmp/work/xcomm-poky-linux/simple-image-ai-dev/1.0-r0/simple-image-ai-dev-1.0;/home/user/yocto/workspace/build-xcomm/tmp/sysroots-components/x86_64/pseudo-native/usr/bin/pseudo mkfs.ext4 -F -i 8192 /home/user/yocto/workspace/build-xcomm/tmp/work/xcomm-poky-linux/simple-image-ai-dev/1.0-r0/tmp-wic/rootfs_root.2.ext4 -L root -U 24dea335-a0a1-40a6-a82d-b714fd0ff57e -d /home/user/yocto/workspace/build-xcomm/tmp/work/xcomm-poky-linux/simple-image-ai-dev/1.0-r0/rootfs returned '139' instead of 0 | output: /bin/sh: line 1: 287904 Segmentation fault (core dumped) /home/user/yocto/workspace/build-xcomm/tmp/sysroots-components/x86_64/pseudo-native/usr/bin/pseudo mkfs.ext4 -F -i 8192 /home/user/yocto/workspace/build-xcomm/tmp/work/xcomm-poky-linux/simple-image-ai-dev/1.0-r0/tmp-wic/rootfs_root.2.ext4 -L root -U 24dea335-a0a1-40a6-a82d-b714fd0ff57e -d /home/user/yocto/workspace/build-xcomm/tmp/work/xcomm-poky-linux/simple-image-ai-dev/1.0-r0/rootfs | WARNING: /home/user/yocto/workspace/build-xcomm/tmp/work/xcomm-poky-linux/simple-image-ai-dev/1.0-r0/temp/run.do_image_wic.287884:161 exit 1 from 'BUILDDIR="/home/user/yocto/workspace/build-xcomm" PSEUDO_UNLOAD=1 wic create "$wks" --vars "/home/user/yocto/workspace/build-xcomm/tmp/sysroots/xcomm/imgdata/" -e "simple-image-ai-dev" -o "$build_wic/" -w "$tmp_wic" --no-fstab-update' | WARNING: Backtrace (BB generated script): | #1: do_image_wic, /home/user/yocto/workspace/build-xcomm/tmp/work/xcomm-poky-linux/simple-image-ai-dev/1.0-r0/temp/run.do_image_wic.287884, line 161 | #2: main, /home/user/yocto/workspace/build-xcomm/tmp/work/xcomm-poky-linux/simple-image-ai-dev/1.0-r0/temp/run.do_image_wic.287884, line 179 ERROR: Task (/home/user/yocto/workspace/meta-my-layer/recipes-core/images/simple-image-ai-dev.bb:do_image_wic) failed with exit code '1'
One thing that i noticed is that the tools mkfs.ext4 from the sysroot-native of the recipe when executed on gives a segmentation fault.

Can you help me figure out the possible problems that are causing this?

Thanks!

@paletteguy
Copy link

Have the same error after update.

@otavio
Copy link
Member

otavio commented Jul 3, 2023

Have you tried running a bisect to determine which commit is causing the error?

@paletteguy
Copy link

My problem is only build server using ubuntu 18.04. On my own computer with kubuntu 22.04 I do not have the problem. Strange.. since tools like mkfs.ext4 should be compiled natively by bitbake and when used. It does run "pseudo mkfs.ext4" it could be the pseudo environment causing this.

@paletteguy
Copy link

Looks like the problem comes from poky. After reverting poky to kirkstone-4.0.10 I not getting seg-fault when doing wic.

@paletteguy
Copy link

paletteguy commented Jul 4, 2023

Using git bisect I found hash failing in poky, 263d5df53922ddf6d00859b9a88d1f9fe1f851bd

It looks like the kernel 5.15.110 is causing the issue for qemu.

  • first bad commit: [263d5df53922ddf6d00859b9a88d1f9fe1f851bd] linux-yocto/5.15: update to v5.15.110

@paletteguy
Copy link

paletteguy commented Jul 4, 2023

@shr-project might have provided the work around for the problem since I did a new bisect and failed elsewhere in a previous good revision.

I'm testing this out now.. https://patchwork.yoctoproject.org/project/oe-core/list/?series=14023 it will take awhile to compile I'll get back with more info.

@shr-project
Copy link
Contributor

shr-project commented Jul 4, 2023 via email

@paletteguy
Copy link

@shr-project When will it be available in Kirkstone ?

@shr-project
Copy link
Contributor

shr-project commented Jul 4, 2023 via email

@paletteguy
Copy link

@shr-project Thx for your support :)

@paletteguy
Copy link

This issue can be closed. @otavio

@otavio otavio closed this as completed Jul 5, 2023
mattiasbus added a commit to hostmobility/mobility-poky-platform that referenced this issue Jul 14, 2023
Updating due to a segmentation fault in mkfs.ext4 caused by the patchelf in ubuntu 18.04.

Freescale/meta-freescale#1593
NixOS/patchelf#492 (comment)
conda-forge/admin-requests#746
mattiasbus added a commit to hostmobility/mobility-poky-platform that referenced this issue Jul 14, 2023
Updating due to a segmentation fault in mkfs.ext4 caused by the patchelf in ubuntu 18.04.

Freescale/meta-freescale#1593
NixOS/patchelf#492 (comment)
conda-forge/admin-requests#746
RikardO-HM added a commit to hostmobility/hostmobility-bsp-platform that referenced this issue Aug 21, 2023
Updating due to a segmentation fault in mkfs.ext4 caused by the patchelf in ubuntu 18.04.

Freescale/meta-freescale#1593
NixOS/patchelf#492 (comment)
conda-forge/admin-requests#746

orginal patch:
hostmobility/mobility-poky-platform@a8ebd86
RikardO-HM pushed a commit to hostmobility/mobility-poky-platform that referenced this issue Jan 3, 2024
Updating due to a segmentation fault in mkfs.ext4 caused by the patchelf in ubuntu 18.04.

Freescale/meta-freescale#1593
NixOS/patchelf#492 (comment)
conda-forge/admin-requests#746
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants