[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to identify a potential memory leak in guile programs?
From: |
Hengqing Hu |
Subject: |
How to identify a potential memory leak in guile programs? |
Date: |
Tue, 22 Jan 2013 16:51:04 +0800 |
Dear list,
I wrote a small program in scheme interpreted by guile.
It is used to find identical code blocks in a file or directory.
The problem I have is, when the contents of directory is large,
the memory used by the program keeps increasing and finally
when memory is used up, I get the following error:
ERROR: In procedure primitive-fork:
ERROR: Cannot allocate memory
Can somebody help to look into the code and tell me what's wrong?
The guile version used is guile-1.8.8-5.fc18.2.x86_64 on fedora 18.
You can find the program here:
https://github.com/hudayou/fib
--
Best Regards, Hengqing Hu
- How to identify a potential memory leak in guile programs?,
Hengqing Hu <=