Please try the latest 622 and tell me if it solves the problem for you.

Matt Richards wrote:
> Here is the kicker, it is NULL on other OS'es  as well, that is why I
> thought is was normal.
> 
> Here is the RedHat traceback:
> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread -1208055264 (LWP 14004)]
> 0x08095875 in IsCf3VarString (str=0x0) at vars.c:489
> 489     for (sp = str; *sp != '\0' ; sp++)       /* check for varitems */
> (gdb) where
> #0  0x08095875 in IsCf3VarString (str=0x0) at vars.c:489
> #1  0x080a11d9 in CheckParseInt (lval=0x8356e88 "int", s=0x0,
>     range=0x822cd60 "-", '9' <repeats 11 times>, ",9999999999") at 
> syntax.c:687
> #2  0x080a1b60 in CheckConstraintTypeMatch (lval=0x8356e88 "int", rval=0x0,
>     rvaltype=88 'X', dt=cf_int,
>     range=0x822cd60 "-", '9' <repeats 11 times>, ",9999999999", level=0)
>     at syntax.c:462
> #3  0x0809eeda in PostCheckConstraint (type=0x8355fd0 "vars",
>     bundle=0x8356b28 "test_edit", lval=0x8356e88 "int", rval=0x0,
>     rvaltype=0 '\0') at constraints.c:704
> #4  0x0809efa3 in ReCheckAllConstraints (pp=0x8356990) at constraints.c:596
> #5  0x08099067 in ExpandPromiseAndDo (agent=cf_common,
>     scopeid=0x8355fa0 "test_edit", pp=0x8356ba0, scalarvars=0x0, listvars=0x0,
>     fnptr=0) at expand.c:598
> #6  0x080991b9 in ExpandPromise (agent=cf_common,
>     scopeid=0x8355fa0 "test_edit", pp=0x8356010, fnptr=0x0) at expand.c:121
> #7  0x0806d661 in VerifyPromises (agent=cf_common) at generic_agent.c:1306
> #8  0x0806d826 in ReadPromises (ag=cf_agent, agents=0x8222016 "agent")
>     at generic_agent.c:212
> #9  0x0806d97a in GenericInitialize (argc=3, argv=0xbffffa94,
>     agents=0x8222016 "agent") at generic_agent.c:105
> #10 0x0806291e in main (argc=3, argv=0xbffffa94) at agent.c:136
> (gdb) p str
> $1 = 0x0
> 
> Here is the AIX traceback:
> 
> root # dbx ./cf-agent
> Type 'help' for help.
> reading symbolic information ...
> (dbx) stop in IsCf3VarString if str = ""
> [using vars.ExtractOuterCf3VarString.str]
> [1] stop in IsCf3VarString if vars.ExtractOuterCf3VarString.str = ""
> (dbx) run -Kvf /var/cfengine/test.cf
> ....
> [1] stopped in IsCf3VarString at line 476 in file "vars.c" ($t1)
>   476     char left = 'x', right = 'x';
> (dbx) where
> IsCf3VarString(str = (nil)), line 476 in "vars.c"
> CheckParseInt(lval = "int", s = (nil), range =
> "-99999999999,9999999999"), line 687 in "syntax.c"
> CheckConstraintTypeMatch(lval = "int", rval = (nil), rvaltype = 'X',
> dt = cf_int, range = "-99999999999,9999999999", level = 0), line 462
> in "syntax.c"
> PostCheckConstraint(type = "vars", bundle = "test_edit", lval = "int",
> rval = (nil), rvaltype = 'X'), line 688 in "constraints.c"
> ReCheckAllConstraints(pp = 0x20114378), line 596 in "constraints.c"
> ExpandPromiseAndDo(agent = cf_common, scopeid = "test_edit", pp =
> 0x201140b8, scalarvars = (nil), listvars = (nil), fnptr = (nil)), line
> 598 in "expand.c"
> ExpandPromise(agent = cf_common, scopeid = "test_edit", pp =
> 0x20129208, fnptr = (nil)), line 121 in "expand.c"
> VerifyPromises(agent = cf_common), line 1306 in "generic_agent.c"
> ReadPromises(ag = cf_agent, agents = "agent"), line 212 in "generic_agent.c"
> GenericInitialize(argc = 3, argv = 0x2ff228e4, agents = "agent"), line
> 99 in "generic_agent.c"
> main(argc = 3, argv = 0x2ff228e4), line 136 in "agent.c"
> (dbx) p str
> (nil)
> 
> 
> Hope this helps.....

-- 
Mark Burgess

-------------------------------------------------
Professor of Network and System Administration
Oslo University College, Norway

Personal Web: http://www.iu.hio.no/~mark
Office Telf : +47 22453272
-------------------------------------------------
_______________________________________________
Bug-cfengine mailing list
Bug-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/bug-cfengine

Reply via email to