MASTER - modem-manager crashed when tty disappears during "enable" - with SIGSEGV in dbus_connection_send()

Bug #452427 reported by soundpartner
178
This bug affects 31 people
Affects Status Importance Assigned to Milestone
modemmanager (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Binary package hint: modemmanager

ProblemType: Crash
Architecture: i386
Date: Thu Oct 15 20:54:18 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/sbin/modem-manager
Package: modemmanager 0.2.git.20091014t233208.16f3e00-0ubuntu1
ProcCmdline: /usr/sbin/modem-manager
ProcEnviron:

ProcVersionSignature: Ubuntu 2.6.31-14.46-generic
SegvAnalysis:
 Segfault happened at: 0x4dfaba: mov 0x4(%eax),%edx
 PC (0x004dfaba) ok
 source "0x4(%eax)" (0x000000a0) not located in a known VMA region (needed readable region)!
 destination "%edx" ok
SegvReason: reading NULL VMA
Signal: 11
SourcePackage: modemmanager
StacktraceTop:
 ?? () from /lib/libdbus-1.so.3
 ?? () from /lib/libdbus-1.so.3
 ?? () from /lib/libdbus-1.so.3
 ?? () from /lib/libdbus-1.so.3
 dbus_connection_send () from /lib/libdbus-1.so.3
Title: modem-manager crashed with SIGSEGV in dbus_connection_send()
Uname: Linux 2.6.31-14-generic i686
UserGroups:

Revision history for this message
soundpartner (michael-soundpartner) wrote :
Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt (retraced)

StacktraceTop:_dbus_list_unlink (list=0x9eff7cc, link=0x9c) at dbus-list.c:509
_dbus_list_pop_first_link (list=0x9eff7cc)
_dbus_connection_preallocate_send_unlocked (
_dbus_connection_send_and_unlock (connection=0x9eff75c,
dbus_connection_send (connection=0x9eff75c,

Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt (retraced)
Changed in modemmanager (Ubuntu):
importance: Undecided → Medium
tags: removed: need-i386-retrace
Alexander Sack (asac)
visibility: private → public
Revision history for this message
Alexander Sack (asac) wrote : Re: modem-manager crashed with SIGSEGV in dbus_connection_send()

what did you do when it crashed? can you reproduce this crash?

Changed in modemmanager (Ubuntu):
status: New → Incomplete
Revision history for this message
soundpartner (michael-soundpartner) wrote :

i do nothing...
i conect and surf the web (ubuntudanmark.dk, launchpad.net and facebook.com) i check mail (evolution) and use pidgin (irc, facebook chat and msn)

Revision history for this message
vak (khamenya) wrote :

@Alex,

I get this crash when I try to connect to mobile ISP.
I use network-manager applet to select my ISP and in a few second I see a black notification popup bar next to it saying "Disconnected". In a few scond later ubuntu shows the crash icon and proposes to report a bug.

Revision history for this message
Jens B. (jens-bavendiek) wrote :

@Alex,

I get this trying to connect via builtin UMTS. This worked 2-3 weeks ago. Obviously newer patches broke it. This is on i386, latest patches as of today.

Revision history for this message
vak (khamenya) wrote :

attached are the logs as described here: https://wiki.ubuntu.com/DebuggingModemmanager

the mm-test.py crashed though:

$ python ./mm-test.py
GSM modem
Driver: 'sierra'
Modem device: '/sys/devices/pci0000:00/0000:00:1d.2/usb7/7-1'
Data device: 'ttyUSB2'
Traceback (most recent call last):
  File "./mm-test.py", line 276, in <module>
    modem.Enable(True)
  File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 620, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.ModemManager.Modem.General: The modem was removed or disabled.

after test script exits with an error I see that this

sudo killall modem-manager; sudo modem-manager --debug 2>&1 | tee /tmp/modem.log.txt

is still running. Then I try to connect to my mobile ISP and get the described above crash. And I see that this

sudo killall modem-manager; sudo modem-manager --debug 2>&1 | tee /tmp/modem.log.txt

is terminated.

Revision history for this message
Alexander Sack (asac) wrote :

after some debugging in #nm we found that there are two issues here:

a) sierra modem goes down completely when sending CFUN=1 ... so we shouldnt do that.

b) crash of modemmanager when a tty disappears in the middle of activation.

i will open a new bug for a) and adjust this bug title.

Changed in modemmanager (Ubuntu):
assignee: nobody → Alexander Sack (asac)
status: Incomplete → Triaged
summary: - modem-manager crashed with SIGSEGV in dbus_connection_send()
+ modem-manager crashed when tty disappears during "enable" - with SIGSEGV
+ in dbus_connection_send()
summary: - modem-manager crashed when tty disappears during "enable" - with SIGSEGV
- in dbus_connection_send()
+ MASTER - modem-manager crashed when tty disappears during "enable" -
+ with SIGSEGV in dbus_connection_send()
Revision history for this message
Alexander Sack (asac) wrote :

the sierra bug (case a)) is bug 459052 ... please subscribe there if you were one of the sierra modem users that see this issue.

Revision history for this message
Martin Wildam (mwildam) wrote :

In my case this happened when starting up with my mobile internet Huawei E160G HSPDA Modem connected and WLAN disabled (my machine is a real one - Dell Latitude E5500 - no Virtual machine).

Revision history for this message
Andre (andre-steinert) wrote :

In my case it happened using mobile internet with a Huawei E220/270 HSDPA modem. The machine was a no-vm Dell Inspiron 5150.

Revision history for this message
Martin Wildam (mwildam) wrote :

BTW: My E160G shows up in lsusb as E220/270.

This bug somewhat related to https://bugs.launchpad.net/ubuntu/+source/linux/+bug/446146 or https://bugs.launchpad.net/ubuntu/+source/linux/+bug/449394 maybe?

Revision history for this message
Martin Pitt (pitti) wrote :

Quite a number of duplicates, and nice stack trace; Mathieu, can you please check if this is still an issue?

Changed in modemmanager (Ubuntu):
assignee: Alexander Sack (asac) → Mathieu Trudel-Lapierre (mathieu-tl)
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Martin Wildam (or anyone else with similar Huawei or Sierra devices),

Can you still reproduce this crash on new releases (10.04, 10.10)?

Looking at the git tree for ModemManager, looks to me like it would still be the case, but I don't happen to have a Sierra gsm modem nor a Huawei E220 or E160G (I'll look for one though), so it's hard to tell whether it would still crash. At the moment, it looks like CFUN=1 would still get issued, but after a delay to give the modem time to initialize, which may have fixed the issues.

Changed in modemmanager (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Closing the bug for now, please re open if you can reproduce with the latest version of Ubuntu, thanks.

Changed in modemmanager (Ubuntu):
assignee: Mathieu Trudel-Lapierre (mathieu-tl) → nobody
status: Incomplete → Invalid
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.