Bug 266364 - Application: KWin (kwin), signal: Segmentation fault (issue wine)
Summary: Application: KWin (kwin), signal: Segmentation fault (issue wine)
Status: RESOLVED DUPLICATE of bug 262485
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 269270 270872 271087 273279 275099 283380 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-02-15 11:00 UTC by omega
Modified: 2011-10-05 12:10 UTC (History)
4 users (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 omega 2011-02-15 11:00:24 UTC
Application: kwin (4.6.00 (4.6.0))
KDE Platform Version: 4.6.00 (4.6.0)
Qt Version: 4.7.1
Operating System: Linux 2.6.38-3-generic x86_64
Distribution: Ubuntu natty (development branch)

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

i had this crash when i mount an iso game and then i launch setup.exe with wine

The crash can be reproduced some of the time.

-- Backtrace:
Application: KWin (kwin), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f2d62a757a0 (LWP 1874))]

Thread 3 (Thread 0x7f2d47348700 (LWP 1899)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007f2d47347ad0 in ?? ()
#2  0x00007fff179ff7b2 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 2 (Thread 0x7f2d46b37700 (LWP 1900)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f2d6113de22 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7f2d61457180) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x00007f2d6113de59 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x7f2d61465254) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x00007f2d58b2dd8c in start_thread (arg=0x7f2d46b37700) at pthread_create.c:304
#4  0x00007f2d622d739d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f2d62a757a0 (LWP 1874)):
[KCrash Handler]
#6  KWin::CloseWindowView::hide (this=0x0) at ../../../kwin/effects/presentwindows/presentwindows.cpp:2096
#7  0x00007f2d48e33cac in KWin::PresentWindowsEffect::setHighlightedWindow (this=0xdd0ba0, w=0xd84650) at ../../../kwin/effects/presentwindows/presentwindows.cpp:1776
#8  0x00007f2d48e3f913 in KWin::PresentWindowsEffect::windowClosed (this=0xdd0ba0, w=0x1080820) at ../../../kwin/effects/presentwindows/presentwindows.cpp:424
#9  0x00007f2d62655197 in KWin::EffectsHandlerImpl::windowClosed (this=<value optimized out>, c=0x1080820) at ../../kwin/effects.cpp:322
#10 0x00007f2d625c4cbd in KWin::Client::releaseWindow (this=0x12c7360, on_shutdown=false) at ../../kwin/client.cpp:238
#11 0x00007f2d625f2a89 in KWin::Client::windowEvent (this=0x12c7360, e=0x7fff179ef690) at ../../kwin/events.cpp:655
#12 0x00007f2d625f2d4e in KWin::Workspace::workspaceEvent (this=0xcb5100, e=0x7fff179ef690) at ../../kwin/events.cpp:309
#13 0x00007f2d625cf988 in KWin::Application::x11EventFilter (this=0x7fff179ef8d0, e=0x7fff179ef690) at ../../kwin/main.cpp:367
#14 0x00007f2d5dacb5b5 in qt_x11EventFilter (ev=0x7fff179ef690) at kernel/qapplication_x11.cpp:436
#15 0x00007f2d5dada4c0 in QApplication::x11ProcessEvent (this=0x7fff179ef8d0, event=0x7fff179ef690) at kernel/qapplication_x11.cpp:3276
#16 0x00007f2d5db03c34 in QEventDispatcherX11::processEvents (this=0xbc26d0, flags=...) at kernel/qeventdispatcher_x11.cpp:132
#17 0x00007f2d5e696f12 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#18 0x00007f2d5e69714c in QEventLoop::exec (this=0x7fff179ef810, flags=...) at kernel/qeventloop.cpp:201
#19 0x00007f2d5e69b55b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#20 0x00007f2d625d1fbc in kdemain (argc=<value optimized out>, argv=0x7fff179eff68) at ../../kwin/main.cpp:542
#21 0x00007f2d62215d1e in __libc_start_main (main=0x400740 <main(int, char**)>, argc=1, ubp_av=0x7fff179eff68, init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7fff179eff58) at libc-start.c:226
#22 0x0000000000400669 in _start ()

Reported using DrKonqi
Comment 1 Thomas Lübking 2011-02-16 20:35:13 UTC
From the backtrace, you were using the Present Windows (aka exposé) effect and at that time a window closed.

It's however a bit "weird" because m_closeView is 0 what indicates that the effect is NOT active and thus m_windowData.contains( w ) should fail in windowClosed() - which could need an activity check anyway.

My guess:
if m_windowData.contains( w ) while the effect isn't active that refers to -guess what- QHash::operator[] abuse ... :-(

http://svn.reviewboard.kde.org/r/5762/
;-P
Comment 2 omega 2011-03-07 22:24:01 UTC

*** This bug has been marked as a duplicate of bug 262485 ***
Comment 3 Thomas Lübking 2011-03-24 00:21:53 UTC
*** Bug 269270 has been marked as a duplicate of this bug. ***
Comment 4 Thomas Lübking 2011-04-13 21:50:48 UTC
*** Bug 270872 has been marked as a duplicate of this bug. ***
Comment 5 Thomas Lübking 2011-04-16 23:44:08 UTC
*** Bug 271087 has been marked as a duplicate of this bug. ***
Comment 6 Thomas Lübking 2011-05-14 18:54:19 UTC
*** Bug 273279 has been marked as a duplicate of this bug. ***
Comment 7 Thomas Lübking 2011-06-07 12:19:58 UTC
*** Bug 275099 has been marked as a duplicate of this bug. ***
Comment 8 Thomas Lübking 2011-10-05 12:10:05 UTC
*** Bug 283380 has been marked as a duplicate of this bug. ***