Bug 220235 - Kwin crash when touching mouse after resuming from suspend to ram
Summary: Kwin crash when touching mouse after resuming from suspend to ram
Status: RESOLVED DUPLICATE of bug 196207
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
Depends on:
Reported: 2009-12-27 10:03 UTC by aku.pietikainen
Modified: 2010-02-09 13:33 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Note You need to log in before you can comment on or make changes to this bug.
Description aku.pietikainen 2009-12-27 10:03:49 UTC
Application that crashed: kwin
Version of the application: 4.3.2 (KDE 4.3.2)
KDE Version: 4.3.2 (KDE 4.3.2)
Qt Version: 4.5.2
Operating System: Linux 2.6.31-17-generic x86_64
Distribution: Ubuntu 9.10

What I was doing when the application crashed:
Kwin crashed after resuming. Using Kubuntu 9.10, Nvidia graphics and composing with OpenGL.

 -- Backtrace:
Application: KWin (kwin), signal: Aborted
The current source language is "auto; currently c".
[KCrash Handler]
#5  0x00007f6a5aa8c4b5 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#6  0x00007f6a5aa8ff50 in *__GI_abort () at abort.c:92
#7  0x00007f6a5aac4c97 in __libc_message (do_abort=<value optimized out>, fmt=<value optimized out>) at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
#8  0x00007f6a5aacedd6 in malloc_printerr (action=3, str=0x7f6a5ab8d73b "corrupted double-linked list", ptr=<value optimized out>) at malloc.c:6217
#9  0x00007f6a5aad08a2 in _int_free (av=0x7f6a5adc3e40, p=0x2e45f50) at malloc.c:4912
#10 0x00007f6a5aad370c in *__GI___libc_free (mem=<value optimized out>) at malloc.c:3716
#11 0x00007f6a5774fdbf in QX11PaintEnginePrivate::~QX11PaintEnginePrivate() () from /usr/lib/libQtGui.so.4
#12 0x00007f6a577458f0 in ~QX11PaintEngine (this=0x22c8a00, __in_chrg=<value optimized out>) at painting/qpaintengine_x11.cpp:469
#13 0x00007f6a57663038 in QX11PixmapData::release (this=0x2e42bd0) at image/qpixmap_x11.cpp:1187
#14 0x00007f6a57663814 in ~QX11PixmapData (this=0x90c, __in_chrg=<value optimized out>) at image/qpixmap_x11.cpp:1182
#15 0x00007f6a576546cb in QPixmap::deref (this=0x2edf6a0) at image/qpixmap.cpp:1322
#16 0x00007f6a5765491b in ~QPixmap (this=0x90c, __in_chrg=<value optimized out>) at image/qpixmap.cpp:332
#17 0x00007f6a57659ba3 in ~QDetachedPixmap (this=0x90c, __in_chrg=<value optimized out>) at image/qpixmapcache.cpp:97
#18 0x00007f6a57658cfd in QCache<long long, QDetachedPixmap>::unlink (this=0x6f2870) at ../../include/QtCore/../../src/corelib/tools/qcache.h:73
#19 QCache<long long, QDetachedPixmap>::trim (this=0x6f2870) at ../../include/QtCore/../../src/corelib/tools/qcache.h:208
#20 QCache<long long, QDetachedPixmap>::setMaxCost (this=0x6f2870) at ../../include/QtCore/../../src/corelib/tools/qcache.h:143
#21 QPMCache::timerEvent (this=0x6f2870) at image/qpixmapcache.cpp:154
#22 0x00007f6a56ea0d83 in QObject::event (this=0x6f2870, e=0x90c) at kernel/qobject.cpp:1075
#23 0x00007f6a57595efc in QApplicationPrivate::notify_helper (this=0x64ce50, receiver=0x6f2870, e=0x7fff87885f00) at kernel/qapplication.cpp:4056
#24 0x00007f6a5759d1ce in QApplication::notify (this=0x7fff87886260, receiver=0x6f2870, e=0x7fff87885f00) at kernel/qapplication.cpp:4021
#25 0x00007f6a5a65cab6 in KApplication::notify (this=0x7fff87886260, receiver=0x6f2870, event=0x7fff87885f00) at ../../kdeui/kernel/kapplication.cpp:302
#26 0x00007f6a56e91c2c in QCoreApplication::notifyInternal (this=0x7fff87886260, receiver=0x6f2870, event=0x7fff87885f00) at kernel/qcoreapplication.cpp:610
#27 0x00007f6a56ebc862 in QCoreApplication::sendEvent (this=0x650b60) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#28 QTimerInfoList::activateTimers (this=0x650b60) at kernel/qeventdispatcher_unix.cpp:572
#29 0x00007f6a56eba25d in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:165
#30 0x00007f6a5094fbce in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#31 0x00007f6a50953598 in ?? () from /lib/libglib-2.0.so.0
#32 0x00007f6a509536c0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#33 0x00007f6a56eba1a6 in QEventDispatcherGlib::processEvents (this=0x632e90, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#34 0x00007f6a5762a4be in QGuiEventDispatcherGlib::processEvents (this=0x90c, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#35 0x00007f6a56e90532 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#36 0x00007f6a56e90904 in QEventLoop::exec (this=0x7fff878861a0, flags=) at kernel/qeventloop.cpp:201
#37 0x00007f6a56e92ab9 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#38 0x00007f6a5ae0d094 in kdemain (argc=<value optimized out>, argv=<value optimized out>) at ../../kwin/main.cpp:522
#39 0x00007f6a5aa77abd in __libc_start_main (main=<value optimized out>, argc=<value optimized out>, ubp_av=<value optimized out>, init=<value optimized out>, fini=<value optimized out>, 
    rtld_fini=<value optimized out>, stack_end=0x7fff87886748) at libc-start.c:220
#40 0x0000000000400679 in _start () at ../sysdeps/x86_64/elf/start.S:113

Reported using DrKonqi
Comment 1 Dario Andres 2009-12-27 22:26:24 UTC
This could be a bug in the Qt library or the glibcbug:  bug 196207.
- Does KWin always crash when you repeat the situation ?
Comment 2 aku.pietikainen 2009-12-28 13:39:49 UTC
The crash has happened maybe 5 times. I don't know how to reproduce it, it seems to come randomly on resume.
Comment 3 Dario Andres 2010-01-01 04:45:47 UTC
This could be related to the glibc bug : bug 196207.
Check this:
- Start Konsole
- Type "export QT_NO_GLIB=1" + Enter
- Type "export MALLOC_CHECK_=" + Enter
- Type "kwin --replace" + Enter
- Try to repeat the situation and check if it crashes or not
If it doesn't crash, then it is likely to be bug 196207. 
Comment 4 aku.pietikainen 2010-01-01 15:18:56 UTC
Added export lines to .profile to make them permanent over reboots. I'll report possible kwin crashes here.
Comment 5 Dario Andres 2010-02-07 00:43:18 UTC
Any news on this ? Regards
Comment 6 aku.pietikainen 2010-02-08 13:01:06 UTC
(In reply to comment #5)
> Any news on this ? Regards

Patch seems to work. No crashes after I put those export lines to my ~/.profile.
Comment 7 Dario Andres 2010-02-09 13:33:54 UTC
Thanks. Merging with bug 196207. Updated glib packages should fix this bug for real. Regards

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