Wind River Support Network

HomeDefectsLIN8-521
Not to be fixed

LIN8-521 : valgrind ptest segmentation faults result in a PASS status

Created: Jun 30, 2015    Updated: Apr 19, 2018
Resolved Date: Apr 17, 2018
Found In Version: 8.0
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: Workbench Integration

Description

Valgrind ptest correctly handles most failure cases by reporting FAIL, however if the test case aborts with segv then the status is incorrectly reported as PASS.

sh: line 1: 14861 Segmentation fault      VALGRIND_LIB=/usr/lib64/valgrind VALGRIND_LIB_INNER=/usr/lib64/valgrind /usr/bin/valgrind --command-line-only=yes --memcheck:leak-check=no --tool=memcheck -q --num-callers=500 ./deep-backtrace > deep-backtrace.stdout.out 2> deep-backtrace.stderr.out
PASS: memcheck/tests/deep-backtrace
SKIP: memcheck/tests/deep_templates
FAIL: memcheck/tests/demangle
PASS: memcheck/tests/descr_belowsp

Steps to Reproduce

configure --enable-board=qemux86-64 --enable-build=debug --enable-jobs=31 --enable-kernel=standard --enable-parallel-pkgbuilds=31 --enable-rootfs=glibc-small+ptest --with-sstate-dir=/ord-dlerner-d81/dlerner/sstate-80 --enable-unsupported-toolchain=openembedded-core --with-package=valgrind 
make fs
TARGET_QEMU_MEM=4096 make start-target
<login>
cd /usr/lib64/valgrind/ptest
./run-ptest 2>&1 | tee results.log
Live chat
Online