Package: modem-manager-gui
Version: 0.0.18-3
Severity: important

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***

When closing modem-manager-gui, the program get stalled. I managed to trace
into the address space via gdb, and detected that mmgui_addressbooks_close is
awaiting addressbooks->workthread (thread 5 identified from threadid) to
terminate (at addressbooks.c:1286), while addressbooks->workthread gets blocked
in syscall recv(2), called by mmgui_addressbooks_execute_akonadi_command (at
addressbooks.c:408), resulting a deadlock.

Backtraces of belated threads are attached.



-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (900, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.6.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages modem-manager-gui depends on:
ii  libc6               2.23-4
ii  libcairo2           1.14.6-1+b1
ii  libgdbm3            1.8.3-14
ii  libgdk-pixbuf2.0-0  2.34.0-1
ii  libglib2.0-0        2.48.1-2
ii  libgtk-3-0          3.20.7-1
ii  libgtkspell3-3-0    3.0.8-1
ii  modemmanager        1.6.0-1
ii  network-manager     1.2.4-2
ii  policykit-1         0.105-16
ii  ppp                 2.4.7-1+2

Versions of packages modem-manager-gui recommends:
ii  mobile-broadband-provider-info  20151214-0.1
ii  modem-manager-gui-help          0.0.18-3
ii  yelp                            3.20.1-1

Versions of packages modem-manager-gui suggests:
ii  evolution-data-server              3.20.4-2+b1
ii  libcanberra0                       0.30-3
pn  libindicate5 | libmessaging-menu0  <none>
ii  libnotify4                         0.7.6-2

-- no debconf information
(gdb) thr 1
[Switching to thread 1 (Thread 0x7f4208758a00 (LWP 17884))]
#0  0x00007f42064076ed in pthread_join (threadid=139920927225600, 
thread_return=0x0) at pthread_join.c:90
90      pthread_join.c: 没有那个文件或目录.
(gdb) p/x threadid 
$1 = 0x7f41e129f700
(gdb) info thr
  Id   Target Id         Frame 
* 1    Thread 0x7f4208758a00 (LWP 17884) "modem-manager-g" 0x00007f42064076ed 
in pthread_join (threadid=139920927225600, thread_return=0x0)
    at pthread_join.c:90
  2    Thread 0x7f41fdcef700 (LWP 17886) "gmain" 0x00007f420613c19d in poll () 
at ../sysdeps/unix/syscall-template.S:84
  3    Thread 0x7f41fd4ee700 (LWP 17887) "gdbus" 0x00007f420613c19d in poll () 
at ../sysdeps/unix/syscall-template.S:84
  4    Thread 0x7f41f56dc700 (LWP 17889) "modem-manager-g" 0x00007f420613c19d 
in poll () at ../sysdeps/unix/syscall-template.S:84
  5    Thread 0x7f41e129f700 (LWP 17891) "modem-manager-g" 0x00007f420640f42f 
in __libc_recv (fd=17, buf=buf@entry=0x7f41e129e720, n=n@entry=1023, 
    flags=flags@entry=0) at ../sysdeps/unix/sysv/linux/x86_64/recv.c:28
  6    Thread 0x7f41dbfff700 (LWP 17892) "dconf worker" 0x00007f420613c19d in 
poll () at ../sysdeps/unix/syscall-template.S:84
  7    Thread 0x7f41db7fe700 (LWP 17893) "modem-manager-g" 0x00007f420613c19d 
in poll () at ../sysdeps/unix/syscall-template.S:84
  8    Thread 0x7f41da2dd700 (LWP 17894) "modem-manager-g" 0x00007f420613c19d 
in poll () at ../sysdeps/unix/syscall-template.S:84
(gdb) bt
#0  0x00007f42064076ed in pthread_join (threadid=139920927225600, 
thread_return=0x0) at pthread_join.c:90
#1  0x00007f42068b1b27 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f4206893fea in g_thread_join () from 
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00000000004155ae in mmgui_addressbooks_close (addressbooks=0x119e940) at 
addressbooks.c:1286
#4  0x0000000000436019 in mmgui_main_application_shutdown_signal 
(application=<optimized out>, data=0xc3cec0) at main.c:2442
#5  0x00007f4206b43fa5 in g_closure_invoke () from 
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#6  0x00007f4206b55fc1 in ?? () from 
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#7  0x00007f4206b5ed5c in g_signal_emit_valist () from 
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#8  0x00007f4206b5f08f in g_signal_emit () from 
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#9  0x00007f4206e34dfb in g_application_run () from 
/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#10 0x0000000000410964 in main (argc=<optimized out>, argv=<optimized out>) at 
main.c:2667
(gdb) thr 5
[Switching to thread 5 (Thread 0x7f41e129f700 (LWP 17891))]
#0  0x00007f420640f42f in __libc_recv (fd=17, buf=buf@entry=0x7f41e129e720, 
n=n@entry=1023, flags=flags@entry=0)
    at ../sysdeps/unix/sysv/linux/x86_64/recv.c:28
28      ../sysdeps/unix/sysv/linux/x86_64/recv.c: 没有那个文件或目录.
(gdb) bt
#0  0x00007f420640f42f in __libc_recv (fd=17, buf=buf@entry=0x7f41e129e720, 
n=n@entry=1023, flags=flags@entry=0)
    at ../sysdeps/unix/sysv/linux/x86_64/recv.c:28
#1  0x0000000000413d5e in recv (__flags=0, __n=1023, __buf=0x7f41e129e720, 
__fd=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/socket2.h:44
#2  mmgui_addressbooks_execute_akonadi_command 
(addressbooks=addressbooks@entry=0x119e940, 
command=command@entry=0x7f41e129ebc0) at addressbooks.c:408
#3  0x00000000004143ed in mmgui_addressbooks_get_kde_contacts 
(addressbooks=0x119e940) at addressbooks.c:660
#4  mmguicore_addressbooks_work_thread (data=0x119e940) at addressbooks.c:1008
#5  0x00007f4206893bc5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f4206406464 in start_thread (arg=0x7f41e129f700) at 
pthread_create.c:333
#7  0x00007f420614530d in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Reply via email to