Hi,
I have noticed a scenario where multisync crashes (segmentation fault).
I am running multisync CVS snapshot with bluetooth (IRMC) connected to a
Sony Ericsson T68i.
Multisync crashes when I have removed a ToDo-entry in the phone and then
tries to synchronize. I have traced the error to the syncobj_delete
function in evolution_sync.c because the last debug message is:
[evo2-sync] INFORMATION: start: delete
and it is the function evo2_tasks_modify that segfaults. A backtrace
gives:
#0 evo2_tasks_modify (env=0x80f6c48, data=0x0,
uid=0x8143268 "[EMAIL PROTECTED]", uidret=0x0,
uidretlen=0x0) at evolution_etodo.c:39
#1 0x40dc376c in syncobj_delete (env=0x80f6c48,
uid=0x8143268 "[EMAIL PROTECTED]",
objtype=SYNC_OBJECT_TYPE_TODO, softdelete=0) at evolution_sync.c:338
#2 0x0805b95b in sync_do_syncobj_modifies (thissync=0x80eee20,
conn=0x80f6c48, plugin=0x80bafa8, change_list=0x0) at
syncengine.c:1042
#3 0x0805c57d in sync_process_changes (localconn=0x8113518,
remoteconn=0x80f6c48, localchanges=0x81f4ea0, remotechanges=0x0,
newdbs=SYNC_OBJECT_TYPE_UNKNOWN, thissync=0x80eee20) at
syncengine.c:1376
#4 0x0805aac3 in sync_main (data=0x80eee20) at syncengine.c:618
And the problem is this:
evo2_tasks_modify (env=0x80f6c48, data=0x0,
uid=0x8143268 "[EMAIL PROTECTED]", uidret=0x0,
uidretlen=0x0) at evolution_etodo.c:39
39 *uidretlen = 0;
uidretlen is 0x0 which is a fault to dereference. The call to this
function is evo2_tasks_modify(env, NULL, uid, NULL, NULL) where the last
parameter is the int pointer uidret. Maybe this is already fixed?
The call to evo2_calendar_modify is similar and I suspect that deleting
a calendar entry in the phone will also cause multisync to crash. I have
not tested this yet.
I have not provided a patch because I am not sure what the intended
behaviour really is.
/Jonas
--
Jonas Birm� ([EMAIL PROTECTED]) Jabber: [EMAIL PROTECTED]
http://home.birme.se/~birme/ IRC: [EMAIL PROTECTED]
|
+-----< Abandon the search for Truth; settle for a good fantasy >--
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Multisync-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/multisync-devel