Alexander Shumakovitch on Tue, 18 Mar 2003 19:41:58 +0100 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Another memory leak in Pari/GP 2.2.5 |
Hi all! I guess I've found a memory leak in Pari 2.2.5 (on Linux 2.4.20). Here is how to reproduce it: (19:36) gp > x = vector(2); y = vectorv(2); time = 0 ms. (19:36) gp > m = matrix(2,2); m[2, ] = x; m[, 2] = y; getheap time = 0 ms. %2 = [7, 77] (19:37) gp > m = matrix(2,2); m[2, ] = x; m[, 2] = y; getheap time = 0 ms. %3 = [8, 85] (19:37) gp > m = matrix(2,2); m[2, ] = x; m[, 2] = y; getheap time = 0 ms. %4 = [9, 91] The histsize is set to 1, so history is not an issue. What is interesting is that if one switches the assignments or skips one of them, everything goes back to normal: (19:37) gp > m = matrix(2,2); m[, 2] = y; m[2, ] = x; getheap time = 0 ms. %7 = [12, 109] (19:39) gp > m = matrix(2,2); m[, 2] = y; m[2, ] = x; getheap time = 0 ms. %8 = [12, 109] Thanks! --- Alexander.