Forum: Cfengine Help
Subject: cf-promises crashes
Author: nima
Link to topic: https://cfengine.com/forum/read.php?3,18171,18171#msg-18171

Here's my configs:

cf-agent.cf
cf-serverd.cf
promises.cf

And here''s the backtrace (in case you're interested) for running:

cf-promises -v



(gdb) back
#0  0x00007ffff68b4175 in raise () from /lib/libc.so.6
#1  0x00007ffff68b6f80 in abort () from /lib/libc.so.6
#2  0x00007ffff68ea2bb in ?? () from /lib/libc.so.6
#3  0x00007ffff68f3b16 in ?? () from /lib/libc.so.6
#4  0x00007ffff68f888c in free () from /lib/libc.so.6
#5  0x000000000043fedd in DeleteConstraintList (conlist=0x75a770) at 
constraints.c:146
#6  0x000000000043d837 in DeletePromise (pp=0x759ac0) at promises.c:687
#7  0x00000000004383d3 in ExpandPromiseAndDo (agent=cf_common, scopeid=, 
pp=0x757940, 
    scalarvars=, listvars=, fnptr=0) at expand.c:625
#8  0x0000000000438ba9 in ExpandPromise (agent=, scopeid=0x7e2980 
"access_rules", 
    pp=0x7e31c0, fnptr=) at expand.c:120
#9  0x0000000000405a6f in VerifyPromises (agent=cf_common) at 
generic_agent.c:1320
#10 0x0000000000407a1a in ReadPromises (ag=cf_common, agents=0x458bbe "common") 
at generic_agent.c:234
#11 0x0000000000407da5 in GenericInitialize (argc=2, argv=, agents=0x458bbe 
"common")
    at generic_agent.c:100
#12 0x0000000000404a27 in main (argc=2, argv=0x7fffffffe708) at cfpromises.c:93
(gdb) 


I'm not going to file this as a bug just yet (even though it most definitely is 
one, no matter what a user does, the code should not seg-fault.

For now, my assumption is that if you feed cf3 perfect input, it will work, if 
you don't it will crash and burn - otherwise no one would be using it - so... 
can anyone tell me what in my configs has resulted in this crash?

Nima

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to