I have downloaded, compiled, and installed cfengine 3.0.3 on RHEL 5.4
server.  While cf3-tutorial and "following along" I came across this
issue...

contents of my .cfagent/inputs/test.cf file (as directed to create on page
15 of the tutorial)

# Every policy must have a bundlesequence

body common control
{
bundlesequence => { "test" };
}

#

bundle agent test
{
reports:             # This is a promise type
   cfengine_3::      # This is a class context (the promise will only
                     # be kept on a cfengine_3 system)

   "Hello world"; # This is a simple promise (it generates a report
                  # that says "Hello world")

Then, when instructed I tried...

[perfet...@localhost ~]$ /usr/local/sbin/cf-promises -f .cfagent/inputs/
test.cf
File .cfagent/inputs/test.cf (owner 600) is writable by others (security
exception)

[perfet...@localhost ~]$ ls -la .cfagent/inputs/test.cf
-rw-rw-r-- 1 perfettip perfettip 366 Jan 14 13:02 .cfagent/inputs/test.cf

Running the command again, with debug flag I get a segmentation fault.

[perfet...@localhost ~]$ /usr/local/sbin/cf-promises -xf .cfagent/inputs/
test.cf
----------------------------------------------------------
Cfengine 3 - Performing level 2 self-diagnostic (dialogue)
----------------------------------------------------------

1. Test variable scanning
2. Testing promise duplication and expansion
3. Testing variable expansion
4. Testing regular expression engine
 -> Regex engine is the POSIX Regular Expression library
 !! Note if any of these tests hang, we recommend using the PCRE library
 !! as the POSIX implementation suffers from memory corruption
 -> Regular expression compilation - ok
 -> Regular expression extraction - ok 15 - 47
 -> Regular expression extraction - ok
 -> FullTextMatch - ok 2
 -> BlockTextMatch - ok
Start was not at 31 -> 47
 -> BlockTextMatch - ok
5. Testing promise attribute completeness
Segmentation fault

It appears like it's using POSIX, but I do have PCRE installed as indicated
in the INSTALL file in the latest tar.gz file.

Please advise.  I have only gotten to page 15 of the tutorial ;(

-- 
Regards,
Pete
_______________________________________________
Bug-cfengine mailing list
Bug-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/bug-cfengine

Reply via email to