[Pkg-utopia-maintainers] Bug#531603: network-manager: fails to close serial port on modem disconnect

Tim Wootton tim_wootton at yahoo.com
Tue Jun 2 17:14:21 UTC 2009


Package: network-manager
Version: 0.7.1-1
Severity: important


NetworkManager fails to close USB serial device despite calling nm_serial_device_close(), this leaves NetworkManager with the device open, but thinking it's closed, and preventing itself from opening it again to start a new connection.

I have to kill NetworkManager to get it to release the device.

After the modem disconnection, lsof of my device (ttyUSB0) is:
# lsof /dev/ttyUSB0
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF  NODE NAME
NetworkMa 5614 root    9u   CHR  188,0      0t0 25519 /dev/ttyUSB0


Trace from Network Manager process shows:
Modem hangup
Connection terminated.
NetworkManager: <info>  (ttyUSB0): device state change: 7 -> 9
NetworkManager: <WARN>  monitor_cb(): Could not read ppp stats: No such device
NetworkManager: <debug> [1243960701.044466] nm_serial_device_close(): Closing device 'ttyUSB0'
NetworkManager: <info>  Marking connection '3 Mobile' invalid.
NetworkManager: <info>  Activation (ttyUSB0) failed.
NetworkManager: <info>  (ttyUSB0): device state change: 9 -> 3
NetworkManager: <info>  (ttyUSB0): deactivating device (reason: 0).
NetworkManager: nm_system_device_flush_ip4_routes_with_iface: assertion `iface_idx >= 0' failed
NetworkManager: nm_system_device_flush_ip4_addresses_with_iface: assertion `iface_idx >= 0' failed
NetworkManager: <debug> [1243960703.005227] ensure_killed(): waiting for ppp pid 6743 to exit
NetworkManager: <debug> [1243960703.005357] ensure_killed(): ppp pid 6743 cleaned up
NetworkManager: <info>  Activation (ttyUSB0) starting connection '3 Mobile'
NetworkManager: <info>  (ttyUSB0): device state change: 3 -> 4
NetworkManager: <info>  Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) scheduled...
NetworkManager: <info>  Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) started...
NetworkManager: <debug> [1243960895.329312] nm_serial_device_open(): (ttyUSB0) opening device...
NetworkManager: <WARN>  nm_serial_device_open(): (ttyUSB0) cannot control device (errno 6)



-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages network-manager depends on:
ii  adduser      3.110                       add and remove users and groups
ii  dbus         1.2.12-1                    simple interprocess messaging syst
ii  dhcp3-client 3.1.1-6                     DHCP client
ii  hal          0.5.12~git20090406.46dc48-2 Hardware Abstraction Layer
ii  ifupdown     0.6.8+nmu1                  high level tools to configure netw
ii  libc6        2.9-12                      GNU C Library: Shared libraries
ii  libdbus-1-3  1.2.12-1                    simple interprocess messaging syst
ii  libdbus-glib 0.80-4                      simple interprocess messaging syst
ii  libgcrypt11  1.4.4-2                     LGPL Crypto library - runtime libr
ii  libglib2.0-0 2.20.1-2                    The GLib library of C routines
ii  libgnutls26  2.6.6-1                     the GNU TLS library - runtime libr
ii  libgpg-error 1.6-1                       library for common error values an
ii  libhal1      0.5.12~git20090406.46dc48-2 Hardware Abstraction Layer - share
ii  libnl1       1.1-5                       library for dealing with netlink s
ii  libnm-glib0  0.7.1-1                     network management framework (GLib
ii  libnm-util1  0.7.1-1                     network management framework (shar
ii  libpolkit-db 0.9-3                       library for accessing PolicyKit vi
ii  libpolkit2   0.9-3                       library for accessing PolicyKit
ii  libtasn1-3   2.2-1                       Manage ASN.1 structures (runtime)
ii  libuuid1     1.41.3-1                    universally unique id library
ii  lsb-base     3.2-22                      Linux Standard Base 3.2 init scrip
ii  wpasupplican 0.6.9-3                     client support for WPA and WPA2 (I
ii  zlib1g       1:1.2.3.3.dfsg-13           compression library - runtime

Versions of packages network-manager recommends:
ii  dnsmasq-base          2.47-3             A small caching DNS proxy and DHCP
ii  iptables              1.4.3.2-2          administration tools for packet fi
ii  network-manager-gnome 0.7.1-1            network management framework (GNOM
ii  network-manager-kde   1:0.7~~svn941706-1 KDE systray applet for controlling
ii  policykit             0.9-3              framework for managing administrat
ii  ppp                   2.4.4rel-10.1      Point-to-Point Protocol (PPP) - da

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

-- no debconf information





More information about the Pkg-utopia-maintainers mailing list