You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Matthew S. Moore" <mm...@asf.alaska.edu> on 2005/06/20 22:55:34 UTC

Segmentation fault using svn v1.2.0 under Cygwin

Hello,

   I just upgraded subversion to v1.2.0 on our server which is a Win2000 system 
running Cygwin.  I realize this is not really the best choice for a svn server, 
but it is what I have for now.  All of my repositories are fsfs and we are using 
svn+ssh for client access.  I applied the svn updrade last Tuesday without any 
problems until today.  I also know that there was some software updates applied 
to the Win2000 server over the weekend.

   One of our developers was trying to checkout a full repository on a Linux 
client, also recently upgraded to svn v1.2.0.  Part way through transfering 
files he would get a "svn: Connection closed unexpectedly" error message.

   I could not find any other error messages on the server, so I logged in as 
the same user on the server and attempted a local checkout.  I also noticed that 
there was a svnserve.exe.stackdump file in his home directory.  I did the same 
checkout in both his home directory and mine which both resulted in 
"Segmentation fault (core dumped)" at the same file.

   But then I chdir'ed to the directory where the last file was added to the 
working copy, did 'svn cleanup' and 'svn update'.  Then the rest of the files 
under that path were updated.  So, I went back to the root of the working copy 
and did the cleanup and update again.  More files were add to the W/C, but it 
eventually core dumped again.  I repeated this process several times until the 
repository was current in the W/C.

   I then had our developer do a similar process from his Linux account and we 
eventually got his W/C up to date.

   I also did a 'svnadmin verify' on the repository and all the revisions were 
verified successfully.

   Does anyone have any idea why svn.exe/svnserve.exe might be getting 
Segmentation faults?

   Thanks,

Matthew

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

Re: Segmentation fault using svn v1.2.0 under Cygwin

Posted by Max Bowsher <ma...@ukf.net>.
Matthew S. Moore wrote:
> kfogel@collab.net wrote:
>> "Matthew S. Moore" <mm...@asf.alaska.edu> writes:
>>
>>>   Does anyone have any idea why svn.exe/svnserve.exe might be getting
>>> Segmentation faults?
>>
>>
>> No, but if you can give us an actual reproduction recipe, we might be
>> able to figure it out... See http://svn.collab.net/repos/svn/trunk/BUGS.

>   After attempting to check out my full repository to reproduce the
> segmentation faults again, I found that all of the crashes occurred when 
> the
> pathname being added was more than 10 directories deep.  So I tested this
> with a fresh repository.
>
[snip recipe]
>
>   I also tested this on a Linux system (2.6.10-1.766_FC3smp) installed 
> with
> the same version of Subversion, but did not have this problem.
>
>   I know that svn.exe did not crash when checking out the same full
> repository prior to upgrading to svn v1.2.0 from v1.1.4.
>
>   Thus, this appears to be some kind of limitation associated with
> Cygwin/Windows and svn v1.2.0.  Anyone have any ideas what might cause 
> this?

Most curious.

With your script, I can reproduce the segfault with 1.2.0, but with svn 
trunk (i.e. 1.3.0-dev) all is well.

Hmm....


Max.


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

Re: Segmentation fault using svn v1.2.0 under Cygwin

Posted by "Matthew S. Moore" <mm...@asf.alaska.edu>.
kfogel@collab.net wrote:
 > "Matthew S. Moore" <mm...@asf.alaska.edu> writes:
 >
 >>   Does anyone have any idea why svn.exe/svnserve.exe might be getting
 >>Segmentation faults?
 >
 >
 > No, but if you can give us an actual reproduction recipe, we might be
 > able to figure it out... See http://svn.collab.net/repos/svn/trunk/BUGS.
 >
 > Thanks,
 > -Karl

Windows 2000 SP4

Cygwin Package Information
Package                 Version            Status
apr                     0.9.6-1            OK
apr-util                0.9.6-1            OK
base-files              3.4-2              OK
coreutils               5.3.0-6            OK
cygwin                  1.5.17-1           OK
libapr0                 0.9.6-1            OK
libaprutil0             0.9.6-1            OK
libneon24               0.24.7-1           OK
subversion              1.2.0-1            OK
subversion-devel        1.2.0-1            OK

Repository is fsfs

   After attempting to check out my full repository to reproduce the 
segmentation faults again, I found that all of the crashes occurred when the 
pathname being added was more than 10 directories deep.  So I tested this with a 
fresh repository.

$ svnadmin create --fs-type fsfs /svn/repos
$ mkdir -p repos/dir01/dir02/dir03/dir04/dir05/dir06/dir07/dir08/dir09/dir10/dir11
$ touch repos/dir01/dir02/dir03/dir04/dir05/dir06/dir07/dir08/dir09/dir10/dir11/file
$ touch repos/dir01/dir02/dir03/dir04/dir05/dir06/dir07/dir08/dir09/dir10/file
$ svn import -m "populate deep test repository" repos file:///svn/repos
Adding         repos/dir01
Adding         repos/dir01/dir02
Adding         repos/dir01/dir02/dir03
Adding         repos/dir01/dir02/dir03/dir04
Adding         repos/dir01/dir02/dir03/dir04/dir05
Adding         repos/dir01/dir02/dir03/dir04/dir05/dir06
Adding         repos/dir01/dir02/dir03/dir04/dir05/dir06/dir07
Adding         repos/dir01/dir02/dir03/dir04/dir05/dir06/dir07/dir08
Adding         repos/dir01/dir02/dir03/dir04/dir05/dir06/dir07/dir08/dir09
Adding         repos/dir01/dir02/dir03/dir04/dir05/dir06/dir07/dir08/dir09/dir10
Adding 
repos/dir01/dir02/dir03/dir04/dir05/dir06/dir07/dir08/dir09/dir10/file
Adding 
repos/dir01/dir02/dir03/dir04/dir05/dir06/dir07/dir08/dir09/dir10/dir11
Adding 
repos/dir01/dir02/dir03/dir04/dir05/dir06/dir07/dir08/dir09/dir10/dir11/file

Committed revision 1.

$ svn co file:///svn/repos repos_wc
A    repos_wc/dir01
A    repos_wc/dir01/dir02
A    repos_wc/dir01/dir02/dir03
A    repos_wc/dir01/dir02/dir03/dir04
A    repos_wc/dir01/dir02/dir03/dir04/dir05
A    repos_wc/dir01/dir02/dir03/dir04/dir05/dir06
A    repos_wc/dir01/dir02/dir03/dir04/dir05/dir06/dir07
A    repos_wc/dir01/dir02/dir03/dir04/dir05/dir06/dir07/dir08
A    repos_wc/dir01/dir02/dir03/dir04/dir05/dir06/dir07/dir08/dir09
A    repos_wc/dir01/dir02/dir03/dir04/dir05/dir06/dir07/dir08/dir09/dir10
Segmentation fault (core dumped)

$ cd repos_wc/dir01
$ svn cleanup
$ svn update
A    dir02/dir03/dir04/dir05/dir06/dir07/dir08/dir09/dir10/file
A    dir02/dir03/dir04/dir05/dir06/dir07/dir08/dir09/dir10/dir11
Segmentation fault (core dumped)

$ cd dir02
$ svn cleanup
$ svn update
A    dir03/dir04/dir05/dir06/dir07/dir08/dir09/dir10/dir11/file
Updated to revision 1.

$ cd ../..
$ svn cleanup
$ svn update
At revision 1.

   I also tested this on a Linux system (2.6.10-1.766_FC3smp) installed with the
same version of Subversion, but did not have this problem.

   I know that svn.exe did not crash when checking out the same full repository 
prior to upgrading to svn v1.2.0 from v1.1.4.

   Thus, this appears to be some kind of limitation associated with 
Cygwin/Windows and svn v1.2.0.  Anyone have any ideas what might cause this?

Thanks,

Matthew

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

Re: Segmentation fault using svn v1.2.0 under Cygwin

Posted by kf...@collab.net.
"Matthew S. Moore" <mm...@asf.alaska.edu> writes:
>    Does anyone have any idea why svn.exe/svnserve.exe might be getting
> Segmentation faults?

No, but if you can give us an actual reproduction recipe, we might be
able to figure it out... See http://svn.collab.net/repos/svn/trunk/BUGS.

Thanks,
-Karl


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