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

Re: Assertion failed: is_canonical (base, blen)

From: SteveKing <stefan.kueng_at_wagner-group.ch>
Date: 2005-09-13 06:57:45 CEST

Maxim Abrashkin wrote:
> Hello,
>
>>
>> We have received a similar error message running svnserve on the
>> svn-1.2.3 3 windows runtime.
>>
>> C:\>svnserve -d -r \tmp\merge\test_repository
>> Assertion failed: is_canonical (path->data, path->len), file
>> C:\Home\brane\src\svn\releases\subversion-1.2.3\subversion\libsvn_subr\path.c,
>> line 343
>>
>> This has forced us back to the 1.1.4 runtime.
>>
>> Anyone have any insight into what is causing this issue?
>>
>> Thanks,
>> -Mark
>
> The problem is trivial: incorrect project file generation for Visual
> Studio.
>
> To disable assert in release configuration preprocessor definition
> NDEBUG must be defined, but it missing in generated project file.
>
> The fix:
> after line 601,602 in gen_win.py
> if cfg == 'Debug':
> fakedefines.extend(["_DEBUG","SVN_DEBUG"])
> add this lines
> else:
> fakedefines.extend(["NDEBUG"])
>
> then regenerate project files and rebuild subversion.

This won't solve the problem but make it even worse!
You just compile the project without the assert() function, which makes
then the program crash.
The assertion is there for a reason! That means the code there assumes
that the URL is canonical and doesn't work correctly if it isn't.

To really fix this, you'd have to find out *why* it asserts there and
fix *that* problem.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Sep 13 07:00:11 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.