Forum: CFEngine Help Subject: Segmentation fault while executing cf-agent with incorrect policy. Author: juriskrumins Link to topic: https://cfengine.com/forum/read.php?3,27208,27208#msg-27208
I'v got segmentation fault while try to execute cf-agent with incorrectly defined policy regarding processes promise type. Got following verbose output before segmentation fault: ... cf3> Observe process table with /bin/ps -eo user,pid,ppid,pgid,pcpu,pmem,vsz,pri,rss,nlwp,stime,time,args cf3> !! process_select body missing its a process_result return value cf3> !! Process select constraint body promised no result (check body definition) cf3> Promise (version 0.2) belongs to bundle 'non_standard_services' in file '/var/cfengine/inputs/ctco/sshd.cf' near line 78 cf3> Comment: Verify that the service appears in the process table ... Policy is not correct, this is clear, but I suppose cf-agent should not crash. And by the way cf-promises command tell that policy is valid. Running following vesion: # cf-agent -V @@@ @@@ cf-agent @ @@@ @ CFEngine Core 3.3.5 @ @@@ @ @ @@@ @ @ @ @@@ @ @ @ @ @ @ Copyright (C) CFEngine AS 2008-2012 See Licensing at http://cfengine.com/3rdpartylicenses # _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine