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

`10_files/09_insert_lines/108.cf` spuriously fails on AIX, memory corruption

    XMLWordPrintable

    Details

      Description

      Here is the test failing in Jenkins:

      R: *** /home/jenkins/workspace/testing-enterprise-pr/label/PACKAGES_ppc64_aix_53/cfengine-3.11.0a.6c6b336/tests/acceptance/workdir/__10_files_09_insert_lines_108_cf/tmp/TEST.cfengine.expected	Mon Nov 28 13:07:44 2016
      --- /home/jenkins/workspace/testing-enterprise-pr/label/PACKAGES_ppc64_aix_53/cfengine-3.11.0a.6c6b336/tests/acceptance/workdir/__10_files_09_insert_lines_108_cf/tmp/TEST.cfengine.actual	Mon Nov 28 13:07:44 2016
      ***************
      *** 6,8 ****
      --- 6,9 ----
            Four
        END
            Three potatoe
      +   Leading embedded and trailing spaces
      R: /home/jenkins/workspace/testing-enterprise-pr/label/PACKAGES_ppc64_aix_53/cfengine-3.11.0a.6c6b336/tests/acceptance/./10_files/09_insert_lines/108.cf FAIL
      

      The last line is appended to the file because the regex is failing to match. This happens spuriously, but in older debugging sessions I managed to catch the corrupted regex that's trying to match here:

      error: Regular expression error: pcre_compile() 'missing terminating ] for character class' in expression '\s*Leading\s+embedded\s+and\s+trailing\s+spaces\s*line[[' (offset: 58)
      

      So I've executed this test on Linux in an infinite loop, but it never failed. Running it under valgrind is a different story though, see attached file for the memory corruption occurring.

        Attachments

          Activity

            People

            • Assignee:
              a10038 jimis (Dimitrios Apostolou)
              Reporter:
              a10038 jimis (Dimitrios Apostolou)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel