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

Reports promises and other log lines on solaris 10/11 are being truncated

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.10.0, 3.9.2
    • Fix Version/s: 3.7.5, 3.10.1, 3.11.0
    • Component/s: None
    • Labels:
      None
    • Platform:
      Solaris

      Description

      I noticed this on 3.9.x branch, the fprintf call truncates %s to 256 characters:

      (gdb) s
      ReportToLog (
          message=0x179f38 "/home/jenkins/workspace/testing-enterprise-3.9.x/label/PACKAGES_sparc64_solaris_11/cfengine-3.9.2a.800e998/tests/acceptance/./00_basics/04_bundles/dynamic_bundlesequence/dynamic_inputs_based_on_class_set_using_variable_file_control_extends_inputs.cf FAIL") at verify_reports.c:131
      131         fprintf(stdout, "%s\n", report_message);
      (gdb) p report_message
      $8 = 0x19ee28 "R: /home/jenkins/workspace/testing-enterprise-3.9.x/label/PACKAGES_sparc64_solaris_11/cfengine-3.9.2a.800e998/tests/acceptance/./00_basics/04_bundles/dynamic_bundlesequence/dynamic_inputs_based_on_class_set_using_variable_file_control_extends_inputs.cf FAIL"
      (gdb) s
      R: /home/jenkins/workspace/testing-enterprise-3.9.x/label/PACKAGES_sparc64_solaris_11/cfengine-3.9.2a.800e998/tests/acceptance/./00_basics/04_bundles/dynamic_bundlesequence/dynamic_inputs_based_on_class_set_using_variable_file_control_extends_inputs.cf FAI
      

      Notice how the last word is "FAI" instead of "FAIL".

      EDIT: Upstream bug report is at Illumos bugtracker.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel