This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 16266 - RDIFF command is failing
Summary: RDIFF command is failing
Status: RESOLVED INVALID
Alias: None
Product: obsolete
Classification: Unclassified
Component: collabnet (show other bugs)
Version: 3.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@www
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-05 10:54 UTC by Antonin Nebuzelsky
Modified: 2009-11-08 02:28 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antonin Nebuzelsky 2001-10-05 10:54:51 UTC
Running an RDIFF command against the cvs server fails, e.g.:

tonda-nb:an107681(!501)$ nbcvs rdiff -r pilsen_fcs -r pilsenfixes pilsen_ant
cvs server: Diffing ant
cvs: lock.c:178: lock_name: Assertion `(__extension__ (__builtin_constant_p (
strlen (current_parsed_root->directory)) && ((__builtin_constant_p (repository)
&& strlen (repository) < ((size_t) ( strlen (current_parsed_root->directory))))
|| (__builtin_constant_p ( current_parsed_root->directory) && strlen (
current_parsed_root->directory) < ((size_t) ( strlen
(current_parsed_root->directory))))) ? __extension__ ({ size_t __s1_len,
__s2_len; (__builtin_constant_p (repository) && __builtin_constant_p (
current_parsed_root->directory) && (__s1_len = strlen (repository), __s2_len =
strlen ( current_parsed_root->directory), (!((size_t)(const void *)((repository)
+ 1) - (size_t)(const void *)(repository) == 1) || __s1_len >= 4) &&
(!((size_t)(const void *)(( current_parsed_root->directory) + 1) -
(size_t)(const void *)( current_parsed_root->directory) == 1) || __s2_len >= 4))
? memcmp ((__const char *) (repository), (__const char *) (
current_parsed_root->directory), (__s1_len < __s2_len ? __s1_len : __s2_len) +
1) : (__builtin_constant_p (repository) && ((size_t)(const void *)((repository)
+ 1) - (size_t)(const void *)(repository) == 1) && (__s1_len = strlen
(repository), __s1_len < 4) ? (__builtin_constant_p (
current_parsed_root->directory) && ((size_t)(const void *)((
current_parsed_root->directory) + 1) - (size_t)(const void *)(
current_parsed_root->directory) == 1) ? (__extension__ ({ register int __result
= (((__const unsigned char *) (__const char *) (repository))[0] - ((__const
unsigned char *) (__const char *)( current_parsed_root->directory))[0]); if (
__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const
char *) (repository))[1] - ((__const unsigned char *) (__const char *) (
current_parsed_root->directory))[1]); if ( __s1_len > 1 && __result == 0) {
__result = (((__const unsigned char *) (__const char *) (repository))[2] -
((__const unsigned char *) (__const char *) (
current_parsed_root->directory))[2]); if ( __s1_len > 2 && __result == 0)
__result = (((__const unsigned char *) (__const char *) (repository))[3] -
((__const unsigned char *) (__const char *) (
current_parsed_root->directory))[3]); } } __result; })) : (__extension__ ({
__const unsigned char *__s2 = (__const unsigned char *) (__const char *) (
current_parsed_root->directory); register int __result = (((__const unsigned
char *) (__const char *) (repository))[0] - __s2[0]); if ( __s1_len > 0 &&
__result == 0) { __result = (((__const unsigned char *) (__const char *)
(repository))[1] - __s2[1]); if ( __s1_len > 1 && __result == 0) { __result =
(((__const unsigned char *) (__const char *) (repository))[2] - __s2[2]); if (
__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const
char *) (repository))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p
( current_parsed_root->directory) && ((size_t)(const void *)((
current_parsed_root->directory) + 1) - (size_t)(const void *)(
current_parsed_root->directory) == 1) && (__s2_len = strlen (
current_parsed_root->directory), __s2_len < 4) ? (__builtin_constant_p
(repository) && ((size_t)(const void *)((repository) + 1) - (size_t)(const void
*)(repository) == 1) ? (__extension__ ({ register int __result = (((__const
unsigned char *) (__const char *) (repository))[0] - ((__const unsigned char *)
(__const char *)( current_parsed_root->directory))[0]); if ( __s2_len > 0 &&
__result == 0) { __result = (((__const unsigned char *) (__const char *)
(repository))[1] - ((__const unsigned char *) (__const char *) (
current_parsed_root->directory))[1]); if ( __s2_len > 1 && __result == 0) {
__result = (((__const unsigned char *) (__const char *) (repository))[2] -
((__const unsigned char *) (__const char *) (
current_parsed_root->directory))[2]); if ( __s2_len > 2 && __result == 0)
__result = (((__const unsigned char *) (__const char *) (repository))[3] -
((__const unsigned char *) (__const char *) (
current_parsed_root->directory))[3]); } } __result; })) : (__extension__ ({
__const unsigned char *__s1 = (__const unsigned char *) (__const char *)
(repository); register int __result = __s1[0] - ((__const unsigned char *)
(__const char *) ( current_parsed_root->directory))[0]; if ( __s2_len > 0 &&
__result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char
*) ( current_parsed_root->directory))[1]); if ( __s2_len > 1 && __result == 0) {
__result = (__s1[2] - ((__const unsigned char *) (__const char *) (
current_parsed_root->directory))[2]); if ( __s2_len > 2 && __result == 0)
__result = (__s1[3] - ((__const unsigned char *) (__const char *) (
current_parsed_root->directory))[3]); } } __result; }))) : strcmp (repository,
current_parsed_root->directory)))); }) : strncmp (repository,
current_parsed_root->directory, strlen (current_parsed_root->directory)))) == 0'
failed.
cvs [server aborted]: received abort signal
cvs: lock.c:178: lock_name: Assertion `(__extension__ (__builtin_constant_p (
strlen (current_parsed_root->directory)) && ((__builtin_constant_p (repository)
&& strlen (repository) < ((size_t) ( strlen (current_parsed_root->directory))))
|| (__builtin_constant_p ( current_parsed_root->directory) && strlen (
current_parsed_root->directory) < ((size_t) ( strlen
(current_parsed_root->directory))))) ? __extension__ ({ size_t __s1_len,
__s2_len; (__builtin_constant_p (repository) && __builtin_constant_p (
current_parsed_root->directory) && (__s1_len = strlen (repository), __s2_len =
strlen ( current_parsed_root->directory), (!((size_t)(const void *)((repository)
+ 1) - (size_t)(const void *)(repository) == 1) || __s1_len >= 4) &&
(!((size_t)(const void *)(( current_parsed_root->directory) + 1) -
(size_t)(const void *)( current_parsed_root->directory) == 1) || __s2_len >= 4))
? memcmp ((__const char *) (repository), (__const char *) (
current_parsed_root->directory), (__s1_len < __s2_len ? __s1_len : __s2_len) +
1) : (__builtin_constant_p (repository) && ((size_t)(const void *)((repository)
+ 1) - (size_t)(const void *)(repository) == 1) && (__s1_len = strlen
(repository), __s1_len < 4) ? (__builtin_constant_p (
current_parsed_root->directory) && ((size_t)(const void *)((
current_parsed_root->directory) + 1) - (size_t)(const void *)(
current_parsed_root->directory) == 1) ? (__extension__ ({ register int __result
= (((__const unsigned char *) (__const char *) (repository))[0] - ((__const
unsigned char *) (__const char *)( current_parsed_root->directory))[0]); if (
__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const
char *) (repository))[1] - ((__const unsigned char *) (__const char *) (
current_parsed_root->directory))[1]); if ( __s1_len > 1 && __result == 0) {
__result = (((__const unsigned char *) (__const char *) (repository))[2] -
((__const unsigned char *) (__const char *) (
current_parsed_root->directory))[2]); if ( __s1_len > 2 && __result == 0)
__result = (((__const unsigned char *) (__const char *) (repository))[3] -
((__const unsigned char *) (__const char *) (
current_parsed_root->directory))[3]); } } __result; })) : (__extension__ ({
__const unsigned char *__s2 = (__const unsigned char *) (__const char *) (
current_parsed_root->directory); register int __result = (((__const unsigned
char *) (__const char *) (repository))[0] - __s2[0]); if ( __s1_len > 0 &&
__result == 0) { __result = (((__const unsigned char *) (__const char *)
(repository))[1] - __s2[1]); if ( __s1_len > 1 && __result == 0) { __result =
(((__const unsigned char *) (__const char *) (repository))[2] - __s2[2]); if (
__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const
char *) (repository))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p
( current_parsed_root->directory) && ((size_t)(const void *)((
current_parsed_root->directory) + 1) - (size_t)(const void *)(
current_parsed_root->directory) == 1) && (__s2_len = strlen (
current_parsed_root->directory), __s2_len < 4) ? (__builtin_constant_p
(repository) && ((size_t)(const void *)((repository) + 1) - (size_t)(const void
*)(repository) == 1) ? (__extension__ ({ register int __result = (((__const
unsigned char *) (__const char *) (repository))[0] - ((__const unsigned char *)
(__const char *)( current_parsed_root->directory))[0]); if ( __s2_len > 0 &&
__result == 0) { __result = (((__const unsigned char *) (__const char *)
(repository))[1] - ((__const unsigned char *) (__const char *) (
current_parsed_root->directory))[1]); if ( __s2_len > 1 && __result == 0) {
__result = (((__const unsigned char *) (__const char *) (repository))[2] -
((__const unsigned char *) (__const char *) (
current_parsed_root->directory))[2]); if ( __s2_len > 2 && __result == 0)
__result = (((__const unsigned char *) (__const char *) (repository))[3] -
((__const unsigned char *) (__const char *) (
current_parsed_root->directory))[3]); } } __result; })) : (__extension__ ({
__const unsigned char *__s1 = (__const unsigned char *) (__const char *)
(repository); register int __result = __s1[0] - ((__const unsigned char *)
(__const char *) ( current_parsed_root->directory))[0]; if ( __s2_len > 0 &&
__result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char
*) ( current_parsed_root->directory))[1]); if ( __s2_len > 1 && __result == 0) {
__result = (__s1[2] - ((__const unsigned char *) (__const char *) (
current_parsed_root->directory))[2]); if ( __s2_len > 2 && __result == 0)
__result = (__s1[3] - ((__const unsigned char *) (__const char *) (
current_parsed_root->directory))[3]); } } __result; }))) : strcmp (repository,
current_parsed_root->directory)))); }) : strncmp (repository,
current_parsed_root->directory, strlen (current_parsed_root->directory)))) == 0'
failed.
cvs [server aborted]: received abort signal

Tested on Windows, Linux and Solaris with the same result on all the platforms.
Comment 1 rbalada 2001-10-05 11:07:41 UTC

*** This issue has been marked as a duplicate of 16119 ***
Comment 2 Antonin Nebuzelsky 2001-10-17 08:55:15 UTC
Reopening because while the issue #16119 was resolved for rtagging,
rdiffing still doesn't work. (Strange, because I verified that rdiff
worked when the fix for 16119 was on the testing server - see my
comment in the issue #16119).
Comment 3 Taska 2001-10-17 19:47:50 UTC
Please remember that for this workaround, you must specify the long
pathname.

The following will not work:
cvs -d :pserver:taska@cvs.netbeans.org:/cvs rdiff -r 1.5 -r 1.4
applet/www/index.html

The following will work:
cvs -d
:pserver:taska@cvs.netbeans.org:/usr/local/tigris/data/helm/cvs/repository
rdiff -r 1.5 -r 1.4 applet/www/index.html
Comment 4 Taska 2001-10-18 16:46:48 UTC

*** This issue has been marked as a duplicate of 16119 ***
Comment 5 Antonin Nebuzelsky 2001-10-18 17:50:58 UTC
I have verified, that RDIFF with long path CVSROOT on live site is 
possible.

Comment 6 Antonin Nebuzelsky 2001-10-19 14:45:09 UTC
Changing state to "verified".
Comment 7 Marian Mirilovic 2009-11-08 02:28:49 UTC
We recently moved out from Collabnet's infrastructure