Re: [Nagios-devel] Checking for required elements

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] Checking for required elements

Post by Guest »

>>>
>>> Finally in trying to duplicate this I was trying to come up with a
>>> minimal
>>> config and found one that would cause a Segmentation fault during
>>> checking
>>> contacts.
>>
>> I tested this tiny config and it worked okay - got warnings about
>> missing timeperiods and it didn't segfault. Try the latest CVS when you
>> get a chance to see if that fixes any problems you were having.

Here is a backtrace that I was able to produce. Hopefully I did it right.
Also hope it will be of use:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208248640 (LWP 16595)]
0x00a5413b in strlen () from /lib/i686/nosegneg/libc.so.6
(gdb) bt
#0 0x00a5413b in strlen () from /lib/i686/nosegneg/libc.so.6
#1 0x08080fdd in hashfunc (name1=0x20676e69 , name2=0x0, hashslots=64) at utils.c:3053
#2 0x0808fff2 in find_timeperiod (name=0x20676e69 ) at ../common/objects.c:2891
#3 0x080611b2 in pre_flight_object_check (w=0xbffca108, e=0xbffca104) at
config.c:2151
#4 0x0806261c in pre_flight_check () at config.c:1466
#5 0x08056a1c in main (argc=Cannot access memory at address 0x1
) at nagios.c:516






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