Still problems with Nagios 2.9 and NDO under Solaris 8

Andreas Ericsson ae at op5.se
Thu Sep 13 11:08:53 CEST 2007


Masopust, Christian wrote:
> Hi all,
>  
> i'm still having problems with ndoutils under Solaris 9.
>  
> When i'm activating it (event_broker_options=-1) in nagios.cfg
> my nagios won't start anymore !!   it always stops with a segmentation fault!
>  
> here's the traceback of the dump:
>  
> (gdb) bt
> #0  0xff1b3288 in strlen () from /usr/lib/libc.so.1
> #1  0xff10bcbc in ndo_escape_buffer (buffer=Cannot access memory at address 0x44
> ) at io.c:424
> #2  0xff104788 in ndomod_write_object_config (config_type=1) at ndomod.c:3183
> #3  0xff103d30 in ndomod_write_config (config_type=1) at ndomod.c:2999
> #4  0xff103b44 in ndomod_broker_data (event_type=7, data=0xffbef954) at ndomod.c:2940
> #5  0x0001d038 in neb_make_callbacks ()
> #6  0x0001ca38 in broker_program_state ()
> #7  0x0001b67c in main ()
> 
> is there anyone who could shed a little lite on this ??
>  

Not really. The program receives a SIGSEGV in ndo_escape_buffer because it gets
passed an invalid pointer (memory address 0x44 is not available to programs).

Why it gets passed a bogus address on Solaris is a mystery to me, as
contact_struct->name is located at relative address 0 within the contact_struct
data structure (unless your compiler re-arranges it ofcourse).

-- 
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