test: make test-security-check fails on macOS arm64 #26386

issue hebasto openend this issue on October 25, 2022
  1. hebasto commented at 10:18 am on October 25, 2022: member

    On macOS 12.6 Monterey (Apple M1, 21G115):

     0% make test-security-check      
     1Command 'DYLD_CHAINED_FIXUPS' not parsed!
     2Command 'DYLD_EXPORTS_TRIE' not parsed!
     3Command 'DYLD_CHAINED_FIXUPS' not parsed!
     4Command 'DYLD_EXPORTS_TRIE' not parsed!
     5Traceback (most recent call last):
     6  File "/Users/hebasto/git/bitcoin/./contrib/devtools/security-check.py", line 254, in <module>
     7    if not func(binary):
     8  File "/Users/hebasto/git/bitcoin/./contrib/devtools/security-check.py", line 160, in check_MACHO_LAZY_BINDINGS
     9    return binary.dyld_info.lazy_bind == (0,0)
    10AttributeError: 'NoneType' object has no attribute 'lazy_bind'
    11F
    12======================================================================
    13FAIL: test_MACHO (__main__.TestSecurityChecks)
    14----------------------------------------------------------------------
    15Traceback (most recent call last):
    16  File "/Users/hebasto/git/bitcoin/./contrib/devtools/test-security-check.py", line 138, in test_MACHO
    17    self.assertEqual(call_security_check(cc, source, executable, ['-Wl,-flat_namespace','-fno-stack-protector']),
    18AssertionError: Tuples differ: (1, '') != (1, 'test1: failed NOUNDEFS LAZY_BINDINGS Canary')
    19
    20First differing element 1:
    21''
    22'test1: failed NOUNDEFS LAZY_BINDINGS Canary'
    23
    24- (1, '')
    25+ (1, 'test1: failed NOUNDEFS LAZY_BINDINGS Canary')
    26
    27----------------------------------------------------------------------
    28Ran 1 test in 0.382s
    29
    30FAILED (failures=1)
    31make: *** [test-security-check] Error 1
    
  2. hebasto added the label Bug on Oct 25, 2022
  3. hebasto added the label Build system on Oct 25, 2022
  4. hebasto added the label Tests on Oct 25, 2022
  5. fanquake commented at 10:19 am on October 25, 2022: member
    Unless it’s failing in a Guix build, it’s not a bug, and isn’t even expected to pass.
  6. fanquake removed the label Bug on Oct 25, 2022
  7. hebasto commented at 10:36 am on October 25, 2022: member

    Unless it’s failing in a Guix build, it’s not a bug

    Agree.

    … and isn’t even expected to pass.

    At least, we run make test-security-check on the CI for macOS Intel.

  8. hebasto closed this on Oct 25, 2022

  9. hebasto commented at 11:12 am on October 25, 2022: member

    It works. It seems I had some issues with python packages.

    Sorry for noise.


    FWIW, my current lief package details are as follows:

     0% pip3 show lief                                 
     1Name: lief
     2Version: 0.12.2
     3Summary: Library to instrument executable formats
     4Home-page: https://github.com/lief-project/LIEF
     5Author: Romain Thomas
     6Author-email: contact@lief.re
     7License: Apache License 2.0
     8Location: /Users/hebasto/Library/Python/3.10/lib/python/site-packages
     9Requires: 
    10Required-by: 
    
  10. maflcko referenced this in commit bd478890c5 on Oct 27, 2022
  11. bitcoin locked this on Oct 25, 2023

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-21 12:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me