Wind River Support Network

HomeDefectsLIN8-9320
Fixed

LIN8-9320 : Support for 32-bit compatibility syscall is broken in RCPL26

Created: Jun 19, 2018    Updated: Dec 3, 2018
Resolved Date: Jul 13, 2018
Found In Version: 8.0.0.26
Fix Version: 8.0.0.27
Severity: Critical
Applicable for: Wind River Linux 8
Component/s: Kernel, Userspace

Description

32 bit applications don't runt properly in multilib loads built using RCPL26 

The issue has been traced to the following kernel commit (issues disappear once we reverted that commit) 
f1c173d51ac8d4f326b88c497e7668dc65e71243 x86/debug: Remove perpetually broken, unmaintainable dwarf annotations 

Common symptoms are shell commands not producing output and binaries segfaulting. 

Steps to Reproduce

QEMU Build: 

1168 mkdir qemu_cgl2 
1169 cd qemu_cgl2 
1170 /opt/corp/wrl/8/wrlinux-8/wrlinux/configure --enable-board=qemux86-64 --enable-addons=wr-cgp --enable-kernel=cgl --enable-rootfs=glibc_cgl --with-sstate-dir=/home/user/wrl8/projects/sscache --with-rcpl-version=0026 
1171 vi layers/local/conf/layer.conf 
1172 emacs layers/local/conf/layer.conf& 
1173 emacs layer.conf& 
1174 ls 
1175 emacs local.conf & 
1176 make fs -j32 
1177 ls export/RPMS/ 
1178 make lib32-openhpi.addpkg 
1179 make lib32-coreutils.addpkg 
1180 make lib32-coreutils 
1181 make lib32-openhpi 
1182 vi local.conf 
1183 make fs -j32 
1184 make start-qemu 
1185 history 

local.conf Change 
•	False start layers/local/conf/layer.conf. No change was made. 
•	Append IMAGE_INSTALL lines to end of file to at least place the requisite 32-bit libs into the image. 
$ tail local.conf 
wr_rm_template = '' 
wr_extra_template = '' 
wr_with_pkgs = '' 

# Require the generated layer local template configuration 
require local_machine.conf 

IMAGE_INSTALL += "lib32-coreutils" 
IMAGE_INSTALL += "lib32-openhpi" 
$ 

$ ls -al layers/local/conf/ 
total 8 
drwxr-xr-x. 3 user wrldev 53 Jun 15 12:18 . 
drwxr-xr-x. 9 user wrldev 4096 Jun 15 12:15 .. 
drwxr-xr-x. 2 user wrldev 27 Jun 15 12:14 image_final 
-rw-r--r--. 1 user wrldev 1016 Jun 15 12:14 layer.conf 

root@qemu0:~# scp user@ip-addr:/home/user/wrl8/projects/qemu_cgl2/export/RPMS/lib32_x86/coreutils-8.24-r0.0.lib32_x86.rpm /tmp/ 
The authenticity of host 'ip-addr (ip-addr)' can't be established. 
ECDSA key fingerprint is SHA256:YxiLNBF9vjSC7vKyVopmZCTpw4AxPbC5L6Ic7ajaX88. 
Are you sure you want to continue connecting (yes/no)? yes 
Warning: Permanently added 'ip-addr’(ECDSA) to the list of known hosts. 
user@ip-addr's password: 
coreutils-8.24-r0.0.lib32_x86.rpm 0% 0coreutils-8.24-r0.0.lib32_x86.rpm 4% 144KBcoreutils-8.24-r0.0.lib32_x86.rpm 51% 1664KBcoreutils-8.24-r0.0.lib32_x86.rpm 100% 3216KB 1.6MB/s 00:02 
root@qemu0:~# scp user@ip-addr:/home/user/wrl8/projects/qemu_cgl2/export/RPMS/lib32_x86/openhpi-3\* /tmp/ 
user@ip-addr's password: 
openhpi-3.6.1-r0.0.lib32_x86.rpm 0% 0openhpi-3.6.1-r0.0.lib32_x86.rpm 100% 1072KB 1.1MB/s 00:00 
root@qemu0:~# cd /tmp 
root@qemu0:/tmp# rpm2cpio coreutils-8.24-r0.0.lib32_x86.rpm | cpio -ivd ./bin/date\* ./usr/bin/sort\* 
./usr/bin/sort.coreutils 
./bin/date.coreutils 
13412 blocks 
root@qemu0:/tmp# rpm2cpio coreutils-8.24-r0.0.lib32_x86.rpm | cpio -ivd ./bin/date\* ./usr/bin/sort\*^C 
root@qemu0:/tmp# rpm2cpio openhpi-3.6.1-r0.0.lib32_x86.rpm | cpio -ivd ./usr/bin/hpitop\* 
./usr/bin/hpitop 
8162 blocks 

root@qemu0:/tmp# ./bin/date.coreutils 
root@qemu0:/tmp# date 
Fri Jun 15 20:01:27 UTC 2018 
root@qemu0:/tmp# ./usr/bin/hpitop -h 
traps: hpitop[863] general protection ip:f73d5dca sp:ffd1fad0 error:0 in libc-2.22.so[f73a7000+1b1000] 
Segmentation fault 
root@qemu0:/tmp# file ./usr/bin/hpitop 
./usr/bin/hpitop: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 3.1.0, BuildID[sha1]=fa1d92df173fc5d7da7ac517fdb429a5ddcc1d09, stripped 
root@qemu0:/tmp# file /usr/bin/hpitop 
/usr/bin/hpitop: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.1.0, BuildID[sha1]=f85cc45e053d3fcb8b30ab0e2062493f780a03d1, stripped 
root@qemu0:/tmp# /usr/bin/hpitop -h | head 
/usr/bin/hpitop - This program came with OpenHPI 3.6.1 
SAF HPI Version B.03.02 

Other Downloads


Live chat
Online