Wind River Support Network


LIN6-9895 : Fix race in free() of fastbin chunk: BZ #15073

Created: May 15, 2015    Updated: Dec 3, 2018
Resolved Date: Jun 12, 2015
Found In Version:
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Toolchain


Our customer is facing the bug described in
He claims this fixes his issue:;h=8b43a2274a593ce91e673db1cfac6e808134bc84
Could we integrate the fix?


1) Configure a project with
2) make -C build eglibc-sourcery-compile.patch
3) cd build/eglibc-sourcery-compile/glibc-2.*
4) patch -Np1 < /path-of-attached-patch
5) cd ../../..
6) make fs fs-debug


To verify the issue without and with the patch, 

1) compile the test code
$CC -g -O0 atomic_free.c -pthread -o atomic_free

2) add gdb to the target
make -C build gdb.addpkg
make fs fs-debug

3) copy the binary and gdb script to target, launch it, and
gdb ./atomic_free -x gdb_script

Segmentation fault should happen w/o the patch.

Notice that after the patch, the line where breakpoint should be placed is changed, so use gdb_script_fix to verify the fixed glibc.


Other Downloads

Live chat