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

OpenSSL 1.1.1k produces segfaulting builds and fails unit tests on Solaris 10 x86

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Higher
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.15.4
    • Component/s: None
    • Labels:
      None

      Description

      see unit tests failing here: https://ci.cfengine.com/job/testing-pr/14399/label=PACKAGES_x86_64_solaris_10/console

      15:30:53 ==================================================
      15:30:53 Starting test: generic_agent_test.c
      15:30:53 ==================================================
      15:30:53 test_resolve_absolute_input_path: Starting test
      15:30:53 test_resolve_absolute_input_path: Test completed successfully.
      15:30:53 test_resolve_non_anchored_base_path: Starting test
      15:30:53 test_resolve_non_anchored_base_path: Test completed successfully.
      15:30:53 test_resolve_relative_base_path: Starting test
      15:30:53 test_resolve_relative_base_path: Test completed successfully.
      15:30:53 test_have_tty_interactive_failsafe_is_not_created: Starting test
      15:30:53 test_have_tty_interactive_failsafe_is_not_created: Test failed.
      15:30:53 test_dont_have_tty_interactive_failsafe_is_created: Starting test
      15:30:53 Segmentation Fault
      15:30:53 Assertion failed: cf_openssl_locks == NULL, file crypto.c, line 804, function SetupOpenSSLThreadLocks
      15:30:54 /bin/bash: line 1: 12116 Abort                   (core dumped) DYLD_FORCE_FLAT_NAMESPACE=yes ${dir}$tst
      15:30:54 FAIL: generic_agent_test
      15:30:54 ==================================================
      15:30:54 Starting test: syntax_test.c
      15:30:54 ==================================================
      
      15:30:55 ==================================================
      15:30:55 Starting test: version_test.c
      15:30:55 ==================================================
      15:30:55 test_creation_destruction: Starting test
      15:30:55 test_creation_destruction: Test completed successfully.
      15:30:55 test_comparison: Starting test
      15:30:55 test_comparison: Test completed successfully.
      15:30:55 All 2 tests passed
      15:30:55 PASS: version_test
      15:30:56 /bin/bash: line 1: 12333 Segmentation Fault      (core dumped) DYLD_FORCE_FLAT_NAMESPACE=yes ${dir}$tst
      15:30:56 FAIL: hash_test
      15:30:56 ==================================================
      15:30:56 Starting test: key_test.c
      15:30:56 ==================================================
      15:30:56 test_key_basic: Starting test
      15:30:56 test_key_basic: Test failed.
      15:30:56 test_key_hash: Starting test
      15:30:56 test_key_hash: Test failed.
      15:30:56 FAIL: key_test
      15:30:56 Segmentation Fault
      15:30:56 Segmentation Fault
      15:30:56 2 out of 2 tests failed!
      15:30:56     test_key_basic
      15:30:56     test_key_hash
      15:30:56 ==================================================
      15:30:56 Starting test: cf_upgrade_test.c
      15:30:56 ==================================================
      

      PR to test: https://github.com/cfengine/buildscripts/pull/824

      Note that it happens on 3.12.x and 3.15.x branches, but not on master branch.
      Also note that it happens with openssl 1.1.1k, but not 1.1.1g (I can test all openssl versions in between if someone wants to dig into openssl commits).

      Also note that it also failed when I accidentally requested a frankenstein build with above buildiscripts PR and all other repos from master. Hence, the issue might be in buildscripts repo?!

      Also have a look at this build: https://ci.cfengine.com/job/testing-pr/14448/ - with 1,624 test failures. After disabling failing unit tests, all acceptance tests are failing - because the build insta-segfaults. You can investigate it, if it's simpler to look at.

        Attachments

          Activity

            People

            • Assignee:
              vpodzime Vratislav Podzimek
              Reporter:
              Aleksei Aleksei Shpakovskii
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel