usb_modeswitch_[6077]: segfault at 8 ip 00007f1e2bc8cc41 sp 00007ffff9579048 error 4 in libc-2.17.so[7f1e2bc03000+1bd000]

Bug #1242209 reported by diraol on 2013-10-19
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
usb-modeswitch (Ubuntu)
Undecided
Unassigned

Bug Description

$ lsb_release -rd
Description: Ubuntu 13.10
Release: 13.10

$:~# apt-cache policy usb-modeswitch
usb-modeswitch:
  Instalado: 1.2.3+repack0-1ubuntu3
  Candidato: 1.2.3+repack0-1ubuntu3
  Tabela de versão:
 *** 1.2.3+repack0-1ubuntu3 0
        500 http://br.archive.ubuntu.com/ubuntu/ saucy/main amd64 Packages
        100 /var/lib/dpkg/status

usb-modeswitch segfault when I plug in DWM-156 modem to computer.

Modem specs:
Model: DWM-156
H/W Ver.: A5
F/W Ver.: 5.0.1LA

diraol (diraol) wrote :
diraol (diraol) wrote :

$ apt-cache rdepends usb-modeswitch
usb-modeswitch
Reverse Depends:
  usb-modeswitch:i386
  wader-core
  lubuntu-desktop
  libgammu7
  usb-modeswitch-data
  usb-modeswitch-data
  usb-modeswitch-data
  modemmanager

--------------------------------
$ apt-cache showpkg usb-modeswitch
Package: usb-modeswitch
Versions:
1.2.3+repack0-1ubuntu3 (/var/lib/apt/lists/br.archive.ubuntu.com_ubuntu_dists_saucy_main_binary-amd64_Packages) (/var/lib/dpkg/status)
 Description Language:
                 File: /var/lib/apt/lists/br.archive.ubuntu.com_ubuntu_dists_saucy_main_binary-amd64_Packages
                  MD5: bbddadcef95b9342b7cf75c7d1b5cfa2
 Description Language: en
                 File: /var/lib/apt/lists/br.archive.ubuntu.com_ubuntu_dists_saucy_main_i18n_Translation-en
                  MD5: bbddadcef95b9342b7cf75c7d1b5cfa2
 Description Language: pt_BR
                 File: /var/lib/apt/lists/br.archive.ubuntu.com_ubuntu_dists_saucy_main_i18n_Translation-pt%5fBR
                  MD5: bbddadcef95b9342b7cf75c7d1b5cfa2

Reverse Depends:
  usb-modeswitch:i386,usb-modeswitch
  wader-core,usb-modeswitch
  lubuntu-desktop,usb-modeswitch
  libgammu7,usb-modeswitch
  usb-modeswitch-data,usb-modeswitch 1.0.7-1
  usb-modeswitch-data,usb-modeswitch 1.2.1
  usb-modeswitch-data,usb-modeswitch 1.2.1
  modemmanager,usb-modeswitch
Dependencies:
1.2.3+repack0-1ubuntu3 - libc6 (2 2.14) libpipeline1 (2 1.0.0) libusb-0.1-4 (2 2:0.1.12) usb-modeswitch-data (2 20110227-1~) dpkg (2 1.15.7.2) comgt (0 (null)) wvdial (0 (null)) usb-modeswitch-data (3 20100127) usb-modeswitch-data:i386 (3 20100127) usb-modeswitch:i386 (0 (null))
Provides:
1.2.3+repack0-1ubuntu3 -
Reverse Provides:

diraol (diraol) wrote :

I've installed usb-modeswitch 2.0.1 (from source) to make some tests.

After a fresh install of usb-modeswitch 2.0.1 when I plug/unplug/plug the 3g Modem, it is correctly recognized and booted up, and i can see it on Network Manager and connect to 3G.

When I reboot my OS it stops working.

I've done some tests and saved the log of all steps (syslog and usb_modeswitch log).

Steps:
1) No modeswitch installed
2) usb-modeswitch 2.0.1 installed and modem plugged in
3) connected to 3G network (working fine)
4) disconnected from 3G network
5) unplugged the modem
6) plugged in the modem again
7) connected (again) to 3G network (working fine)
8) disconnected from 3G network
9) rebooted the OS (with the modem unplugged)
10) plugged in the modem after reboot (modem does not become available on Network Manager)
11) unplugged the modem

I'm sending tar.gz with logs from each step. There log files are two for each tar.gz:
a) syslog (diff from preceding step);
b) usb_modeswitch log (when installing from source I changed the EnnableLoggin flag to true).

I hope this could help.

If there are other files and logs and tests i can do to help on the debug just ask me for that. =)

diraol (diraol) wrote :

Note: Same effect with version 1.2.7 installed from source.
After a fresh install everything works fine. After reboot not working.

diraol (diraol) wrote :

Improving the log analysis.

With usb-modeswitch 1.2.7:

Checking out the difference between syslog when plugin in the modem after a fresh install ( working ok ) and after plugin in the modem after a reboot (not working), I found the following lines only on the working ok situation:

option 1-2:1.0: GSM modem (1-port) converter detected
usb 1-2: GSM modem (1-port) converter now attached to ttyUSB0
option 1-2:1.1: GSM modem (1-port) converter detected
usb 1-2: GSM modem (1-port) converter now attached to ttyUSB1

and

modem-manager[666]: <info> (ttyUSB1) opening serial port...
modem-manager[666]: <warn> (ttyUSB1): port attributes not fully set
modem-manager[666]: <info> (ttyUSB0) opening serial port...
modem-manager[666]: <warn> (ttyUSB0): port attributes not fully set

and

modem-manager[666]: <info> (ttyUSB1) closing serial port...
  modem-manager[666]: <info> (ttyUSB1) serial port closed
  modem-manager[666]: <info> (Generic): GSM modem /sys/devices/pci0000:00/0000:00:12.2/usb1/1-2 claimed port ttyUSB1
  modem-manager[666]: <info> (ttyUSB0) closing serial port...
  modem-manager[666]: <info> (ttyUSB0) serial port closed
  modem-manager[666]: <info> (Generic): GSM modem /sys/devices/pci0000:00/0000:00:12.2/usb1/1-2 claimed port ttyUSB0
  modem-manager[666]: <info> (ttyUSB0) opening serial port...
  modem-manager[666]: <warn> (ttyUSB0): port attributes not fully set
  NetworkManager[694]: <warn> (ttyUSB0): failed to look up interface index
  NetworkManager[694]: <info> (ttyUSB0): new GSM/UMTS device (driver: 'option1' ifindex: 0)
  NetworkManager[694]: <info> (ttyUSB0): exported as /org/freedesktop/NetworkManager/Devices/3
  NetworkManager[694]: <info> (ttyUSB0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
  NetworkManager[694]: <info> (ttyUSB0): deactivating device (reason 'managed') [2]
  NetworkManager[694]: <info> (ttyUSB0): device state change: unavailable -> disconnected (reason 'none') [20 30 0]
  modem-manager[666]: <info> (ttyUSB0) closing serial port...
  modem-manager[666]: <info> (ttyUSB0) serial port closed

Launchpad Janitor (janitor) wrote :

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

Changed in usb-modeswitch (Ubuntu):
status: New → Confirmed
cd311 (cd311) wrote :

Hi

I had the same problem with Kubuntu 13.10 and the DW-156.
A downgrade of the usb-modeswitch and usb-modeswitch-data to the version from precise fixed the segfault problem.
The quantal and raring packages didn't do the trick (both segfaulted like the saucy packages).
See http://packages.ubuntu.com/precise/usb-modeswitch and http://packages.ubuntu.com/precise/usb-modeswitch-data for the packages.

Regarding the "not working after reboot": I can't confirm this with the precise packages but I had to add usbserial und option to /etc/modules and I need to plug the modem in two times.
The first time only the storage part gets loaded. In the second time the usb_modeswitch gets activated and the modem part loads up.

I still have a problem with modemmanager using the wrong ttyUSB device (see https://bugs.launchpad.net/ubuntu/+source/modemmanager/+bug/819784 ) but for now I get a connection using wvdial.

regards
cd311

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers