Bug 205955

Summary: knetworkmanager crashed after resuming from s2ram (NetworkInterfaceActivatableProvider::handleUpdate, ConnectionList::updateConnection, ConnectionUsageMonitor::handleActivationStateChange)
Product: [Unmaintained] Network Management Reporter: Christian Trippe <christiandehne>
Component: knetworkmanagerAssignee: Will Stephenson <wstephenson>
Status: RESOLVED FIXED    
Severity: crash CC: andresbajotierra, info, johnwheaton2, ms-kdebugs, regi.hops, sven.burmeister, untitled.no4
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Christian Trippe 2009-09-02 08:30:59 UTC
Version:           Unbekannt (using 4.3.1 (KDE 4.3.1) "release 163", KDE:KDE4:Factory:Desktop / openSUSE_11.1)
Compiler:          gcc
OS:                Linux (i686) release 2.6.27.29-0.1-default

Yesterday I updated to KDE 4.3.1 containing the following version of knetworkmanager

rpm -q NetworkManager-kde4
NetworkManager-kde4-0.9.svn1017841-101.1

After resuming from s2ram knetworkmanager crashes every time with the following backtrace:


Application that crashed: knetworkmanager
Version of the application: v0.8
KDE Version: 4.3.1 (KDE 4.3.1) "release 163"
Qt Version: 4.5.2
Operating System: Linux 2.6.27.29-0.1-default i686
Distribution: "openSUSE 11.1 (i586)"

 -- Backtrace:
Application: KNetworkManager (knetworkmanager), signal: Segmentation fault
[KCrash Handler]
#6  0xb6c3ff8b in __dynamic_cast () from /usr/lib/libstdc++.so.6
#7  0xb79bd341 in NetworkInterfaceActivatableProvider::handleUpdate (this=0x8182598, updatedConnection=0x8187858)
    at /usr/src/debug/networkmanager/libs/service/networkinterfaceactivatableprovider.cpp:180
#8  0xb79b60cc in ConnectionList::updateConnection (this=0x80f67a0, connection=0x8187858) at /usr/src/debug/networkmanager/libs/service/connectionlist.cpp:115
#9  0xb79c68f6 in ConnectionUsageMonitor::handleActivationStateChange (this=0x812fa20, state=Knm::InterfaceConnection::Activated)
    at /usr/src/debug/networkmanager/libs/service/connectionusagemonitor.cpp:114
#10 0xb79b5a91 in ConnectionUsageMonitor::qt_metacall (this=0x812fa20, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfac137c)
    at /usr/src/debug/networkmanager/build/libs/service/moc_connectionusagemonitor.cpp:73
#11 0xb6dec788 in QMetaObject::activate (sender=0x8093308, from_signal_index=7, to_signal_index=7, argv=0xbfac137c) at kernel/qobject.cpp:3113
#12 0xb6ded412 in QMetaObject::activate (sender=0x8093308, m=0x806a7c0, local_signal_index=0, argv=0xbfac137c) at kernel/qobject.cpp:3187
#13 0xb79ec1b3 in Knm::InterfaceConnection::activationStateChanged (this=0x8093308, _t1=Knm::InterfaceConnection::Activated)
    at /usr/src/debug/networkmanager/build/libs/internals/moc_interfaceconnection.cpp:127
#14 0xb7a04d3c in Knm::InterfaceConnection::setActivationState (this=0x8093308, state=Knm::InterfaceConnection::Activated) at /usr/src/debug/networkmanager/libs/internals/interfaceconnection.cpp:84
#15 0xb7996414 in NMDBusActiveConnectionMonitor::activeConnectionChangedInternal (this=0x8187448, iface=0x8187c68, changedProps=@0x8120d08)
    at /usr/src/debug/networkmanager/backends/NetworkManager/nmdbusactiveconnectionmonitor.cpp:203
#16 0xb79966cb in NMDBusActiveConnectionMonitor::activeConnectionChanged (this=0x8187448, changedProps=@0x8120d08)
    at /usr/src/debug/networkmanager/backends/NetworkManager/nmdbusactiveconnectionmonitor.cpp:163
#17 0xb7960a62 in NMDBusActiveConnectionMonitor::qt_metacall (this=0x8187448, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xbfac152c)
    at /usr/src/debug/networkmanager/build/backends/NetworkManager/moc_nmdbusactiveconnectionmonitor.cpp:74
#18 0xb6dec788 in QMetaObject::activate (sender=0x8187c68, from_signal_index=5, to_signal_index=5, argv=0xbfac152c) at kernel/qobject.cpp:3113
#19 0xb6ded412 in QMetaObject::activate (sender=0x8187c68, m=0xb79a5760, local_signal_index=0, argv=0xbfac152c) at kernel/qobject.cpp:3187
#20 0xb79602b3 in OrgFreedesktopNetworkManagerConnectionActiveInterface::PropertiesChanged (this=0x8187c68, _t1=@0x8120d08)
    at /usr/src/debug/networkmanager/build/backends/NetworkManager/moc_nm-active-connectioninterface.cpp:121
#21 0xb79612b6 in OrgFreedesktopNetworkManagerConnectionActiveInterface::qt_metacall (this=0x8187c68, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfac174c)
    at /usr/src/debug/networkmanager/build/backends/NetworkManager/moc_nm-active-connectioninterface.cpp:80
#22 0xb6ef3873 in QDBusConnectionPrivate::deliverCall (this=0x80fa3b0, object=0x8187c68, msg=@0x81828e4, metaTypes=@0x81828e8, slotIdx=5) at qdbusintegrator.cpp:891
#23 0xb6efbab7 in QDBusCallDeliveryEvent::placeMetaCall(QObject*) () from /usr/lib/libQtDBus.so.4
#24 0xb6de7970 in QObject::event (this=0x8187c68, e=0x81828b8) at kernel/qobject.cpp:1111
#25 0xb70627bc in QApplicationPrivate::notify_helper (this=0x80898a0, receiver=0x8187c68, e=0x81828b8) at kernel/qapplication.cpp:4056
#26 0xb706aaae in QApplication::notify (this=0xbfac1e68, receiver=0x8187c68, e=0x81828b8) at kernel/qapplication.cpp:3603
#27 0xb7bf372d in KApplication::notify (this=0xbfac1e68, receiver=0x8187c68, event=0x81828b8) at /usr/src/debug/kdelibs-4.3.1/kdeui/kernel/kapplication.cpp:302
#28 0xb6dd716b in QCoreApplication::notifyInternal (this=0xbfac1e68, receiver=0x8187c68, event=0x81828b8) at kernel/qcoreapplication.cpp:610
#29 0xb6dd7db5 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x80702b8) at kernel/qcoreapplication.h:213
#30 0xb6dd7fad in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1140
#31 0xb6e02c8f in postEventSourceDispatch (s=0x808baf0) at kernel/qcoreapplication.h:218
#32 0xb64229c8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#33 0xb6426083 in ?? () from /usr/lib/libglib-2.0.so.0
#34 0xb6426241 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#35 0xb6e028d8 in QEventDispatcherGlib::processEvents (this=0x806fe40, flags={i = -1079239336}) at kernel/qeventdispatcher_glib.cpp:327
#36 0xb7102ca5 in QGuiEventDispatcherGlib::processEvents (this=0x806fe40, flags={i = -1079239288}) at kernel/qguieventdispatcher_glib.cpp:202
#37 0xb6dd578a in QEventLoop::processEvents (this=0xbfac1e00, flags={i = -1079239224}) at kernel/qeventloop.cpp:149
#38 0xb6dd5bd2 in QEventLoop::exec (this=0xbfac1e00, flags={i = -1079239160}) at kernel/qeventloop.cpp:201
#39 0xb6dd8079 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#40 0xb7062637 in QApplication::exec () at kernel/qapplication.cpp:3525
#41 0x08052783 in main (argc=1, argv=0xbfac1f74) at /usr/src/debug/networkmanager/monolithic/main.cpp:43
Comment 1 Dario Andres 2009-09-05 20:52:37 UTC
*** Bug 206403 has been marked as a duplicate of this bug. ***
Comment 2 John Wheaton 2009-09-06 00:01:10 UTC
I am having the same problem with Ubuntu packages for KDE 4.3.1 on an Acer Aspire AOD250.  Here is my backtrace.  KNetworkManager crashes either when I suspect or resume -- it's hard to tell because the only time I see it is when I resume.  Either way, I can restart the application and it works again; I am typing this immediately after such an incident.

Application that crashed: knetworkmanager
Version of the application: v0.8
KDE Version: 4.3.1 (KDE 4.3.1)
Qt Version: 4.5.2
Operating System: Linux 2.6.28-15-generic i686
Distribution: Ubuntu 9.04

 -- Backtrace:
Application: KNetworkManager (knetworkmanager), signal: Segmentation fault
[KCrash Handler]
#6  0xb6c382fb in __dynamic_cast () from /usr/lib/libstdc++.so.6
#7  0xb79548f1 in NetworkInterfaceActivatableProvider::handleUpdate () from /usr/lib/libknmservice.so.4
#8  0xb794d65c in ConnectionList::updateConnection () from /usr/lib/libknmservice.so.4
#9  0xb795dec6 in ConnectionUsageMonitor::handleActivationStateChange () from /usr/lib/libknmservice.so.4
#10 0xb794c1c1 in ConnectionUsageMonitor::qt_metacall () from /usr/lib/libknmservice.so.4
#11 0xb6dc71b8 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#12 0xb6dc7e42 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#13 0xb797e9d3 in Knm::InterfaceConnection::activationStateChanged () from /usr/lib/libknminternals.so.4
#14 0xb79975ec in Knm::InterfaceConnection::setActivationState () from /usr/lib/libknminternals.so.4
#15 0xb793178c in NMDBusActiveConnectionMonitor::activeConnectionChangedInternal () from /usr/lib/libknm_nm.so
#16 0xb7931a3b in NMDBusActiveConnectionMonitor::activeConnectionChanged () from /usr/lib/libknm_nm.so
#17 0xb78fbdd2 in NMDBusActiveConnectionMonitor::qt_metacall () from /usr/lib/libknm_nm.so
#18 0xb6dc71b8 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#19 0xb6dc7e42 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#20 0xb78fb7f3 in ?? () from /usr/lib/libknm_nm.so
#21 0xb78fc626 in ?? () from /usr/lib/libknm_nm.so
#22 0xb6ec8e5a in ?? () from /usr/lib/libQtDBus.so.4
#23 0xb6ed0eb7 in ?? () from /usr/lib/libQtDBus.so.4
#24 0xb6dc23b0 in QObject::event () from /usr/lib/libQtCore.so.4
#25 0xb703dd3c in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#26 0xb704603e in QApplication::notify () from /usr/lib/libQtGui.so.4
#27 0xb7b8285d in KApplication::notify () from /usr/lib/libkdeui.so.5
#28 0xb6db1bcb in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#29 0xb6db2825 in QCoreApplicationPrivate::sendPostedEvents () from /usr/lib/libQtCore.so.4
#30 0xb6db2a1d in QCoreApplication::sendPostedEvents () from /usr/lib/libQtCore.so.4
#31 0xb6ddd6af in ?? () from /usr/lib/libQtCore.so.4
#32 0xb643bb88 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#33 0xb643f0eb in ?? () from /usr/lib/libglib-2.0.so.0
#34 0xb643f268 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#35 0xb6ddd2f8 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#36 0xb70dfa75 in ?? () from /usr/lib/libQtGui.so.4
#37 0xb6db01fa in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#38 0xb6db0642 in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#39 0xb6db2ae9 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#40 0xb703dbb7 in QApplication::exec () from /usr/lib/libQtGui.so.4
#41 0x080526f3 in _start ()
Comment 3 regi.hops 2009-09-06 01:01:11 UTC
Here is another one
Hardware Asus F5M with Atheros WLAN

Networkmanager-KDE4 0.9.svn1017841-102.1-i586

2 Versions before this one everything was fine.
Crashes start after update to the version with the changed "Manage Connection" - Interface. Sorry I don't know the exact version number, but may this gives a hint.

Application that crashed: knetworkmanager
Version of the application: v0.8
KDE Version: 4.3.1 (KDE 4.3.1) "release 161"
Qt Version: 4.5.2
Operating System: Linux 2.6.27.29-0.1-pae i686
Distribution: "openSUSE 11.1 (i586)"

What I was doing when the application crashed:
Resume from suspend to disk

 -- Backtrace:
Application: KNetworkManager (knetworkmanager), signal: Segmentation fault
[KCrash Handler]
#6  0xb6be0f8b in __dynamic_cast () from /usr/lib/libstdc++.so.6
#7  0xb795e341 in NetworkInterfaceActivatableProvider::handleUpdate(Knm::Connection*) () from /usr/lib/libknmservice.so.4
#8  0xb79570cc in ConnectionList::updateConnection(Knm::Connection*) () from /usr/lib/libknmservice.so.4
#9  0xb79678f6 in ConnectionUsageMonitor::handleActivationStateChange(Knm::InterfaceConnection::ActivationState) () from /usr/lib/libknmservice.so.4
#10 0xb7956a91 in ConnectionUsageMonitor::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libknmservice.so.4
#11 0xb6d8d788 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQtCore.so.4
#12 0xb6d8e412 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#13 0xb798d1b3 in Knm::InterfaceConnection::activationStateChanged(Knm::InterfaceConnection::ActivationState) () from /usr/lib/libknminternals.so.4
#14 0xb79a5d3c in Knm::InterfaceConnection::setActivationState(Knm::InterfaceConnection::ActivationState) () from /usr/lib/libknminternals.so.4
#15 0xb7937414 in NMDBusActiveConnectionMonitor::activeConnectionChangedInternal(OrgFreedesktopNetworkManagerConnectionActiveInterface*, QMap<QString, QVariant> const&) () from /usr/lib/libknm_nm.so
#16 0xb79376cb in NMDBusActiveConnectionMonitor::activeConnectionChanged(QMap<QString, QVariant> const&) () from /usr/lib/libknm_nm.so
#17 0xb7901a62 in NMDBusActiveConnectionMonitor::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libknm_nm.so
#18 0xb6d8d788 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQtCore.so.4
#19 0xb6d8e412 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#20 0xb79012b3 in ?? () from /usr/lib/libknm_nm.so
#21 0xb79022b6 in ?? () from /usr/lib/libknm_nm.so
#22 0xb6e94873 in ?? () from /usr/lib/libQtDBus.so.4
#23 0xb6e9cab7 in ?? () from /usr/lib/libQtDBus.so.4
#24 0xb6d88970 in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#25 0xb70037bc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#26 0xb700baae in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#27 0xb7b9472d in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#28 0xb6d7816b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#29 0xb6d78db5 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#30 0xb6d78fad in QCoreApplication::sendPostedEvents(QObject*, int) () from /usr/lib/libQtCore.so.4
#31 0xb6da3c8f in ?? () from /usr/lib/libQtCore.so.4
#32 0xb63c39c8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#33 0xb63c7083 in ?? () from /usr/lib/libglib-2.0.so.0
#34 0xb63c7241 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#35 0xb6da38d8 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#36 0xb70a3ca5 in ?? () from /usr/lib/libQtGui.so.4
#37 0xb6d7678a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#38 0xb6d76bd2 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#39 0xb6d79079 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#40 0xb7003637 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#41 0x08052783 in _start ()
Comment 4 Will Stephenson 2009-09-07 10:58:58 UTC
openSUSE report https://bugzilla.novell.com/show_bug.cgi?id=536942
Comment 5 Will Stephenson 2009-09-08 13:55:37 UTC
SVN commit 1021166 by wstephens:

Fix crash on resume caused by hidden connections work.
BUG: 205955


 M  +6 -3      networkinterfaceactivatableprovider.cpp  
 M  +2 -1      networkinterfaceactivatableprovider_p.h  
 M  +2 -2      wirednetworkinterfaceactivatableprovider.cpp  
 M  +88 -81    wirelessnetworkinterfaceactivatableprovider.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1021166
Comment 6 Will Stephenson 2009-09-11 20:48:49 UTC
*** Bug 207107 has been marked as a duplicate of this bug. ***
Comment 7 Dario Andres 2009-10-08 23:30:41 UTC
*** Bug 209834 has been marked as a duplicate of this bug. ***