-
-
Notifications
You must be signed in to change notification settings - Fork 698
Open
Labels
Description
==2143== 80 bytes in 2 blocks are still reachable in loss record 481 of 2,900
==2143== at 0x4C1FFAB: malloc (vg_replace_malloc.c:207)
==2143== by 0x2158F146: MMalloc (safe_mem.c:62)
==2143== by 0x215C47AB: cuddInitTable (cuddTable.c:402)
==2143== by 0x215C4252: Cudd_Init (cuddInit.c:141)
==2143== by 0x2154B875: polybori::CDDManager<polybori::CCuddInterface>::CDDManager(unsigned) (CCuddCore.h:121)
==2143== by 0x2154907D: polybori::BoolePolyRing::BoolePolyRing(unsigned, int,bool) (BooleRing.h:80)
==2143== by 0x215081B8: __pyx_pf_4sage_5rings_10polynomial_5pbori_21BooleanPolynomialRing___init__(_object*, _object*, _object*) (ccobject.h:50)
...
==2143== 160 bytes in 2 blocks are still reachable in loss record 534 of 2,900
==2143== at 0x4C1FFAB: malloc (vg_replace_malloc.c:207)
==2143== by 0x2158F146: MMalloc (safe_mem.c:62)
==2143== by 0x215C43A3: Cudd_Init (cuddInit.c:183)
==2143== by 0x2154B875: polybori::CDDManager<polybori::CCuddInterface>::CDDManager(unsigned) (CCuddCore.h:121)
==2143== by 0x2154907D: polybori::BoolePolyRing::BoolePolyRing(unsigned, int,bool) (BooleRing.h:80)
==2143== by 0x215081B8: __pyx_pf_4sage_5rings_10polynomial_5pbori_21BooleanPolynomialRing___init
__(_object*, _object*, _object*) (ccobject.h:50)
So it seems we are allocating a buffer for Cudd each time we create a ring but this buffer keeps increasing and is never free'd?
CC: @burcin @sagetrac-PolyBoRi
Component: memleak
Keywords: polybori
Issue created by migration from https://trac.sagemath.org/ticket/3299