[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Watch Subversion server deadlock with hook script

From: Travis P <svn_at_castle.fastmail.fm>
Date: 2005-03-25 22:46:53 CET

This pre-commit hook will do it (on a RH 7.2 Linux system in
particular, but most Un*xes will display this behavior though the exact
size at which the pipe is full will vary, 10K works for this Linux
system, but based on Posix limit PIPE_BUF, I'd guess my AIX system will
hold at least 32K before such a deadlock):

#!/usr/bin/perl
my $xs = 'x' x (10*1024); # 10K of data
print STDERR $xs;
exit(1);

Subversion's server should not assume that the pipe is
large enough to hold all the output from the hook script(s)
before it will read any of it.

I'd call this behavior a bug.

-Travis Pouarz

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Mar 25 22:47:51 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.