-
Notifications
You must be signed in to change notification settings - Fork 158
Installation on Fedora linux 42-beta: buffer overflow detected #881
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
Comments
Examined zephyr-sdk-x64_64-hosttools-standalone-0.9.sh |
Running into the same error. I was able to workaround by using a smaller xargs buffer (-n10 instead of -n100) in the snippet below:
in |
@oryjkov Thanks for the work-around. |
Hi,
I do all my zephyr development on Fedora linux. Since F42-beta is released I wanted to check if they broke zephyr tools.
Looks like they did.
The first parts of zephyr development environment setup installed with no errors. The sdk install is generating a buffer overflow. The default python is 3.13.2. I also tried the SDK install in a python3.12 virtual environment and got the same failure.
Ran it this way to get some output:
$ ./zephyr-sdk-x86_64-hosttools-standalone-0.9.sh -S -D -y -d .
Zephyr Yocto Toolchain SDK installer version 0.9
++ echo .
++ sed 's/ /\ /g'
++ target_sdk_dir=.
++ cd .
++ pwd
++ echo /home/void/zephyr-sdk-0.17.0
++ grep ' '
You are about to install the SDK to "/home/void/zephyr-sdk-0.17.0". Proceed [Y/n]? + default_answer=y
Y
Extracting SDK...+ '[' tar.xz = zip ']'
.................+ echo done
done
Setting it up...+ real_env_setup_script=
++ ls /home/void/zephyr-sdk-0.17.0/environment-setup-x86_64-pokysdk-linux
ls $target_sdk_dir/environment-setup-*
++ cat /home/void/zephyr-sdk-0.17.0/environment-setup-x86_64-pokysdk-linux
++ grep OECORE_NATIVE_SYSROOT=
++ cut -d= -f2
++ tr -d '"'
++ find /home/void/zephyr-sdk-0.17.0/sysroots/x86_64-pokysdk-linux/lib -name 'ld-linux*'
++ find /home/void/zephyr-sdk-0.17.0/sysroots/x86_64-pokysdk-linux -type f '(' -perm -0100 -o -perm -0010 -o -perm -0001 ')' -printf ''''%h/%f''' '
...
++ mktemp -d
/home/void/zephyr-sdk-0.17.0/relocate_sdk.py:30: SyntaxWarning: invalid escape sequence '.'
old_prefix = re.compile(b("/opt/zephyr-sdk/0.9"))
*** buffer overflow detected ***: terminated
xargs: file: terminated by signal 6
sed: no input files
Failed to replace perl. Relocate script failed. Abort!
The text was updated successfully, but these errors were encountered: