Wind River Support Network

HomeDefectsLIN5-18489
Fixed

LIN5-18489 : CLONE - wrl43 / syslog-342 (RCPL23+) : syslog-ng process memory leak with big messsages and different rules

Created: Apr 9, 2014    Updated: Dec 19, 2017
Resolved Date: Apr 10, 2014
Previous ID: LIN4-31240
Found In Version: 5.0.1
Fix Version: 5.0.1.14
Severity: Severe
Applicable for: Wind River Linux 5
Component/s: Userspace

Description

syslog-ng has still memory leaks, even if the fix of LIN4-31094 is applied. The fix of LIN4-31094 brings backports of 3.4.7. there are still a few leaks open. 

Running the testcase causes a leak here : see the variation of VmSize and VmData with the ongoing process :

starts with :
-bash-3.2$ cat project_sysl/export/dist/root/syslog_mem.stat
2014-03-15 22:21 VmSize:	   64040 kB VmData:	    1388 kB
2014-03-15 22:22 VmSize:	   64832 kB VmData:	    2180 kB
2014-03-15 22:23 VmSize:	   66956 kB VmData:	    2148 kB
2014-03-15 22:24 VmSize:	   64948 kB VmData:	    2264 kB
2014-03-15 22:25 VmSize:	   67072 kB VmData:	    2264 kB
2014-03-15 22:26 VmSize:	   64908 kB VmData:	    2256 kB
2014-03-15 22:27 VmSize:	   64908 kB VmData:	    2256 kB
2014-03-15 22:28 VmSize:	   67064 kB VmData:	    2256 kB

and after a few hours:
2014-03-16 05:46 VmSize:	   71396 kB VmData:	    8744 kB
2014-03-16 05:47 VmSize:	   71384 kB VmData:	    8732 kB
2014-03-16 05:48 VmSize:	   71380 kB VmData:	    8728 kB
2014-03-16 05:49 VmSize:	   71544 kB VmData:	    8892 kB
2014-03-16 05:50 VmSize:	   71520 kB VmData:	    8836 kB
2014-03-16 05:51 VmSize:	   73544 kB VmData:	    8836 kB
2014-03-16 05:52 VmSize:	   71488 kB VmData:	    8836 kB
2014-03-16 05:53 VmSize:	   71488 kB VmData:	    8836 kB



Steps to Reproduce

extract the attached syslog-ng layer 140228_dist_syslog_4.3.tar.bz2  (this contains the latest fixes from syslog-ng as of LIN4-31094
create project :
  $ configure --enable-rootfs=glibc_cgl --enable-kernel=cgl --enable-board=common_pc_64 --enable-jobs=4 --enable-parallel-pkgbuilds=4 --with-layer=../../layers/wrl_43_syslog-ng-342_layer/ --with-ldat-cache-dir=../ldat_cache_dir
make build-all

cd export/dist ; 
extract the testcase scripts and config files into export/dist (testcase.tar.bz2)

make start-target
-> crontab -e 
    -> start logrotate every minute (not sure if that is relevant though)

-> service syslog-ng start
-> cd /root
-> ./fifo_loggen_full.sh &
-> ./syslog_mem.sh &

-> this will dump the syslog_mem.stat attached. 

Other Downloads


Live chat
Online