[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#471572: libsvn-perl: Filedescriptor leak in SVN::Client



Package: libsvn-perl
Version: 1.4.4dfsg1-1
Severity: normal

When tracking down a weird problem in an application that does a lot of
svn operations against a remote repository, I found that the problem was
that I was running out of free filedescriptors because SVN::Client is
never closing them. You can reproduce this problem with the following
test case:

$ strace -e open perl -MSVN::Client -e '
$c = new SVN::Client();
while(1) {
  print ++$n, "\n"; $c->ls("svn://svn.debian.org/pkg-perl/", 'HEAD', 0)
}'

[snip]

2
open("/etc/hosts", O_RDONLY|0x80000)    = 4
open("/etc/hosts", O_RDONLY|0x80000)    = 4
3
open("/etc/hosts", O_RDONLY|0x80000)    = 5
open("/etc/hosts", O_RDONLY|0x80000)    = 5
4
open("/etc/hosts", O_RDONLY|0x80000)    = 6
open("/etc/hosts", O_RDONLY|0x80000)    = 6
5
open("/etc/hosts", O_RDONLY|0x80000)    = 7
open("/etc/hosts", O_RDONLY|0x80000)    = 7
6
open("/etc/hosts", O_RDONLY|0x80000)    = 8
open("/etc/hosts", O_RDONLY|0x80000)    = 8

etc...

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores)
Locale: LANG=es_AR.UTF-8, LC_CTYPE=es_AR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libsvn-perl depends on:
ii  libapr1                     1.2.11-1     The Apache Portable Runtime Librar
ii  libc6                       2.7-6        GNU C Library: Shared libraries
ii  libsvn1                     1.4.4dfsg1-1 Shared libraries used by Subversio
ii  perl                        5.8.8-12     Larry Wall's Practical Extraction 
ii  perl-base [perlapi-5.8.8]   5.8.8-12     The Pathologically Eclectic Rubbis

libsvn-perl recommends no packages.

-- no debconf information



Reply to: