Bug 315872 - thread library segfault
Summary: thread library segfault
Status: RESOLVED DUPLICATE of bug 317765
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 4.9.4
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-27 20:01 UTC by Michael Hammond
Modified: 2013-05-02 07:31 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (4.04 KB, text/plain)
2013-04-17 21:12 UTC, smkr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Hammond 2013-02-27 20:01:38 UTC
Application: kwin (4.9.4)
KDE Platform Version: 4.9.4
Qt Version: 4.8.3
Operating System: Linux 3.5.0-23-generic x86_64
Distribution: Ubuntu 12.10

-- Information about the crash:
- What I was doing when the application crashed:
Large number of windows open, tried to send mail from kmail client.
Laptop with wireless disabled, using ethernet.

The crash can be reproduced some of the time.

-- Backtrace:
Application: KWin (kwin), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fe8b96ef780 (LWP 6049))]

Thread 3 (Thread 0x7fe8b134a700 (LWP 6053)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fe8c8f06cd7 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#2  0x00007fe8c8f06d09 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#3  0x00007fe8c1067e9a in start_thread (arg=0x7fe8b134a700) at pthread_create.c:308
#4  0x00007fe8cbfddcbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fe8abd97700 (LWP 6054)):
#0  0x00007fe8cbfd7023 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007fe8c7ce2023 in qt_safe_select (nfds=17, fdread=0x7fe8a4000ac8, fdwrite=0x7fe8a4000d60, fdexcept=0x7fe8a4000ff8, orig_timeout=0x0) at kernel/qcore_unix.cpp:83
#2  0x00007fe8c7ce69e4 in QEventDispatcherUNIXPrivate::doSelect (this=this@entry=0x7fe8a4000910, flags=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:223
#3  0x00007fe8c7ce7572 in QEventDispatcherUNIX::processEvents (this=0x7fe8a40008f0, flags=...) at kernel/qeventdispatcher_unix.cpp:926
#4  0x00007fe8c7cb52bf in QEventLoop::processEvents (this=this@entry=0x7fe8abd96dd0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fe8c7cb5548 in QEventLoop::exec (this=0x7fe8abd96dd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fe8c7bb6b10 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007fe8c7c959af in QInotifyFileSystemWatcherEngine::run (this=0x11c9730) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007fe8c7bb9aec in QThreadPrivate::start (arg=0x11c9730) at thread/qthread_unix.cpp:338
#9  0x00007fe8c1067e9a in start_thread (arg=0x7fe8abd97700) at pthread_create.c:308
#10 0x00007fe8cbfddcbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fe8b96ef780 (LWP 6049)):
[KCrash Handler]
#6  0x00007fe8cc2a2c48 in main_arena () from /lib/x86_64-linux-gnu/libc.so.6
#7  0x00007fe8cc306f15 in KWin::Workspace::constrainedStackingOrder (this=this@entry=0x10bcd20) at ../../kwin/layers.cpp:541
#8  0x00007fe8cc3075db in updateStackingOrder (propagate_new_clients=true, this=0x10bcd20) at ../../kwin/layers.cpp:118
#9  KWin::Workspace::updateStackingOrder (this=0x10bcd20, propagate_new_clients=<optimized out>) at ../../kwin/layers.cpp:111
#10 0x00007fe8cc307770 in blockStackingUpdates (this=<optimized out>, block=<optimized out>) at ../../kwin/layers.cpp:648
#11 KWin::Workspace::blockStackingUpdates (this=<optimized out>, block=<optimized out>) at ../../kwin/layers.cpp:640
#12 0x00007fe8cc2fe199 in ~StackingUpdatesBlocker (this=<synthetic pointer>, __in_chrg=<optimized out>) at ../../kwin/workspace.h:965
#13 KWin::Client::releaseWindow (this=0x1cfe500, on_shutdown=<optimized out>) at ../../kwin/client.cpp:303
#14 0x00007fe8cc31664b in KWin::Client::windowEvent (this=0x1cfe500, e=0x7fff40464a60) at ../../kwin/events.cpp:583
#15 0x00007fe8cc317483 in KWin::Workspace::workspaceEvent (this=0x10bcd20, e=0x7fff40464a60) at ../../kwin/events.cpp:294
#16 0x00007fe8cc309848 in KWin::Application::x11EventFilter (this=0x7fff40464fc0, e=0x7fff40464a60) at ../../kwin/main.cpp:362
#17 0x00007fe8c70ca7bc in qt_x11EventFilter (ev=0x7fff40464a60) at kernel/qapplication_x11.cpp:441
#18 qt_x11EventFilter (ev=0x7fff40464a60) at kernel/qapplication_x11.cpp:429
#19 0x00007fe8c70da7f0 in QApplication::x11ProcessEvent (this=0x7fff40464fc0, event=0x7fff40464a60) at kernel/qapplication_x11.cpp:3449
#20 0x00007fe8c71039d9 in QEventDispatcherX11::processEvents (this=0xf5aad0, flags=...) at kernel/qeventdispatcher_x11.cpp:132
#21 0x00007fe8c7cb52bf in QEventLoop::processEvents (this=this@entry=0x7fff40464cd0, flags=...) at kernel/qeventloop.cpp:149
#22 0x00007fe8c7cb5548 in QEventLoop::exec (this=0x7fff40464cd0, flags=...) at kernel/qeventloop.cpp:204
#23 0x00007fe8c7cba708 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#24 0x00007fe8cc30bed4 in kdemain (argc=3, argv=0x7fff40465108) at ../../kwin/main.cpp:545
#25 0x00007fe8cbf0b76d in __libc_start_main (main=0x4006a0 <main(int, char**)>, argc=3, ubp_av=0x7fff40465108, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff404650f8) at libc-start.c:226
#26 0x00000000004006d1 in _start ()

Reported using DrKonqi
Comment 1 Thomas Lübking 2013-02-27 20:22:39 UTC
crashes in     Client *c = qobject_cast<Client*>(*it);
but has already passed
Layer l = (*it)->layer();
and
const int screen = (*it)->screen();

Smells like stack corruption.
You say "some of the time" - do you always get the same backtraces?
Comment 2 Michael Hammond 2013-02-28 06:27:47 UTC
I have not chased previous crashes.  I will get religious about sending bug reports when it happens.
Comment 3 Martin Flöser 2013-04-05 12:57:47 UTC
seems like it doesn't happen in a reliable way ;-) Setting to waitingforinfo till we have a pattern.
Comment 4 smkr 2013-04-17 21:12:05 UTC
Created attachment 78994 [details]
New crash information added by DrKonqi

kwin (4.10.1) on KDE Platform 4.10.1 using Qt 4.8.4

- What I was doing when the application crashed:
Alt-Tab to switch between windows (several windows open, several desktops)

- Unusual behavior I noticed:
Until KWin recovered (short time): task bar and windows margins dissapeared.

-- Backtrace (Reduced):
#7  0x0000003f80462e95 in KWin::Workspace::constrainedStackingOrder (this=this@entry=0x14cd540) at /usr/src/debug/kde-workspace-4.10.1/kwin/layers.cpp:558
#8  0x0000003f80463563 in updateStackingOrder (propagate_new_clients=true, this=0x14cd540) at /usr/src/debug/kde-workspace-4.10.1/kwin/layers.cpp:119
#9  KWin::Workspace::updateStackingOrder (this=0x14cd540, propagate_new_clients=true) at /usr/src/debug/kde-workspace-4.10.1/kwin/layers.cpp:112
#10 0x0000003f804636f0 in blockStackingUpdates (this=<optimized out>, block=<optimized out>) at /usr/src/debug/kde-workspace-4.10.1/kwin/layers.cpp:665
#11 KWin::Workspace::blockStackingUpdates (this=<optimized out>, block=<optimized out>) at /usr/src/debug/kde-workspace-4.10.1/kwin/layers.cpp:657
Comment 5 Thomas Lübking 2013-04-17 21:22:09 UTC
Is anybody here using composting or - to be more precise - was using compositing at the time the crash occurred?
And if so, do you use effects on hiding windows (like eg. "fade")?
Comment 6 smkr 2013-04-27 05:18:05 UTC
(In reply to comment #5)
> Is anybody here using composting or - to be more precise - was using
> compositing at the time the crash occurred?

Yes.

Compositing type: OpenGL
Qt graphics system: Raster
Keep window thumbnails: Only for Shown Windows
Scale method: Accurate

Checked is:
   - Use OpenGL 2 Shaders

> And if so, do you use effects on hiding windows (like eg. "fade")?

Yes. I've got Fade 0.2.0.
Comment 7 Thomas Lübking 2013-04-27 07:31:40 UTC
Ok, i thought this was the reason (see bug #317765) - ie. crashes because you're NOT compositing.
Dead end then, though :-(
Comment 8 Thomas Lübking 2013-05-02 07:31:34 UTC

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