JuliaPy / JuliaPy/PythonCall.jl

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

Đang mở
#639 8 bình luận 1 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Julia
Star
1.1k
Fork
86
Merge trung bình
1 ngày 22 giờ
Pull request đã merge (30 ngày)
3

Mô tả

**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")

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Start with the pdaqp setup in src/pdaqp/pdaqp.py, especially the jl.seval("using ParametricDAQP") call on line 15, then review the system information and trace in cvxpygen issue 88. Compare the reported ubuntu-latest conditions and Julia/PythonCall usage; done means identifying a reproducible cause or documenting actionable guidance to avoid the segmentation fault.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
julia, python
Lĩnh vực
backend
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.