JuliaPy / JuliaPy/PythonCall.jl

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

Aberta
#531 3 comentários 0 reações 0 responsáveis Ver no GitHub
bug
Linguagem predominante
Julia
Estrelas
1.1k
Forks
86
Merge médio
1d 22h
PRs com merge (30d)
3

Descrição

**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:
```py
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 https://github.com/MilesCranmer/PySR/issues/682

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Direção de pesquisa

Start with the reproduction script and the juliacall import path, then trace how PYTHON_JULIACALL_HANDLE_SIGNALS is handled on macOS. Done means importing juliacall with that environment variable set no longer triggers the reported SIP security protocol activation.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
julia, python
Domínio
operating-systems
Tipo de issue
Bug
Dificuldade
4/5
Tempo estimado
3-5 dias
Status de atividade
Estagnada
Clareza
Razoavelmente clara
Facilidade para iniciantes
25/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.