network-manager can't start openvpn connection with "dns=dnsmasq" in /etc/NetworkManager/NetworkManager.conf

Bug #915825 reported by Martijn vdS
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

I was trying to set up an OpenVPN connection on Precise, but it kept failing. It seemed like n-m was crashing every time the connection was established. A crash is logged by the kernel, but not picked up by apport.

Jan 13 07:33:34 martijn-desktop kernel: [32713.158614] NetworkManager[1087]: segfault at 0 ip 00000000004447a7 sp 00007fff24de2d50 error 4 in NetworkManager[400000+d6000]

After removing the new "dns=dnsmasq" line from /etc/NetworkManager/NetworkManager.conf it works again.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: network-manager 0.9.2.0+git201201101813.0b30200-0ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-8.15-generic 3.2.0
Uname: Linux 3.2.0-8-generic x86_64
ApportVersion: 1.90-0ubuntu1
Architecture: amd64
CRDA: Error: command ['iw', 'reg', 'get'] failed with exit code 1: nl80211 not found.
Date: Fri Jan 13 07:39:55 2012
IfupdownConfig:
 auto lo
 iface lo inet loopback
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha amd64 (20110803)
IwConfig:
 lo no wireless extensions.

 eth0 no wireless extensions.

 tun0 no wireless extensions.
NetworkManager.state:
 [main]
 NetworkingEnabled=true
 WirelessEnabled=true
 WWANEnabled=true
 WimaxEnabled=true
ProcEnviron:
 PATH=(custom, user)
 LANG=nl_NL.UTF-8
 SHELL=/bin/bash
RfKill:
 0: hci0: Bluetooth
  Soft blocked: no
  Hard blocked: no
SourcePackage: network-manager
UpgradeStatus: Upgraded to precise on 2011-12-03 (40 days ago)
modified.conffile..etc.NetworkManager.NetworkManager.conf: [modified]
mtime.conffile..etc.NetworkManager.NetworkManager.conf: 2012-01-13T07:38:58.347888
nmcli-con:
 NAME UUID TYPE TIMESTAMP TIMESTAMP-REAL AUTOCONNECT READONLY DBUS-PATH
 XS4ALL VPN (openvpn) 16548840-3b2b-4086-920e-2d34a021e1ed vpn 1326436781 vr 13 jan 2012 07:39:41 CET yes no /org/freedesktop/NetworkManager/Settings/1
 Wired connection 1 56f95544-d904-47d7-a75c-11c5ce360c97 802-3-ethernet 1326436767 vr 13 jan 2012 07:39:27 CET yes no /org/freedesktop/NetworkManager/Settings/0
nmcli-dev:
 DEVICE TYPE STATE DBUS-PATH
 eth0 802-3-ethernet connected /org/freedesktop/NetworkManager/Devices/0
nmcli-nm:
 RUNNING VERSION STATE NET-ENABLED WIFI-HARDWARE WIFI WWAN-HARDWARE WWAN
 running 0.9.3.0 connected enabled enabled enabled enabled disabled

Revision history for this message
Martijn vdS (martijn) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in network-manager (Ubuntu):
status: New → Confirmed
Revision history for this message
Xavier Bassery (xaba) wrote :

I confirm that removing the new "dns=dnsmasq" line from /etc/NetworkManager/NetworkManager.conf makes the connection work again.

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Well, shucks. More fixing up for this will be required ;)

Could you please confirm whether that was always with openvpn? We've been testing precise the VPN cases, it seemed to work, so if we're seeing crashes now we really should be getting both an apport crash, and we should have caught it already :/

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Jan 13 18:23:16 gaea nm-openvpn[389]: OpenVPN 2.2.1 x86_64-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] [MH] [PF_INET6] [IPv6 payload 20110424-2 (2.2RC2)] built on Jan 2 2012
Jan 13 18:23:16 gaea nm-openvpn[389]: WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Jan 13 18:23:16 gaea nm-openvpn[389]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Jan 13 18:23:17 gaea nm-openvpn[389]: RESOLVE: NOTE: connect-openvpn.swissvpn.net resolves to 2 addresses
Jan 13 18:23:17 gaea nm-openvpn[389]: Attempting to establish TCP connection with [AF_INET]80.254.79.101:443 [nonblock]
Jan 13 18:23:19 gaea nm-openvpn[389]: TCP connection established with [AF_INET]80.254.79.101:443
Jan 13 18:23:19 gaea nm-openvpn[389]: TCPv4_CLIENT link local: [undef]
Jan 13 18:23:19 gaea nm-openvpn[389]: TCPv4_CLIENT link remote: [AF_INET]80.254.79.101:443
Jan 13 18:23:33 gaea nm-openvpn[389]: [server] Peer Connection Initiated with [AF_INET]80.254.79.101:443
It works for me. Are you using special configuration, like disabling IPv6 completely (just a wild guess) ?

Jan 13 18:23:36 gaea nm-openvpn[389]: TUN/TAP device tun0 opened
Jan 13 18:23:36 gaea nm-openvpn[389]: /usr/lib/NetworkManager/nm-openvpn-service-openvpn-helper tun0 1500 1543 93.94.245.32 255.255.255.128 init
Jan 13 18:23:36 gaea NetworkManager[32370]: <info> VPN connection 'SwissVPN openvpn' (IP Config Get) reply received.
Jan 13 18:23:36 gaea NetworkManager[32370]: <info> VPN Gateway: xxxxxxx
Jan 13 18:23:36 gaea NetworkManager[32370]: <info> Internal Gateway: xxxxxx
Jan 13 18:23:36 gaea NetworkManager[32370]: <info> Tunnel Device: tun0
Jan 13 18:23:36 gaea NetworkManager[32370]: <info> Internal IP4 Address: xxxxxxx
Jan 13 18:23:36 gaea NetworkManager[32370]: <info> Internal IP4 Prefix: 25
Jan 13 18:23:36 gaea NetworkManager[32370]: <info> Internal IP4 Point-to-Point Address: 0.0.0.0
Jan 13 18:23:36 gaea NetworkManager[32370]: <info> Maximum Segment Size (MSS): 0
Jan 13 18:23:36 gaea NetworkManager[32370]: <info> Forbid Default Route: no
Jan 13 18:23:36 gaea NetworkManager[32370]: <info> Internal IP4 DNS: xxxxxxx
Jan 13 18:23:36 gaea NetworkManager[32370]: <info> Internal IP4 DNS: xxxxxxx
Jan 13 18:23:36 gaea nm-openvpn[389]: Initialization Sequence Completed
Jan 13 18:23:36 gaea NetworkManager[32370]: <info> DNS Domain: '(none)'

If you get a crash after rebooting your system and verifying that you don't carry unusual configs (like removing the ipv6 module system-wide), please attach /var/log/syslog to this bug report and see if you can run NetworkManager in a debugger. For this, you'll need to also install the network-manager-dbg package.

Thanks!

Changed in network-manager (Ubuntu):
status: Confirmed → Incomplete
importance: Undecided → Medium
Revision history for this message
Xavier Bassery (xaba) wrote :

I have filled bug #916516 with (hopefully) the requested information.

Changed in network-manager (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package network-manager - 0.9.2.0+git201201101813.0b30200-0ubuntu2

---------------
network-manager (0.9.2.0+git201201101813.0b30200-0ubuntu2) precise; urgency=low

  * debian/patches/dnsmasq-vpn-dns-filtering.patch: update to fix crash when
    trying to add entries to dnsmasq with a NMIP{4,6}Config object that has no
    nameservers. (LP: #915825)
 -- Mathieu Trudel-Lapierre <email address hidden> Mon, 16 Jan 2012 20:17:48 +0100

Changed in network-manager (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.