Checking for required elements
Shad L. Lords
slords at lordsfam.net
Fri Oct 19 18:59:45 CEST 2007
>>>
>>> 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 <Address 0x20676e69 out of
bounds>, name2=0x0, hashslots=64) at utils.c:3053
#2 0x0808fff2 in find_timeperiod (name=0x20676e69 <Address 0x20676e69 out
of bounds>) 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 SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
More information about the Developers
mailing list