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

CI: fakeroot segfaults in SDK #13855

Closed
aparcar opened this issue Nov 4, 2020 · 10 comments
Closed

CI: fakeroot segfaults in SDK #13855

aparcar opened this issue Nov 4, 2020 · 10 comments

Comments

@aparcar
Copy link
Member

aparcar commented Nov 4, 2020

The CI uses SDK snapshots to build changed packages for multiple architectures. It currently fails for arm_cortex-a9_vfpv3-d16
with the following error message:

/functions.sh"; echo "default_prerm \$0 \$@"; ) > prerm; chmod 0755 postinst prerm;  )
install -d -m0755 /home/build/openwrt/bin/targets/mvebu/cortexa9/packages
/home/build/openwrt/staging_dir/host/bin/fakeroot /home/build/openwrt/scripts/ipkg-build -m "" /home/build/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/toolchain/ipkg-arm_cortex-a9_vfpv3-d16/libgcc /home/build/openwrt/bin/targets/mvebu/cortexa9/packages
/home/build/openwrt/staging_dir/host/bin/fakeroot: line 185:  8682 Segmentation fault      (core dumped) FAKEROOTKEY=$FAKEROOTKEY LD_LIBRARY_PATH="$PATHS" LD_PRELOAD="$LIB" "$@"
make[2]: Leaving directory '/home/build/openwrt/package/toolchain'
make[2]: *** [Makefile:764: /home/build/openwrt/bin/targets/mvebu/cortexa9/packages/libgcc1_8.4.0-2_arm_cortex-a9_vfpv3-d16.ipk] Error 139
make[1]: *** [package/Makefile:114: package/toolchain/compile] Error 2

It used to work for a while but now crashes. As it only fails for the single architecture I'm not sure if it's an issue with the two recent fakeroot commits over at openwrt.org:

openwrt/openwrt@0fdbd2e
openwrt/openwrt@f93cb5c

@EricLuehrsen
Copy link
Contributor

cc: @jow- @dangowrt

@neheb
Copy link
Contributor

neheb commented Nov 6, 2020

Does this happen with only the SDK?

@danvd
Copy link

danvd commented Nov 7, 2020

Minor addition: Upon submitting any PR the test "Test Build / Test arm_cortex-a9_vfpv3-d16 (pull_request)" is also failing due to this segfault.

/home/build/openwrt/staging_dir/host/bin/fakeroot: line 185: 31187 Segmentation fault      (core dumped) FAKEROOTKEY=$FAKEROOTKEY LD_LIBRARY_PATH="$PATHS" LD_PRELOAD="$LIB" "$@"

@aparcar
Copy link
Member Author

aparcar commented Nov 8, 2020

I couldn't reproduce the issue locally...

@aparcar
Copy link
Member Author

aparcar commented Nov 9, 2020

Looking at the docker CI builds, it's failing since the October 30. Which happens to be the same date as the above mentioned patches were added. In the Docker CI the x86/64 target fails, so it is not a problem of mvebu/cortex-a9 but all targets.

@aparcar aparcar changed the title CI: arm_cortex-a9_vfpv3-d16 fakeroot segfaults in SDK CI: fakeroot segfaults in SDK Nov 9, 2020
@aparcar
Copy link
Member Author

aparcar commented Nov 9, 2020

@jefferyto
Copy link
Member

jefferyto commented Nov 9, 2020

This is not just a CI issue - I am seeing this error locally with the armvirt-32, armvirt-64, malta-be, x86-generic and x86-64 SDKs (8 Nov) on Ubuntu 20.10.

I can't update any packages without a working SDK 🙁

Edit: Manually calling $(STAGING_DIR_HOST)/bin/fakeroot (with STAGING_DIR_HOST set) results in the segfault.

@jefferyto
Copy link
Member

Passing the -l $(FAKEROOT_SO) option with the absolute path to libfakeroot.so (removed in openwrt/openwrt@0fdbd2e) works around the segfault.

It appears it isn't finding the right shared library for some reason.

@dangowrt
Copy link
Member

dangowrt commented Nov 9, 2020

@jow- Any idea why this could be happening? It's quite weird because it seems to depend on which of the buildhosts made the SDK for it to have that bug or not...

@ynezz
Copy link
Member

ynezz commented Nov 10, 2020

Should be fixed via https://git.openwrt.org/d4521fb132266fd6c94796e19d3d1e925847338d

@ynezz ynezz closed this as completed Nov 10, 2020
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

7 participants