Skip to content

parallel execution of PARI/GP functions with multiprocessing library results in ExceptionPexpect #40766

@maxale

Description

@maxale

Steps To Reproduce

The following code works fine:

@parallel('fork')
def test(n):
    return pari.isprime(n).sage()

list( test([1,2,3]) )

However, if we replace 'fork' with 'multiprocessing', it breaks.

Expected Behavior

It should work.

Actual Behavior

We get

ExceptionPexpect: isalive() encountered condition where "terminated" is 0, but there was no child process. Did someone else call waitpid() on our process?

Additional Information

No response

Environment

  • OS: Ubuntu 24.04.3 LTS
  • Sage Version: 10.7.beta8

Checklist

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.
  • I have read the documentation and troubleshoot guide

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions