|
Re: sync-engine segmentation fault - kdepim
From: Pedro Brandão <pmbrandao@gm...> - 2008-05-20 12:15
Attachments: HTML-Email.html |
|
Dear Mark, Sorry for the delay in answering... I've tried to clean my system so to correct any version issues. This is an account of that and the install part. Went through the installed packages list purging all that I found related to the installed packages from the howtos $> dpkg-query -l *sync* $> dpkg-query -l *dccm* $> dpkg-query -l *rra* $> dpkg-query -l *rapi* $> dpkg-query -l *multis* $> dpkg-query -l *opensync* Packages kitchensync and libpisync1 were not remove as they are used by kdepim and gnome-pilot respectively. Did $> rm -rf ~/.synce And removed the python-wbxml package. Installed packages: # apt-get install odccm librra0-tools librapi2-tools multisync-tools opensync-plugin-kdepim opensync-plugin-synce Removed the byte compiled file: # rm -f /usr/lib/opensync/python-plugins/synce-opensync-plugin-2x.pyc Tested from what package is sync-engine: $> whereis sync-engine sync-engine: /usr/bin/sync-engine $> dpkg-query -S /usr/bin/sync-engine synce-sync-engine: /usr/bin/sync-engine $> dpkg-query -s synce-sync-engine Package: synce-sync-engine Status: install ok installed Priority: optional Section: utils Installed-Size: 752 Maintainer: Jonny Lamb <jonnylamb@jo...> Architecture: all Version: 0.11.1-0ubuntu0~ppa5 Depends: odccm, python, python-central (>= 0.6.5), python-dateutil, python-dbus, python-gobject, python-libxml2, python-libxslt1, python-rapi2, python-rra, python-rtfcomp, python-tz Description: [...] $>dpkg-query -s odccm Package: odccm Status: install ok installed Priority: optional Section: utils Installed-Size: 152 Maintainer: Jonny Lamb <jonnylamb@jo...> Architecture: i386 Version: 0.11.1-0ubuntu0~ppa2 Depends: libc6 (>= 2.4), libdbus-1-3 (>= 1.1.1), libdbus-glib-1-2 (>= 0.74), libglib2.0-0 (>= 2.16.0), libgnet2.0-0 (>= 2.0.7), libhal1 (>= 0.5.8.1), libsynce0 Conffiles: /etc/init.d/odccm 93c8a5cce00f5c283f42ce6bab016fae /etc/dbus-1/system.d/odccm.conf 82c926b161e3d08d3ffc45c935a00e8b Description: [...] $>dpkg-query -s librra0-tools Package: librra0-tools Status: install ok installed Priority: optional Section: libs Installed-Size: 244 Maintainer: Jonny Lamb <jonnylamb@jo...> Architecture: i386 Source: librra Version: 0.11-hardy1-synce1 Depends: libc6 (>= 2.7-1), libmimedir0, librapi2, librra0, libsynce0 Description: [...] $>dpkg-query -s librapi2-tools Package: librapi2-tools Status: install ok installed Priority: optional Section: utils Installed-Size: 252 Maintainer: Jonny Lamb <jonnylamb@jo...> Architecture: i386 Source: librapi2 Version: 0.11.1-0ubuntu0~ppa1 Depends: libc6 (>= 2.4), librapi2, libsynce0 Description: [...] Ran: $>/usr/bin/sync-engine Traceback (most recent call last): File "/usr/bin/sync-engine", line 46, in <module> from SyncEngine.kernel import SyncEngine File "/usr/lib/python2.5/site-packages/SyncEngine-0.11-py2.5.egg/SyncEngine/kernel.py", line 48, in <module> from airsync import AirsyncThread File "/usr/lib/python2.5/site-packages/SyncEngine-0.11-py2.5.egg/SyncEngine/airsync.py", line 35, in <module> import pywbxml ImportError: No module named pywbxml Installed python-wbxml (note that the python-wbxml comes from http://ppa.launchpad.net hardy/main ) Ran: $>/usr/bin/sync-engine SynCE sync-engine starting up Traceback (most recent call last): File "/usr/bin/sync-engine", line 84, in <module> configObj = Config.Config(progopts) File "/usr/lib/python2.5/site-packages/SyncEngine-0.11-py2.5.egg/SyncEngine/config.py", line 292, in __init__ oldconf = os.path.join(self.path,"config.xml") AttributeError: Config instance has no attribute 'path' Downloaded config.xml $> cd ~/.synce/ $> wget http://synce.svn.sf.net/svnroot/synce/trunk/sync-engine/config/config.xml Ran: $>/usr/bin/sync-engine SynCE sync-engine starting up 2008-05-20 11:18:28,896 DEBUG syncengine : running main loop 2008-05-20 11:18:28,897 DEBUG syncengine : creating SyncEngine object 2008-05-20 11:18:28,941 DEBUG syncengine : installing signal handlers Connected the device: (output of sync-engine) 2008-05-20 11:20:12,354 INFO engine.syncengine.kernel : _CBDeviceConnected: device connected at path /org/synce/odccm/Device/_1E06A6BE_D3EC_50B4_360A_C7DEE7877252_ Entity: line 109: parser error : Comment not terminated <!-- <AutoSyncCommand>xterm -e msynctool <!-- <AutoSyncCommand>xterm -e msynctool --sync wm5sync</AutoSyncCommand> --> ^ 2008-05-20 11:20:12,385 ERROR dbus.connection : Exception in handler for D-Bus signal: Traceback (most recent call last): File "/var/lib/python-support/python2.5/dbus/connection.py", line 214, in maybe_handle_message self._handler(*args, **kwargs) File "/usr/lib/python2.5/site-packages/SyncEngine-0.11-py2.5.egg/SyncEngine/kernel.py", line 185, in _CBDeviceConnected self.config.UpdateConfig() File "/usr/lib/python2.5/site-packages/SyncEngine-0.11-py2.5.egg/SyncEngine/config.py", line 344, in UpdateConfig confdoc = libxml2.parseDoc(cf) File "/var/lib/python-support/python2.5/libxml2.py", line 1264, in parseDoc if ret is None:raise parserError('xmlParseDoc() failed') parserError: xmlParseDoc() failed The current config.xml has the AutoSyncCommand and the Disable commented. Uncommented, leaving it disabled and sync-engine went through (after restarting it). Tried to list partnerships: $>list_partnerships.py AVAILABLE DEVICE PARTNERSHIPS Index Name Device Host SyncItems ----- ---- ------ ---- --------- Traceback (most recent call last): File "/usr/bin/list_partnerships.py", line 31, in <module> id,guid,name,hostname,devicename,storetype,items = pship ValueError: need more than 6 values to unpack The /usr/share/pyshared/SyncEngine/kernel.py seems to have the correct number of parameters (don't know if it is compiled to somewhere). >From the ouput of sync-engine 2 partnerships already exist (with the same computer as they are for windows and linux). However they are not configured in ~/.synce as this is a "new install" and they were created on the device prior to. To delete them I installed synce-kpm (the delete_partnerships.py gave the same error as the list_partnerships.py) # apt-get install synce-kpm Using synce-kpm I deleted the old Linux partnership and created a new one: $>create_partnership.py "Linux" "Tasks,Calendar" Creating partnership... Partnership created Seeing the created groups for msync: $>msynctool --showgroup synce-kdepim Groupname: synce-kdepim Member 1: synce-opensync-plugin No Configuration found: Member has not been configured Member 2: kdepim-sync No Configuration found: This member has no configuration options Doing the sync: $>msynctool --sync synce-kdepim Synchronizing group "synce-kdepim" The previous synchronization was unclean. Slow-syncing DEBUG:SynCE:Connect() called Member 1 of type synce-opensync-plugin just connected Member 2 of type kdepim-sync just connected All clients connected or error DEBUG:SynCE:get_changeinfo() called DEBUG:SynCE:slow sync requested for Contacts DEBUG:SynCE:slow sync requested for Calendar DEBUG:SynCE:slow sync requested for Tasks INFO:SynCE:initiating device synchronization INFO:SynCE:waiting for engine to complete sync Received an entry 2BqbylCZmn with data of size 4 from member 2. Changetype ADDED [... ommited several entries ...] Received an entry wxnRN3X9Yt with data of size 4 from member 2. Changetype ADDED Member 2 of type kdepim-sync just sent all changes DEBUG:SynCE:disconnect() called Member 1 of type synce-opensync-plugin just disconnected Member 2 of type kdepim-sync just disconnected All clients have disconnected The sync failed: Unable to read from one of the members Error synchronizing: Unable to read from one of the members Pipe closed! Exiting. Pipe closed! Exiting. sync-engine crashed (seg fault) On trying to debug the sync-engine: * using pdb: the seg fault killed pdb * using pydb: the seg fault made pydb go to near 90% cpu and never finish * using gdb on python and then doing execfile('/usr/bin/sync-engine') on the python shell. From the gdb output: 2008-05-20 12:54:02,350 DEBUG RRASyncManager : No RRA type subscriptions - ignoring RRA sync items [New Thread 0xb6346b90 (LWP 28064)] 2008-05-20 12:54:02,355 DEBUG engine.airsync.AirsyncThread : run: listening for Airsync requests 2008-05-20 12:54:02,356 DEBUG RRAThread : run: starting RRA event loop [rra_syncmgr_start_events:655] No valid subscriptions 2008-05-20 12:54:02,381 DEBUG syncengine : installing signal handlers 2008-05-20 12:54:07,451 INFO engine.syncengine.kernel : Synchronize: manual sync triggered 2008-05-20 12:54:07,452 INFO engine.syncengine.kernel : Synchronize: starting manual sync with partnership P1: id=0x7706f31, guid="{618F0B5B-7062-DDC4-DCFC-3139A7FA2224}", hostname="khika", name="Linux", sync_items=[ Calendar, Tasks ] 2008-05-20 12:54:07,452 INFO engine.partnerships.Partnership : loading itemDB for item 0 2008-05-20 12:54:07,452 INFO engine.partnerships.Partnership : LoadItemDB: no DB available for item 0 2008-05-20 12:54:07,452 INFO engine.partnerships.Partnership : loading itemDB for item 7 2008-05-20 12:54:07,452 INFO engine.partnerships.Partnership : LoadItemDB: no DB available for item 7 2008-05-20 12:54:07,453 INFO engine.syncengine.kernel : Synchronize: itemDB loaded [New Thread 0xb5b45b90 (LWP 28093)] 2008-05-20 12:54:07,460 DEBUG engine.synchandler.SyncHandler : run: sending request to device <sync xmlns="http://schemas.microsoft.com/as/2004/core" type="Interactive"> <partner id="{618F0B5B-7062-DDC4-DCFC-3139A7FA2224}"/> </sync> Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb5b45b90 (LWP 28093)] 0xb7586150 in CeSyncStart () from /usr/lib/librapi.so.2 (gdb) bt #0 0xb7586150 in CeSyncStart () from /usr/lib/librapi.so.2 #1 0xb7559b4d in ?? () from /usr/lib/python2.5/site-packages/pyrapi2.so #2 0x0867fcf8 in ?? () #3 0x00000000 in ?? () Hope that this helps somehow, Thank you for the help, --- Pedro Brandão |
| Thread | Author | Date | |
|---|---|---|---|
| sync-engine segmentation fault - kdepim | Pedro Brandão <pmbrandao@gm...> |
|
|
|
|
|
|
|
|
|
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use