Re: [Nagios-devel] NSCA memory leak

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] NSCA memory leak

Post by Guest »


[email protected] 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





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked