AR# 75816

|

2020.1/2 PetaLinux: Menu Crashes With Segmentation Fault when Running petalinux-config on CentOS 7.x

Description

In 2020.x PetaLinux releases, the petalinux-config menu crashes with a segmentation fault on CentOS 7.x as shown below.




Terminal Log:

$ petalinux-config 
INFO: Sourcing build tools
awk: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by awk)
awk: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by awk)                                                                                                                                                                                                                                             
awk: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by awk)                                                                                                                                                                                                                                             
awk: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by awk)                                                                                                                                                                                                                                             
[INFO] Generating Kconfig for project                                                                                                                                                                                                                                                                               
awk: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by awk)                                                                                                                                                                                                                                             
awk: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by awk)                                                                                                                                                                                                                                             
awk: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by awk)                                                                                                                                                                                                                                             
[INFO] Menuconfig project   


This issue is seen when you run petalinux-config in non-interactive mode.

Terminal Log:

$ petalinux-config --silentconfig
INFO: sourcing build tools
awk: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by awk)
awk: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by awk)
awk: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by awk)
awk: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by awk)
[INFO] silentconfig project
awk: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by awk)
ERROR: Failed to silentconfig project component
ERROR: Failed to config project.
$

Solution

This is a known issue in 2020.x version of PetaLinux tools. This issue will be addressed in the 2021.1 release.

Root Cause: In CentOS-7.x, if you set the LD_LIBRARY_PATH variable (for example export LD_LIBRARY_PATH=/lib64:/usr/lib64:/usr/local/lib64) it causes the petalinux-config menu to crash with a segmentation fault.

In Yocto if you want to use any build host binaries or libraries you need to unset the LD_LIBRARY_PATH.

When it goes to the segmentation fault in the terminal, you can use the steps below to kill the terminal.

  1. Type reset and press enter. The terminal will now be blank.
  2. Press Ctrl+J
  3. The terminal will now work as normal

To work around this issue you need to follow the below steps.

1) Unset the LD_LIBRARY_PATH by running below command:

$ unset LD_LIBRARY_PATH

2) Source the PetaLinux tools.

$ source /opt/xilinx/petalinux/petalinux-v2020.1/settings.sh

3) Run menu config.

$ petalinux-config
AR# 75816
Date 11/24/2020
Status Active
Type Known Issues
Devices
Tools
People Also Viewed