Forum: Cfengine Help Subject: Re: Core dump in cf-agent vars.c:308 Author: mvpel Link to topic: https://cfengine.com/forum/read.php?3,22200,22211#msg-22211
Okay, it appears that this section of code is working fine, looping through the if(!found) conditional repeatedly until it gets to control_agent.track_value, at which point the jump from the BooleanControl() function into the GetVariable() function goes a bit off the rails: Breakpoint 7, BooleanControl (scope=0x79779370 "control_agent", name=0x79780f08 "track_value") at /home/pelletm/src/cfengine-3.1.5/src/vars.c:737 (gdb) s GetVariable (scope=0x2 , lval=0x10800 "Immunizing against parental death", returnv=0x7a0007a8, rtype=0x7a0008c0 "") at /home/pelletm/src/cfengine-3.1.5/src/vars.c:208 The GetVariable() was called with scope and name from BooleanControl() as its first two arguments, and as you can see that's not what ends up in the function. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine