Skip to content

Segmentation fault on jl.seval("using ...")Β #639

@darnstrom

Description

@darnstrom

Affects: JuliaCall

Describe the bug
In the package pdaqp I am using juliacall to wrap the Julia package 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, 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. 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 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")

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