help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cfengine-2.0.5pre2 Segmentation fault with editfiles (Resolved)


From: Jack G. Harris
Subject: Re: cfengine-2.0.5pre2 Segmentation fault with editfiles (Resolved)
Date: Mon, 13 Jan 2003 15:00:39 -0700

Thanks to Mark and all the others who responed.  Using the "varstring.c" from 
the
latest sources fixed the problem and I have seen no other issues from the tests 
I just
conducted on RH Linux, Solaris 8 and SGI.

Have a great afternoon....

jh

Mark.Burgess@iu.hio.no wrote:

> I think this might be due to a "quick patch" that I added for someone.
> Try getting a new sources directly (esp. varstring.c) from the website 
> sources and
> recompile. Or go back to 2.0.4 for now. I have been terribly busy
> lately and will not get to work on cfengine until about february.
>
> Mark
>
> On 13 Jan, Jack G. Harris wrote:
> > Hi!
> >
> > I have been using cfengine for around three years now, and have recently
> > deployed 2.0.5pre2.
> >
> > All appeared to work well, until I realized that editfiles rules were
> > all dying with a Segmentation fault...
> >
> > An example rule that has worked very well for me up tell now is listed
> > below.
> >
> > *********************************************************
> >   { /etc/passwd
> >      BeginGroupIfFileExists "/etc/shadow"
> >      BeginGroupIfNoLineContaining "BlockedforSecurity"
> >      InsertLine "BlockedforSecurity"
> >      EndGroup
> >      EndGroup
> >   }
> > *********************************************************
> >
> > All the edits that do not have to satisfy a condition, including classes
> > still work fine.  I have tested this on other conditions that are part
> > of the editfiles section and it is also broken for:
> >
> > BeginGroupIfFileIsNewer, ForEachLineIn and ReplaceLinesMatchingField.
> >
> > I read the comments about being sure that the compiles are not mixing
> > regex libs and includes, aand am looking at going back to recompile all
> > the software again, but really don't want to go down that path for all
> > platforms unless really necessary.  The conditionals in question are all
> > literal strings types, so I am not sure if this issue of regex libs
> > would even apply?
> >
> > The problem exists on all the OS's I support, Redhat Linux, Sun Solaris
> > and SGI Irix.  I have already deployed the new version of cfengine, and
> > am really impaired by this development.
> >
> > Any suggestions, thoughts or otherwise are greatly needed at this
> > time....
> >
> > jack
> >
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Work: +47 22453272            Email:  Mark.Burgess@iu.hio.no
> Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

--
Jack G. Harris
CCN-2 Unix Systems Support
Los Alamos National Laboratory
E-Mail: jackh@lanl.gov
VOX: 505-665-4036
FAX: 505-XXX-XXXX
MS: P208

*******************************************************
Stockpile Stewardship is the program through which the safety,
reliability, and performance of the United States nuclear stockpile
is assured.  Los Alamos National Laboratory (LANL), as part of the
NNSA team, contributes to meeting this nation’s nuclear needs and its
other security needs.

*******************************************************

For information about programs at Los Alamos National Laboratory,
go to http://www.lanl.gov/worldview/organization/plan_message.shtml




reply via email to

[Prev in Thread] Current Thread [Next in Thread]