Segmentation Fault defining timeperiod holidays

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
tsopgo
Posts: 5
Joined: Fri Nov 09, 2012 9:11 am

Segmentation Fault defining timeperiod holidays

Post 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.
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Segmentation Fault defining timeperiod holidays

Post 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.
tsopgo
Posts: 5
Joined: Fri Nov 09, 2012 9:11 am

Re: Segmentation Fault defining timeperiod holidays

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Segmentation Fault defining timeperiod holidays

Post by slansing »

Can you reply with your "Issue #" Then it can be edited.
tsopgo
Posts: 5
Joined: Fri Nov 09, 2012 9:11 am

Re: Segmentation Fault defining timeperiod holidays

Post by tsopgo »

By changing changing januari to january , i get rid of the segmentation fault.
Tankx
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Segmentation Fault defining timeperiod holidays

Post by slansing »

Glad you were able to find the problem, and thank you for posting your solution.
Locked