[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HostRange bug in 2.1.18 ?
From: |
Mark Burgess |
Subject: |
Re: HostRange bug in 2.1.18 ? |
Date: |
Wed, 18 Jan 2006 08:06:50 +0100 |
The latest snapshot/svn version fixes a bug here. It was caused by a
recoding in 2.1.16 and I apparently missed a bit. There is no longer a
segfault, but please test whether the current patch actually matches
correctly?
M
On Wed, 2006-01-18 at 07:20 +0100, Christian Korschan wrote:
> rader@ginseng.hep.wisc.edu wrote:
> > > I encounter the following problem in Cfengine-2.1.18 when I try
> > > to use HostRange to define groups:
> > >
> > > In cfagent.conf I have
> > >
> > > groups:
> > > mygroup = ( HostRange(sa,01-09) host1 host2 )
> > >
> > >
> > > ... and running "cfagent -d -v -q -n" end with:
> > >
> > >
> > > [ stuff removed ]
> > > ==============================BEGIN NEW ACTION Groups:=============
> > >
> > >
> > > Resetting CLASS to ANY
> > >
> > > LVALUE mygroup
> > > HandleLVALUE(mygroup) in action Groups:
> > > EQUALS =
> > > LEFTBRACK
> > > RVAL-FUNCTION HostRange(sa,01-09)
> > > HandleFunctionObject(HostRange(sa,01-09))
> > > IsBuiltinFunction(HostRange(sa,01-09))
> > > IsBuiltinFunction: HostRange(sa,01-09)
> > > HandleFunction: HostRange(sa,01-09)
> > > FunctionStringToCode(HostRange)
> > > ListArg[0]=(sa,01-09)
> > > ListArg[1]=(a,01-09)
> > > Appending [sa]
> > > ListArg[0]=(01-09)
> > > ListArg[1]=(1-09)
> > > ListArg[2]=(-09)
> > > ListArg[3]=(09)
> > > ListArg[4]=(9)
> > > Appending [01-09]
> > > CFDEBUG: [sa]
> > > CFDEBUG: [01-09]
> > > cf:cfengine::/opt/openpkg/var/cfengine/inputs/cfagent.conf:100: Function
> > > or format of input file requires 1 argument items
> > > SRDEBUG in HandleHostRange()
> > > SRDEBUG args= value=
> > > SRDEBUG in FuzzyHostParse():
> > > SplitStringAsItemList(,,)
> > > Segmentation fault
> > >
> > > Is this a known problem or am I doing something wrong ?
> >
> > This is new as far as I know.
> >
> > What does cfagent -d2 -v -q -n report?
> ##########################################################################
> # BEGIN PARSING /opt/openpkg/var/cfengine/inputs/cfagent.conf
> ##########################################################################
>
> HandleFunctionObject(HostRange(sa,01-99))
> IsBuiltinFunction(HostRange(sa,01-99))
> IsBuiltinFunction: HostRange(sa,01-99)
> HandleFunction: HostRange(sa,01-99)
> FunctionStringToCode(HostRange)
> ListArg[0]=(sa,01-99)
> ListArg[1]=(a,01-99)
> Appending [sa]
> ListArg[0]=(01-99)
> ListArg[1]=(1-99)
> ListArg[2]=(-99)
> ListArg[3]=(99)
> ListArg[4]=(9)
> Appending [01-99]
> cf:cfengine::/opt/openpkg/var/cfengine/inputs/cfagent.conf:98: Function
> or format of input file requires 1 argument items
> SRDEBUG in HandleHostRange()
> SRDEBUG args= value=
> SRDEBUG in FuzzyHostParse():
> SplitStringAsItemList(,,)
>
> Program received signal SIGSEGV, Segmentation fault.
>
> >
> > What does a gdb/dbx stack trace say?
> >
> > steve
>
> Thread 1 (Thread 4160644800 (LWP 8700)):
> #0 FuzzyHostParse (s=0xfffe8d8c "") at item.c:990
> #1 0x0807412b in HandleHostRange (args=0x0, value=0xffffb1ec "") at
> functions.c:455
> #2 0x0807737f in EvaluateFunction (f=0x82ec527 "HostRange(sa,01-99)",
> value=0xffffb1ec "") at functions.c:150
> #3 0x0807132b in HandleFunctionObject (fn=0x82ec527
> "HostRange(sa,01-99)") at parse.c:648
> #4 0x080a1404 in yylex () at cflex.l:431
> #5 0x080996da in yyparse () at y.tab.c:1189
> #6 0x080719eb in ParseFile (filename=0xffffc790
> "/opt/openpkg/var/cfengine/inputs/cfagent.conf",
> env=0xffffc790 "/opt/openpkg/var/cfengine/inputs/cfagent.conf") at
> parse.c:1051
> #7 0x08072094 in ParseInputFile (file=0x8292320 "cfagent.conf") at
> parse.c:82
> #8 0x0804ef1c in main (argc=0, argv=0x0) at cfagent.c:140
> (gdb)
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-cfengine