Page 1 of 1

Segmentation Fault defining timeperiod holidays

Posted: Fri Nov 16, 2012 11:55 am
by tsopgo
Segmentation Fault when checking nagios cofiguration (nagios -v) after adding a new timeperiod holidays.
define timeperiod{
name holidays
timeperiod_name holidays
alias holidays
januari 1 00:00-24:00
}

After changing the line "januari 1 00:00-24:00" to
"sunday 00:00-24:00" , the Segmentation Fault is gone !

I propably do something wrong.
I got this on nagios 3.0.3 and on 3.4.1.

Re: Segmentation Fault defining timeperiod holidays

Posted: Fri Nov 16, 2012 12:05 pm
by agriffin
I noticed that you mispelled January. Try spelling it with a 'y' to see if that helps.

Segmentation faults mean a program tried to access memory illegally, and always indicates a bug. Even if you as the user do something wrong, segmentation faults shouldn't happen. So I've filed a bug report for you here, which will hopefully lead to the issue getting fixed.

Re: Segmentation Fault defining timeperiod holidays

Posted: Mon Nov 19, 2012 8:03 am
by tsopgo
Can i change the bug report ?
OS : Solaris
Version : 10 : uname -a gives SunOS clarus 5.10 Generic_144488-08 sun4v sparc sun4v

Re: Segmentation Fault defining timeperiod holidays

Posted: Mon Nov 19, 2012 5:05 pm
by slansing
Can you reply with your "Issue #" Then it can be edited.

Re: Segmentation Fault defining timeperiod holidays

Posted: Mon Nov 26, 2012 10:17 am
by tsopgo
By changing changing januari to january , i get rid of the segmentation fault.
Tankx

Re: Segmentation Fault defining timeperiod holidays

Posted: Mon Nov 26, 2012 1:31 pm
by slansing
Glad you were able to find the problem, and thank you for posting your solution.