Hi all. After weeks of debugging etc. I found the problem. It would seem like its a compiler error on SCO, because in line 286 of io.c - read_unbuffered() - it declares a 'static' variable (type size_t) called 'remaining', and while the ANSI standard says that static vars are automatically initialised to zero, it would seem that this is not always the case. By explicitly intialising the variable to zero yourself, it would seem to solve the problem. Change: Line 286 of io.c from: static size_t remaining; To: static size_t remaining = 0; Really confused, but it seems to work so I'm not going to argue with it :-) -- Brad. -----Original Message----- From: Bradley Kite [mailto:kitebr@alchemetrics.co.uk] Sent: 10 September 2002 11:02 To: 'rsync@samba.org' Subject: Unexpected Tag Errors Hi everyone. I'm running an rsync (2.5.6-cvs) between 2 SCO Unix boxes (SCO_SV 3.2 5.0.5 i386), and keep getting aparently random "unexpected tag" errors. If I re-run rsync when this error occurs everything will usually go OK (even if it takes 2 or 3 runs on the same data...) Could somebody please explain what a "tag" is (looking through the code it's derived from the first 4bytes of each read_unbuffered() call and I think its to do with multiplexing, but what are all of the multiplexing "sub-channels" used for? (seem to be defined as FNONE=0, FERROR=1, FINFO=2, FLOG=3). Has any body else encountered these errors? Any advise much appreciated! Bradley Kite Software Developer/Data Management Specialist alchemetrics - smarter data, faster Tel: 0118 902 9043 (direct line) Email: bradley.kite@alchemetrics.co.uk Web: http://www.alchemetrics.co.uk QuickCounts Demo: http://www.quickcounts.co.uk **************************************************************************** ********** ALCHEMETRICS LIMITED (ALCHEMETRICS) Mulberry Park, Fishponds Road, Wokingham, Berkshire, RG41 2GX Tel: +44 (0) 118 902 9000 Fax: +44 (0) 118 902 9001 This e-mail is confidential and is intended for the use of the addressee only. If you are not the intended recipient, you are hereby notified that you must not use, copy, disclose, otherwise disseminate or take any action based on this e-mail or any information herein. If you receive this transmission in error, please notify the sender immediately by reply e-mail or by using the contact details above and then delete this e-mail. Please note that e-mail may be susceptible to data corruption, interception and unauthorised amendment. Alchemetrics does not accept any liability for any such corruption, interception, amendment or the consequences thereof. **************************************************************************** ********** -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html