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

strange error of 'svn diff'

From: plasma <plasmaball_at_pchome.com.tw>
Date: 2003-11-09 09:29:20 CET

Hi all,

I encounter a strange error while using 'svn diff'. The recipe is:

> svnadmin create SVN_ROOT
> svn co file://`pwd`/SVN_ROOT svn
> cd svn
> cp /path/to/subversion-0.26.0/doc/book/book/ch05.xml .
> svn commit -m "* ch05.xml of 0.26.0"
> cp /path/to/subversion-0.32.1/doc/book/book/ch05.xml .
> svn status
  M ch05.xml
> svn diff
  subversion/libsvn_diff/diff_file.c:124: (apr_err=70014)
  svn: End of file found
  svn: Failed to read file 'ch05.xml'.

The ch05.xml's are the xml sources of chaptor 5 of svnbook, extracted
from 0.26.0 and 0.32.1 respectively. If I do a commit:

> svn commit -m "* ch05.xml of 0.32.1"
> svn diff -r 1:2
  subversion/libsvn_diff/diff_file.c:124: (apr_err=70014)
  svn: End of file found
  svn: Failed to read file 'tmp.2'.

I don't know why, but I'm not able to see the diff anymore. I don't
know if the repository is also damaged.

My svn has been applied Garrett Rooney's patch of "'svn st'
segfaults", and applied another patch of my own:

--- subversion/libsvn_wc/diff.c.orig Sun Nov 9 11:06:07 2003
+++ subversion/libsvn_wc/diff.c Sun Nov 9 11:06:33 2003
@@ -578,7 +578,8 @@
 
           if (err)
             {
- svn_error_compose (err, err2);
+ if (err2)
+ svn_error_compose (err, err2);
               return err;
             }
           if (err2)

The patch fixes another segfault of 'svn diff'.

My platform is FreeBSD 4.8, compiled with Apache 2.0.48 (that means
svn uses apr within Apache). Please help.

plasma

==========================================================
 2004~AA@ɪZAubu
 http://edm-prg.epaper.com.tw/click.php?ad_code=32754
==========================================================
 PChome~~֤ѤѦ \*^o^*//
 http://love.pchome.com.tw/
==========================================================

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Nov 9 09:30:05 2003

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