[Pkg-utopia-maintainers] Bug#793072: nmcli: crash (SIGSEGV) starting VPN connection

Paul Wise pabs at debian.org
Tue Jul 21 02:42:38 UTC 2015


Package: network-manager
Version: 1.0.2-2
Severity: normal
File: /usr/bin/nmcli
Usertags: crash

My VPN connection was half-broken (#787483) so I ran a couple of nmcli
commands to reconnect it. Unfortunately the second one crashed
(SIGSEGV) but fortunately the VPN still came back up as normal.
I have attached a backtrace of the crash from gdb.

nmcli con down id VPN00 ; nmcli con up id VPN00
Connection 'VPN00' successfully deactivated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/1)

(process:7549): GLib-GObject-CRITICAL **: g_type_instance_get_private: assertion 'instance != NULL && instance->g_class != NULL' failed
Segmentation fault (core dumped)

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (900, 'testing'), (860, 'testing-proposed-updates'), (850, 'buildd-testing-proposed-updates'), (800, 'unstable'), (790, 'buildd-unstable'), (700, 'experimental'), (690, 'buildd-experimental')
Architecture: amd64 (x86_64)

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

Versions of packages network-manager depends on:
ii  adduser                3.113+nmu3
ii  dbus                   1.8.18-1
ii  init-system-helpers    1.23
ii  isc-dhcp-client        4.3.2-1
ii  libbluetooth3          5.23-2+b1
ii  libc6                  2.19-18
ii  libdbus-1-3            1.8.18-1
ii  libdbus-glib-1-2       0.102-1
ii  libgcrypt20            1.6.3-2
ii  libglib2.0-0           2.44.1-1.1
ii  libgnutls-deb0-28      3.3.16-1
ii  libgudev-1.0-0         230-2
ii  libmm-glib0            1.4.8-1
ii  libndp0                1.4-2
ii  libnewt0.52            0.52.17-1+b1
ii  libnl-3-200            3.2.24-2
ii  libnl-genl-3-200       3.2.24-2
ii  libnl-route-3-200      3.2.24-2
ii  libnm0                 1.0.2-2
ii  libpam-systemd         221-1+deb9u2
ii  libpolkit-agent-1-0    0.105-11
ii  libpolkit-gobject-1-0  0.105-11
ii  libreadline6           6.3-8+b3
ii  libsoup2.4-1           2.50.0-2
ii  libsystemd0            221-1+deb9u2
ii  libteamdctl0           1.17-1
ii  libuuid1               2.26.2-6
ii  lsb-base               4.1+Debian13+nmu1
ii  policykit-1            0.105-11
ii  udev                   221-1+deb9u2
ii  wpasupplicant          2.3-2

Versions of packages network-manager recommends:
ii  crda            3.13-1
ii  dnsmasq-base    2.73-2
ii  iptables        1.4.21-2+b1
ii  iputils-arping  3:20121221-5+b2
ii  modemmanager    1.4.8-1
ii  ppp             2.4.6-3.1

Versions of packages network-manager suggests:
ii  avahi-autoipd  0.6.31-5
pn  libteam-utils  <none>

-- no debconf information

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

-------------- next part --------------
$ gdb -batch -n -ex bt -ex 'thread apply all bt full' --core /var/crash/1000/7549-1000-1000-11-1437445826-chianamo--usr-bin-nmcli.core /usr/bin/nmcli
[New LWP 7549]
[New LWP 7551]
[New LWP 7550]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `nmcli con up id VPN00'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  updated_get_settings_cb (proxy=<optimized out>, result=0x246a170, user_data=0x2239ce0) at nm-remote-connection.c:588
588	nm-remote-connection.c: No such file or directory.
#0  0x00007f7706559d3e in updated_get_settings_cb (proxy=<optimized out>, result=0x246a170, user_data=0x2239ce0) at nm-remote-connection.c:588
#1  0x00007f7705ddfdf7 in g_simple_async_result_complete (simple=0x246a170 [GSimpleAsyncResult]) at /tmp/buildd/glib2.0-2.44.1/./gio/gsimpleasyncresult.c:763
#2  0x00007f7705e47c41 in reply_cb (connection=<optimized out>, res=<optimized out>, user_data=0x246a170) at /tmp/buildd/glib2.0-2.44.1/./gio/gdbusproxy.c:2623
#3  0x00007f7705ddfdf7 in g_simple_async_result_complete (simple=0x246a1e0 [GSimpleAsyncResult]) at /tmp/buildd/glib2.0-2.44.1/./gio/gsimpleasyncresult.c:763
#4  0x00007f7705e3ce5c in g_dbus_connection_call_done (source=<optimized out>, result=<optimized out>, user_data=0x24516f0) at /tmp/buildd/glib2.0-2.44.1/./gio/gdbusconnection.c:5502
#5  0x00007f7705ddfdf7 in g_simple_async_result_complete (simple=0x246a250 [GSimpleAsyncResult]) at /tmp/buildd/glib2.0-2.44.1/./gio/gsimpleasyncresult.c:763
#6  0x00007f7705ddfe59 in complete_in_idle_cb (data=<optimized out>) at /tmp/buildd/glib2.0-2.44.1/./gio/gsimpleasyncresult.c:775
#7  0x00007f7705853b4d in g_main_context_dispatch (context=0x21a94d0) at /tmp/buildd/glib2.0-2.44.1/./glib/gmain.c:3122
#8  0x00007f7705853b4d in g_main_context_dispatch (context=context at entry=0x21a94d0) at /tmp/buildd/glib2.0-2.44.1/./glib/gmain.c:3737
#9  0x00007f7705853f20 in g_main_context_iterate (context=0x21a94d0, block=block at entry=1, dispatch=dispatch at entry=1, self=<optimized out>) at /tmp/buildd/glib2.0-2.44.1/./glib/gmain.c:3808
#10 0x00007f7705854242 in g_main_loop_run (loop=0x21b0d80) at /tmp/buildd/glib2.0-2.44.1/./glib/gmain.c:4002
#11 0x00000000004131eb in main (argc=<optimized out>, argv=<optimized out>) at nmcli.c:610

Thread 3 (Thread 0x7f7701e5a700 (LWP 7550)):
#0  0x00007f77055fc609 in do_sigwait (set=<optimized out>, sig=0x7f7701e59d74) at ../nptl/sysdeps/unix/sysv/linux/../../../../../sysdeps/unix/sysv/linux/sigwait.c:63
        ret = <optimized out>
        tmpset = {__val = {0, 140149193945184, 0, 140149109663488, 0, 140149191769607, 5, 0, 0, 140149167946856, 0, 0, 0, 140149191795493, 0, 140149167968324}}
#1  0x00007f77055fc693 in __sigwait (set=set at entry=0x67b200 <signal_set>, sig=0x0, sig at entry=0x7f7701e59d74) at ../nptl/sysdeps/unix/sysv/linux/../../../../../sysdeps/unix/sysv/linux/sigwait.c:97
        oldtype = 0
        result = 0
#2  0x00000000004457d5 in signal_handling_thread (arg=<optimized out>) at nmcli.c:333
        signo = 32631
#3  0x00007f77055f50a4 in start_thread (arg=0x7f7701e5a700) at pthread_create.c:309
        __res = <optimized out>
        pd = 0x7f7701e5a700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140149109663488, -82475561436076310, 0, 140149193945184, 0, 140149109663488, 14917223683696362, 14907553673225962}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#4  0x00007f770532a04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f7701529700 (LWP 7551)):
#0  0x00007f770532150d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f7705853ebc in g_main_context_iterate (priority=2147483647, n_fds=2, fds=0x21bdbd0, timeout=-1, context=0x21e79e0) at /tmp/buildd/glib2.0-2.44.1/./glib/gmain.c:4103
        poll_func = 0x7f77058633e0 <g_poll>
        max_priority = 2147483647
        timeout = -1
        some_ready = <optimized out>
        nfds = 2
        allocated_nfds = 2
        fds = 0x21bdbd0
#2  0x00007f7705853ebc in g_main_context_iterate (context=0x21e79e0, block=block at entry=1, dispatch=dispatch at entry=1, self=<optimized out>) at /tmp/buildd/glib2.0-2.44.1/./glib/gmain.c:3803
        max_priority = 2147483647
        timeout = -1
        some_ready = <optimized out>
        nfds = 2
        allocated_nfds = 2
        fds = 0x21bdbd0
#3  0x00007f7705854242 in g_main_loop_run (loop=0x21bd030) at /tmp/buildd/glib2.0-2.44.1/./glib/gmain.c:4002
        __FUNCTION__ = "g_main_loop_run"
#4  0x00007f7705e4aaf6 in gdbus_shared_thread_func (user_data=0x21e79b0) at /tmp/buildd/glib2.0-2.44.1/./gio/gdbusprivate.c:274
        data = 0x21e79b0
#5  0x00007f770587a955 in g_thread_proxy (data=0x21d6050) at /tmp/buildd/glib2.0-2.44.1/./glib/gthread.c:764
        thread = 0x21d6050
#6  0x00007f77055f50a4 in start_thread (arg=0x7f7701529700) at pthread_create.c:309
        __res = <optimized out>
        pd = 0x7f7701529700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140149100025600, -82475561436076310, 0, 140149193945184, 140149170612480, 140149100025600, 14916305097565930, 14907553673225962}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#7  0x00007f770532a04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f7706de18c0 (LWP 7549)):
#0  0x00007f7706559d3e in updated_get_settings_cb (proxy=<optimized out>, result=0x246a170, user_data=0x2239ce0) at nm-remote-connection.c:588
        self = 0x2239ce0
        priv = <optimized out>
        new_settings = 0x21a8740
        visible = <optimized out>
#1  0x00007f7705ddfdf7 in g_simple_async_result_complete (simple=0x246a170 [GSimpleAsyncResult]) at /tmp/buildd/glib2.0-2.44.1/./gio/gsimpleasyncresult.c:763
        current_source = 0x2287860
        current_context = <optimized out>
        __FUNCTION__ = "g_simple_async_result_complete"
#2  0x00007f7705e47c41 in reply_cb (connection=<optimized out>, res=<optimized out>, user_data=0x246a170) at /tmp/buildd/glib2.0-2.44.1/./gio/gdbusproxy.c:2623
        simple = 0x246a170 [GSimpleAsyncResult]
        value = <optimized out>
        error = 0x245c360
        fd_list = 0x21a8740
#3  0x00007f7705ddfdf7 in g_simple_async_result_complete (simple=0x246a1e0 [GSimpleAsyncResult]) at /tmp/buildd/glib2.0-2.44.1/./gio/gsimpleasyncresult.c:763
        current_source = 0x2287860
        current_context = <optimized out>
        __FUNCTION__ = "g_simple_async_result_complete"
#4  0x00007f7705e3ce5c in g_dbus_connection_call_done (source=<optimized out>, result=<optimized out>, user_data=0x24516f0) at /tmp/buildd/glib2.0-2.44.1/./gio/gdbusconnection.c:5502
        simple = 0x246a1e0 [GSimpleAsyncResult]
        connection = <optimized out>
        state = 0x24516f0
        error = 0x245c360
        reply = 0x21f1190 [GDBusMessage]
#5  0x00007f7705ddfdf7 in g_simple_async_result_complete (simple=0x246a250 [GSimpleAsyncResult]) at /tmp/buildd/glib2.0-2.44.1/./gio/gsimpleasyncresult.c:763
        current_source = 0x2287860
        current_context = <optimized out>
        __FUNCTION__ = "g_simple_async_result_complete"
#6  0x00007f7705ddfe59 in complete_in_idle_cb (data=<optimized out>) at /tmp/buildd/glib2.0-2.44.1/./gio/gsimpleasyncresult.c:775
        simple = <optimized out>
#7  0x00007f7705853b4d in g_main_context_dispatch (context=0x21a94d0) at /tmp/buildd/glib2.0-2.44.1/./glib/gmain.c:3122
        dispatch = 0x7f7705850610 <g_idle_dispatch>
        prev_source = 0x0
        was_in_call = 0
        user_data = 0x246a250
        callback = 0x7f7705ddfe50 <complete_in_idle_cb>
        cb_funcs = <optimized out>
        cb_data = 0x2287b50
        need_destroy = <optimized out>
        source = 0x2287860
        current = 0x21a8740
        i = 0
#8  0x00007f7705853b4d in g_main_context_dispatch (context=context at entry=0x21a94d0) at /tmp/buildd/glib2.0-2.44.1/./glib/gmain.c:3737
#9  0x00007f7705853f20 in g_main_context_iterate (context=0x21a94d0, block=block at entry=1, dispatch=dispatch at entry=1, self=<optimized out>) at /tmp/buildd/glib2.0-2.44.1/./glib/gmain.c:3808
        max_priority = 0
        timeout = 0
        some_ready = 1
        nfds = <optimized out>
        allocated_nfds = 1
        fds = 0x21b0f20
#10 0x00007f7705854242 in g_main_loop_run (loop=0x21b0d80) at /tmp/buildd/glib2.0-2.44.1/./glib/gmain.c:4002
        __FUNCTION__ = "g_main_loop_run"
#11 0x00000000004131eb in main (argc=<optimized out>, argv=<optimized out>) at nmcli.c:610
        args_info = {nmc = 0x67b300 <nm_cli>, argc = 5, argv = 0x7fffe613a7b8}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20150721/dd25d51d/attachment.sig>


More information about the Pkg-utopia-maintainers mailing list