JuliaPy / JuliaPy/PythonCall.jl

Segmentation fault on jl.seval("using ...")

未关闭
#639 8 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Julia
星标
1.1k
派生
86
平均合并
1 天 22 小时
30 天内合并 PR
3

描述

**Affects:** JuliaCall

**Describe the bug**
In the package [pdaqp](https://github.com/darnstrom/pdaqp) I am using juliacall to wrap the Julia package [ParametricDAQP.jl](https://github.com/darnstrom/ParametricDAQP.jl)
I have not observed this myself, but we have had some problems with segmentation faults on `ubuntu-latest` runners when `pdaqp` is used in [cvxpygen](https://github.com/cvxgrp/cvxpygen), and now other users have also started observing this.

**Your system**
Since I am not able to reproduce the segmentation fault on my own system, an example of when the problem arises is given in [this issue](https://github.com/cvxgrp/cvxpygen/issues/88). Where some system information and a trace is given.

**Additional context**
Is there some best practices here that I can use to avoid segmentation faults. I have based a lot of the wrapper on how [PySR](https://github.com/MilesCranmer/PySR) uses juliacall, so maybe @MilesCranmer have some insight?
Here is the section of pdaqp where juliacall is setup:
https://github.com/darnstrom/pdaqp/blob/bf511826beae525b794537dd7b413d6005e7a9ad/src/pdaqp/pdaqp.py#L1C1-L16C34
The segmentation fault seems to happen on line 15: jl.seval("using ParametricDAQP")

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。