Fixed
Created: Apr 10, 2016
Updated: Dec 3, 2018
Resolved Date: Jun 12, 2016
Found In Version: 6.0.0.20
Fix Version: 6.0.0.30
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Userspace
Customer found that there is memory leak in wrlinux6 sshd and ntpd.
Customer use Wrlinux6 OVP RCPL 20 with their project.
They run valgrind on target to check moemory leak and see the following result:
SSHD
----
==28147== LEAK SUMMARY:
==28147== definitely lost: 144 bytes in 1 blocks
==28147== indirectly lost: 412 bytes in 17 blocks
==28147== possibly lost: 0 bytes in 0 blocks
==28147== still reachable: 19,705 bytes in 549 blocks
==28147== suppressed: 0 bytes in 0 blocks
==28147==
==28147== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 2 from 2)
--28147--
--28147-- used_suppression: 2 dl-hack3-cond-1
==28147==
==28147== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 2 from 2)
NTPD:
-----
==13974== LEAK SUMMARY:
==13974== definitely lost: 0 bytes in 0 blocks
==13974== indirectly lost: 0 bytes in 0 blocks
==13974== possibly lost: 22,498 bytes in 7 blocks
==13974== still reachable: 6,525 bytes in 59 blocks
==13974== suppressed: 0 bytes in 0 blocks
==13974==
I can see the same result in my side.
Though this issue is seen on a wrlinux6 OVP target, but I think it's common wrlinux6 packages, so I file this defect to LIN6 project.
Please check if the memory leak reported by valgrind need to be fixed in wrlinux6.
1. configure project with following options:
/opt/WRLX6/wrlinux-6/wrlinux/configure --enable-board=intel-x86-64 --enable-kernel=preempt-rt --enable-rootfs=ovp-kvm --enable-addons=wr-ovp --enable-sdkimage-staticlibs=yes --with-template=feature/kvm,feature/benchmark,feature/debug,feature/gdb,feature/kdump,feature/kexec,feature/kernel-debug,feature/kernel-tune,feature/build_libc,feature/dpdk-vswitch --enable-parallel-pkgbuilds=8 --enable-jobs=8 --enable-checkout-all-layers=yes --with-package=wrs-kvm-helper,qemu,libvirt,libvirt-libvirtd,libvirt-virsh,kernel-module-kvm,kernel-module-kvm-intel,kernel-module-kvm-amd,bridge-utils,inetutils,inetutils-rshd,inetutils-telnetd,inetutils-ftpd,ltp --enable-rm-oldimgs=yes --enable-internet-download=yes --enable-reconfig --with-rcpl-version=0020
2. make start-target
3. Run valgrind to check the memory leak with sshd and ntpd:
valgrind --tool=memcheck --leak-check=full /usr/sbin/ntpd
valgrind --tool=memcheck --leak-check=full /usr/sbin/sshd