Subject: tenshi: Memory leak causes program crashes Package: tenshi Version: 0.11-2 Severity: normal
*** Please type your report below this line *** I have a reasonably complex monitoring setup. tenshi used to run fine on Lenny with 1GiB of RAM; my logging machine ran for hundreds of days with no problems. Since upgrading the machine to Squeeze I have seen that tenshi uses up more and more memory, using up the swap space and finally being killed by the kernel with "out of memory" messages. Here is an example from kern.log: --- pr 27 03:12:51 fs-logs kernel: [2258048.246972] 34785 pages in swap cache Apr 27 03:12:51 fs-logs kernel: [2258048.246982] Swap cache stats: add 373002049, delete 37 2967264, find 32795210/76933396 Apr 27 03:12:51 fs-logs kernel: [2258048.246991] Free swap = 0kB Apr 27 03:12:51 fs-logs kernel: [2258048.246998] Total swap = 979956kB Apr 27 03:12:51 fs-logs kernel: [2258048.297551] 253936 pages RAM Apr 27 03:12:51 fs-logs kernel: [2258048.297560] 27634 pages HighMem Apr 27 03:12:51 fs-logs kernel: [2258048.297566] 3473 pages reserved Apr 27 03:12:51 fs-logs kernel: [2258048.297573] 260 pages shared Apr 27 03:12:51 fs-logs kernel: [2258048.297579] 247411 pages non-shared Apr 27 03:12:51 fs-logs kernel: [2258048.297591] Out of memory: kill process 6060 (tenshi) score 1288 or a child Apr 27 03:12:51 fs-logs kernel: [2258048.297634] Killed process 6061 (tail) --- I realize that this is not enough information to troubleshoot the problem, but I am not sure what else would be helpful. - Paul -- System Information: Debian Release: 6.0.4 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core) Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages tenshi depends on: ii adduser 3.112+nmu2 add and remove users and groups ii libio-bufferedselect-p 1.0-1 Perl module for line-buffered sele ii perl 5.10.1-17squeeze3 Larry Wall's Practical Extraction tenshi recommends no packages. tenshi suggests no packages. -- Configuration Files: /etc/tenshi/includes-available/ssh changed: group ^sshd(?:\(pam_unix\))?: mail ^sshd: Did not receive identification string from (.+) mail ^sshd: fatal: Timeout before authentication for (.+) mail ^sshd: Illegal user (.+) from mail ^sshd: Connection from (.+) mail ^sshd: Connection closed (.+) mail ^sshd: Closing connection (.+) mail ^sshd: Found matching (.+) key: (.+) mail ^sshd: Accepted publickey (.+) mail ^sshd: Accepted rsa for (?:.+) from (.+) port (.+) mail ^sshd: Accepted keyboard-interactive/pam for (.+) from (.+) port (.+) root ^sshd: \(pam_unix\) session opened for user root by root\(uid=0\) root ^sshd: \(pam_unix\) session opened for user root by \(uid=0\) mail ^sshd: \(pam_unix\) session closed for user (.+) mail ^sshd: \(pam_unix\) session opened for user (?:.+) mail ^sshd: \(pam_unix\) authentication failure; logname= group_end /etc/tenshi/tenshi.conf changed: set uid tenshi set gid tenshi set pidfile /var/run/tenshi/tenshi.pid set logfile /var/log/syslog set logfile /var/log/auth.log set logfile /var/log/remote-logs/43ipcop.log set logfile /var/log/remote-logs/ms-updates.log set logfile /var/log/remote-logs/dc-sql.log set logfile /var/log/remote-logs/dc-sql-dhcp.log set logfile /var/log/remote-logs/msweb.log set logfile /var/log/remote-logs/66sps.log set logfile /var/log/remote-logs/pubrouter.log set logfile /var/log/remote-logs/dcex.log set logfile /var/log/remote-logs/dcex-smtpsend.log set logfile /var/log/remote-logs/dcex-smtprecv.log set logfile /var/log/remote-logs/dcex-popgrabber.log set logfile /var/log/remote-logs/58pfsense.log set logfile /var/log/remote-logs/43pfsense.log set logfile /var/log/remote-logs/90q-pfsense.log set logfile /var/log/remote-logs/97v-pfsense.log set logfile /var/log/remote-logs/dc-90queen01.log set sleep 5 set limit 80 set pager_limit 2 set mask ___ set mailserver localhost set subject Log summary set hidepid on set queue bihourly ten...@example.com not...@example.com [40 */2 * * *] Bihourly Report! set queue hourly ten...@example.com not...@example.com [10 * * * *] Hourly Report! set queue important ten...@example.com not...@example.com [*/2 * * * *] Log alert! set queue smtpalert ten...@example.com not...@example.com [*/10 * * * *] Mail Send Alert! set queue smtpsummary ten...@example.com not...@example.com [30 */2 * * *] Mail Send Summary! set queue smtpudp ten...@example.com not...@example.com [30 */2 * * *] Port 25 UDP Summary! set queue ircsummary ten...@example.com not...@example.com [45 8 * * *] IRC Summary! set queue ircalert ten...@example.com not...@example.com [*/10 * * * *] IRC Alert! set queue virusalert ten...@example.com not...@example.com [*/2 * * * *] Symantec Alert! set queue dfsalert ten...@example.com not...@example.com [*/2 * * * *] DFS Alert! set queue incomingbaddies ten...@example.com not...@example.com [15 6,17 * * *] Incoming IRC/Mail set queue accountlockout ten...@example.com not...@example.com [*/2 * * * *] Account Lockout Event! set queue exchangeevent ten...@example.com not...@example.com [*/2 * * * *] Exchange Event! set queue dhcpalert ten...@example.com not...@example.com [*/5 * * * *] DHCP alert! set queue dhcp ten...@example.com not...@example.com [15 12 * * *] DHCP leases set queue dhcplab ten...@example.com not...@example.com [15 12 * * *] DHCP Lab leases set queue dhcpstaff ten...@example.com not...@example.com [15 12 * * *] DHCP Staff leases set queue mail ten...@example.com pa...@example.com [30 17 * * Mon] set queue testquick ten...@example.com pa...@example.com [* * * * *] Test! set queue testslow ten...@example.com pa...@example.com [30 17 * * *] Slow! set queue nf ten...@example.com pa...@example.com [*/30 * * * *] set queue report ten...@example.com pa...@example.com [30 17 * * Wed] set queue misc ten...@example.com pa...@example.com [30 17 * * Fri] set queue errors ten...@example.com not...@example.com [30 15 * * *] set queue critical ten...@example.com pa...@example.com [now] Log! set queue root ten...@example.com pa...@example.com [now] set queue pager ten...@example.com pager:pager@localhost [now] log alert set queue mobile tenshi@localhost pager:93384@localhost,pager:235953@localhost [now] log alert repeat ^(?:last message repeated|above message repeats) (\\d+) times? trash ^hub.c trash ^usb.c trash ^uhci.c trash ^sda trash ^Initializing USB trash ^scsi0 : SCSI emulation trash ^Vendor: trash ^Type: trash ^Attached scsi removable trash ^SCSI device sda trash ^sda: Write trash ^/dev/scsi trash ^WARNING: USB trash ^USB Mass Storage trash ^/dev trash ^ISO trash ^floppy0 trash ^end_request trash ^Directory trash ^I/O error: dev 08:(.+), sector critical ^Oops critical ^Linux errors ^init: getty repeating too quickly critical ^init includedir /etc/tenshi/includes-active misc .* -- no debconf information -- http://pnijjar.freeshell.org -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org