Skip to content

[BUG] Hard crash due to Mac System Integrity Protection (SIP) Security Protocol Activation #531

Open
@ev-watson

Description

@ev-watson

Affects: PythonCall

Describe the bug
Setting the PYTHON_JULIACALL_HANDLE_SIGNALS environment variable manually and then importing juliacall triggers the disk security protocol on MacOS

Meanwhile just importing juliacall works fine

ANY VERSIONS

Reproduce script:

import os

os.environ["PYTHON_JULIACALL_HANDLE_SIGNALS"] = os.environ.get("PYTHON_JULIACALL_HANDLE_SIGNALS", "yes")

import juliacall

For clarity: importing juliacall works fine, but if you set environment variable first, it triggers SIP

Your system
Please provide detailed information about your system:

  • MacOS
  • Any versions

Additional context
First seen at MilesCranmer/PySR#682

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions