Am 2011-08-05 12:09, schrieb Patrick Ohly:
"But I can even change" - that sounds like you had a
problem, but it
isn't clear to me which one.
After a restart, this part works. it wasnt
possible to change any
settings in a created device. if i click to my phone the checkboxes on
which i can select the parts which should be synchronized doesnt appear.
But now its fine.
> [ERROR] Background sync daemon has gone.
Okay, so it still crashes. Can you help me debug that?
sure!
Then run the sync. You should see gdb telling you about a crash.
Once
that happens, in gdb do:
# thread apply all bt
What's the output?
#######################
(gdb) run
Starting program: /usr/libexec/syncevo-dbus-server
[Thread debugging using libthread_db enabled]
warning: the debug information found in
"/usr/lib/debug//usr/lib/libxml2.so.2.7.8" does not match
"/usr/lib/libxml2.so.2" (CRC mismatch).
warning: the debug information found in
"/usr/lib/debug/usr/lib/libxml2.so.2.7.8" does not match
"/usr/lib/libxml2.so.2" (CRC mismatch).
[INFO] /usr/libexec/syncevo-dbus-server: ready to run
[INFO] memo: inactive
[INFO] todo: inactive
[INFO] tasks: inactive
[INFO] addressbook: inactive
[INFO] Server sending SAN
[INFO] calendar: starting first time sync, two-way
[New Thread 0xb7f82b70 (LWP 3424)]
Local data changes to be applied during synchronization:
*** calendar ***
Comparison was impossible.
[INFO] calendar: started
[INFO] calendar: received 1
[INFO] calendar: added 0, updated 0, removed 0
[INFO] calendar: received 2
[INFO] calendar: added 0, updated 0, removed 0
[INFO] calendar: received 3
[INFO] calendar: added 0, updated 0, removed 0
[INFO] calendar: received 4
[INFO] calendar: added 0, updated 0, removed 0
[INFO] calendar: adding "xxx Sim Pr�fung"
Program received signal SIGSEGV, Segmentation fault.
g_variant_is_trusted (value=0x0)
at /build/buildd/glib2.0-2.28.6/./glib/gvariant-core.c:600
600 /build/buildd/glib2.0-2.28.6/./glib/gvariant-core.c: Datei oder
Verzeichnis nicht gefunden.
in /build/buildd/glib2.0-2.28.6/./glib/gvariant-core.c
(gdb) thread apply all bt
Thread 2 (Thread 0xb7f82b70 (LWP 3424)):
#0 0x0012e416 in __kernel_vsyscall ()
#1 0x00646f76 in __poll (fds=0x8210bd8, nfds=3, timeout=-1)
at ../sysdeps/unix/sysv/linux/poll.c:87
#2 0x0039984b in g_poll (fds=0x8210bd8, nfds=3, timeout=-1)
at /build/buildd/glib2.0-2.28.6/./glib/gpoll.c:132
#3 0x003891af in g_main_context_poll (context=0x8210150, block=3774496,
dispatch=1, self=<value optimized out>)
at /build/buildd/glib2.0-2.28.6/./glib/gmain.c:3404
#4 g_main_context_iterate (context=0x8210150, block=3774496, dispatch=1,
self=<value optimized out>)
at /build/buildd/glib2.0-2.28.6/./glib/gmain.c:3086
#5 0x0038992b in g_main_loop_run (loop=0x8210140)
at /build/buildd/glib2.0-2.28.6/./glib/gmain.c:3299
#6 0x00978304 in gdbus_shared_thread_func (data=0x0)
at /build/buildd/glib2.0-2.28.6/./gio/gdbusprivate.c:276
#7 0x003b22df in g_thread_create_proxy (data=0x82101e0)
at /build/buildd/glib2.0-2.28.6/./glib/gthread.c:1897
#8 0x00461e99 in start_thread (arg=0xb7f82b70) at pthread_create.c:304
#9 0x0065573e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
Thread 1 (Thread 0xb7fce850 (LWP 3402)):
#0 g_variant_is_trusted (value=0x0)
at /build/buildd/glib2.0-2.28.6/./glib/gvariant-core.c:600
#1 0x003c57d0 in g_variant_builder_add_value (builder=0xbfffc9a0,
value=0x0)
at /build/buildd/glib2.0-2.28.6/./glib/gvariant.c:3081
#2 0x003c717a in g_variant_valist_new (str=0xbfffca30, app=0xbfffca4c)
at /build/buildd/glib2.0-2.28.6/./glib/gvariant.c:4093
#3 0x003c73e8 in g_variant_new_va (format_string=0x1cd20d7 ")",
endptr=0x0,
app=0xbfffca4c) at /build/buildd/glib2.0-2.28.6/./glib/gvariant.c:4248
#4 0x003c7495 in g_variant_new (format_string=0x1cd20d5 "(s)")
at /build/buildd/glib2.0-2.28.6/./glib/gvariant.c:4188
#5 0x01cc758f in e_gdbus_cal_call_create_object_sync (proxy=0x820f578,
in_calobj=0x8435fe8 "BEGIN:VEVENT\r\nSUMMARY:THW Sim
Pr\374fung\r\nDTSTART:20070420T230000Z\r\nDTEND:20070421T225900Z\r\nBEGIN:VALARM\r\nTRIGGER;VALUE=DURATION:PT45M\r\nACTION:DISPLAY\r\nEND:VALARM\r\nEND:VEVENT\r\n",
out_uid=0xbfffcadc, cancellable=0x0, error=0xbfffcc74)
at e-gdbus-egdbuscal.c:3342
#6 0x01ca688c in e_cal_create_object (ecal=0x81ee9a8, icalcomp=0x84338f0,
uid=0xbfffcc30, error=0xbfffcc74) at e-cal.c:3550
#7 0x015f4d5b in SyncEvo::EvolutionCalendarSource::insertItem (
this=0x81d73e8, luid=..., item=..., raw=false)
at
/work/runtests/head/syncevolution/src/backends/evolution/EvolutionCalendarSource.cpp:416
#8 0x00261e85 in SyncEvo::TrackingSyncSource::insertItem (this=0x81d73e8,
luid=..., item=...)
at
/work/runtests/head/syncevolution/src/syncevo/TrackingSyncSource.cpp:142
#9 0x001d7b7f in SyncEvo::SyncSourceSerialize::insertItemAsKey (
this=0x81d78b4, aItemKey=0x81a4ac0, aID=0x0, newID=0xbfffce98)
at /work/runtests/head/syncevolution/src/syncevo/SyncSource.cpp:648
#10 0x001e7b35 in operator() (function_obj_ptr=..., a0=0x81a4ac0,
a1=0xbfffce98) at /usr/include/boost/bind/mem_fn_template.hpp:384
#11 operator()<short unsigned int, boost::_mfi::mf3<short unsigned int,
SyncEvo::SyncSourceSerialize, sysync::KeyType*, const
sysync::ItemIDType*, sysync::ItemIDType*>,
boost::_bi::list2<sysync::KeyType*&, sysync::ItemIDType*&> > (
function_obj_ptr=..., a0=0x81a4ac0, a1=0xbfffce98)
at /usr/include/boost/bind/bind.hpp:440
#12 operator()<sysync::KeyType*, sysync::ItemIDType*>
(function_obj_ptr=...,
a0=0x81a4ac0, a1=0xbfffce98)
at /usr/include/boost/bind/bind_template.hpp:61
#13
boost::detail::function::function_obj_invoker2<boost::_bi::bind_t<unsigned
short, boost::_mfi::mf3<unsigned short, SyncEvo::SyncSourceSerialize,
sysync::KeyType*, sysync::ItemIDType const*, sysync::ItemIDType*>,
boost::_bi::list4<boost::_bi::value<SyncEvo::SyncSourceSerialize*>,
boost::arg<1>, boost::_bi::value<sysync::ItemIDType const*>,
boost::arg<2> > >, unsigned short, sysync::KeyType*,
sysync::ItemIDType*>::invoke (function_obj_ptr=..., a0=0x81a4ac0,
a1=0xbfffce98)
at /usr/include/boost/function/function_template.hpp:132
#14 0x001d76b8 in operator() (this=0x81d7808, aItemKey=0x81a4ac0,
newID=0xbfffce98, parent=...)
at /usr/include/boost/function/function_template.hpp:1013
#15 SyncEvo::SyncSourceLogging::insertItemAsKey(sysync::KeyH,
sysync::ItemID, const boost::function<sysync::TSyError(sysync::KeyType*,
sysync::ItemIDType*)> &)
(this=0x81d7808, aItemKey=0x81a4ac0, newID=0xbfffce98, parent=...)
at /work/runtests/head/syncevolution/src/syncevo/SyncSource.cpp:1110
#16 0x001e7c73 in operator() (function_obj_ptr=..., a0=0x81a4ac0,
a1=0xbfffce98) at /usr/include/boost/bind/mem_fn_template.hpp:384
#17 operator()<short unsigned int, boost::_mfi::mf3<short unsigned int,
SyncEvo::SyncSourceLogging, sysync::KeyType*, sysync::ItemIDType*, const
boost::function<sysync::TSyError(sysync::KeyType*,
sysync::ItemIDType*)>&>, boost::_bi::list2<sysync::KeyType*&,
sysync::ItemIDType*&> > (function_obj_ptr=..., a0=0x81a4ac0,
a1=0xbfffce98) at /usr/include/boost/bind/bind.hpp:440
#18 operator()<sysync::KeyType*, sysync::ItemIDType*>
(function_obj_ptr=...,
a0=0x81a4ac0, a1=0xbfffce98)
at /usr/include/boost/bind/bind_template.hpp:61
#19
boost::detail::function::function_obj_invoker2<boost::_bi::bind_t<short
unsigned int, boost::_mfi::mf3<short unsigned int,
SyncEvo::SyncSourceLogging, sysync::KeyType*, sysync::ItemIDType*, const
boost::function<sysync::TSyError(sysync::KeyType*,
sysync::ItemIDType*)>&>,
boost::_bi::list4<boost::_bi::value<SyncEvo::SyncSourceLogging*>,
boost::arg<1>, boost::arg<2>,
boost::_bi::value<boost::function<sysync::TSyError(sysync::KeyType*,
sysync::ItemIDType*)> > > >, short unsigned int, sysync::KeyType*,
sysync::ItemIDType*>::invoke(boost::detail::function::function_buffer &,
sysync::KeyType *, sysync::ItemIDType *) (
function_obj_ptr=..., a0=0x81a4ac0, a1=0xbfffce98)
at /usr/include/boost/function/function_template.hpp:132
#20 0x001ef100 in operator() (aContext=0x81d73e8, aItemKey=0x81a4ac0,
newID=0xbfffce98) at
/usr/include/boost/function/function_template.hpp:1013
#21 SyncEvo::SyncEvolution_InsertItemAsKey (aContext=0x81d73e8,
aItemKey=0x81a4ac0, newID=0xbfffce98)
at
/work/runtests/head/syncevolution/src/syncevo/SynthesisDBPlugin.cpp:808
#22 0x006fa8a6 in sysync::TDB_Api::InsertItemAsKey (this=0x8224280,
aItemKey=0x81a4ac0, parentID=0x8272d5 "", newID=...)
at
/work/runtests/head/libsynthesis/src/DB_interfaces/api_db/dbapi.cpp:1922
#23 0x007082b3 in sysync::TPluginApiDS::apiAddItem (this=0x8223888,
aItem=...,
aLocalID=...)
at
/work/runtests/head/libsynthesis/src/DB_interfaces/api_db/pluginapids.cpp:1305
#24 0x0074572c in sysync::TCustomImplDS::implProcessItem (this=0x8223888,
aItemP=0x8156f60, aStatusCommand=...)
at /work/runtests/head/libsynthesis/src/sysync/customimplds.cpp:2795
#25 0x007a46f5 in sysync::TStdLogicDS::logicProcessRemoteItem
(this=0x8223888,
syncitemP=0x8156f60, aStatusCommand=...,
aVisibleInSyncset=@0xbfffd0ed,
aGUID=0x0)
at /work/runtests/head/libsynthesis/src/sysync/stdlogicds.cpp:1278
#26 0x007637a8 in sysync::TLocalEngineDS::engProcessRemoteItemAsServer (
this=0x8223888, aSyncItemP=0x8156f60, aStatusCommand=...)
at /work/runtests/head/libsynthesis/src/sysync/localengineds.cpp:6022
#27 0x0076f583 in sysync::TLocalEngineDS::engProcessRemoteItem (
this=0x8223888, syncitemP=0x8156f60, aStatusCommand=...)
at /work/runtests/head/libsynthesis/src/sysync/localengineds.cpp:4927
#28 0x00762578 in
sysync::TLocalEngineDS::engProcessSyncOpItem(sysync::<anonymous enum>,
SmlItemPtr_t, SmlMetInfMetInfPtr_t, sysync::TStatusCommand &) (
this=0x8223888, aSyncOp=sysync::sop_replace, aItemP=0x81df150,
aMetaP=0x0,
aStatusCommand=...)
at /work/runtests/head/libsynthesis/src/sysync/localengineds.cpp:5087
#29 0x007cb82c in
sysync::TSyncSession::processSyncOpItem(sysync::<anonymous enum>,
SmlItemPtr_t, SmlMetInfMetInfPtr_t, sysync::TLocalEngineDS *,
sysync::TStatusCommand &, bool &) (this=0x822b288,
aSyncOp=sysync::sop_replace,
aItemP=0x81df150, aMetaP=0x0, aLocalSyncDatastore=0x8223888,
aStatusCommand=..., aQueueForLater=@0xbfffd2af)
at /work/runtests/head/libsynthesis/src/sysync/syncsession.cpp:3846
#30 0x007c3af8 in sysync::TSyncOpCommand::execute (this=0x84326b0)
at /work/runtests/head/libsynthesis/src/sysync/synccommand.cpp:2577
#31 0x007d1381 in sysync::TSyncSession::process (this=0x822b288,
aSyncCommandP=0x84326b0)
at /work/runtests/head/libsynthesis/src/sysync/syncsession.cpp:2531
#32 0x007d1867 in sysync::TSyncSession::ReplaceCmd (this=0x822b288,
aContentP=0x8237698)
at /work/runtests/head/libsynthesis/src/sysync/syncsession.cpp:5731
#33 0x007b4e63 in sysync::TSyncAppBase::ReplaceCmd (this=0x81d5f80,
userData=0x822b288, aContentP=0x8237698)
at /work/runtests/head/libsynthesis/src/sysync/syncappbase.cpp:2239
#34 0x007b4f1d in sysync::smlReplaceCmdCallback (id=0x81ed050,
userData=0x81dcf58, pContent=0x8237698)
at /work/runtests/head/libsynthesis/src/sysync/syncappbase.cpp:2414
#35 0x00ff7fe1 in mgrProcessNextCommand (id=0x81ed050,
mode=SML_NEXT_COMMAND)
at
/work/runtests/head/libsynthesis/src/syncml_tk/src/sml/mgr/all/mgrcmddispatcher.c:484
#36 smlProcessData (id=0x81ed050, mode=SML_NEXT_COMMAND)
at
/work/runtests/head/libsynthesis/src/syncml_tk/src/sml/mgr/all/mgrcmddispatcher.c:146
#37 0x007ab741 in sysync::TSyncAgent::ServerProcessingStep (this=0x822b288,
aStepCmd=@0xbfffda3a, aInfoP=0xbfffd85c)
at /work/runtests/head/libsynthesis/src/sysync/syncagent.cpp:3157
#38 0x007b20d6 in sysync::TSyncAgent::ServerSessionStep (this=0x822b288,
aStepCmd=@0xbfffda3a, aInfoP=0x0)
at /work/runtests/head/libsynthesis/src/sysync/syncagent.cpp:3122
#39 0x007b23bf in sysync::TSyncAgent::SessionStep (this=0x822b288,
aStepCmd=@0xbfffda3a, aInfoP=0xbfffd85c)
at /work/runtests/head/libsynthesis/src/sysync/syncagent.cpp:2932
#40 0x00721bae in sysync::TServerEngineInterface::SessionStep
(this=0x81d60c0,
aSessionH=0x81e1e28, aStepCmd=@0xbfffda3a, aInfoP=0xbfffd85c)
at
/work/runtests/head/libsynthesis/src/Transport_interfaces/engine/enginesessiondispatch.cpp:477
#41 0x00750ed9 in sysync::SessionStep (aCB=0x81d60c4, aSessionH=0x81e1e28,
aStepCmd=0xbfffda3a, aInfoP=0xbfffd85c)
at /work/runtests/head/libsynthesis/src/sysync/engineentry.cpp:88
#42 0x0026d9e5 in sysync::TEngineModuleBridge::SessionStep
(this=0x81d5730, aSessionH=0x81e1e28, aStepCmd=@0xbfffda3a,
aInfoP=0xbfffd85c)
at
/work/runtests/head/libsynthesis/src/sysync_SDK/Sources/enginemodulebridge.cpp:109
#43 0x001a0cf6 in SyncEvo::SharedEngine::SessionStep (this=0x81ab1c0,
aSessionH=..., aStepCmd=@0xbfffda3a, aInfoP=0xbfffd85c)
at /work/runtests/head/syncevolution/src/syncevo/SynthesisEngine.cpp:96
#44 0x0020092c in SyncEvo::SyncContext::doSync (this=0x81ab0d0)
at /work/runtests/head/syncevolution/src/syncevo/SyncContext.cpp:3444
#45 0x0020873d in SyncEvo::SyncContext::sync (this=0x81ab0d0,
report=0x81b29c4)
at /work/runtests/head/syncevolution/src/syncevo/SyncContext.cpp:2904
#46 0x001cb1aa in SyncEvo::Cmdline::run (this=0x81b29a0)
at /work/runtests/head/syncevolution/src/syncevo/Cmdline.cpp:1477
#47 0x080da4e4 in SyncEvo::CmdlineWrapper::run (this=0x81b28f0)
at /work/runtests/head/syncevolution/src/syncevo-dbus-server.cpp:2459
#48 0x080a8bb6 in SyncEvo::Session::run (this=0x8169cb8)
at /work/runtests/head/syncevolution/src/syncevo-dbus-server.cpp:4152
#49 0x080b422f in SyncEvo::DBusServer::run (this=0xbffff024)
at /work/runtests/head/syncevolution/src/syncevo-dbus-server.cpp:5784
#50 0x080b4ffe in main (argc=1, argv=0xbffff394, envp=0xbffff450)
at /work/runtests/head/syncevolution/src/syncevo-dbus-server.cpp:6889
(gdb)
#####################
???
Next repeat the exercise with syncevo-dbus-server started under
valgrind:
valgrind /usr/libexec/syncevo-dbus-server 2>&1 | tee /tmp/valgrind.log
Does valgrind report any errors?
valgrind /usr/libexec/syncevo-dbus-server 2>&1 | tee /tmp/valgrind.log
==3551== Memcheck, a memory error detector
==3551== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==3551== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info
==3551== Command: /usr/libexec/syncevo-dbus-server
==3551==
[ERROR] b_dbus_setup_bus() failed - server already running?
==3551==
==3551== HEAP SUMMARY:
==3551== in use at exit: 64,724 bytes in 591 blocks
==3551== total heap usage: 2,701 allocs, 2,110 frees, 222,624 bytes
allocated
==3551==
==3551== LEAK SUMMARY:
==3551== definitely lost: 0 bytes in 0 blocks
==3551== indirectly lost: 0 bytes in 0 blocks
==3551== possibly lost: 4,204 bytes in 92 blocks
==3551== still reachable: 60,520 bytes in 499 blocks
==3551== suppressed: 0 bytes in 0 blocks
==3551== Rerun with --leak-check=full to see details of leaked memory
==3551==
==3551== For counts of detected and suppressed errors, rerun with: -v
==3551== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 265 from 11)
Why is your source called "tasks"? SyncEvolution itself
uses "todo" as
name.
It offeres both names to me. i didnt knew which is the right so i tested
both.
Thank you!