help-cfengine
[Top][All Lists]
Advanced

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

Re: bufsize macro


From: Predrag Zecevic - Support Engineer
Subject: Re: bufsize macro
Date: Thu, 20 Feb 2003 17:07:57 +0100
User-agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.3b) Gecko/20030203

Andrew Stribblehill wrote:

Quoting Predrag Zecevic - Support Engineer <Predrag.Zecevic@2e-Systems.COM> 
(2003-02-20 01:47:14 GMT):
Andrew Stribblehill wrote:

Quoting Predrag Zecevic - Support Engineer <Predrag.Zecevic@2e-Systems.COM> (2003-02-20 09:29:14 GMT):

I am using cfEngine 2.0.5, Berlekey 4.1.24 and OpenSSL 0.9.7 compiled on Solaris 8 on bunsh of hosts.
I have problem with BIG /etc/inet/hosts tables (we cannot use DNS)

While running update, the following lines appear in the log several times:
----------------------------------------------------------- CUT HERE ---
cfengine:my-host: Buffer overflow constructing string. Increase bufsize macro.
........... very, very, very, very long line
cfengine:my-host: culprit BuildClassEnvironment()
----------------------------------------------------------- CUT HERE ---

Result of this is uncomplete run of cfEngine, which means I cannot use it!
How I can get rid of this? Any ideas?
Hi Andrew,
<snip sensitive data>
Do you have ANY idea how to increase buffer?

Hope you don't mind me replying to you on the public mailing-list --
other people may have the same problem in the future, and they can
Google for it this way.

Yes, you can increase it by editing src/cf.defs.h -- try doubling or
tripling it.

The problem here is that this macro is actually the concatenation of
all classes defined, and is passed to the environment of every
command you run if you pass the '-u' flag to cfagent or you use
modules (your actionsequence contains module:<something>). Some
operating systems have quite a small buffer for environment
variables, so you may run into difficulty there.  If this occurs,
putenv() will comaplain and CFALLCLASSES will not be defined within
the environment of your modules.

Thanks for your support.
I have to think about what to do. This will require some analysis and even changes within environment/farm.

Best regards ;-)

--
Predrag Zecevic | e-Mail: Predrag.Zecevic@2e-Systems.COM
2e Systems GmbH |              Tel: (+49)[0]6192 978 475
65830 Kriftel   |              Fax: (+49)[0]6192 978 525
Germany         |         Cellular: (+49)[0]174 3109 288






reply via email to

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