You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Karl Chen <qu...@cs.berkeley.edu> on 2005/02/24 08:19:02 UTC

svn checkin hangs when out of disk space

I tried to commit, not realizing I was out of disk space on the
partition containing the working copy.  Subversion hangs, using
100% CPU.

I couldn't understand what was going on until I attached strace
and found it was in an infinite loop trying to write to fd 4
(which I think is ".svn/tmp/tempfile.tmp"):

write(4, "\205`y\37\207z\346/\354\332c\30y\0\214\16\325r\265\264"..., 4096) = -1 ENOSPC (No space left on device)
write(4, "\205`y\37\207z\346/\354\332c\30y\0\214\16\325r\265\264"..., 4096) = -1 ENOSPC (No space left on device)
write(4, "\205`y\37\207z\346/\354\332c\30y\0\214\16\325r\265\264"..., 4096) = -1 ENOSPC (No space left on device)
... ad infinitum

I think svn might be missing some error checking on file I/O.

-- 
Karl 2005-02-24 00:12

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn checkin hangs when out of disk space

Posted by Karl Chen <qu...@cs.berkeley.edu>.
>>>>> On 2005-03-15 11:53 PST, Julian Foad writes:

    Julian> which version of Subversion were you using?  

1.1.3

    Julian> Are you able to construct a small reproduction recipe
    Julian> (e.g. using a fixed-size RAM disk to guarantee that it
    Julian> will run out of space)?

I can do that later when I have free time (if nobody else has done
it yet)

-- 
Karl 2005-03-15 12:17

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn checkin hangs when out of disk space

Posted by Julian Foad <ju...@btopenworld.com>.
Karl Chen wrote:
> I tried to commit, not realizing I was out of disk space on the
> partition containing the working copy.  Subversion hangs, using
> 100% CPU.
> 
> I couldn't understand what was going on until I attached strace
> and found it was in an infinite loop trying to write to fd 4
> (which I think is ".svn/tmp/tempfile.tmp"):
> 
> write(4, "\205`y\37\207z\346/\354\332c\30y\0\214\16\325r\265\264"..., 4096) = -1 ENOSPC (No space left on device)
> write(4, "\205`y\37\207z\346/\354\332c\30y\0\214\16\325r\265\264"..., 4096) = -1 ENOSPC (No space left on device)
> write(4, "\205`y\37\207z\346/\354\332c\30y\0\214\16\325r\265\264"..., 4096) = -1 ENOSPC (No space left on device)
> ... ad infinitum
> 
> I think svn might be missing some error checking on file I/O.

That does look like a bug.  Thanks for reporting it, but which version of 
Subversion were you using?  Are you able to construct a small reproduction 
recipe (e.g. using a fixed-size RAM disk to guarantee that it will run out of 
space)?

Has anyone reproduced or investigated this?

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org