Bug 359852 - Plasma crash when manually switching wifi network
Summary: Plasma crash when manually switching wifi network
Status: RESOLVED DUPLICATE of bug 346118
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.5.4
Platform: openSUSE Linux
: NOR crash
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2016-02-27 08:05 UTC by hello.titties123
Modified: 2016-02-29 06:58 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
valgrind_plasmashell.txt (42.03 KB, text/plain)
2016-02-29 06:58 UTC, Dobrogi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hello.titties123 2016-02-27 08:05:07 UTC
Application: plasmashell (5.5.4)

Qt Version: 5.5.1
Operating System: Linux 4.4.1-1-default x86_64
Distribution: "openSUSE Tumbleweed (20160224) (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:

Using network manager to change the wifi, .e.g. from hotpost A to B.

The crash can be reproduced every time.

-- Backtrace:
Application: Plasma (plasmashell), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f6033ea68c0 (LWP 18167))]

Thread 7 (Thread 0x7f601d621700 (LWP 18169)):
#0  0x00007f602d42d49d in poll () at /lib64/libc.so.6
#1  0x00007f6032301432 in  () at /usr/lib64/libxcb.so.1
#2  0x00007f6032303007 in xcb_wait_for_event () at /usr/lib64/libxcb.so.1
#3  0x00007f601f770e29 in  () at /usr/lib64/libQt5XcbQpa.so.5
#4  0x00007f602db1d94f in  () at /usr/lib64/libQt5Core.so.5
#5  0x00007f602cc344a4 in start_thread () at /lib64/libpthread.so.0
#6  0x00007f602d435ded in clone () at /lib64/libc.so.6

Thread 6 (Thread 0x7f6016936700 (LWP 18177)):
#0  0x00007f602d42947d in read () at /lib64/libc.so.6
#1  0x00007f6029b64290 in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f6029b21dc4 in g_main_context_check () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f6029b22238 in  () at /usr/lib64/libglib-2.0.so.0
#4  0x00007f6029b2239c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#5  0x00007f602dd4252b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#6  0x00007f602dcec61a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#7  0x00007f602db18b1c in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#8  0x00007f6030de77b5 in  () at /usr/lib64/libQt5Qml.so.5
#9  0x00007f602db1d94f in  () at /usr/lib64/libQt5Core.so.5
#10 0x00007f602cc344a4 in start_thread () at /lib64/libpthread.so.0
#11 0x00007f602d435ded in clone () at /lib64/libc.so.6

Thread 5 (Thread 0x7f6008c48700 (LWP 18178)):
#0  0x00007f6029b21b89 in g_main_context_query () at /usr/lib64/libglib-2.0.so.0
#1  0x00007f6029b2220f in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f6029b2239c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f602dd4252b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#4  0x00007f602dcec61a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#5  0x00007f602db18b1c in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#6  0x00007f6030de77b5 in  () at /usr/lib64/libQt5Qml.so.5
#7  0x00007f602db1d94f in  () at /usr/lib64/libQt5Core.so.5
#8  0x00007f602cc344a4 in start_thread () at /lib64/libpthread.so.0
#9  0x00007f602d435ded in clone () at /lib64/libc.so.6

Thread 4 (Thread 0x7f600324e700 (LWP 18179)):
#0  0x00007f6033d06490 in __tls_get_addr () at /lib64/ld-linux-x86-64.so.2
#1  0x00007f602db1c912 in  () at /usr/lib64/libQt5Core.so.5
#2  0x00007f602dd41aca in  () at /usr/lib64/libQt5Core.so.5
#3  0x00007f6029b218bd in g_main_context_prepare () at /usr/lib64/libglib-2.0.so.0
#4  0x00007f6029b221c3 in  () at /usr/lib64/libglib-2.0.so.0
#5  0x00007f6029b2239c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#6  0x00007f602dd4252b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#7  0x00007f602dcec61a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#8  0x00007f602db18b1c in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#9  0x00007f6030de77b5 in  () at /usr/lib64/libQt5Qml.so.5
#10 0x00007f602db1d94f in  () at /usr/lib64/libQt5Core.so.5
#11 0x00007f602cc344a4 in start_thread () at /lib64/libpthread.so.0
#12 0x00007f602d435ded in clone () at /lib64/libc.so.6

Thread 3 (Thread 0x7f60017c7700 (LWP 18180)):
#0  0x00007f602cc3a07f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f603358fa84 in  () at /usr/lib64/libQt5Script.so.5
#2  0x00007f603358fac9 in  () at /usr/lib64/libQt5Script.so.5
#3  0x00007f602cc344a4 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f602d435ded in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7f5f7abbc700 (LWP 18181)):
#0  0x00007f602d42d49d in poll () at /lib64/libc.so.6
#1  0x00007f6029b22294 in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f6029b2239c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f602dd4252b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#4  0x00007f602dcec61a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#5  0x00007f602db18b1c in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#6  0x00007f603196de42 in  () at /usr/lib64/libQt5Quick.so.5
#7  0x00007f602db1d94f in  () at /usr/lib64/libQt5Core.so.5
#8  0x00007f602cc344a4 in start_thread () at /lib64/libpthread.so.0
#9  0x00007f602d435ded in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7f6033ea68c0 (LWP 18167)):
[KCrash Handler]
#6  0x00007f6030bc3df8 in  () at /usr/lib64/libQt5Qml.so.5
#7  0x00007f6030e266ca in QQmlDelegateModel::_q_itemsChanged(int, int, QVector<int> const&) () at /usr/lib64/libQt5Qml.so.5
#8  0x00007f6030e2aeab in QQmlDelegateModel::_q_layoutChanged(QList<QPersistentModelIndex> const&, QAbstractItemModel::LayoutChangeHint) () at /usr/lib64/libQt5Qml.so.5
#9  0x00007f6030e4c3df in  () at /usr/lib64/libQt5Qml.so.5
#10 0x00007f6030e4ca98 in QQmlDelegateModel::qt_metacall(QMetaObject::Call, int, void**) () at /usr/lib64/libQt5Qml.so.5
#11 0x00007f602dd1c110 in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib64/libQt5Core.so.5
#12 0x00007f602dd942b6 in QAbstractItemModel::layoutChanged(QList<QPersistentModelIndex> const&, QAbstractItemModel::LayoutChangeHint) () at /usr/lib64/libQt5Core.so.5
#13 0x00007f602dcbfea4 in  () at /usr/lib64/libQt5Core.so.5
#14 0x00007f602dcc1748 in  () at /usr/lib64/libQt5Core.so.5
#15 0x00007f602dd1bf5a in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib64/libQt5Core.so.5
#16 0x00007f602dd9420c in QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) () at /usr/lib64/libQt5Core.so.5
#17 0x00007f5f6d58222d in NetworkModel::updateItem(NetworkModelItem*) () at /usr/lib64/libplasmanm_internal.so
#18 0x00007f5f6d583475 in NetworkModel::activeConnectionStateChanged(NetworkManager::ActiveConnection::State) () at /usr/lib64/libplasmanm_internal.so
#19 0x00007f602dd1bde7 in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib64/libQt5Core.so.5
#20 0x00007f5f6d31c7f1 in NetworkManager::ActiveConnection::stateChanged(NetworkManager::ActiveConnection::State) () at /usr/lib64/libKF5NetworkManagerQt.so.6
#21 0x00007f5f6d292438 in  () at /usr/lib64/libKF5NetworkManagerQt.so.6
#22 0x00007f602dd1bde7 in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib64/libQt5Core.so.5
#23 0x00007f5f6d326eab in  () at /usr/lib64/libKF5NetworkManagerQt.so.6
#24 0x00007f5f6d32d9b3 in  () at /usr/lib64/libKF5NetworkManagerQt.so.6
#25 0x00007f602ea96453 in  () at /usr/lib64/libQt5DBus.so.5
#26 0x00007f602dd1cd49 in QObject::event(QEvent*) () at /usr/lib64/libQt5Core.so.5
#27 0x00007f602f0648cc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#28 0x00007f602f0699d6 in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#29 0x00007f602dceecd3 in QCoreApplication::notifyInternal(QObject*, QEvent*) () at /usr/lib64/libQt5Core.so.5
#30 0x00007f602dcf0ff6 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib64/libQt5Core.so.5
#31 0x00007f602dd42103 in  () at /usr/lib64/libQt5Core.so.5
#32 0x00007f6029b220c7 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#33 0x00007f6029b222f8 in  () at /usr/lib64/libglib-2.0.so.0
#34 0x00007f6029b2239c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#35 0x00007f602dd4250f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#36 0x00007f602dcec61a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#37 0x00007f602dcf42dd in QCoreApplication::exec() () at /usr/lib64/libQt5Core.so.5
#38 0x0000000000436527 in main ()

Reported using DrKonqi
Comment 1 Dobrogi 2016-02-28 21:59:18 UTC
I can confirm the same happens to me on Arch Linux with:
- Plasma 5.5.4
- NetworkManager 1.0.10
- networkmanager-openvpn 1.0.8-1
- networkmanager-qt 5.19.0-1
- nm-connection-editor 1.0.10-1
- openvpn 2.3.9-1

I noticed that it happens only when openvpn connection is in my configured connections. When I moved VPN-config from /etc/NetworkManager/system-connections to another folder the problem disappeared. I could switch between wifi connections with no problem. When I moved it back it started happening again.

VPN config:
[connection]
id=My VPN
uuid=6a857313-fe64-4063-852b-f3414b8b8147
type=vpn
permissions=user:user1:;user:user2:;
secondaries=

[vpn]
ta-dir=1
connection-type=tls
remote=somehost.net
tunnel-mtu=1350
comp-lzo=yes
cert-pass-flags=0
tap-dev=no
proto-tcp=no
port=1195
mssfix=no
remote-cert-tls=server
ca=/etc/openvpn/certs/ca.crt
cert=/etc/openvpn/certs/cert.crt
key=/etc/openvpn/certs/key.key
ta=/etc/openvpn/certs/ta.key
service-type=org.freedesktop.NetworkManager.openvpn

[ipv4]
dns-search=
method=auto

[ipv6]
dns-search=
method=auto
Comment 2 David Edmundson 2016-02-28 22:03:57 UTC
If you could manage to run

kquitapp5 plasmashell
valgrind plasmashell

and reproduce the crash that would be really useful.

*** This bug has been marked as a duplicate of bug 346118 ***
Comment 3 Dobrogi 2016-02-29 06:58:21 UTC
Created attachment 97604 [details]
valgrind_plasmashell.txt

Sure, please find the enclosed. I've switched networks around 300 line. 
It started happening about 1 mounth ago. There have been several plasma 
updates since then. The VPN connection was configured long ago (1 year 
or so) and previously everything worked fine.

Best Regards
P.

W dniu 28.02.2016 o 23:03, David Edmundson via KDE Bugzilla pisze:
> https://bugs.kde.org/show_bug.cgi?id=359852
>
> David Edmundson <kde@davidedmundson.co.uk> changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>               Status|UNCONFIRMED                 |RESOLVED
>           Resolution|---                         |DUPLICATE
>
> --- Comment #2 from David Edmundson <kde@davidedmundson.co.uk> ---
> If you could manage to run
>
> kquitapp5 plasmashell
> valgrind plasmashell
>
> and reproduce the crash that would be really useful.
>
> *** This bug has been marked as a duplicate of bug 346118 ***
>