NSCA memory leak

Ethan Galstad egalstad at nagios.org
Tue Jul 7 23:59:55 CEST 2009


daniel at zoltak.com wrote:
> Hi list,
> 
> I am running nagios on Gentoo and having an issue with NSCA.
> 
> When NSCA is running for a few days I get it crashes with this in dmesg:
> 
> localhost nsca[6030]: segfault at ffffffffff600429 ip 00007f8d3ea19dfc sp
> 00007fff47281350 error 7 in libwrap.so.0.7.6[7f8d3ea16000+8000]
> 
> I compiled NSCA in debug mode and ran it with valgrind. We found the  
> following memory
> leak:
> 

[snip]
> ==21927==
> ==21927== 37 bytes in 3 blocks are still reachable in loss record 1 of 4
> ==21927==    at 0x4C24C1E: malloc (in  
> /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
> ==21927==    by 0x54F5D31: strdup (in /lib64/libc-2.9.so)
> ==21927==    by 0x402B6C: read_config_file (in /usr/bin/nsca)
> ==21927==    by 0x4037DD: main (in /usr/bin/nsca)
> ==21927==

A fix for a minor memory loss when running NSCA under single daemon mode
has just been applied to CVS.  That might fix some of the problem.

- Ethan Galstad

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge




More information about the Developers mailing list