Re: [Nagios-devel] Segmentation fault when nebmodule returns with

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] Segmentation fault when nebmodule returns with

Post by Guest »

I have played around to find out why this problem occurs. In my
nebmodule_init function I call neb_set_module_info to set different
informations about my module. Commenting these out: and the segfault
doesn't happen anymore.

I think that I am now very close. Although in neb_add_module all
pointers of info[] are initialized with NULL in neb_set_module_info
they aren't anymore. info[2] points to 0x1. So the call to my_free
segfaults. Why pointers aren't initialized any more, I still don't
know ...

Tobias





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