Bug 319475

Summary: Plasma crashes when closing apps
Product: [Plasma] plasma4 Reporter: Ricardo <thrawnkb>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: agateau, alboz, annma, hrvoje.senjan, luke.hallam, markus.zimmermann, rdieter
Priority: NOR    
Version: 4.10.3   
Target Milestone: 4.10   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: New crash information added by DrKonqi
Plasma crash backtrace

Description Ricardo 2013-05-07 16:18:22 UTC
Application: amarok (2.7-git)
KDE Platform Version: 4.10.3 "release 559"
Qt Version: 4.8.4
Operating System: Linux 3.7.10-1.4-desktop x86_64
Distribution: "openSUSE 12.3 (x86_64)"

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

Amarok was playing fine. Then I got a message from skype, sound in amarok got *much* lower, (in Kmix there were no channel to control amarok volume), then I quit amarok (secondary click on the icon in the tray bar, quit menuitem)

The crash can be reproduced every time.

-- Backtrace:
Application: Amarok (amarok), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f4621762780 (LWP 3000))]

Thread 9 (Thread 0x7f45fc059700 (LWP 3008)):
#0  0x00007f461c5fe964 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f461eadf62b in wait (time=18446744073709551615, this=0x29f36e0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x29763c0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f461b70d981 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x29f3590, th=0x26c68e0) at /usr/src/debug/kdelibs-4.10.3/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f461b7101cb in ThreadWeaver::WorkingHardState::applyForWork (this=0x250dfd0, th=0x26c68e0) at /usr/src/debug/kdelibs-4.10.3/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f461b70f03f in ThreadWeaver::ThreadRunHelper::run (this=this@entry=0x7f45fc058e00, parent=0x29f3590, th=th@entry=0x26c68e0) at /usr/src/debug/kdelibs-4.10.3/threadweaver/Weaver/Thread.cpp:87
#6  0x00007f461b70f0cb in ThreadWeaver::Thread::run (this=0x26c68e0) at /usr/src/debug/kdelibs-4.10.3/threadweaver/Weaver/Thread.cpp:142
#7  0x00007f461eadf0cc in QThreadPrivate::start (arg=0x26c68e0) at thread/qthread_unix.cpp:338
#8  0x00007f461c5fae0f in start_thread () from /lib64/libpthread.so.0
#9  0x00007f461e4917dd in clone () from /lib64/libc.so.6

Thread 8 (Thread 0x7f45fb858700 (LWP 3009)):
#0  0x00007f461e4a352e in clock_gettime () from /lib64/libc.so.6
#1  0x00007f461eb34d94 in do_gettime (frac=0x7f45fb857b28, sec=0x7f45fb857b20) at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0x00007f461ec09bed in QTimerInfoList::updateCurrentTime (this=this@entry=0x7f45ec002660) at kernel/qeventdispatcher_unix.cpp:354
#4  0x00007f461ec09f33 in QTimerInfoList::timerWait (this=0x7f45ec002660, tm=...) at kernel/qeventdispatcher_unix.cpp:461
#5  0x00007f461ec0899c in timerSourcePrepareHelper (src=<optimized out>, timeout=0x7f45fb857c14) at kernel/qeventdispatcher_glib.cpp:136
#6  0x00007f461ec08a45 in timerSourcePrepare (source=<optimized out>, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#7  0x00007f461871a338 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#8  0x00007f461871a9cb in ?? () from /usr/lib64/libglib-2.0.so.0
#9  0x00007f461871abc4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#10 0x00007f461ec092e6 in QEventDispatcherGlib::processEvents (this=0x7f45ec0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#11 0x00007f461ebd9adf in QEventLoop::processEvents (this=this@entry=0x7f45fb857dd0, flags=...) at kernel/qeventloop.cpp:149
#12 0x00007f461ebd9d68 in QEventLoop::exec (this=0x7f45fb857dd0, flags=...) at kernel/qeventloop.cpp:204
#13 0x00007f461eadc0f0 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#14 0x00007f461ebba29f in QInotifyFileSystemWatcherEngine::run (this=0x29f6280) at io/qfilesystemwatcher_inotify.cpp:256
#15 0x00007f461eadf0cc in QThreadPrivate::start (arg=0x29f6280) at thread/qthread_unix.cpp:338
#16 0x00007f461c5fae0f in start_thread () from /lib64/libpthread.so.0
#17 0x00007f461e4917dd in clone () from /lib64/libc.so.6

Thread 7 (Thread 0x7f45fa0fa700 (LWP 3010)):
#0  0x00007f461c5fe964 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f461eadf62b in wait (time=18446744073709551615, this=0x29f36e0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x29763c0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f461b70d981 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x29f3590, th=0x2ac6e50) at /usr/src/debug/kdelibs-4.10.3/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f461b7101cb in ThreadWeaver::WorkingHardState::applyForWork (this=0x250dfd0, th=0x2ac6e50) at /usr/src/debug/kdelibs-4.10.3/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f461b70f03f in ThreadWeaver::ThreadRunHelper::run (this=this@entry=0x7f45fa0f9e00, parent=0x29f3590, th=th@entry=0x2ac6e50) at /usr/src/debug/kdelibs-4.10.3/threadweaver/Weaver/Thread.cpp:87
#6  0x00007f461b70f0cb in ThreadWeaver::Thread::run (this=0x2ac6e50) at /usr/src/debug/kdelibs-4.10.3/threadweaver/Weaver/Thread.cpp:142
#7  0x00007f461eadf0cc in QThreadPrivate::start (arg=0x2ac6e50) at thread/qthread_unix.cpp:338
#8  0x00007f461c5fae0f in start_thread () from /lib64/libpthread.so.0
#9  0x00007f461e4917dd in clone () from /lib64/libc.so.6

Thread 6 (Thread 0x7f45f98f9700 (LWP 3011)):
#0  0x00007f461c5fe964 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f461eadf62b in wait (time=18446744073709551615, this=0x29f36e0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x29763c0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f461b70d981 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x29f3590, th=0x2bf32a0) at /usr/src/debug/kdelibs-4.10.3/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f461b7101cb in ThreadWeaver::WorkingHardState::applyForWork (this=0x250dfd0, th=0x2bf32a0) at /usr/src/debug/kdelibs-4.10.3/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f461b7101e4 in ThreadWeaver::WorkingHardState::applyForWork (this=0x250dfd0, th=0x2bf32a0) at /usr/src/debug/kdelibs-4.10.3/threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00007f461b70f03f in ThreadWeaver::ThreadRunHelper::run (this=this@entry=0x7f45f98f8e00, parent=0x29f3590, th=th@entry=0x2bf32a0) at /usr/src/debug/kdelibs-4.10.3/threadweaver/Weaver/Thread.cpp:87
#7  0x00007f461b70f0cb in ThreadWeaver::Thread::run (this=0x2bf32a0) at /usr/src/debug/kdelibs-4.10.3/threadweaver/Weaver/Thread.cpp:142
#8  0x00007f461eadf0cc in QThreadPrivate::start (arg=0x2bf32a0) at thread/qthread_unix.cpp:338
#9  0x00007f461c5fae0f in start_thread () from /lib64/libpthread.so.0
#10 0x00007f461e4917dd in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7f45f90f8700 (LWP 3012)):
#0  0x00007f461c5fe964 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f461eadf62b in wait (time=18446744073709551615, this=0x29f36e0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x29763c0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f461b70d981 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x29f3590, th=0x7f45f000a390) at /usr/src/debug/kdelibs-4.10.3/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f461b7101cb in ThreadWeaver::WorkingHardState::applyForWork (this=0x250dfd0, th=0x7f45f000a390) at /usr/src/debug/kdelibs-4.10.3/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f461b70f03f in ThreadWeaver::ThreadRunHelper::run (this=this@entry=0x7f45f90f7e00, parent=0x29f3590, th=th@entry=0x7f45f000a390) at /usr/src/debug/kdelibs-4.10.3/threadweaver/Weaver/Thread.cpp:87
#6  0x00007f461b70f0cb in ThreadWeaver::Thread::run (this=0x7f45f000a390) at /usr/src/debug/kdelibs-4.10.3/threadweaver/Weaver/Thread.cpp:142
#7  0x00007f461eadf0cc in QThreadPrivate::start (arg=0x7f45f000a390) at thread/qthread_unix.cpp:338
#8  0x00007f461c5fae0f in start_thread () from /lib64/libpthread.so.0
#9  0x00007f461e4917dd in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7f45e39bc700 (LWP 3013)):
#0  0x00007f461c5fe964 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f461476a2f0 in ?? () from /usr/lib64/libQtWebKit.so.4
#2  0x00007f461476a329 in ?? () from /usr/lib64/libQtWebKit.so.4
#3  0x00007f461c5fae0f in start_thread () from /lib64/libpthread.so.0
#4  0x00007f461e4917dd in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f4590f6e700 (LWP 3019)):
#0  0x00007f461e46258d in nanosleep () from /lib64/libc.so.6
#1  0x00007f461e462431 in sleep () from /lib64/libc.so.6
#2  0x00007f461a7452b2 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7f461aa52660 <QTWTF::pageheap_memory>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2363
#3  0x00007f461a745339 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#4  0x00007f461c5fae0f in start_thread () from /lib64/libpthread.so.0
#5  0x00007f461e4917dd in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f45761bf700 (LWP 3033)):
#0  0x00007f461c5fe964 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f46144e8157 in ?? () from /usr/lib64/libQtWebKit.so.4
#2  0x00007f461479181e in ?? () from /usr/lib64/libQtWebKit.so.4
#3  0x00007f461c5fae0f in start_thread () from /lib64/libpthread.so.0
#4  0x00007f461e4917dd in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f4621762780 (LWP 3000)):
[KCrash Handler]
#6  0x00007f46200e49fc in XFreePixmap () from /usr/lib64/libX11.so.6
#7  0x00007f461abd2a41 in DialogShadows::Private::freeX11Pixmaps (this=this@entry=0x2cd52a0) at /usr/src/debug/kdelibs-4.10.3/plasma/private/dialogshadows.cpp:340
#8  0x00007f461abd3388 in ~Private (this=0x2cd52a0, __in_chrg=<optimized out>) at /usr/src/debug/kdelibs-4.10.3/plasma/private/dialogshadows.cpp:46
#9  DialogShadows::~DialogShadows (this=0x2cd4a00, __in_chrg=<optimized out>) at /usr/src/debug/kdelibs-4.10.3/plasma/private/dialogshadows.cpp:97
#10 0x00007f461abd3459 in DialogShadows::~DialogShadows (this=0x2cd4a00, __in_chrg=<optimized out>) at /usr/src/debug/kdelibs-4.10.3/plasma/private/dialogshadows.cpp:98
#11 0x00007f461ebed4c2 in QObjectPrivate::deleteChildren (this=this@entry=0x2cd5100) at kernel/qobject.cpp:1916
#12 0x00007f461ebf1306 in QObject::~QObject (this=0x2cd50d0, __in_chrg=<optimized out>) at kernel/qobject.cpp:926
#13 0x00007f461ac36707 in ~ToolTipManagerSingleton (this=0x2cd50d0, __in_chrg=<optimized out>) at /usr/src/debug/kdelibs-4.10.3/plasma/tooltipmanager.cpp:109
#14 destroy () at /usr/src/debug/kdelibs-4.10.3/plasma/tooltipmanager.cpp:117
#15 0x00007f461e3e0f61 in __run_exit_handlers () from /lib64/libc.so.6
#16 0x00007f461e3e0fe5 in exit () from /lib64/libc.so.6
#17 0x00007f461e3caa1c in __libc_start_main () from /lib64/libc.so.6
#18 0x0000000000407c19 in _start () at ../sysdeps/x86_64/start.S:123

Reported using DrKonqi
Comment 1 Myriam Schweingruber 2013-05-07 18:29:02 UTC
Is this reproducible? The problem is not in Amarok, but in kdelibs/plasma
Comment 2 Markus Zimmermann 2013-05-07 20:10:29 UTC
I think i have the same crash but I can reproduce it by simply exiting amarok. I noticed that Ricardo is using opensuse 12.3 with the new KDE 4.10.3. I switched to 4.10.3 today and since then this crashes happen.
Comment 3 Myriam Schweingruber 2013-05-08 00:28:16 UTC
Markus: can you please provide a backtrace? Just saying it is the same without a backtrace is not possible.
Comment 4 Hrvoje Senjan 2013-05-08 20:24:29 UTC
Created attachment 79785 [details]
New crash information added by DrKonqi

amarok (2.7-git) on KDE Platform 4.10.60 "release 116" using Qt 4.8.5

- What I was doing when the application crashed:

@Myriam, i am blaming 4cd97cd6233ae24f1481d2c9fe956c7c48d1127f  from kdelibs, will try reproducing with that commit reverted

-- Backtrace (Reduced):
#6  0x00007f3df6f39a7c in XFreePixmap () from /usr/lib64/libX11.so.6
#7  0x00007f3df1a136bb in DialogShadows::Private::freeX11Pixmaps (this=this@entry=0x22dead0) at /usr/src/debug/kdelibs-git/plasma/private/dialogshadows.cpp:333
#8  0x00007f3df1a15a38 in ~Private (this=0x22dead0, __in_chrg=<optimized out>) at /usr/src/debug/kdelibs-git/plasma/private/dialogshadows.cpp:46
#9  DialogShadows::~DialogShadows (this=0x22de250, __in_chrg=<optimized out>) at /usr/src/debug/kdelibs-git/plasma/private/dialogshadows.cpp:97
#10 0x00007f3df1a15b09 in DialogShadows::~DialogShadows (this=0x22de250, __in_chrg=<optimized out>) at /usr/src/debug/kdelibs-git/plasma/private/dialogshadows.cpp:98
Comment 5 Hrvoje Senjan 2013-05-08 20:25:36 UTC
@Aurélien, could you take a look at this report?
Comment 6 Hrvoje Senjan 2013-05-08 20:32:30 UTC
Created attachment 79786 [details]
Plasma crash backtrace

Same backtrace when doing kquitapp plasma-desktop (though i can't reproduce plasma crash 100% of the time).
Comment 7 Hrvoje Senjan 2013-05-08 21:05:17 UTC
I can confirm that the "make ~DialogShadows delete DialogShadows::Private" commt is the guilty one. With revert, the crashes stop. (for some reason i can't change the product from Amarok)
Comment 8 Myriam Schweingruber 2013-05-08 22:57:58 UTC
Thank you for the feedback, Hrvoje
Comment 9 Myriam Schweingruber 2013-05-09 08:14:35 UTC
*** Bug 319560 has been marked as a duplicate of this bug. ***
Comment 10 Myriam Schweingruber 2013-05-09 08:20:52 UTC
Aurélien, could it be that your fix for bug 318636 causes that? Something we have to change on our side?
Comment 11 Anne-Marie Mahfouf 2013-05-09 09:10:17 UTC
I get this crash when I run 
kquitapp plasma-desktop
in konsole

Thread 1 (Thread 0xb51f2740 (LWP 3747)):
[KCrash Handler]
#7  0xb716b154 in XFreePixmap () from /usr//lib/libX11.so.6
#8  0xb451a209 in DialogShadows::Private::freeX11Pixmaps (this=0x9928e78) at /usr/local/kde-src/kde/kdelibs/plasma/private/dialogshadows.cpp:340
#9  0xb451aa0f in DialogShadows::Private::~Private (this=0x9928e78, __in_chrg=<optimized out>) at /usr/local/kde-src/kde/kdelibs/plasma/private/dialogshadows.cpp:46
#10 0xb45186cf in DialogShadows::~DialogShadows (this=0x9928dc0, __in_chrg=<optimized out>) at /usr/local/kde-src/kde/kdelibs/plasma/private/dialogshadows.cpp:97
#11 0xb4518723 in DialogShadows::~DialogShadows (this=0x9928dc0, __in_chrg=<optimized out>) at /usr/local/kde-src/kde/kdelibs/plasma/private/dialogshadows.cpp:98
#12 0xb6c5d619 in QObjectPrivate::deleteChildren() () from /usr//lib/libQtCore.so.4
#13 0xb6c62bfc in QObject::~QObject() () from /usr//lib/libQtCore.so.4
#14 0xb458372b in Plasma::ToolTipManager::~ToolTipManager (this=0x9928cc8, __in_chrg=<optimized out>) at /usr/local/kde-src/kde/kdelibs/plasma/tooltipmanager.cpp:136
#15 0xb4584f49 in Plasma::ToolTipManagerSingleton::~ToolTipManagerSingleton (this=0x9928cc8, __in_chrg=<optimized out>) at /usr/local/kde-src/kde/kdelibs/plasma/tooltipmanager.cpp:109
#16 0xb458357e in destroy () at /usr/local/kde-src/kde/kdelibs/plasma/tooltipmanager.cpp:117
#17 0xb447aa9d in KCleanUpGlobalStatic::~KCleanUpGlobalStatic (this=0xb472b7cc <Plasma::._301::operator->()::cleanUpObject>, __in_chrg=<optimized out>) at /usr/local/kde-src/kde/kdelibs/kdecore/kernel/kglobal.h:62
#18 0xb5c7c8f1 in __run_exit_handlers () from /lib/libc.so.6
#19 0xb5c7c97d in exit () from /lib/libc.so.6
#20 0x0804de45 in launch (argc=1, _name=0x983870c "/usr/local/kde-master-install/bin/plasma-desktop", args=0x983873d "", cwd=0x0, envc=0, envs=0x9838741 "", reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=0x8053759 "0") at /usr/local/kde-src/kde/kdelibs/kinit/kinit.cpp:726
#21 0x0804ee96 in handle_launcher_request (sock=8, who=0x80539f4 "launcher") at /usr/local/kde-src/kde/kdelibs/kinit/kinit.cpp:1218
#22 0x0804f69c in handle_requests (waitForPid=0) at /usr/local/kde-src/kde/kdelibs/kinit/kinit.cpp:1411
#23 0x0805107c in main (argc=4, argv=0xbf932084, envp=0xbf932098) at /usr/local/kde-src/kde/kdelibs/kinit/kinit.cpp:1899

I run master.
Comment 12 Martin Flöser 2013-05-09 09:21:47 UTC

*** This bug has been marked as a duplicate of bug 319137 ***
Comment 13 Mark Kretschmann 2013-05-09 18:41:44 UTC
*** Bug 319582 has been marked as a duplicate of this bug. ***