Segmentation fault when nebmodule returns with something else than 0

Andreas Ericsson ae at op5.se
Mon Nov 26 11:52:50 CET 2007


Tobias Mucke wrote:
> Hi Nagios developers,
> 
> I am writing a Nagios event broker module. Thanks for this nice API.
> 
> If my nebmodule_init function does not return with OK, Nagios 3.0b7
> (and also earlier versions) segfault. I tried to locate the root cause
> and found function lt_dlclose line 321 in nebmods.c.
> 
> result=lt_dlclose(mod->module_handle);
> 
> I don't understand why it segfaults at this line. The NEB helloworld.o
> from Nagios source works fine, so this is a problem in my NEB.
> 
> Any help greatly appreciated. Thanks for your advice.
> 

Since it's not a problem with the helloworld module, it's impossible to
diagnose this error without looking at your code.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/




More information about the Developers mailing list