sagemath / sage

Main repository of SageMath. Now open for Issues and Pull Requests.
https://www.sagemath.org
Other
1.21k stars 421 forks source link

multiprocessing makes elements from the same class incompatible #34598

Open maxale opened 1 year ago

maxale commented 1 year ago

Using multiprocessing can make elements of the same class incompatible, resulting in senseless errors as

TypeError: unsupported operand parent(s) for *: 'Finite monoid on 3 elements given by its multiplication table' and 'Finite monoid on 3 elements given by its multiplication table'

Detailed example is provided at https://ask.sagemath.org/question/63243/ and the issue can be seen at Sagecell.

I chose 'pickling' as this bug's component, but I'm not sure it's a correct one.

Component: pickling

Issue created by migration from https://trac.sagemath.org/ticket/34598

maxale commented 1 year ago

Description changed:

maxale commented 1 year ago

Could this be related to #13811 ?