NetworkManager crashed with signal 2 (SIGINT) when gps device sending binary data is attached to USB port

Bug #362380 reported by Andrea Foni
4
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: network-manager

Hi.

The issue comes when a GPS device (u-blox chipset), that implement a standard communication class (Abstract Line Control Model) to parse positioning information in binary format, is connected to a ubuntu 8.10 machine.

The issue is coming from the fact that, in the ubuntu version of the connection manager, there is a parse-modem functionality, that open the newly detected device to verify if its' a modem, without the option O_NOCTTY.

The GPS device, with a special configuration that send continuosly binary data, is then sending the escape character to the CM, and therefore the sistem detects a SIGINT signal and terminates.

The solution would be to add the option O_NOCTTY in the open of the device, inside the probe_modem() function, in the probe-modem.c module.

I have tested that after this modification the CM do not crash any more. The patch is enclosed.

Ciao,

Andrea

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 8.10
Gconf:

IfupdownConfig:
 auto lo
 iface lo inet loopback
NonfreeKernelModules: nvidia
Package: network-manager 0.7~~svn20081018t105859-0ubuntu1.8.10.2
ProcEnviron:
 PATH=/home/username/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/ARC/MetaWare/arc/bin
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: network-manager
Uname: Linux 2.6.27-11-generic i686
WpaSupplicantLog:

Tags: apport-bug
Revision history for this message
Andrea Foni (andrea-foni) wrote :
Revision history for this message
Alexander Sack (asac) wrote :

the way modem probing is done has been changed considerably in jaunty. can you see if this is still a problem there?

Changed in network-manager (Ubuntu):
status: New → Incomplete
Revision history for this message
Andrea Foni (andrea-foni) wrote :

No, the NetworkManager in the Jaunty release candidate (I see version 0.7.1-rc4.1.cf199a964-0ubuntu2) is not affected by this problem.

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

[Expired for network-manager (Ubuntu) because there has been no activity for 60 days.]

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

Other bug subscribers

Remote bug watches

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