#627955 network-manager: Network-Manager crashes when starting pptp vpn connection

Package:
network-manager
Source:
network-manager
Description:
network management framework (daemon and userspace tools)
Submitter:
Thomas Angermayer
Date:
2012-11-29 08:39:04 UTC
Severity:
important
#627955#5
Date:
2011-05-25 20:34:59 UTC
From:
To:
I've set up an pptp vpn connection with the network-manager running under
gnome. I only entered the name of the connection, the gateway, my username
and password, and the option that everyone can use this connection.

When I click on the network-manager (witn the left mouse key) and select
"VPN Connections" and then the connection, I've set up, the NM-Applet
disappears from the Gnome panel and I've to restart it with

NetworkManager &

After that, the NM-Applet appears again. But when I then try to start the
vpn connection again, the same happened as described before!



The following is put in /var/log/daemon.log:

May 25 21:59:30 gnulux-laptop NetworkManager[3834]: <info> Starting VPN
service 'pptp'...
May 25 21:59:30 gnulux-laptop NetworkManager[3834]: <info> VPN service
'pptp' started (org.freedesktop.NetworkManager.pptp), PID 3886
May 25 21:59:30 gnulux-laptop NetworkManager[3834]: <info> VPN service
'pptp' appeared; activating connections
May 25 21:59:30 gnulux-laptop NetworkManager[3834]: <info> VPN plugin state
changed: 1
May 25 21:59:30 gnulux-laptop NetworkManager[3834]: <warn> caught signal 11.
Generating backtrace...
May 25 21:59:30 gnulux-laptop NetworkManager: ******************* START
**********************************
May 25 21:59:30 gnulux-laptop NetworkManager: [Thread debugging using
libthread_db enabled]
May 25 21:59:30 gnulux-laptop NetworkManager: [New Thread 0x7fc9fde98700
(LWP 3840)]
May 25 21:59:30 gnulux-laptop NetworkManager: [New Thread 0x7fc9feab4700
(LWP 3835)]
May 25 21:59:30 gnulux-laptop NetworkManager: 0x00007fca0166bc0d in waitpid
() from /lib/libpthread.so.0
May 25 21:59:30 gnulux-laptop NetworkManager: ******************* END
**********************************

#627955#10
Date:
2011-05-29 20:21:51 UTC
From:
To:
Am 25.05.2011 22:34, schrieb Thomas Angermayer:

Which version of network-manager-openvpn do you have installed?

Please install network-manager-dbg and run NetworkManager in gdb to get a
meaningful backtrace.

Thanks,
Michael

#627955#15
Date:
2011-06-27 11:41:41 UTC
From:
To:
Hi!

I am also hit by this bug. Here is the full backtrace:

Program received signal SIGSEGV, Segmentation fault.
free_get_secrets_info (data=<value optimized out>) at nm-manager.c:2580
2580	nm-manager.c: No such file or directory.
	in nm-manager.c
(gdb) bt full
#0  free_get_secrets_info (data=<value optimized out>) at nm-manager.c:2580
        info = 0x87c000
        priv = 0x0
#1  0x000000000044d127 in system_get_secrets_reply_cb (
    connection=<value optimized out>, secrets=<value optimized out>,
    error=0x0, user_data=0x87c000) at nm-manager.c:2735
        info = 0x87c000
        provider = 0x879900
#2  0x00000000004825d7 in get_secrets (connection=0x856390,
    setting_name=0x86f860 "VpnState", hints=<value optimized out>,
    request_new=<value optimized out>,
    callback=0x44d0d0 <system_get_secrets_reply_cb>, user_data=0x87c000)
    at nm-sysconfig-connection.c:231
        self = <value optimized out>
        priv = <value optimized out>
        settings = 0x848f70
        secrets = <value optimized out>
        setting = 0x858e30
        error = 0x0
#3  0x000000000044d241 in system_get_secrets_idle_cb (user_data=0x87c000)
    at nm-manager.c:2768
        info = 0x87c000
        priv = 0x81a0e0
        connection = <value optimized out>
        error = 0x0
        hints = {0x0, 0x0, 0x0}
#4  0x00007f3edc83c4a3 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
No symbol table info available.
#5  0x00007f3edc83cc80 in ?? () from /lib/libglib-2.0.so.0
No symbol table info available.
#6  0x00007f3edc83d2f2 in g_main_loop_run () from /lib/libglib-2.0.so.0
No symbol table info available.
#7  0x000000000041f7f4 in main (argc=1, argv=0x7fffbbb55568) at main.c:743
        opt_ctx = <value optimized out>
        become_daemon = 1
        g_fatal_warnings = 0
        pidfile = 0x7faaf0 "/var/run/NetworkManager.pid"
        state_file = 0x7fab20 "/var/lib/NetworkManager/NetworkManager.state"
        dhcp = 0x0
        config = 0x7fcda0 "/etc/NetworkManager/NetworkManager.conf"
        plugins = 0x7fe690 "ifupdown,keyfile"
        conf_plugins = 0x7ff9f0 "\002"
        log_level = 0x0
        log_domains = 0x0
        dns = 0x0
        wifi_enabled = <value optimized out>
        net_enabled = <value optimized out>
        wwan_enabled = <value optimized out>
        success = 1
        policy = 0x840bd0
        vpn_manager = 0x80ec00
        dns_mgr = 0x816840
        dbus_mgr = 0x7fd450
        sup_mgr = 0x80edc0
        dhcp_mgr = 0x8590a0
        error = 0x0
        wrote_pidfile = 1
        cfg_log_level = 0x0
        cfg_log_domains = 0x0
        options = {{long_name = 0x490688 "no-daemon", short_name = 0 '\000',
            flags = 0, arg = G_OPTION_ARG_NONE, arg_data = 0x7fffbbb55448,
            description = 0x490692 "Don't become a daemon",
            arg_description = 0x0}, {long_name = 0x4906a8 "g-fatal-warnings",
            short_name = 0 '\000', flags = 0, arg = G_OPTION_ARG_NONE,
            arg_data = 0x7fffbbb5544c,
            description = 0x4906b9 "Make all warnings fatal",
            arg_description = 0x0}, {long_name = 0x4906d1 "pid-file",
            short_name = 0 '\000', flags = 0, arg = G_OPTION_ARG_FILENAME,
            arg_data = 0x7fffbbb553d8,
            description = 0x48ffc0 "Specify the location of a PID file",
            arg_description = 0x4906da "filename"}, {
            long_name = 0x4906e3 "state-file", short_name = 0 '\000',
            flags = 0, arg = G_OPTION_ARG_FILENAME, arg_data = 0x7fffbbb553e0,
            description = 0x4906ee "State file location",
            arg_description = 0x490702 "/path/to/state.file"}, {
            long_name = 0x490b24 "config", short_name = 0 '\000', flags = 0,
            arg = G_OPTION_ARG_FILENAME, arg_data = 0x7fffbbb553f0,
            description = 0x490716 "Config file location",
            arg_description = 0x49072b "/path/to/config.file"}, {
            long_name = 0x49061a "plugins", short_name = 0 '\000', flags = 0,
            arg = G_OPTION_ARG_STRING, arg_data = 0x7fffbbb553f8,
            description = 0x48ffe8 "List of plugins separated by ','",
            arg_description = 0x490740 "plugin1,plugin2"}, {
            long_name = 0x490750 "log-level", short_name = 0 '\000',
            flags = 0, arg = G_OPTION_ARG_STRING, arg_data = 0x7fffbbb55408,
            description = 0x490010 "Log level: one of [ERR, WARN, INFO, DEBUG]", arg_description = 0x49075a "INFO"}, {long_name = 0x49075f "log-domains",
            short_name = 0 '\000', flags = 0, arg = G_OPTION_ARG_STRING,
            arg_data = 0x7fffbbb55410,
            description = 0x490040 "Log domains separated by ',': any combination of [NONE,HW,RFKILL,ETHER,WIFI,BT,MB,DHCP4,DHCP6,PPP,WIFI_SCAN,IP4,IP6,AUTOIP4,DNS,VPN,SHARING,SUPPLICANT,USER_SET,SYS_SET,SUSPEND,CORE,DEVICE,OLPC]",
            arg_description = 0x49076b "HW,RFKILL,WIFI"}, {long_name = 0x0,
            short_name = 0 '\000', flags = 0, arg = G_OPTION_ARG_NONE,
            arg_data = 0x0, description = 0x0, arg_description = 0x0}}
        __PRETTY_FUNCTION__ = "main"

For the secret part, all secrets are in
/etc/NetworkManager/system-connections: I don't have gnome-keyring
running.  The bug happens 1 time out of 2 when I try to connect to a remote VPN.

- -- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.39-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages network-manager depends on:
ii  adduser                      3.113       add and remove users and groups
ii  dbus                         1.4.12-2    simple interprocess messaging syst
ii  isc-dhcp-client              4.1.1-P1-17 ISC DHCP client
ii  libc6                        2.13-7      Embedded GNU C Library: Shared lib
ii  libdbus-1-3                  1.4.12-2    simple interprocess messaging syst
ii  libdbus-glib-1-2             0.94-2      simple interprocess messaging syst
ii  libgcrypt11                  1.4.6-7     LGPL Crypto library - runtime libr
ii  libglib2.0-0                 2.28.6-1    The GLib library of C routines
ii  libgnutls26                  2.10.5-2    the GNU TLS library - runtime libr
ii  libgudev-1.0-0               171-1       GObject-based wrapper library for
ii  libnl1                       1.1-6       library for dealing with netlink s
ii  libnm-glib2                  0.8.4.0-2   network management framework (GLib
ii  libnm-util1                  0.8.4.0-2   network management framework (shar
ii  libpolkit-gobject-1-0        0.101-4     PolicyKit Authorization API
ii  libuuid1                     2.19.1-2    Universally Unique ID library
ii  lsb-base                     3.2-27      Linux Standard Base 3.2 init scrip
ii  udev                         171-1       /dev/ and hotplug management daemo
ii  wpasupplicant                0.7.3-3     client support for WPA and WPA2 (I

Versions of packages network-manager recommends:
ii  dnsmasq-base                  2.57-1     A small caching DNS proxy and DHCP
ii  iptables                      1.4.11.1-2 administration tools for packet fi
ii  modemmanager                  0.4.997-1  D-Bus service for managing modems
ii  policykit-1                   0.101-4    framework for managing administrat
ii  ppp                           2.4.5-5    Point-to-Point Protocol (PPP) - da

Versions of packages network-manager suggests:
pn  avahi-autoipd                 <none>     (no description available)

- -- Configuration Files:
/etc/NetworkManager/NetworkManager.conf changed:
[main]
plugins=ifupdown,keyfile
no-auto-default=60:eb:69:ce:6e:a0,
[ifupdown]
managed=false


- -- no debconf information
iEYEARECAAYFAk4IbHEACgkQKFvXofIqeU6g5wCgnXT88Vg/Rh7mbGH7y1Aktwv+
pyMAni66kqDIcGidDAFyPB4mYSSbN5cV
=GJpv
-----END PGP SIGNATURE-----

#627955#20
Date:
2011-06-27 11:56:26 UTC
From:
To:
(gdb) print info
$2 = (GetSecretsInfo *) 0x2479400
(gdb) print *info
$3 = {manager = 0x5f00000067, provider = 0x7900000074,
   setting_name = 0x6500000070 <Address 0x6500000070 out of bounds>,
   caller = 95, request_new = 105, proxy = 0x730000006e, call =
0x6100000074,
   idle_id = 110, hint1 = 0x5f00000065 <Address 0x5f00000065 out of
bounds>,
   hint2 = 0x6500000067 <Address 0x6500000067 out of bounds>,
   connection_path = 0x5f00000074 <Address 0x5f00000074 out of bounds>}
(gdb) print info->provider
$4 = (NMSecretsProviderInterface *) 0x7900000074
(gdb) print *info->provider
Cannot access memory at address 0x7900000074

#627955#25
Date:
2012-11-29 08:37:36 UTC
From:
To:
Hi Thomas,

Is this problem still reproducible with a current version from sid/wheezy?

Michael