Bug #141
Memory leak using Elim in C5
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Portability
Target version:
-
Description
The following code has the symptoms of a memory leak (grows to about 650Mbytes):
Use QQ[x,y,t]; Use ZZ/(32003)[x,y,t]; I := Ideal((8*t^3 -9*t^2 -4*t -8)*x -(6*t^3 -5*t^2 +7*t -7), (9*t^3 +8*t^2 -6*t +5)*y -(9*t^3 +8*t^2 -9*t +7)); For K := 1 To 10000 Do J := Elim([t],I); EndFor;
I don't know if the leak is in C5 or in CoCoALib.
I expect that, once found, it will be almost trivial to fix.
BTW it could be handy to have BuildInfo
in CoCoA-5 for those who report bugs.
Related issues
History
#1 Updated by John Abbott about 12 years ago
I was running a CoCoA-5 compiled with -DCoCoA_THREADSAFE_HACK
. The leaks I observed disappeared when I removed that compilation flag. No doubt the problem is due to the temporary rings (inside Elim
) not self destroying when they're no longer needed -- ref counting is disabled when the threadsafety hack is forced.
Maybe I should add a threadsafety issue?
#2 Updated by John Abbott about 12 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
#3 Updated by Anna Maria Bigatti almost 12 years ago
- Category set to Portability