Wind River Support Network

HomeDefectsLIN7-6255
Fixed

LIN7-6255 : CLONE - Memory leak in ntpd and sshd

Created: May 25, 2016    Updated: Sep 8, 2018
Resolved Date: Jun 12, 2016
Previous ID: LIN6-11298
Found In Version: 7.0.0.15
Fix Version: 7.0.0.17
Severity: Standard
Applicable for: Wind River Linux 7
Component/s: Userspace

Description

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.

Steps to Reproduce

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

Other Downloads


Live chat
Online