Ticket #724 (new defect)

Opened 6 years ago

Last modified 6 years ago

[NEEDINFO] msynctool will hang after successful synchronization

Reported by: swolter Owned by: dgollub
Priority: high Milestone:
Component: OpenSync Version: 0.38
Severity: normal Keywords:
Cc:

Description

For some time now, the current SVN build of opensync with the msynctool will hang after a successful sync. Output is:

Synchronizing group "file-moto" 
The previous synchronization was unclean. Slow-syncing
event sink of member 1 of type file-sync just connected
contact sink of member 1 of type file-sync just connected
Main sink of member 1 of type file-sync just connected
event sink of member 2 of type moto-sync just connected
contact sink of member 2 of type moto-sync just connected
Main sink of member 2 of type moto-sync just connected
All clients connected or error
Received an entry libkcal-364545872.490 from member 1 (file-sync). Changetype ADDED
Received an entry libkcal-1974785761.1053 from member 1 (file-sync). Changetype ADDED
Received an entry libkcal-598384173.863 from member 1 (file-sync). Changetype ADDED
Received an entry libkcal-1411234570.1094 from member 1 (file-sync). Changetype ADDED
Received an entry libkcal-478286796.328 from member 1 (file-sync). Changetype ADDED
Received an entry libkcal-1527196435.103 from member 1 (file-sync). Changetype ADDED
Received an entry libkcal-223186992.109 from member 1 (file-sync). Changetype ADDED
Received an entry libkcal-441694329.171 from member 1 (file-sync). Changetype ADDED
Received an entry libkcal-2123609255.896 from member 1 (file-sync). Changetype ADDED
Received an entry libkcal-32282354.591 from member 1 (file-sync). Changetype ADDED
Received an entry libkcal-1550470919.159 from member 1 (file-sync). Changetype ADDED
Received an entry libkcal-718003322.370 from member 1 (file-sync). Changetype ADDED
Received an entry libkcal-1825554199.919 from member 1 (file-sync). Changetype ADDED
Received an entry libkcal-212074697.994 from member 1 (file-sync). Changetype ADDED
Received an entry libkcal-195063354.441 from member 1 (file-sync). Changetype ADDED
Received an entry libkcal-1849803553.251 from member 1 (file-sync). Changetype ADDED
Received an entry libkcal-702592820.790 from member 1 (file-sync). Changetype ADDED
Received an entry libkcal-1626820479.408 from member 1 (file-sync). Changetype ADDED
Received an entry libkcal-1902663747.341 from member 1 (file-sync). Changetype ADDED
Received an entry libkcal-250177976.645 from member 1 (file-sync). Changetype ADDED
Received an entry libkcal-1444606118.849 from member 1 (file-sync). Changetype ADDED
Received an entry libkcal-228963398.183 from member 1 (file-sync). Changetype ADDED
Received an entry libkcal-1176227288.215 from member 1 (file-sync). Changetype ADDED
Received an entry libkcal-440043102.647 from member 1 (file-sync). Changetype ADDED
Received an entry libkcal-51628082.604 from member 1 (file-sync). Changetype ADDED
Received an entry libkcal-1815499456.1051 from member 1 (file-sync). Changetype ADDED
Received an entry libkcal-936604093.687 from member 1 (file-sync). Changetype ADDED
Received an entry libkcal-1534626453.100 from member 1 (file-sync). Changetype ADDED
Received an entry libkcal-486957795.141 from member 1 (file-sync). Changetype ADDED
event sink of member 1 of type file-sync just sent all changes
Received an entry QPq8Uziafh from member 1 (file-sync). Changetype ADDED
Received an entry Yef4Su3JHF from member 1 (file-sync). Changetype ADDED
Received an entry 4sHbIX77EQ from member 1 (file-sync). Changetype ADDED
Received an entry oJeZiW1vvS from member 1 (file-sync). Changetype ADDED
Received an entry Q9LuTsBZoK from member 1 (file-sync). Changetype ADDED
Received an entry mhVk9ri2hc from member 1 (file-sync). Changetype ADDED
Received an entry WvYrEBATJE from member 1 (file-sync). Changetype ADDED
Received an entry U6orBn7RTz from member 1 (file-sync). Changetype ADDED
Received an entry At0cFJvtvy from member 1 (file-sync). Changetype ADDED
Received an entry jVeOFR94e8 from member 1 (file-sync). Changetype ADDED
Received an entry Uq2khHaQgH from member 1 (file-sync). Changetype ADDED
Received an entry oOyIJjJejr from member 1 (file-sync). Changetype ADDED
Received an entry LV87kx3I8m from member 1 (file-sync). Changetype ADDED
Received an entry fnAUrg8grp from member 1 (file-sync). Changetype ADDED
Received an entry SoSKSsf3yX from member 1 (file-sync). Changetype ADDED
Received an entry YbtlyePeAk from member 1 (file-sync). Changetype ADDED
Received an entry Hamq63So49 from member 1 (file-sync). Changetype ADDED
Received an entry DfUdq0HFRN from member 1 (file-sync). Changetype ADDED
Received an entry SG4kujIsFj from member 1 (file-sync). Changetype ADDED
Received an entry wqEOtrpYrs from member 1 (file-sync). Changetype ADDED
Received an entry quafYcltxX from member 1 (file-sync). Changetype ADDED
Received an entry RLInnlL8e3 from member 1 (file-sync). Changetype ADDED
Received an entry s47uYWQTkZ from member 1 (file-sync). Changetype ADDED
Received an entry LN7C6s0KIN from member 1 (file-sync). Changetype ADDED
Received an entry qvyyEEwTXG from member 1 (file-sync). Changetype ADDED
Received an entry kgtIWQIW4h from member 1 (file-sync). Changetype ADDED
Received an entry yezavGnrtP from member 1 (file-sync). Changetype ADDED
Received an entry oVJJfUMExq from member 1 (file-sync). Changetype ADDED
Received an entry 11E4NDOvw0 from member 1 (file-sync). Changetype ADDED
Received an entry oC0LiI9og5 from member 1 (file-sync). Changetype ADDED
Received an entry NiqqonBd2M from member 1 (file-sync). Changetype ADDED
Received an entry xdiM8Keuhn from member 1 (file-sync). Changetype ADDED
Received an entry wp57kOEJgx from member 1 (file-sync). Changetype ADDED
Received an entry 2GfCCLMkhn from member 1 (file-sync). Changetype ADDED
Received an entry 3RT5uDgeYl from member 1 (file-sync). Changetype ADDED
Received an entry 2NAjVyt7iK from member 1 (file-sync). Changetype ADDED
Received an entry tBdk1PRpQO from member 1 (file-sync). Changetype ADDED
Received an entry 9GV83YU2b9 from member 1 (file-sync). Changetype ADDED
Received an entry yBBWYQIT7a from member 1 (file-sync). Changetype ADDED
Received an entry Kg2nLIoUxE from member 1 (file-sync). Changetype ADDED
Received an entry aksijjYaF7 from member 1 (file-sync). Changetype ADDED
Received an entry 1E87rILm8R from member 1 (file-sync). Changetype ADDED
Received an entry 45swU3ADzT from member 1 (file-sync). Changetype ADDED
Received an entry 2RLLtXnvcS from member 1 (file-sync). Changetype ADDED
Received an entry 6on2NgpnNC from member 1 (file-sync). Changetype ADDED
Received an entry Fi7Ev0ZQgO from member 1 (file-sync). Changetype ADDED
Received an entry j3PixdamjN from member 1 (file-sync). Changetype ADDED
Received an entry gVeBzuKmem from member 1 (file-sync). Changetype ADDED
Received an entry Vv8bbsEsPj from member 1 (file-sync). Changetype ADDED
Received an entry GhZ6pYJ7uR from member 1 (file-sync). Changetype ADDED
Received an entry 9mVIBEI7hC from member 1 (file-sync). Changetype ADDED
Received an entry 0vknQHkjwB from member 1 (file-sync). Changetype ADDED
Received an entry egd0rmf2mC from member 1 (file-sync). Changetype ADDED
Received an entry yKRFvwsvtJ from member 1 (file-sync). Changetype ADDED
Received an entry YERGTVg3ks from member 1 (file-sync). Changetype ADDED
Received an entry a8Uvifx2CE from member 1 (file-sync). Changetype ADDED
Received an entry lKdHhselEf from member 1 (file-sync). Changetype ADDED
Received an entry BPS5dYdLyR from member 1 (file-sync). Changetype ADDED
Received an entry OfaQeebuyr from member 1 (file-sync). Changetype ADDED
Received an entry yft5BCzFo2 from member 1 (file-sync). Changetype ADDED
Received an entry QMyHLxrutS from member 1 (file-sync). Changetype ADDED
Received an entry U6bZjjOHwU from member 1 (file-sync). Changetype ADDED
Received an entry 4pJWfhPMkK from member 1 (file-sync). Changetype ADDED
Received an entry nwV0VQsdtb from member 1 (file-sync). Changetype ADDED
Received an entry CnV4BcuDIT from member 1 (file-sync). Changetype ADDED
Received an entry JpDexh0cdP from member 1 (file-sync). Changetype ADDED
Received an entry IKgf2fjGfh from member 1 (file-sync). Changetype ADDED
Received an entry PXw4NNn4kq from member 1 (file-sync). Changetype ADDED
Received an entry wAi11uYmAM from member 1 (file-sync). Changetype ADDED
Received an entry BJAgPBzINt from member 1 (file-sync). Changetype ADDED
Received an entry jbuvFcRX6l from member 1 (file-sync). Changetype ADDED
Received an entry h9BQnoPsYQ from member 1 (file-sync). Changetype ADDED
Received an entry cBEeUA9Q1K from member 1 (file-sync). Changetype ADDED
Received an entry iFak66TDAa from member 1 (file-sync). Changetype ADDED
contact sink of member 1 of type file-sync just sent all changes
Main sink of member 1 of type file-sync just sent all changes
event sink of member 2 of type moto-sync just sent all changes
contact sink of member 2 of type moto-sync just sent all changes
Main sink of member 2 of type moto-sync just sent all changes
All clients sent changes or error
All conflicts have been reported
Sent an entry libkcal-364545872.490 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-event-0 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-event-1 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-event-2 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-event-3 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-event-4 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-event-5 to member 2 (moto-sync). Changetype ADDED
Sent an entry libkcal-441694329.171 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-event-6 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-event-7 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-event-8 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-event-9 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-event-10 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-event-11 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-event-12 to member 2 (moto-sync). Changetype ADDED
Sent an entry libkcal-1849803553.251 to member 2 (moto-sync). Changetype ADDED
Sent an entry libkcal-702592820.790 to member 2 (moto-sync). Changetype ADDED
Sent an entry libkcal-1626820479.408 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-event-13 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-event-14 to member 2 (moto-sync). Changetype ADDED
Sent an entry libkcal-1444606118.849 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-event-15 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-event-16 to member 2 (moto-sync). Changetype ADDED
Sent an entry libkcal-440043102.647 to member 2 (moto-sync). Changetype ADDED
Sent an entry libkcal-51628082.604 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-event-17 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-event-18 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-event-19 to member 2 (moto-sync). Changetype ADDED
Sent an entry libkcal-486957795.141 to member 2 (moto-sync). Changetype ADDED
event sink of member 2 of type moto-sync committed all changes.
event sink of member 1 of type file-sync committed all changes.
contact sink of member 1 of type file-sync committed all changes.
Main sink of member 1 of type file-sync committed all changes.
Sent an entry moto-contact-10,11,12,13 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-14,15 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-16,17,18,19 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-20,21,22 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-23,24 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-25,26,27,28 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-29,30 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-31,32,33 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-34,35,36,37,38,39 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-40,41,42 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-43,44 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-45,46,47,48 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-49,50 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-51,52 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-53,54,55 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-56,57,58 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-59,60,61 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-62,63,64 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-65,66 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-67,68 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-69,70 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-71,72 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-73,74 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-75,76 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-77 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-78,79,80 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-81,82,83 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-84,85 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-86,87,88,89,90 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-91,92 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-93 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-94 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-95,96,97 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-98,99 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-100,101 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-102,103 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-104,105,106,107 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-108,109 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-110,111,112 to member 2 (moto-sync). Changetype ADDED
contact sink of member 2 of type moto-sync had an error: Timeout.
Sent an entry moto-contact-113,114,115,116,117 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-118,119,120 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-121,122,123 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-124 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-125 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-126,127 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-128 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-129,130 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-131 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-132,133,134,135,136 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-137,138,139 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-140 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-141 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-142,143,144,145 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-146,147,148 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-149,150 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-151,152 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-153,154 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-155,156 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-157,158,159,160,161,162 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-163,164 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-165,166 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-167,168 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-169,170 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-171 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-172,173 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-174,175 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-176,177 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-178 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-179,180,181 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-182,183,184 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-185 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-186,187,188,189 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-190,191 to member 2 (moto-sync). Changetype ADDED
Sent an entry moto-contact-192,193,194,195 to member 2 (moto-sync). Changetype ADDED
Main sink of member 2 of type moto-sync committed all changes.

The plugins involved are moto-sync and file-sync. A quick debug indicates a condition problem:

(gdb) bt    
#0  0xb7ab98f0 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0xb7d9a1bd in pthread_cond_wait () from /lib/libc.so.6
#2  0xb7eea9dc in osync_engine_synchronize_and_block (engine=0x80aeee8, 
    error=0xbffc0a94)
    at /srv/code/opensync/opensync/opensync/engine/opensync_engine.c:1458
#3  0x0804cebf in main (argc=3, argv=0xbffc0b44)
    at /srv/code/opensync/multisync/trunk/tools/msynctool.c:492
(gdb) thread 2
[Switching to thread 2 (Thread 0xb0bf4b90 (LWP 27029))]#0  0xb7d84c1d in poll ()
   from /lib/libc.so.6
(gdb) bt
#0  0xb7d84c1d in poll () from /lib/libc.so.6
#1  0xb7e52a5f in ?? () from /usr/lib/libglib-2.0.so.0
....
#25 0xb7e52dc7 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0

[Likewise for all threads from 3 to 12]

Change History

comment:1 Changed 6 years ago by felixmoeller

  • Version changed from 0.39 to 0.36

the version was wrong.

comment:2 Changed 6 years ago by tuju

  • Version changed from 0.36 to 0.38
  • Summary changed from msynctool will hang after successful synchronization to [NEEDINFO] msynctool will hang after successful synchronization

Could you try again, at least for me osynctool has not hanged after successfull sync.

comment:3 Changed 6 years ago by mkoller

  • Priority changed from normal to high

It seems the hang is always happening when one of the members falls into a timeout.

I have done now (with todays SVN version) a sync between 2 file-sync members, where the directory of the first held 599 contacts and the second was empty.

Also this syncing fell into a timeout and osynctool hung until I killed it. Doing a file/file sync with only 58 contacts, I had no timeout and osynctool ended and exited successfully.

This seems to be the same problem I described in http://www.opensync.org/ticket/987

Note: See TracTickets for help on using tickets.