Forum: Cfengine Help Subject: cf-agent 3.1.2 Bus error - on hp-ux ia64 Author: stoney27 Link to topic: https://cfengine.com/forum/read.php?3,20034,20034#msg-20034
have been upgrading my 3.0.5p1 installs on multiple platforms. I have no problems getting cfengine compiled and running on hpux - PA-RISC, Solaris on sparc and intel hardware and on 32bit and 64bit linux. However, I am having this issue on hpux on ia64, running cf-agent it runs though a test.cf file i created and it gives me a bus error. This is the same machine I used to compile and install 3.0.5p1, and it runs file using the test.cf file. Running 3.1.2 cf-agent in gdb I get the following results: After a lot of output: .... GetVariable(control_agent,track_value) type=(to be determined) IsExpandable(track_value) - syntax verify Found 0 variables in (track_value) Looking for control_agent.track_value Searching for scope context control_agent Found scope reference control_agent GetVariable(control_agent,track_value): using scope 'control_agent' for variable 'track_value' (slot =1157) No such variable found control_agent.track_value Program received signal SIGBUS, Bus error si_code: 1 - BUS_ADRALN - Invalid address alignment. Please refer to the following link that helps in handling unaligned data: http://docs.hp.com/en/7730/newhelp0610/pragmas.htm#pragma-pack-ex3. GetVariable (scope=0x485 , lval=0x7ee3a8f0 "track_value", returnv=0x7fffbe41, rtype=0x7fffbe40 "") at vars.c:256 256 *returnv = lval; (gdb) bt #0 GetVariable (scope=0x485 , lval=0x7ee3a8f0 "track_value", returnv=0x7fffbe41, rtype=0x7fffbe40 "") at vars.c:256 #1 0x200000007eef5e80:0 in BooleanControl (scope=, name=0x7ee3a8f0 "track_value") at vars.c:685 #2 0x200000007ef29990:0 in EndAudit () at logging.c:71 #3 0x400eac0:0 in KeepPromises () at agent.c:364 #4 0x400fa90:0 in main (argc=6, argv=0x7ffff854) at agent.c:151 Looking at vars.c line 256: 253: if (!found) 254: { 255: Debug("No such variable found %s.%s\n\n",scopeid,lval); 256: *returnv = lval; 257: *rtype = CF_SCALAR; 258: return cf_notype; 259: } 260: } 261: 262: Debug("return final variable type=%s, value={\n",CF_DATATYPES[(ptr->hashtable)->dtype]); 263: 264: if (DEBUG) 265: { 266: ShowRval(stdout,(ptr->hashtable)->rval,(ptr->hashtable)->rtype); 267: } 268: Debug("}\n"); 269: 270: *returnv = ptr->hashtable->rval; 271: *rtype = ptr->hashtable->rtype; 272: 273: return (ptr->hashtable)->dtype; 274: } Does not help me much anyone have any suggestions? Thanks. -Scott ---------------------- Scott Stonefield R&D Unix Administrator s...@sas.com _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine