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

"svn diff" crashes when binary files differ

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2003-02-25 01:12:39 CET

"svn diff" crashes (or exits with error when using external diff) when I
type the commands listed below. The "cp" is just a way of changing the
binary data in subversion_logo.eps.gz; the same thing happens if instead
I unzip the file, insert a few characters near the beginning and re-zip it.

- Julian

Reproduction recipe (in my SVN source tree, updated and built yesterday):

~/src/subversion/notes/logo> svn propget svn:mime-type
subversion_logo.eps.gz
subversion_logo.eps.gz - application/x-gzip-compressed
~/src/subversion/notes/logo> svn diff
~/src/subversion/notes/logo> svn --diff-cmd /usr/bin/diff diff
~/src/subversion/notes/logo> cp subversion_logo.ico subversion_logo.eps.gz
~/src/subversion/notes/logo> svn diff
Segmentation fault
~/src/subversion/notes/logo> svn --diff-cmd /usr/bin/diff diff
Index: subversion_logo.eps.gz
===================================================================
Binary files subversion_logo.eps.gz (revision 5039) and
subversion_logo.eps.gz (working copy) differ
subversion/libsvn_subr/io.c:1192: (apr_err=200012)
svn: Error calling external program
svn: '/usr/bin/diff' returned 2

~/src/subversion/notes/logo> svn --version
svn, version 0.18.0 (dev build)
    compiled Feb 23 2003, 23:08:38
[...]
* ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
   - handles 'http' schema
* ra_svn : Module for accessing a repository using the svn network protocol.
   - handles 'svn' schema

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Feb 25 01:10:41 2003

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