Bug#568607: libogg-vorbis-perl: dup syscall yields fd leak

Vincent Lefevre vincent at vinc17.net
Sat Feb 6 22:48:39 UTC 2010


On 2010-02-06 21:59:24 +0100, Vincent Lefevre wrote:
> With the following testcase, if I provide any (non-corrupt) ogg file
> as an argument, I get a segmentation fault after the number 1021 is
> printed. Actually the cause is that a file descriptor is created by
> the dup syscall at each iteration and is never closed, as shown by
> strace.

The dup is probably caused by Debian patch

  bts389571_give-ov_open-duplicate-handle.patch

which has:

+       dupfile = fdopen(dup(fileno(file)), "r");

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)





More information about the pkg-perl-maintainers mailing list