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

Incorrect parsing of /bin/ps output results in failed bootstrap

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.1
    • Labels:
      None

      Description

      Something goes wrong with the parsing of the output of the ps command
      as defined line 84 in libpromises/classes.c and processed in
      SelectProcess() in libpromises/processes_select.c

      The columns returned are incorrect, which means that processes which
      should be killed aren't and bootstrapping fails, not least because cf-serverd's address is in use.

      No policy_server.datis created and left to its own devices the number of cf-execd instances will grow rather dramatically.

      The command line is /bin/ps -axo user,pid,ppid,pgid,pcpu,pmem,vsz,ni,rss,nlwp,start,time,args

      Using the old-style '/bin/ps xauw' instead resolves this issue.

      This applies to FreeBSD 10 (clang) and FreeBSD 9.2 (gcc)

      Suporting output is in the attached file as the format would be ruined in HTML.

        Attachments

          Release management

            Activity

              People

              Assignee:
              a10025 Volker Hilsheimer (Inactive)
              Reporter:
              jospjansen Jos Jansen
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: