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 12:58:37 +0000
User-agent: Mutt/1.5.3i

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?

I've tried to reproduce this on my x86 Linux box with 14367 lines in
/etc/hosts, and found no problems.

What was in that long line? Mine is like:

any:cfengine_2_0_5:debian:Thursday:Hr12:Min54:Min50_55:Q4:Hr12_Q4:Day20:February:Yr2003:linux:wompom:32_bit:linux_2_4_19_686:i686:linux_i686:linux_i686_2_4_19_686:linux_i686_2_4_19_686__1_Mon_Nov_18_23_59_03_EST_2002:compiled_on_linux_gnu:net_iface_lo:net_iface_eth0:129_234_2_63:129_234_2:ipv4_129_234_2_63:ipv4_129_234_2:ipv4_129_234:ipv4_129:Users_high_normal:RootProcs_high_dev1:UserProcs_high_dev1:DiskFree_high_dev1:LoadAvg_high_dev1:ssh_out_high_normal:wompom_dur_ac_uk:master:cfmaster:infrequently

I would say that unless you really are intending to define 500
classes (4 Kb worth) it's a bug. Check to see what you shouldn't be
defining -- therein lies the problem.

-- 
LUNDY
SOUTHEAST 4 OR 5, OCCASIONALLY 6. SHOWERS. MODERATE OR GOOD




reply via email to

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