Skip to content

Proper deallocation of the (unique) pari instance #13741

@simon-king-jena

Description

@simon-king-jena

Currently, the unique instance of Pari is deallocated manually when Sage executes sage.all.quit_sage.

I think that's unsafe. In fact, it led to problems at #12215. My suggestion is to deallocate the unique Pari instance in the default Cython way: With a __dealloc__ method.

Hence, I am moving a part of the second patch of #12215 to here. I believe this is cleaner than packing a bunch of unrelated changes into one ticket.

CC: @jpflori @zimmermann6 @vbraun @robertwb @nbruin @malb @orlitzky

Component: memleak

Keywords: pari deallocation

Author: Simon King

Reviewer: Volker Braun

Merged: sage-5.5.rc1

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions