Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-2289

cf-promises segfault in json read after free

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.7, 3.7.4
    • Component/s: cf-promises
    • Labels:
      None

      Description

      The attached policy, discussed in https://groups.google.com/d/msg/help-cfengine/H2-hoBOx-0s/JyvRu2gMAQAJ, results in a segmentation fault in 3.6.6:

      <pre>
      bronto@murray:~/Downloads/HSD-4380$ sudo cf-agent -KIC -f ./t.cf -b t
      Segmentation fault
      2016-02-18T22:03:18+0100 error: Policy failed validation with command '"/var/cfengine/bin/cf-promises" "./t.cf" -b "t"'
      bronto@murray:~/Downloads/HSD-4380$ sudo cf-promises -f ./t.cf -b t
      bronto@murray:~/Downloads/HSD-4380$ echo $?
      139
      bronto@murray:~/Downloads/HSD-4380$
      </pre>

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              a10038 jimis (Dimitrios Apostolou)
              Reporter:
              bronto Marco Marongiu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 3 hours
                  3h
                  Remaining:
                  Not Specified
                  Logged:
                  Time Not Required
                  Not Specified