Re: sync_server crashing..

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 16 May 2008 19:18:04 +0000 (GMT), "Andy Fiddaman" <cyrus@xxxxxxxxxxxx> said:
> 
> Hi,
> 
> I'm hoping that someone who is familiar with the replication code can
> help me with a problem I'm seeing with Cyrus 2.3.12.
> 
> I have a two server replicated setup and sync_server is occasionally
> crashing. Once it's crashed once it keeps on crashing until I completely
> reset replication by snapshotting the master, removing the sync logs
> and rsyncing the snapshot to the replica.
> 
> The crash is happening in sync_cacheitem_size()
> 
> Core was generated by `sync_server'.
> Program terminated with signal 11, Segmentation fault.
>
> [...]
>
> This last itemlen pushes the pointer out of the allocated memory and
> causes the crash.
> 
> Any ideas on whether these entries look right and where I should look
> next
> to debug it?

You have a corrupted cache file.  Various things could have caused this,
it isn´t easy to know what it was.

Your fix works because once you rsync, there is no mention of the folder
with the problem in the sync log any more, however next time anything
happens on that folder you get the crash again.

1) figure out what folder it is
2) reconstruct it
3) profit???

Enjoy,

Bron.
-- 
  Bron Gondwana
  brong@xxxxxxxxxxx

----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux