Skip to content

[BUG] Nested def function causes crash (SIGBUG) with BCC mode #2328

@AlecHaring

Description

@AlecHaring

In PyArmor 9.2.4, obfuscating this script:

def outer():
    def inner():
        return 'inner-result'

    return inner()


if __name__ == '__main__':
    print('calling outer()...')
    print('outer() returned:', outer())
    print('OK')

With BCC mode enabled, will crash with Bus error: 10 (SIGBUG) as soon as the execution enters the function.

Environment

  • PyArmor: 9.2.4 (pro), build 005037
  • Python: 3.11.2
  • Platform: macOS, darwin.arm64 (Apple Silicon)
  • Flags: --enable bcc --obf-code 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions