Bug report (memory leak)
Александр Кругов <[email protected]> Thu, 21 Oct 2010 09:24:49 +0400
| Newsgroups | gmane.comp.gnu.prolog.bugs |
|---|---|
| Message-ID | <[email protected]> |
Hello. 1) Load into GNU-Prolog file in attachment. 2) Run "testall.". 3) After that a memory used by gprolog.exe increase by several MBytes. A memory used by gprolog.exe only increase after each running of "testall." It seems that It is a memory leak. I test this on the Windows XP, with GNU-Prolog 1.3.0, 1.3.1, 1.4.0 and on the FreeBSD 8.0 with GNU-Prolog 1.3.1. I saw this problem in each case. PS "testall" only run "trim" many times. _______________________________________________ Bug-prolog mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-prolog
memory_leak.pl
(application/octet-stream, 174 B)
trim(S,ResS):-atom_concat(S2,' ',S),!,trim(S2,ResS).
trim(S,S).
test(X):-X>0,trim('abc',_),Y is X//2,(test(Y);(Y2 is X-Y-1,test(Y2))).
testall:-test(10000000).