Package: cfengine3
Version: 3.0.5+dfsg-1
Severity: normal

--- Please enter the report below this line. ---
My promises.cf file looks like this:
================================
body common control
{
bundlesequence  => {
                   "installed_packages"
                   };

inputs          => {
                   "cfengine_stdlib.cf"
                   };
}


bundle agent installed_packages
{
vars:

   "packagelistAdd" slist => { "iptables" };

packages:

  "$(packagelistAdd)"
        package_method => apt,
        package_policy => "add";

}
=================================

which runs ok for the first time. The second time
it is blocked and cfengine segfaults:

gdb cf-agent
GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/cf-agent...Reading symbols from 
/usr/lib/debug/usr/sbin/cf-agent...done.
(no debugging symbols found)...done.
(gdb) run -v
Starting program: /usr/sbin/cf-agent -v
[Thread debugging using libthread_db enabled]
cf3 Cfengine - autonomous configuration engine - commence self-diagnostic 
prelude
cf3 ------------------------------------------------------------------------
cf3 Work directory is /var/lib/cfengine3
cf3 cf3: INFO: /var/lib/cfengine3/bin is a symbolic link, not a true 
directory!
cf3 Making sure that locks are private...
cf3 Checking integrity of the state database
cf3 Checking integrity of the module directory
cf3 Checking integrity of the PKI directory
cf3 Looking for a source of entropy in /var/lib/cfengine3/randseed
cf3 Loaded /var/lib/cfengine3/ppkeys/localhost.priv
cf3 Loaded /var/lib/cfengine3/ppkeys/localhost.pub
cf3 Setting cfengine default port to 5308 = 5308
cf3 Reference time set to Mon Jan 24 13:38:42 2011
cf3 Cfengine - 3.0.5 (C) Cfengine AS 2008-
cf3 ------------------------------------------------------------------------
cf3 Host name is: xxxx
cf3 Operating System Type is linux
cf3 Operating System Release is 2.6.32-5-xen-amd64
cf3 Architecture = x86_64
cf3 Using internal soft-class linux for host xxxx
cf3 The time is now Mon Jan 24 13:38:42 2011
cf3 ------------------------------------------------------------------------
cf3 # Extended system discovery is only available in version Nova and above
cf3 Additional hard class defined as: 64_bit
cf3 Additional hard class defined as: linux_2_6_32_5_xen_amd64
cf3 Additional hard class defined as: linux_x86_64
cf3 Additional hard class defined as: linux_x86_64_2_6_32_5_xen_amd64
cf3 GNU autoconf class from compile time: compiled_on_linux_gnu
cf3 Address given by nameserver: xxxxxx
cf3 Interface 1: lo
cf3 Interface 2: eth0
cf3 Adding alias xxxx..
cf3 Trying to locate my IPv6 address
cf3 Found IPv6 address xxxx
cf3 Found IPv6 address xxxx
cf3 Found IPv6 address xxxx
cf3 Looking for environment from cf-monitor...
cf3 Unable to detect environment from cfMonitord
cf3 This appears to be a debian system.
cf3 Looking for Debian version...
cf3 This appears to be a Debian 6.0 system.
cf3 This appears to be a Debian 6 system.
cf3 This system seems to have the aptitude package system
cf3 ***********************************************************
cf3  Loading persistent classes
cf3 ***********************************************************
cf3 ***********************************************************
cf3  Loaded persistent memory
cf3 ***********************************************************
cf3  > Verifying the syntax of the inputs...
cf3   > Parsing file /var/lib/cfengine3/inputs/promises.cf
cf3 Initiate variable convergence...
cf3   > Parsing file /var/lib/cfengine3/inputs/cfengine_stdlib.cf
cf3 Initiate variable convergence...
cf3 Initiate variable convergence...
cf3 # Knowledge map reporting feature is only available in version Nova and 
above
cf3  -> Defined classes = { xxxx 64_bit xxxx Afternoon Day24 GMT_Hr12 Hr13 
Hr13_Q3 January Lcycle_1 Min35_40 Min38 Monday Q3 Yr2011 agent any cfengine_3 
cfengine_3_0 cfengine_3_0_5 community_edition compiled_on_linux_gnu debian 
debian_6 debian_6_0 debian_squeeze xxxx xxxx have_aptitude ipv4_xx ipv4_xxxxxx 
ipv4_xxxxxxxx ipv4_xxxxxxxxx linux linux_2_6_32_5_xen_amd64 linux_x86_64 
linux_x86_64_2_6_32_5_xen_amd64 
linux_x86_64_2_6_32_5_xen_amd64__1_SMP_Thu_Nov_25_20_08_32_UTC_2010 
net_iface_eth0 undefined_domain xxxx verbose_mode x86_64 }
cf3  -> Negated Classes = { }
cf3 Initiate variable convergence...
cf3  -> Immunizing against parental death
cf3 -> Bundlesequence =>  {'installed_packages'}
cf3 
cf3 *****************************************************************
cf3 BUNDLE installed_packages
cf3 *****************************************************************
cf3 
cf3 
cf3    =========================================================
cf3    vars in bundle installed_packages (1)
cf3    =========================================================
cf3 
cf3 Verifying SQL table promises is only available with Cfengine Nova or above
cf3 
cf3      +  Private classes augmented:
cf3 
cf3      -  Private classes diminished:
cf3 
cf3 
cf3 
cf3    =========================================================
cf3    packages in bundle installed_packages (1)
cf3    =========================================================
cf3 
cf3 Verifying SQL table promises is only available with Cfengine Nova or above
cf3 
cf3     .........................................................
cf3     Promise handle: 
cf3     Promise made by: iptables
cf3     .........................................................
cf3 
cf3  XX Nothing promised here [lock.installed_packages.packag] (128/240 
minutes elapsed)

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff68fdb52 in ?? () from /lib/libc.so.6
(gdb) bt
#0  0x00007ffff68fdb52 in ?? () from /lib/libc.so.6
#1  0x0000000000415e8c in DeleteDB (dbp=0x769c10, key=0x0) at dbm_api.c:249
#2  0x0000000000454a34 in RemoveLock (name=0x0) at transaction.c:580
#3  0x00000000004550ed in YieldCurrentLock (this=...) at transaction.c:268
#4  0x000000000040c5b8 in VerifyPackagesPromise (pp=0x767f90) at 
verify_packages.c:78
#5  0x0000000000404f48 in KeepAgentPromise (pp=0x767f90) at agent.c:967
#6  0x0000000000447cac in ExpandPromiseAndDo (agent=cf_agent, scopeid=<value 
optimized out>, pp=0x766cd0, scalarvars=<value optimized out>, listvars=<value 
optimized out>, 
    fnptr=0x404c40 <KeepAgentPromise>) at expand.c:615
#7  0x00000000004483f9 in ExpandPromise (agent=<value optimized out>, 
scopeid=0x787660 "installed_packages", pp=0x7879d0, fnptr=<value optimized 
out>) at expand.c:120
#8  0x00000000004051eb in ScheduleAgentOperations (bp=0x787700) at agent.c:813
#9  0x00000000004053fc in KeepPromiseBundles () at agent.c:773
#10 0x0000000000405ff3 in KeepPromises () at agent.c:358
#11 0x00000000004065fb in main (argc=2, argv=0x7fffffffed18) at agent.c:149


--- System information. ---
Architecture: i386
Kernel:       Linux 2.6.32-5-686-bigmem

Debian Release: 6.0
  500 testing         security 
  500 testing         debian 






-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to