Dnia Saturday 02 of January 2016 20:48:55 Patrick Ohly pisze:

> On Sat, 2016-01-02 at 17:46 +0100, Janusz wrote:

> > Dnia Thursday 31 of December 2015 20:57:40 Patrick Ohly pisze:

> > Yes, it stuck there.

> >

> > Here is output:

> >

> >

> >

> > $ gdb --args syncevolution loglevel=10 --print-databases --daem

> > on=no

> > GNU gdb (Ubuntu 7.10-1ubuntu2) 7.10

>

> [...]

>

> > Thread 1 (Thread 0x7ffff7f2b880 (LWP 5810)):

> > #0 0x00007ffff66638dd in poll ()

> > at ../sysdeps/unix/syscall-template.S:81

> > #1 0x00007ffff71241ec in ?? ()

> > from /lib/x86_64-linux-gnu/libglib-2.0.so.0

> > #2 0x00007ffff71242fc in g_main_context_iteration ()

> >

> > from /lib/x86_64-linux-gnu/libglib-2.0.so.0

> >

> > #3 0x00007fffead461ee in

> > QEventDispatcherGlib::processEvents(QFlags<QEventLoop:---Type <return>

> > to continue, or q <return> to quit---

> >

> > :ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4

> >

> > #4 0x00007fffead140d1 in

> > QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()

> > from /usr/lib/x86_64-linux-gnu/libQtCore.so.4

> > #5 0x00007fffead14445 in

> > QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()

> > from /usr/lib/x86_64-linux-gnu/libQtCore.so.4

> > #6 0x00007fffea7d8363 in KJob::exec() ()

> > from /usr/lib/libkdecore.so.5

> > #7 0x00007fffeb5afcf0 in SyncEvo::AkonadiSyncSource::getDatabases (

> >

> > this=0x793d00)

> > at

> > /data/runtests/work/sources/syncevolution/src/backends/akonadi/akonadi

> > syncsource.cpp:137>

> > #8 0x00007ffff758c3c5 in SyncEvo::Cmdline::listDatabases (

> >

> > this=<optimized out>, source=0x793d00, header=

> > "KDE Address Book = KDE Contacts = kde-contacts")

> > at

> > /data/runtests/work/sources/syncevolution/src/syncevo/Cmdline.cpp:2087

> >

> > #9 0x00007ffff759efe0 in SyncEvo::Cmdline::run (this=0x7fffffffd700)

> >

> > at

> > /data/runtests/work/sources/syncevolution/src/syncevo/Cmdline.cpp:839

> >

> > #10 0x000000000041a90d in SyncEvo::main (argc=<optimized out>,

> >

> > argv=<optimized out>)

> > at /data/runtests/work/sources/syncevolution/src/syncevolution.cpp:531

> >

> > (gdb)

>

> KJob::exec() is supposed to return when the work is done; that doesn't

> seem to work anymore.

>

> Have you tried with SYNCEVOLUTION_DEBUG=1 and --log-level=10? There

> might be some error output from Akonadi which is hidden during normal

> command line operation (many libs typically used by graphical

> applications are fairly noisy, so SyncEvolution hides normal stdout).

>

> Perhaps try simplifying the process in which the call happens:

> temporarily move away all backends except syncakonadi.so and

> platformkde.so, then try again. If that fails, also move away

> platformkde.so and try one last time.

>

> If that still fails, one could try to write a very simple test program

> with getDatabases() as main():

> http://cgit.freedesktop.org/SyncEvolution/syncevolution/tree/src/backends/ak

> onadi/akonadisyncsource.cpp#n116

>

> Do you think you can do that? I don't have Ubuntu 15.10 installed at the

> moment.

 

 

With SYNCEVOLUTION_DEBUG=1 (--log-level=10 is unkonw parameter) :

$ SYNCEVOLUTION_DEBUG=1 syncevolution --print-databases        
[DEBUG 00:00:00] SuspendFlags: (re)activating, currently inactive
[DEBUG 00:00:00] SuspendFlags: activating signal handler(s) with fds 11->10
[DEBUG 00:00:00] SuspendFlags: catch signal 2
[DEBUG 00:00:00] SuspendFlags: catch signal 15
CalDAV:
  select database via absolute URL, set username/password to scan, set syncURL
to base URL if server does not support auto-discovery (<path>)

CalDAVTodo:
  select database via absolute URL, set username/password to scan, set syncURL
to base URL if server does not support auto-discovery (<path>)

CalDAVJournal:
  select database via absolute URL, set username/password to scan, set syncURL
to base URL if server does not support auto-discovery (<path>)

CardDAV:
  select database via absolute URL, set username/password to scan, set syncURL
to base URL if server does not support auto-discovery (<path>)

Evolution Address Book = Evolution Contacts = evolution-contacts:
  Osobiste (system-address-book) <default>

Evolution Calendar = evolution-calendar:
  Osobiste (system-calendar) <default>
  Urodziny i rocznice (birthdays)

Evolution Task List = Evolution Tasks = evolution-tasks:
  Osobiste (system-task-list) <default>

Evolution Memos = evolution-memos:
  Osobiste (system-memo-list) <default>

^C[DEBUG 00:00:07] SuspendFlags: read 7 from fd 10
[DEBUG 00:00:07] reveived signal 2

the last line is right after ^C

 

I moved all backend to temporary directory and did these test. Result seems to be the same (finally I killed syncevol porcesses).

 

 

$ s dpkg -l \*evol\*                                                                                                                                               
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                   Version                  Architecture             Description
+++-======================================-========================-========================-==================================================================================
un  evolution                              <none>                   <none>                   (no description available)
in  evolution-common                       <none>                   all                      (no description available)
ii  evolution-data-server                  3.16.5-1ubuntu3          amd64                    evolution database backend server
ii  evolution-data-server-common           3.16.5-1ubuntu3          all                      architecture independent files for Evolution Data Server
un  evolution-data-server-dbg              <none>                   <none>                   (no description available)
un  evolution-data-server-goa              <none>                   <none>                   (no description available)
ii  evolution-data-server-online-accounts  3.16.5-1ubuntu3          amd64                    evolution data server integration with Ubuntu Online Accounts
un  evolution-data-server-uoa              <none>                   <none>                   (no description available)
un  libreoffice-evolution                  <none>                   <none>                   (no description available)
rc  libsyncevolution0                      1.5-0ubuntu9             amd64                    Sync personal information data using SyncML and CalDAV/CardDAV (shared library)
un  syncevolution                          <none>                   <none>                   (no description available)
ii  syncevolution-bundle                   1:1.5.1-2                amd64                    SyncEvolution - synchronizing personal information management data
un  syncevolution-common                   <none>                   <none>                   (no description available)
ii  syncevolution-evolution                1:1.5.1-1                all                      SyncEvolution - meta package for evolution
un  syncevolution-evolution-2.12           <none>                   <none>                   (no description available)
un  syncevolution-evolution-2.6            <none>                   <none>                   (no description available)
un  syncevolution-evolution-2.8            <none>                   <none>                   (no description available)
un  syncevolution-foobar                   <none>                   <none>                   (no description available)
ii  syncevolution-kde                      1:1.5.1-1                all                      SyncEvolution - meta package for kde
un  syncevolution-libs                     <none>                   <none>                   (no description available)

:/usr/lib/syncevolution/backends$ ls -la

total 98936

drwxr-xr-x 2 root root 4096 Dec 29 23:37 .

drwxr-xr-x 4 root root 4096 Dec 29 23:37 ..

-rwxr-xr-x 1 root root 1369 Jun 5 2015 platformgnome.la

-rwxr-xr-x 1 root root 891771 Jun 5 2015 platformgnome.so

-rwxr-xr-x 1 root root 1397 Jun 5 2015 platformkde.la

-rwxr-xr-x 1 root root 1354257 Jun 5 2015 platformkde.so

-rwxr-xr-x 1 root root 1341 Jun 5 2015 providergoa.la

-rwxr-xr-x 1 root root 1371751 Jun 5 2015 providergoa.so

-rwxr-xr-x 1 root root 1379 Jun 5 2015 provideroauth2.la

-rwxr-xr-x 1 root root 266882 Jun 5 2015 provideroauth2.so

-rwxr-xr-x 1 root root 460278 Jun 5 2015 provideruoa-2.so

-rwxr-xr-x 1 root root 1386 Jun 5 2015 syncactivesync.la

-rwxr-xr-x 1 root root 1411 Jun 5 2015 syncakonadi.la

-rwxr-xr-x 1 root root 5588925 Jun 5 2015 syncakonadi.so

-rwxr-xr-x 1 root root 1344 Jun 5 2015 syncdav.la

-rwxr-xr-x 1 root root 12045467 Jun 5 2015 syncdav.so

-rwxr-xr-x 1 root root 8311188 Jun 5 2015 syncebook-2.so

-rwxr-xr-x 1 root root 8311188 Jun 5 2015 syncebook-3.so

-rwxr-xr-x 1 root root 8311188 Jun 5 2015 syncebook-4.so

-rwxr-xr-x 1 root root 1329 Jun 5 2015 syncebook.la

-rwxr-xr-x 1 root root 5085031 Jun 5 2015 syncebook.so

-rwxr-xr-x 1 root root 7642379 Jun 5 2015 syncecal-2.so

-rwxr-xr-x 1 root root 7642379 Jun 5 2015 syncecal-3.so

-rwxr-xr-x 1 root root 7642379 Jun 5 2015 syncecal-4.so

-rwxr-xr-x 1 root root 7642379 Jun 5 2015 syncecal-5.so

-rwxr-xr-x 1 root root 7642379 Jun 5 2015 syncecal-6.so

-rwxr-xr-x 1 root root 1323 Jun 5 2015 syncecal.la

-rwxr-xr-x 1 root root 5256249 Jun 5 2015 syncecal.so

-rwxr-xr-x 1 root root 1323 Jun 5 2015 syncfile.la

-rwxr-xr-x 1 root root 4750854 Jun 5 2015 syncfile.so

-rwxr-xr-x 1 root root 1371 Jun 5 2015 synckcalextended.la

-rwxr-xr-x 1 root root 167058 Jun 5 2015 synckcalextended.so

-rwxr-xr-x 1 root root 1347 Jun 5 2015 syncmaemocal.la

-rwxr-xr-x 1 root root 165612 Jun 5 2015 syncmaemocal.so

-rwxr-xr-x 1 root root 1323 Jun 5 2015 syncpbap.la

-rwxr-xr-x 1 root root 163423 Jun 5 2015 syncpbap.so

-rwxr-xr-x 1 root root 1359 Jun 5 2015 syncqtcontacts.la

-rwxr-xr-x 1 root root 163990 Jun 5 2015 syncqtcontacts.so

-rwxr-xr-x 1 root root 1335 Jun 5 2015 syncsqlite.la

-rwxr-xr-x 1 root root 156978 Jun 5 2015 syncsqlite.so

-rwxr-xr-x 1 root root 1335 Jun 5 2015 syncxmlrpc.la

-rwxr-xr-x 1 root root 159342 Jun 5 2015 syncxmlrpc.so

:/usr/lib/syncevolution/backends$

 

=== moved all backend to temporary dir.

 

:/usr/lib/syncevolution/backends$ ls -la

total 6800

drwxr-xr-x 2 root root 4096 Jan 3 15:52 .

drwxr-xr-x 4 root root 4096 Dec 29 23:37 ..

-rwxr-xr-x 1 root root 1397 Jun 5 2015 platformkde.la

-rwxr-xr-x 1 root root 1354257 Jun 5 2015 platformkde.so

-rwxr-xr-x 1 root root 1411 Jun 5 2015 syncakonadi.la

-rwxr-xr-x 1 root root 5588925 Jun 5 2015 syncakonadi.so

:/usr/lib/syncevolution/backends$

:/usr/lib/syncevolution/backends$ SYNCEVOLUTION_DEBUG=1 syncevolution --print-databases

[DEBUG 00:00:00] SuspendFlags: (re)activating, currently inactive

[DEBUG 00:00:00] SuspendFlags: activating signal handler(s) with fds 11->10

[DEBUG 00:00:00] SuspendFlags: catch signal 2

[DEBUG 00:00:00] SuspendFlags: catch signal 15

^C[DEBUG 00:00:18] SuspendFlags: read 7 from fd 10

[DEBUG 00:00:18] reveived signal 2

[ERROR syncevo-dbus-server 00:00:37] child process quit because of signal 9

[DEBUG 00:00:38] SuspendFlags: deactivating fds 11->10

[DEBUG 00:00:38] SuspendFlags: close m_receiverFD 10

[DEBUG 00:00:38] SuspendFlags: close m_senderFD 11

[DEBUG 00:00:38] SuspendFlags: done with deactivation

:/usr/lib/syncevolution/backends$

 

==== moved even platformkde.so (and .la)

 

:/usr/lib/syncevolution/backends$ s mv platformkde.* ~/tmp_evolution/

:/usr/lib/syncevolution/backends$ ls -la

total 5472

drwxr-xr-x 2 root root 4096 Jan 3 15:54 .

drwxr-xr-x 4 root root 4096 Dec 29 23:37 ..

-rwxr-xr-x 1 root root 1411 Jun 5 2015 syncakonadi.la

-rwxr-xr-x 1 root root 5588925 Jun 5 2015 syncakonadi.so

:/usr/lib/syncevolution/backends$

:/usr/lib/syncevolution/backends$ SYNCEVOLUTION_DEBUG=1 syncevolution --print-databases

[DEBUG 00:00:00] SuspendFlags: (re)activating, currently inactive

[DEBUG 00:00:00] SuspendFlags: activating signal handler(s) with fds 6->5

[DEBUG 00:00:00] SuspendFlags: catch signal 2

[DEBUG 00:00:00] SuspendFlags: catch signal 15

^C[DEBUG 00:00:05] SuspendFlags: read 7 from fd 5

[DEBUG 00:00:05] reveived signal 2

[DEBUG 00:00:16] SuspendFlags: read 20 from fd 5

[DEBUG 00:00:16] reveived signal 15

[DEBUG 00:00:16] SuspendFlags: read 2 from fd 5

[INFO 00:00:16] Aborting immediately ...

[DEBUG 00:00:18] SuspendFlags: read 20 from fd 5

[DEBUG 00:00:18] reveived signal 15

[DEBUG 00:00:18] SuspendFlags: read 4 from fd 5

[INFO 00:00:18] Already aborting as requested earlier ...

[DEBUG 00:00:27] SuspendFlags: deactivating fds 6->5

[DEBUG 00:00:27] SuspendFlags: close m_receiverFD 5

[DEBUG 00:00:27] SuspendFlags: close m_senderFD 6

[DEBUG 00:00:27] SuspendFlags: done with deactivation

:/usr/lib/syncevolution/backends$

 

 

I cannot code but can do as much tests as you need.

 

BR

Janusz