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 [email protected] [email protected] [40 */2 * * *] 
Bihourly Report!
set queue hourly [email protected] [email protected] [10 * * * *] Hourly 
Report!
set queue important [email protected] [email protected] [*/2 * * * *] Log 
alert!
set queue smtpalert [email protected] [email protected] [*/10 * * * *] Mail 
Send Alert!
set queue smtpsummary [email protected] [email protected] [30 */2 * * *] Mail 
Send Summary!
set queue smtpudp [email protected] [email protected] [30 */2 * * *] Port 25 
UDP Summary!
set queue ircsummary [email protected] [email protected] [45 8 * * *] IRC 
Summary!
set queue ircalert [email protected] [email protected] [*/10 * * * *] IRC 
Alert!
set queue virusalert [email protected] [email protected] [*/2 * * * *] 
Symantec Alert!
set queue dfsalert [email protected] [email protected] [*/2 * * * *] DFS 
Alert!
set queue incomingbaddies [email protected] [email protected] [15 6,17 * * *] 
Incoming IRC/Mail
set queue accountlockout [email protected] [email protected] [*/2 * * * *] 
Account Lockout Event!
set queue exchangeevent [email protected] [email protected] [*/2 * * * *] 
Exchange Event!
set queue dhcpalert [email protected] [email protected] [*/5 * * * *] DHCP 
alert!
set queue dhcp [email protected] [email protected] [15 12 * * *] DHCP leases
set queue dhcplab [email protected] [email protected] [15 12 * * *] DHCP Lab 
leases 
set queue dhcpstaff [email protected] [email protected] [15 12 * * *] DHCP 
Staff leases
set queue mail      [email protected] [email protected] [30 17 * * Mon]
set queue testquick [email protected] [email protected] [* * * * *] Test!
set queue testslow [email protected] [email protected] [30 17 * * *] Slow!
set queue nf       [email protected] [email protected] [*/30 * * * *]
set queue report   [email protected] [email protected] [30 17 * * Wed]
set queue misc     [email protected] [email protected] [30 17 * * Fri]
set queue errors     [email protected] [email protected] [30 15 * * *]
set queue critical [email protected] [email protected] [now] Log! 
set queue root     [email protected] [email protected] [now]
set queue pager    [email protected] 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 [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to