Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-3694

When doing a diff via SWIG bindings, tempfiles are not cleaned up quickly enough

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Invalid
    • 1.6.x
    • unscheduled
    • bindings_swig_perl
    • None

    Description

      I am using the Perl interface to subversion. My client version is 1.6.9.
      
      If I call SVN::Client's diff() over and over on a remote repository in a tight 
      loop, it fails on the 255th request. Sometimes it fails with:
      
      RA layer request failed: OPTIONS of 
      'http://svn.apache.org/repos/asf/apr/apr/trunk': Could not resolve hostname 
      `svn.apache.org': Host not found (http://svn.apache.org) at bad-svn.pl line 17
      
      And other times it fails with an error about "Can't find temporary directory".
      
      I can reproduce this against svn.apache.org and svn.mozilla.org both.
      
      Watching my /tmp directory, I see that the number of 'tempfile.#.tmp' files 
      keeps growing and growing. I am guessing that upon reaching 255, svn somehow 
      dies.
      
      I will attach a script that reproduces the problem reliably.
      

      Original issue reported by mkanat

      Attachments

        1. 1_bad-svn.pl
          0.5 kB
          Subversion Importer

        Activity

          People

            Unassigned Unassigned
            subversion-importer Subversion Importer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: