Skip to content

Using --bug-report from PyJulia #52689

Open
@MilesCranmer

Description

@MilesCranmer

Hey all,

I'm trying to add the --bug-report flag to PyJulia because I'm encountering some nasty data races that I think only rr could track down (x-ref JuliaPy/PyCall.jl#1072, python/cpython#113591). The error only occurs in a PyJulia context, so I am working to enable the --bug-report flag in PyJulia here: JuliaPy/pyjulia#548.

However, it seems this flag doesn't actually do anything when passed, unlike every other option I've added. Basically it seems like the Julia runtime that Python gets linked to (by this method) is not actually aware of this flag.

I looked into the code here:

julia/base/client.jl

Lines 246 to 247 in 1b183b9

# If we're doing a bug report, don't load anything else. We will
# spawn a child in which to execute these options.
and it seems that --bug-report works by launching a child process, so I'm not sure what the next steps are.

Do you have any tips for how we could get --bug-report working within PyJulia?

Thanks!
Miles

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions