platform: rhel 5 (2.6.18-194.el5), cfengine-community-3.3.0-1.x86_64.rpm the bundle below triggers a sigsegv in cf-agent. gdb stack trace indicates that strcmp() was called with a null first argument (logname) by SummarizeTransaction().
thanks -taj ######## core.cf body common control { bundlesequence => { bun }; } bundle agent bun { files: "/tmp/foo.txt" create => "true", action => log; } body action log { log_failed => "stdout"; } ######## % cf-agent -K -f core.cf Segmentation fault (core dumped) % gdb /var/cfengine/bin/cf-agent core-cf-agent.7781 ... Core was generated by `cf-agent -K -f core.cf'. Program terminated with signal 11, Segmentation fault. #0 0x00002b069441a230 in strcmp () from /lib64/libc.so.6 (gdb) bt #0 0x00002b069441a230 in strcmp () from /lib64/libc.so.6 #1 0x00002b0693142b13 in SummarizeTransaction (attr=..., pp=0x1fabfbb0, logname=0x0) at transaction.c:84 #2 0x00002b069312c1a9 in ClassAuditLog (pp=0x1fabfbb0, attr=..., str=0x1fac0010 " -> File \"/tmp/foo.txt\" exists as promised", status=110 'n', reason=<value optimized out>) at logging.c:307 #3 0x00002b06930f508a in cfPS (level=<value optimized out>, status=110 'n', errstr=<value optimized out>, pp=0x1fabfbb0, attr=..., fmt=<value optimized out>) at cfstream.c:368 #4 0x00002b06931160c1 in VerifyFilePromise (path=0x1fabfca0 "/tmp/foo.txt", pp=0x1fabfbb0) at files_interfaces.c:314 #5 0x00002b069311b54e in LocateFilePromiserGroup (wildpath=0x1fabfca0 "/tmp/foo.txt", pp=0x1fabfbb0, fnptr=0x406230 <VerifyFilePromise@plt>) at files_names.c:56 #6 0x0000000000408f17 in FindAndVerifyFilesPromises () #7 0x0000000000408041 in KeepAgentPromise () #8 0x00002b069310e7cf in ExpandPromiseAndDo (agent=cf_agent, scopeid=<value optimized out>, pp=0x1fabf5c0, scalarvars=<value optimized out>, listvars=0x0, fnptr=0x407ce0 <KeepAgentPromise>) at expand.c:711 #9 0x00002b069310ebc5 in ExpandPromise (agent=cf_agent, scopeid=0x1fabefc0 "bun", pp=0x1fabf070, fnptr=0x407ce0) at expand.c:138 #10 0x0000000000408222 in ScheduleAgentOperations () #11 0x0000000000408bc6 in main ()
_______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine