file ownership issue 3.0.3 / POSIX or PCRE issue?
PJ Perfetti <[email protected]> Fri, 15 Jan 2010 14:19:23 -0500
| Newsgroups | gmane.comp.sysutils.cfengine.bugs |
|---|---|
| Message-ID | <[email protected]> |
--===============0186713210==
Content-Type: multipart/alternative; boundary=000e0cd6b01693eba6047d38e163
--000e0cd6b01693eba6047d38e163
Content-Type: text/plain; charset=ISO-8859-1
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...
[perfettip@localhost ~]$ /usr/local/sbin/cf-promises -f .cfagent/inputs/
test.cf
File .cfagent/inputs/test.cf (owner 600) is writable by others (security
exception)
[perfettip@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.
[perfettip@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
--000e0cd6b01693eba6047d38e163
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
I have downloaded, compiled, and installed cfengine 3.0.3 on RHEL 5.4 serve=
r.=A0 While cf3-tutorial and "following along" I came across this=
issue...<br><br>contents of my .cfagent/inputs/<a href=3D"http://test.cf">=
test.cf</a> file (as directed to create on page 15 of the tutorial)<br>
<br><div style=3D"margin-left: 40px; font-family: courier new,monospace;">#=
Every policy must have a bundlesequence<br><br>body common control<br>{<br=
>bundlesequence =3D> { "test" };<br>}<br><br>#<br><br>bundle a=
gent test<br>
{<br>reports:=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 # This is a promise type<=
br>=A0=A0 cfengine_3::=A0=A0=A0=A0=A0 # This is a class context (the promis=
e will only<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
# be kept on a cfengine_3 system)<br><br>=A0=A0 "Hello world"; #=
This is a simple promise (it generates a report<br>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 # that says "Hello=
world")<br></div><br clear=3D"all">Then, when instructed I tried...<b=
r><br><div style=3D"margin-left: 40px;"><span style=3D"font-family: courier=
new,monospace;">[perfettip@localhost ~]$ /usr/local/sbin/cf-promises -f .c=
fagent/inputs/<a href=3D"http://test.cf">test.cf</a></span><br style=3D"fon=
t-family: courier new,monospace;">
<span style=3D"font-family: courier new,monospace;">File .cfagent/inputs/<a=
href=3D"http://test.cf">test.cf</a> (owner 600) is writable by others (sec=
urity exception)</span><br style=3D"font-family: courier new,monospace;"><s=
pan style=3D"font-family: courier new,monospace;"></span><br>
<span style=3D"font-family: courier new,monospace;">[perfettip@localhost ~]=
$ ls -la .cfagent/inputs/<a href=3D"http://test.cf">test.cf</a></span><br s=
tyle=3D"font-family: courier new,monospace;"><span style=3D"font-family: co=
urier new,monospace;">-rw-rw-r-- 1 perfettip perfettip 366 Jan 14 13:02 .cf=
agent/inputs/<a href=3D"http://test.cf">test.cf</a></span><br style=3D"font=
-family: courier new,monospace;">
</div><span style=3D"font-family: courier new,monospace;"><br>Running the c=
ommand again, with debug flag I get a segmentation fault.<br><br></span><di=
v style=3D"margin-left: 40px;"><span style=3D"font-family: courier new,mono=
space;">[perfettip@localhost ~]$ /usr/local/sbin/cf-promises -xf .cfagent/i=
nputs/<a href=3D"http://test.cf">test.cf</a></span><br style=3D"font-family=
: courier new,monospace;">
<span style=3D"font-family: courier new,monospace;">-----------------------=
-----------------------------------</span><br style=3D"font-family: courier=
new,monospace;"><span style=3D"font-family: courier new,monospace;">Cfengi=
ne 3 - Performing level 2 self-diagnostic (dialogue)</span><br style=3D"fon=
t-family: courier new,monospace;">
<span style=3D"font-family: courier new,monospace;">-----------------------=
-----------------------------------</span><br style=3D"font-family: courier=
new,monospace;"><br style=3D"font-family: courier new,monospace;"><span st=
yle=3D"font-family: courier new,monospace;">1. Test variable scanning</span=
><br style=3D"font-family: courier new,monospace;">
<span style=3D"font-family: courier new,monospace;">2. Testing promise dupl=
ication and expansion</span><br style=3D"font-family: courier new,monospace=
;"><span style=3D"font-family: courier new,monospace;">3. Testing variable =
expansion</span><br style=3D"font-family: courier new,monospace;">
<span style=3D"font-family: courier new,monospace;">4. Testing regular expr=
ession engine</span><br style=3D"font-family: courier new,monospace;"><span=
style=3D"font-family: courier new,monospace;">=A0-> Regex engine is the=
POSIX Regular Expression library</span><br style=3D"font-family: courier n=
ew,monospace;">
<span style=3D"font-family: courier new,monospace;">=A0!! Note if any of th=
ese tests hang, we recommend using the PCRE library</span><br style=3D"font=
-family: courier new,monospace;"><span style=3D"font-family: courier new,mo=
nospace;">=A0!! as the POSIX implementation suffers from memory corruption<=
/span><br style=3D"font-family: courier new,monospace;">
<span style=3D"font-family: courier new,monospace;">=A0-> Regular expres=
sion compilation - ok</span><br style=3D"font-family: courier new,monospace=
;"><span style=3D"font-family: courier new,monospace;">=A0-> Regular exp=
ression extraction - ok 15 - 47</span><br style=3D"font-family: courier new=
,monospace;">
<span style=3D"font-family: courier new,monospace;">=A0-> Regular expres=
sion extraction - ok</span><br style=3D"font-family: courier new,monospace;=
"><span style=3D"font-family: courier new,monospace;">=A0-> FullTextMatc=
h - ok 2</span><br style=3D"font-family: courier new,monospace;">
<span style=3D"font-family: courier new,monospace;">=A0-> BlockTextMatch=
- ok</span><br style=3D"font-family: courier new,monospace;"><span style=
=3D"font-family: courier new,monospace;">Start was not at 31 -> 47</span=
><br style=3D"font-family: courier new,monospace;">
<span style=3D"font-family: courier new,monospace;">=A0-> BlockTextMatch=
- ok</span><br style=3D"font-family: courier new,monospace;"><span style=
=3D"font-family: courier new,monospace;">5. Testing promise attribute compl=
eteness</span><br style=3D"font-family: courier new,monospace;">
<span style=3D"font-family: courier new,monospace;">Segmentation fault</spa=
n><br></div><br>It appears like it's using POSIX, but I do have PCRE in=
stalled as indicated in the INSTALL file in the latest tar.gz file.<br><br>
Please advise.=A0 I have only gotten to page 15 of the tutorial ;(<br><br>-=
- <br>Regards,<br>Pete<br><br>
--000e0cd6b01693eba6047d38e163--
--===============0186713210==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine
--===============0186713210==--