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

svn st -N crash: tweak_statushash: Assertion failed

From: John Locke <mail_at_freelock.com>
Date: 2005-02-27 01:34:56 CET


This is part a bug report, part a question as to whether my workaround
will lead to dire consequences down the road.

Situation: I recently installed ActiveState Komodo 3.1, which now has
Subversion support. However, it was generating errors on my working
copy, so the revision control wasn't showing up at all. This in Mandrake
10.1 with subversion-1.1.0-1mdk.i586, installed a while ago from some
media source I can't easily figure out right now.

Running svn st -u -N, with more than one directory specified, caused a
segmentation fault. So I uninstalled the Subversion RPMs and
compiled/installed svn 1.1.3 from source. This time I got this error:
svn: subversion/libsvn_wc/status.c:910: tweak_statushash: Assertion
`repos_text_status == svn_wc_status_added' failed.

After some troubleshooting, I found it was a single directory in the
argument list causing the problem--if I omitted that directory from the
arguments list, svn st -u -N worked fine. If I specified that directory,
I got the error. I tried removing the directory and doing an svn up to
bring it back. Still got the same result.

So I went to the source code, and found line 910 in the status.c file:
      assert (repos_text_status == svn_wc_status_added);

Now, I'm not a C programmer, so none of this makes a whole lot of sense
to me. But I thought this looked funny--it looks like this is comparing
these two values, when perhaps it should be assigning
svn_wc_status_added to repos_text_status?

Anyway, I changed it to:
      assert (repos_text_status = svn_wc_status_added);

... and recompiled, and this seemed to fix my problem.

Then I ran across issue 2122 and 695 in the Subversion issue database.

So... is my fix going to cause any data loss or other strange things here?


John Locke
"Open Source Solutions for Small Business Problems"
published by Charles River Media, June 2004
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Feb 27 01:37:17 2005

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.