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

Re: pre-commit hangs

From: Gisbert Amm <gia_at_webde.de>
Date: 2006-05-22 11:40:14 CEST

Garrett Rooney wrote:
> On 5/19/06, Gisbert Amm <gia@webde.de> wrote:
>> I have a pre-commit hook that checks for tabs in Python files and
>> rejects the commit if it finds any, writing a line to stderr for every
>> file so that the user knows what to fix. It worked so far but the
>> process always hung when the amount of error messages the script
>> returned was bigger than a certain size.
>> After some searching I found out that the process hangs because there's
>> too much data on stderr, more than the stderr buffer size, which is the
>> system's default page size (4096 Byte on my system). It is similar to
>> this Apache vulnerability: http://www.securityfocus.com/bid/5787/info.
>> I've tried out this exploit; it does no longer work with Apache 2.0.52.
>> Therefore I consider Subversion the culprit.
>> As a workaround, I do check how much data the hook script wants to write
>> to stderr and cut it, if it's too long. However, I'd rather see this
>> fixed cleanly.
>> Has anyone else experienced the same and is it probably already reported
>> as an issue? Otherwise I'd file a bug report.
> What version of Subversion are you seeing the problem with? I believe
> this has been fixed in 1.3.x.
> -garrett

It's 1.2.3 (r15833).

I'll ask the Sysadmin to upgrade.

Sorry for first answering off list. Monday morning failure ;)

Gisbert Amm

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon May 22 11:41:43 2006

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

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