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

Segfault when constructing array with getindices()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 3.9.0
    • Fix Version/s: 3.10.0, 3.9.1
    • Component/s: Evaluation
    • Labels:
      None
    • Story Points:
      13

      Description

      When running the attached policy with 3.9.0:

      # cf-promises test.cf
      Segmentation fault (core dumped)
      

      In 3.3 and 3.8.0 it works:

      /var/cfengine/bin/cf-agent -K -f /home/vagrant/test.cf -b b 
      R: $(c[f]) => $(d[f])
      R: $(c[s]) => $(d[s])
      R: $(c[k]) => val1
      R: $(c[f][f1]):val2
      R: $(c[s][s1]):val3
      

        Attachments

        1. gdb-backtrace.txt
          4 kB
        2. test.cf
          0.7 kB

          Issue Links

            Activity

              People

              • Assignee:
                a10040 Kristian Amlie
                Reporter:
                a10003 Eystein Maloy Stenberg
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel