Bug 312638 - kded4 crash when restarting NetworkManager
Summary: kded4 crash when restarting NetworkManager
Status: RESOLVED DUPLICATE of bug 314200
Alias: None
Product: Network Management
Classification: Unmaintained
Component: general (show other bugs)
Version: 0.9
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Lamarque V. Souza
URL:
Keywords:
: 313640 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-01-04 21:39 UTC by Martin Holec
Modified: 2013-01-31 18:36 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Holec 2013-01-04 21:39:29 UTC
Application: kded4 ($Id$)
KDE Platform Version: 4.9.4
Qt Version: 4.8.4
Operating System: Linux 3.6.10-4.fc18.x86_64 x86_64
Distribution (Platform): Fedora RPMs

-- Information about the crash:
- What I was doing when the application crashed:
systemctl stop NetworkManager.service 
systemctl start NetworkManager.service 
systemctl stop NetworkManager.service 
systemctl start NetworkManager.service

- Custom settings of the application:
updated NetworkManager before first systemctl stop

The crash can be reproduced some of the time.

-- Backtrace:
Application: KDE Daemon (kded4), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
81	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7f2ebba47880 (LWP 1396))]

Thread 2 (Thread 0x7f2ead40c700 (LWP 1521)):
#0  0x00000039cbce97ed in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00000039cf447d44 in g_main_context_poll (n_fds=1, fds=0x7f2ea00029b0, timeout=-1, context=0x7f2ea00009a0, priority=<optimized out>) at gmain.c:3584
#2  g_main_context_iterate (context=context@entry=0x7f2ea00009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3285
#3  0x00000039cf447e64 in g_main_context_iteration (context=0x7f2ea00009a0, may_block=1) at gmain.c:3351
#4  0x00000039d8da60f6 in QEventDispatcherGlib::processEvents (this=0x7f2ea00008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00000039d8d767df in QEventLoop::processEvents (this=this@entry=0x7f2ead40bcd0, flags=...) at kernel/qeventloop.cpp:149
#6  0x00000039d8d76a68 in QEventLoop::exec (this=0x7f2ead40bcd0, flags=...) at kernel/qeventloop.cpp:204
#7  0x00000039d8c78950 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#8  0x00000039d8d5700f in QInotifyFileSystemWatcherEngine::run (this=0xa7ebb0) at io/qfilesystemwatcher_inotify.cpp:256
#9  0x00000039d8c7b92c in QThreadPrivate::start (arg=0xa7ebb0) at thread/qthread_unix.cpp:338
#10 0x00000039cc407d15 in start_thread (arg=0x7f2ead40c700) at pthread_create.c:308
#11 0x00000039cbcf22cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:114

Thread 1 (Thread 0x7f2ebba47880 (LWP 1396)):
[KCrash Handler]
#6  WirelessNetworkInterfaceActivatableProvider::handleAdd (this=0xaa1190, addedConnection=0xad3500) at /usr/src/debug/networkmanagement-0.9.0.5/libs/service/wirelessnetworkinterfaceactivatableprovider.cpp:131
#7  0x00007f2eae5d0594 in WirelessNetworkInterfaceActivatableProvider::wirelessEnabledChanged (this=0xaa1190, status=<optimized out>) at /usr/src/debug/networkmanagement-0.9.0.5/libs/service/wirelessnetworkinterfaceactivatableprovider.cpp:309
#8  0x00000039d8d8cebf in QMetaObject::activate (sender=0xca38a0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff8ede6d50) at kernel/qobject.cpp:3539
#9  0x00007f2eae1337e2 in Solid::Control::NetworkManagerNm09::Notifier::wirelessEnabledChanged (this=<optimized out>, _t1=true) at /usr/src/debug/networkmanagement-0.9.0.5/x86_64-redhat-linux-gnu/solidcontrolfuture/libs/solid/control/networkmanager.moc:143
#10 0x00000039d8d8cebf in QMetaObject::activate (sender=0xc8ee50, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff8ede6ea0) at kernel/qobject.cpp:3539
#11 0x00007f2ead620c52 in Solid::Control::Ifaces::NetworkManagerNm09::wirelessEnabledChanged (this=<optimized out>, _t1=true) at /usr/src/debug/networkmanagement-0.9.0.5/x86_64-redhat-linux-gnu/solidcontrolfuture/libs/solid/control/ifaces/networkmanager.moc:153
#12 0x00007f2eac3c7298 in NMNetworkManagerNm09::propertiesChanged (this=0xc8ee50, properties=...) at /usr/src/debug/networkmanagement-0.9.0.5/solidcontrolfuture/solid/networkmanager-0.9/manager.cpp:342
#13 0x00007f2eac3c7f79 in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at /usr/src/debug/networkmanagement-0.9.0.5/x86_64-redhat-linux-gnu/solidcontrolfuture/solid/networkmanager-0.9/manager.moc:73
#14 NMNetworkManagerNm09::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /usr/src/debug/networkmanagement-0.9.0.5/x86_64-redhat-linux-gnu/solidcontrolfuture/solid/networkmanager-0.9/manager.moc:60
#15 0x00000039d8d8cebf in QMetaObject::activate (sender=0xa372c0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff8ede71e0) at kernel/qobject.cpp:3539
#16 0x00007f2eac3d2f45 in OrgFreedesktopNetworkManagerInterface::PropertiesChanged (this=<optimized out>, _t1=...) at /usr/src/debug/networkmanagement-0.9.0.5/x86_64-redhat-linux-gnu/solidcontrolfuture/solid/networkmanager-0.9/nm-managerinterface.moc:235
#17 0x00007f2eac3d3289 in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at /usr/src/debug/networkmanagement-0.9.0.5/x86_64-redhat-linux-gnu/solidcontrolfuture/solid/networkmanager-0.9/nm-managerinterface.moc:107
#18 OrgFreedesktopNetworkManagerInterface::qt_static_metacall (_o=0xa372c0, _c=<optimized out>, _id=<optimized out>, _a=0x7fff8ede7830) at /usr/src/debug/networkmanagement-0.9.0.5/x86_64-redhat-linux-gnu/solidcontrolfuture/solid/networkmanager-0.9/nm-managerinterface.moc:98
#19 0x00007f2eac3d472f in OrgFreedesktopNetworkManagerInterface::qt_metacall (this=0xa372c0, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0x7fff8ede7830) at /usr/src/debug/networkmanagement-0.9.0.5/x86_64-redhat-linux-gnu/solidcontrolfuture/solid/networkmanager-0.9/nm-managerinterface.moc:167
#20 0x00000039da2230c3 in QDBusConnectionPrivate::deliverCall (this=0xa85960, object=0xa372c0, msg=..., metaTypes=..., slotIdx=8) at qdbusintegrator.cpp:951
#21 0x00000039d8d8c39e in QObject::event (this=0xa372c0, e=<optimized out>) at kernel/qobject.cpp:1194
#22 0x00000039dbdca5cc in QApplicationPrivate::notify_helper (this=this@entry=0x8b7e30, receiver=receiver@entry=0xa372c0, e=e@entry=0xdc0fb0) at kernel/qapplication.cpp:4562
#23 0x00000039dbdcea4a in QApplication::notify (this=0x7fff8ede8430, receiver=0xa372c0, e=0xdc0fb0) at kernel/qapplication.cpp:4423
#24 0x00000039de4468f6 in KApplication::notify (this=0x7fff8ede8430, receiver=0xa372c0, event=0xdc0fb0) at /usr/src/debug/kdelibs-4.9.4/kdeui/kernel/kapplication.cpp:311
#25 0x00000039d8d77a8e in QCoreApplication::notifyInternal (this=0x7fff8ede8430, receiver=receiver@entry=0xa372c0, event=event@entry=0xdc0fb0) at kernel/qcoreapplication.cpp:946
#26 0x00000039d8d7b541 in sendEvent (event=0xdc0fb0, receiver=0xa372c0) at kernel/qcoreapplication.h:231
#27 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x87b5b0) at kernel/qcoreapplication.cpp:1570
#28 0x00000039d8da5f43 in sendPostedEvents () at kernel/qcoreapplication.h:236
#29 postEventSourceDispatch (s=s@entry=0x8b6450) at kernel/qeventdispatcher_glib.cpp:279
#30 0x00000039cf447a75 in g_main_dispatch (context=0x8b8f20) at gmain.c:2715
#31 g_main_context_dispatch (context=context@entry=0x8b8f20) at gmain.c:3219
#32 0x00000039cf447da8 in g_main_context_iterate (context=context@entry=0x8b8f20, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3290
#33 0x00000039cf447e64 in g_main_context_iteration (context=0x8b8f20, may_block=1) at gmain.c:3351
#34 0x00000039d8da60d6 in QEventDispatcherGlib::processEvents (this=0x87ce90, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#35 0x00000039dbe6a73e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#36 0x00000039d8d767df in QEventLoop::processEvents (this=this@entry=0x7fff8ede81b0, flags=...) at kernel/qeventloop.cpp:149
#37 0x00000039d8d76a68 in QEventLoop::exec (this=0x7fff8ede81b0, flags=...) at kernel/qeventloop.cpp:204
#38 0x00000039d8d7b858 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#39 0x00000039d1808510 in kdemain (argc=1, argv=0x7fff8ede8578) at /usr/src/debug/kdelibs-4.9.4/kded/kded.cpp:924
#40 0x00000039cbc21a05 in __libc_start_main (main=0x4007e0 <main(int, char**)>, argc=1, ubp_av=0x7fff8ede8578, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff8ede8568) at libc-start.c:225
#41 0x0000000000400811 in _start ()

Reported using DrKonqi
Comment 1 Lamarque V. Souza 2013-01-05 16:05:52 UTC
I really would like to understand why systemd has this tendency of causing troubles to Plasma NM. When I restart NetworkManager in Gentoo (/etc/init.d/NetworkManager restart) it does not cause this crash.

I have investigated a little this crash and it probably happens because of one dangling pointer that should have been deleted when NetworkManager stops. Unless systemd is being too agressive and trying to start NetworkManager before it has been stopped I do not see why that could happen.
Comment 2 Lamarque V. Souza 2013-01-21 20:22:56 UTC
*** Bug 313640 has been marked as a duplicate of this bug. ***
Comment 3 Lamarque V. Souza 2013-01-31 18:36:36 UTC

*** This bug has been marked as a duplicate of bug 314200 ***