Page 1 of 1

possible file descriptor leaks

Posted: 2013-03-08T13:51:12-07:00
by yyf2085089
I'm using the magickwand library for my C application in Ubuntu environment.
But there is one file decriptor open when one image is read while not closed after the process is done.
If I do this in a loop, I could see a lot of file descriptors increasing without close from /proc/<pid>/fd.
I also tested the sample code from imagemagic website, which has the same issue.
The version I'm using is 6.6.9.7 which is fetched by aptitute.
So I download the latest one from imagemagick website where the version is 6.8.3-8, and the bug went away.

I think something was fixed, but I couldn't find anything about it in the changelog, anyone could explaine it?
I wanna know what is the root cause of this issue.

Thanks

Re: possible file descriptor leaks

Posted: 2013-03-09T17:50:55-07:00
by yyf2085089
Could anyone explain it? I really wanna know if it's a fixed bug or something wrong with my system?
Thanks.

Re: possible file descriptor leaks

Posted: 2013-03-10T17:59:58-07:00
by yyf2085089
Anyone knows it?