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

Re: SVN stops responding - how to debug?

From: Andreas Braathen <andreas.braathen_at_cern.ch>
Date: Tue, 27 Jan 2009 14:09:29 +0100

Tyler Roscoe wrote:
> On Mon, Jan 26, 2009 at 10:02:44PM +0100, Andreas Braathen wrote:
>
>> Unfortunately I can access it in my shell. The problem is not the network
>> nor the client. Its either the SVN repository configuration or files/locks.
>> Is there no way to check what subversion is really doing without performing
>> real depth 'strace' and gnu debuggers that provide tons of unnecessary information?
>>
>
> The nice thing about using strace to solve this problem is you probably
> don't care about the tons of unnecessary information; you only need to
> know what's happening right before svn locks up. I would start by at
> least giving strace a try.
>
> tyler
>

Here is the last lines in the strace output after running it. I'm not
that familiar with these commands but
futex seems to be a fast lock mechanism in Unix? Can I for instance try
to turn of the locking to make
it "less reliable" for a period to check this theory?

> open("/afs/project/db/__db.001", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE,
> 0666) = -1 EEXIST (Fileexists)
> open("/afs/project/db/__db.001", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE,
> 0666) = -1 EEXIST (Fileexists)
> open("/afs/project/db/__db.001", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE,
> 0666) = -1 EEXIST (Fileexists)
> open("/afs/project/db/__db.001", O_RDWR|O_LARGEFILE) = 4
> fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
> fstat64(4, {st_mode=S_IFREG|0644, st_size=16384, ...}) = 0
> close(4) = 0
> open("/afsproject/db/__db.001", O_RDWR|O_LARGEFILE) = 4
> fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
> mmap2(NULL, 16384, PROT_READ|PROT_WRITE, MAP_SHARED, 4, 0) = 0xb7cb7000
> close(4) = 0
> futex(0xb7cb7000, FUTEX_WAIT, 2, NULL

>
> Does this: http://subversion.tigris.org/faq.html#nfs apply to you?
> (Even if it did, I am not quite sure svn will stop responding, but
> just checking anyway).
It applies in some way because AFS is quite similar to NFS. But the
thing is that SVN has been working for over 1 year now without having
any problems
with it. And since the client nor the server have been updated, I think
it has to do with some changes in the configuration or un removable
locks .. (?)

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1058883

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-01-27 15:25:15 CET

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.