Wind River Support Network

HomeDefectsLIN6-13118
Fixed

LIN6-13118 : WRlinux6 RCPL33 glibc change introduce null pointer memory access

Created: Jun 20, 2017    Updated: Dec 3, 2018
Resolved Date: Sep 24, 2017
Found In Version: 6.0.0.33
Fix Version: 6.0.0.35
Severity: Severe
Applicable for: Wind River Linux 6
Component/s: Toolchain, Userspace

Description

Customer report after upgrade to RCPL 33, they observed several times segmentation fault(SIGSEGV) in their lab.
After their analysis, they suspect this issue is caused by the change in glibc :
commit: fff94fa2245612191123a8015eac94eb04f001e2

Please see the attached screenshot, the left diff is the change in RCPL 33.
The _int_malloc called at line 2869 trigger the null pointer access, so the ar_ptr at line 2867 should be null.
In RCPL 33, with this commit, the code which jude the ar_ptr is removed.

Customer suspect this change may introduce NULL pointer memory access when reentrying glibc under multiple thread environment.

Please see the attached email, which contain the details of the customer's analysis and the information they captured when this issue happening.

This issue happening on P3041 target. Their project configured as following:
wrlinux-6/wrlinux/configure --enable-board=fsl-e500mc --enable-kernel=standard --enable-rootfs=glibc_small --with-template=feature/build_libc --enable-jobs=12 --enable-parallel-pkgbuilds=8  --with-rcpl-version=0033

Since this is urgent issue for customer, please start investigation ASAP.

Workaround

(1) configure the project with --with-template=feature/build_libc
(2) cd build/eglibc-sourcery-compile/glibc-2.18-4.8/
    patch -Np2 < attached-patch

Other Downloads


Live chat
Online