help-cfengine
[Top][All Lists]
Advanced

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

Re: bufsize macro


From: Andrew Stribblehill
Subject: Re: bufsize macro
Date: Thu, 20 Feb 2003 15:56:25 +0000
User-agent: Mutt/1.5.3i

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.

-- 
VIKING NORTH UTSIRE SOUTH UTSIRE FORTIES CROMARTY
SOUTHEAST 5 TO 7. MAINLY FAIR. MODERATE OR GOOD




reply via email to

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