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

cf-promises/cf-agent uses 100% CPU for minutes in variable enumeration

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Unconfirmed
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      The following code snippet is able to make `cf-promises` run on 100% CPU for more than 5 minutes on my computer. Execution ends eventually, but apparently just because some internal limit is overflown and not all variables are enumerated.

      Using `cfengine-community` 3.6.4-1 on Ubuntu 12.04 LTS.

      <pre>
      body common control
      {
      inputs => {};
      bundlesequence =>

      { "test" }

      ;
      }

      bundle agent test
      {
      vars:
      "variables" slist => variablesmatching("[^#]+");

      reports:
      linux::
      "$(variables)=$($(variables))";
      }

      </pre>

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              a10003 Eystein Maloy Stenberg
              Reporter:
              riccardomurri Riccardo Murri
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: