Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash in pickling / unpickling Lattice objects #438

Merged
merged 4 commits into from
Jul 13, 2022
Merged

Conversation

lfarv
Copy link
Contributor

@lfarv lfarv commented Jul 12, 2022

The unpickling sequence creates a Lattice object without going through the init constructor. This results in temporarily invalid Lattice objects. Consequences are:

  • impossibility to store pickled Lattice in files,
  • crashes when running patpass with the 'spawn' start method: with this method, the arguments are transmitted to the subprocesses as pickled objects.

This is now corrected: invalid Lattice objects are detected and specifically treated.

@lfarv lfarv merged commit 70f1774 into master Jul 13, 2022
@lfarv lfarv deleted the fix_patpass branch July 13, 2022 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant